text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prop-types"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["prop-types","react","react-dom"],e):"object"==typeof exports?exports.Recharts=e(require("prop-types"),require("react"),require("react-dom")):t.Recharts=e(t.PropTypes,t.React,t.ReactDOM)}(window,function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=260)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){var r=n(14),i=n(7),o="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=r(t);return e==a||e==u||e==o||e==c}},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r;
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */
  !function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&t.push(a)}else if("object"===o)for(var u in r)n.call(r,u)&&r[u]&&t.push(u)}}return t.join(" ")}void 0!==t&&t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(51);t.exports=function(t,e){return r(t,e)}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(47);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(70),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(188),i=n(191),o=n(24),a=n(5),u=n(195);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):u(t)}},function(t,e,n){var r=n(14),i=n(5),o=n(10),a="[object String]";t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&r(t)==a}},function(t,e,n){var r=n(15);t.exports=function(t){return r(t)&&t!=+t}},function(t,e,n){var r=n(20),i=n(120),o=n(121),a="[object Null]",u="[object Undefined]",c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:c&&c in Object(t)?i(t):o(t)}},function(t,e,n){var r=n(14),i=n(10),o="[object Number]";t.exports=function(t){return"number"==typeof t||i(t)&&r(t)==o}},function(t,e,n){var r=n(14),i=n(62),o=n(10),a="[object Object]",u=Function.prototype,c=Object.prototype,s=u.toString,l=c.hasOwnProperty,f=s.call(Object);t.exports=function(t){if(!o(t)||r(t)!=a)return!1;var e=i(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==f}},function(t,e,n){(function(e){for(var r=n(170),i="undefined"==typeof window?e:window,o=["moz","webkit"],a="AnimationFrame",u=i["request"+a],c=i["cancel"+a]||i["cancelRequest"+a],s=0;!u&&s<o.length;s++)u=i[o[s]+"Request"+a],c=i[o[s]+"Cancel"+a]||i[o[s]+"CancelRequest"+a];if(!u||!c){var l=0,f=0,p=[];u=function(t){if(0===p.length){var e=r(),n=Math.max(0,1e3/60-(e-l));l=n+e,setTimeout(function(){var t=p.slice(0);p.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(t){setTimeout(function(){throw t},0)}},Math.round(n))}return p.push({handle:++f,callback:t,cancelled:!1}),f},c=function(t){for(var e=0;e<p.length;e++)p[e].handle===t&&(p[e].cancelled=!0)}}t.exports=function(t){return u.call(i,t)},t.exports.cancel=function(){c.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=u,t.cancelAnimationFrame=c}}).call(this,n(26))},function(t,e,n){var r=n(128),i=n(131);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(2),i=n(59);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(9).Symbol;t.exports=r},function(t,e,n){var r=n(14),i=n(10),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&r(t)==o}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(81),i=n(164),o=n(19);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(226)();t.exports=r},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(21),i=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(105),i=n(64);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var s=e[u],l=o?o(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),a?i(n,s,l):r(n,s,l)}return n}},function(t,e,n){var r=n(5),i=n(48),o=n(122),a=n(146);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,n){var r=n(18)(Object,"create");t.exports=r},function(t,e,n){var r=n(136),i=n(137),o=n(138),a=n(139),u=n(140);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(34);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(142);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(166),i=n(50),o=n(167),a=n(168),u=n(169),c=n(14),s=n(71),l=s(r),f=s(i),p=s(o),h=s(a),d=s(u),y=c;(r&&"[object DataView]"!=y(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=y(new i)||o&&"[object Promise]"!=y(o.resolve())||a&&"[object Set]"!=y(new a)||u&&"[object WeakMap]"!=y(new u))&&(y=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=y},function(t,e,n){var r=n(89),i=n(187)(r);t.exports=i},function(t,e,n){var r=n(34),i=n(19),o=n(58),a=n(7);t.exports=function(t,e,n){if(!a(n))return!1;var u=typeof e;return!!("number"==u?i(n)&&o(e,n.length):"string"==u&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(21);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],u=e(a);if(null!=u&&(void 0===c?u==u&&!r(u):n(u,c)))var c=u,s=a}return s}},function(t,e,n){"use strict";var r=u(n(198)),i=u(n(202)),o=u(n(96)),a=u(n(92));function u(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},function(t,e,n){var r=n(63),i=n(216),o=n(85),a=n(38),u=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=u},function(t,e,n){var r=n(39),i=n(101),o=n(24);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e,n){var r=n(224),i=n(225),o=n(11),a=n(5),u=n(38);t.exports=function(t,e,n){var c=a(t)?r:i;return n&&u(t,e,n)&&(e=void 0),c(t,o(e,3))}},function(t,e,n){var r=n(39),i=n(100),o=n(11);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},function(t,e,n){var r=n(22),i=n(231),o=n(253),a=n(30),u=n(29),c=n(256),s=n(257),l=n(108),f=s(function(t,e){var n={};if(null==t)return n;var s=!1;e=r(e,function(e){return e=a(e,t),s||(s=e.length>1),e}),u(t,l(t),n),s&&(n=i(n,7,c));for(var f=e.length;f--;)o(n,e[f]);return n});t.exports=f},function(t,e,n){var r,i=n(98),o=n(209),a=n(210),u=100,c=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;t.exports=function(t,e){function n(t,o,s){if(r++>u)throw r=0,new Error("Call stack overflow for "+s);if(""===t)throw new Error(o+"(): '"+s+"' must contain a non-whitespace string");var l=function(t){var e=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(t);for(;i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(e.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(t));return e}(t=function(t,e){var r,o="",a=t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(;r=c.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var u=i("(",")",a.substring([0].index));if(""===u.body)throw new Error("'"+t+"' must contain a non-whitespace string");var s=n(u.body,"",e);o+=u.pre+s,a=u.post}return o+a}(t,s));if(l.length>1||t.indexOf("var(")>-1)return o+"("+t+")";var f=l[0]||"";"%"===f&&(t=t.replace(/\b[0-9\.]+%/g,function(t){return.01*parseFloat(t.slice(0,-1))}));var p,h=t.replace(new RegExp(f,"gi"),"");try{p=a.eval(h)}catch(e){return o+"("+t+")"}return"%"===f&&(p*=100),(o.length||"%"===f)&&(p=Math.round(p*e)/e),p+=f}return r=0,e=Math.pow(10,void 0===e?5:e),t=t.replace(/\n+/g," "),o(t,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(t,e,n){var r=n(30),i=n(27);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(5),i=n(21),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(125),i=n(141),o=n(143),a=n(144),u=n(145);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(18)(n(9),"Map");t.exports=r},function(t,e,n){var r=n(148),i=n(10);t.exports=function t(e,n,o,a,u){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,u))}},function(t,e,n){var r=n(32),i=n(149),o=n(150),a=n(151),u=n(152),c=n(153);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=i,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(79),i=n(80),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),r(a(t),function(e){return o.call(t,e)}))}:i;t.exports=u},function(t,e,n){var r=n(161),i=n(10),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,e,n){(function(t){var r=n(9),i=n(162),o="object"==typeof e&&e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===o?r.Buffer:void 0,c=(u?u.isBuffer:void 0)||i;t.exports=c}).call(this,n(57)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){(function(t){var r=n(70),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,n(57)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(83)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(53),i=n(215);t.exports=function t(e,n,o,a,u){var c=-1,s=e.length;for(o||(o=i),u||(u=[]);++c<s;){var l=e[c];n>0&&o(l)?n>1?t(l,n-1,o,a,u):r(u,l):a||(u[u.length]=l)}return u}},function(t,e,n){var r=n(88);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(76);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(7),i=n(204),o=n(97),a="Expected a function",u=Math.max,c=Math.min;t.exports=function(t,e,n){var s,l,f,p,h,d,y=0,m=!1,v=!1,b=!0;if("function"!=typeof t)throw new TypeError(a);function g(e){var n=s,r=l;return s=l=void 0,y=e,p=t.apply(r,n)}function x(t){var n=t-d;return void 0===d||n>=e||n<0||v&&t-y>=f}function w(){var t=i();if(x(t))return O(t);h=setTimeout(w,function(t){var n=e-(t-d);return v?c(n,f-(t-y)):n}(t))}function O(t){return h=void 0,b&&s?g(t):(s=l=void 0,p)}function _(){var t=i(),n=x(t);if(s=arguments,l=this,d=t,n){if(void 0===h)return function(t){return y=t,h=setTimeout(w,e),m?g(t):p}(d);if(v)return h=setTimeout(w,e),g(d)}return void 0===h&&(h=setTimeout(w,e)),p}return e=o(e)||0,r(n)&&(m=!!n.leading,f=(v="maxWait"in n)?u(o(n.maxWait)||0,e):f,b="trailing"in n?!!n.trailing:b),_.cancel=function(){void 0!==h&&clearTimeout(h),y=0,s=d=l=h=void 0},_.flush=function(){return void 0===h?p:O(i())},_}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return r.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return r.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return r.getTickValuesFixedDomain}});var r=n(221)},function(t,e,n){var r=n(64),i=n(89),o=n(11);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(26))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(73),i=n(74),o=n(75),a=1,u=2;t.exports=function(t,e,n,c,s,l){var f=n&a,p=t.length,h=e.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var y=-1,m=!0,v=n&u?new r:void 0;for(l.set(t,e),l.set(e,t);++y<p;){var b=t[y],g=e[y];if(c)var x=f?c(g,b,y,e,t,l):c(b,g,y,t,e,l);if(void 0!==x){if(x)continue;m=!1;break}if(v){if(!i(e,function(t,e){if(!o(v,e)&&(b===t||s(b,t,n,c,l)))return v.push(e)})){m=!1;break}}else if(b!==g&&!s(b,g,n,c,l)){m=!1;break}}return l.delete(t),l.delete(e),m}},function(t,e,n){var r=n(49),i=n(154),o=n(155);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(9).Uint8Array;t.exports=r},function(t,e,n){var r=n(78),i=n(54),o=n(23);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(53),i=n(5);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(160),i=n(55),o=n(5),a=n(56),u=n(58),c=n(82),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),f=!n&&!l&&a(t),p=!n&&!l&&!f&&c(t),h=n||l||f||p,d=h?r(t.length,String):[],y=d.length;for(var m in t)!e&&!s.call(t,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,y))||d.push(m);return d}},function(t,e,n){var r=n(163),i=n(28),o=n(60),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(24),i=n(86),o=n(87);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){var r=n(178),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,u=i(o.length-e,0),c=Array(u);++a<u;)c[a]=o[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=o[a];return s[e]=n(c),r(t,this,s)}}},function(t,e,n){var r=n(179),i=n(181)(r);t.exports=i},function(t,e,n){var r=n(18),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(185),i=n(23);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(7);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(0)),i=u(n(1)),o=u(n(93)),a=n(94);n(95);function u(t){return t&&t.__esModule?t:{default:t}}var c="unmounted";e.UNMOUNTED=c;var s="exited";e.EXITED=s;var l="entering";e.ENTERING=l;var f="entered";e.ENTERED=f;e.EXITING="exiting";var p=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(i=s,r.appearStatus=l):i=f:i=e.unmountOnExit||e.mountOnEnter?c:s,r.state={status:i},r.nextCallback=null,r}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getChildContext=function(){return{transitionGroup:null}},e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===c?{status:s}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==f&&(e=l):n!==l&&n!==f||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=r.appear),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=o.default.findDOMNode(this);e===l?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:c})},n.performEnter=function(t,e){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,o=this.getTimeouts();e||r?(this.props.onEnter(t,i),this.safeSetState({status:l},function(){n.props.onEntering(t,i),n.onTransitionEnd(t,o.enter,function(){n.safeSetState({status:f},function(){n.props.onEntered(t,i)})})})):this.safeSetState({status:f},function(){n.props.onEntered(t)})},n.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:"exiting"},function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,function(){e.safeSetState({status:s},function(){e.props.onExited(t)})})})):this.safeSetState({status:s},function(){e.props.onExited(t)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e,n){this.setNextCallback(n),t?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===c)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(t,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},e}(i.default.Component);function h(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var d=(0,a.polyfill)(p);e.default=d},function(t,e){t.exports=n},function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function i(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function o(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,u=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?u="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var c=t.displayName||t.name,s="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==u?"\n  "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=i),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}n.r(e),n.d(e,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(t,e,n){"use strict";e.__esModule=!0,e.transitionTimeout=function(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){if(null==t[e])return new Error(e+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof t[e])return new Error(e+" must be a number (in milliseconds)")}return null}},e.classNamesShape=e.timeoutsShape=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(0));var i=r.default.oneOfType([r.default.number,r.default.shape({enter:r.default.number,exit:r.default.number}).isRequired]);e.timeoutsShape=i;var o=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,exit:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterDone:r.default.string,enterActive:r.default.string,exit:r.default.string,exitDone:r.default.string,exitActive:r.default.string})]);e.classNamesShape=o},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=u(n(0)),i=u(n(1)),o=n(94),a=n(203);function u(t){return t&&t.__esModule?t:{default:t}}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var l=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},f=function(t){function e(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(s(s(r)));return r.state={handleExited:i,firstRender:!0},r}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},n.componentDidMount=function(){this.appeared=!0},e.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,r):(0,a.getNextChildMapping)(t,n,r),firstRender:!1}},n.handleExited=function(t,e){var n=(0,a.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.setState(function(e){var n=c({},e.children);return delete n[t.key],{children:n}}))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,["component","childFactory"]),o=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?o:i.default.createElement(e,r,o)},e}(i.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,o.polyfill)(f);e.default=p,t.exports=e.default},function(t,e,n){var r=n(7),i=n(21),o=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=c.test(t);return n||s.test(t)?l(t.slice(2),n?2:8):u.test(t)?o:+t}},function(t,e){function n(t,e,n){t instanceof RegExp&&(t=r(t,n)),e instanceof RegExp&&(e=r(e,n));var o=i(t,e,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+t.length,o[1]),post:n.slice(o[1]+e.length)}}function r(t,e){var n=e.match(t);return n?n[0]:null}function i(t,e,n){var r,i,o,a,u,c=n.indexOf(t),s=n.indexOf(e,c+1),l=c;if(c>=0&&s>0){for(r=[],o=n.length;l>=0&&!u;)l==c?(r.push(l),c=n.indexOf(t,l+1)):1==r.length?u=[r.pop(),s]:((i=r.pop())<o&&(o=i,a=s),s=n.indexOf(e,l+1)),l=c<s&&c>=0?c:s;r.length&&(u=[o,a])}return u}t.exports=n,n.range=i},function(t,e,n){var r=n(37),i=n(19);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,function(t,r,i){o[++n]=e(t,r,i)}),o}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,n){var r;/*! decimal.js-light v2.4.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(i){"use strict";var o,a=1e9,u={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c=!0,s="[DecimalError] ",l=s+"Invalid argument: ",f=s+"Exponent out of range: ",p=Math.floor,h=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,y=1e7,m=7,v=p(9007199254740991/m),b={};function g(t,e){var n,r,i,o,a,u,s,l,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),c?T(e,p):e;if(s=t.d,l=e.d,a=t.e,i=e.e,s=s.slice(),o=a-i){for(o<0?(r=s,o=-o,u=l.length):(r=l,i=a,u=s.length),o>(u=(a=Math.ceil(p/m))>u?a+1:u+1)&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((u=s.length)-(o=l.length)<0&&(o=u,r=l,l=s,s=r),n=0;o;)n=(s[--o]=s[o]+l[o]+n)/y|0,s[o]%=y;for(n&&(s.unshift(n),++i),u=s.length;0==s[--u];)s.pop();return e.d=s,e.e=i,c?T(e,p):e}function x(t,e,n){if(t!==~~t||t<e||t>n)throw Error(l+t)}function w(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)r=t[e]+"",(n=m-r.length)&&(o+=E(n)),o+=r;a=t[e],(n=m-(r=a+"").length)&&(o+=E(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}b.absoluteValue=b.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},b.comparedTo=b.cmp=function(t){var e,n,r,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,n=(r=o.d.length)<(i=t.d.length)?r:i;e<n;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},b.decimalPlaces=b.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*m;if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},b.dividedBy=b.div=function(t){return O(this,new this.constructor(t))},b.dividedToIntegerBy=b.idiv=function(t){var e=this.constructor;return T(O(this,new e(t),0,1),e.precision)},b.equals=b.eq=function(t){return!this.cmp(t)},b.exponent=function(){return A(this)},b.greaterThan=b.gt=function(t){return this.cmp(t)>0},b.greaterThanOrEqualTo=b.gte=function(t){return this.cmp(t)>=0},b.isInteger=b.isint=function(){return this.e>this.d.length-2},b.isNegative=b.isneg=function(){return this.s<0},b.isPositive=b.ispos=function(){return this.s>0},b.isZero=function(){return 0===this.s},b.lessThan=b.lt=function(t){return this.cmp(t)<0},b.lessThanOrEqualTo=b.lte=function(t){return this.cmp(t)<1},b.logarithm=b.log=function(t){var e,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(o))throw Error(s+"NaN");if(n.s<1)throw Error(s+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(c=!1,e=O(S(n,a),S(t,a),a),c=!0,T(e,i))},b.minus=b.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?M(e,t):g(e,(t.s=-t.s,t))},b.modulo=b.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(s+"NaN");return n.s?(c=!1,e=O(n,t,0,1).times(t),c=!0,n.minus(e)):T(new r(n),i)},b.naturalExponential=b.exp=function(){return _(this)},b.naturalLogarithm=b.ln=function(){return S(this)},b.negated=b.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},b.plus=b.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?g(e,t):M(e,(t.s=-t.s,t))},b.precision=b.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);if(e=A(i)+1,n=(r=i.d.length-1)*m+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},b.squareRoot=b.sqrt=function(){var t,e,n,r,i,o,a,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(s+"NaN")}for(t=A(u),c=!1,0==(i=Math.sqrt(+u))||i==1/0?(((e=w(u.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=p((t+1)/2)-(t<0||t%2),r=new l(e=i==1/0?"1e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(i.toString()),i=a=(n=l.precision)+3;;)if(r=(o=r).plus(O(u,o,a+2)).times(.5),w(o.d).slice(0,a)===(e=w(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(T(o,n+1,0),o.times(o).eq(u)){r=o;break}}else if("9999"!=e)break;a+=4}return c=!0,T(r,n)},b.times=b.mul=function(t){var e,n,r,i,o,a,u,s,l,f=this,p=f.constructor,h=f.d,d=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,n=f.e+t.e,(s=h.length)<(l=d.length)&&(o=h,h=d,d=o,a=s,s=l,l=a),o=[],r=a=s+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=s+r;i>r;)u=o[i]+d[r]*h[i-r-1]+e,o[i--]=u%y|0,e=u/y|0;o[i]=(o[i]+e)%y|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,c?T(t,p.precision):t},b.toDecimalPlaces=b.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(x(t,0,a),void 0===e?e=r.rounding:x(e,0,8),T(n,t+A(n)+1,e))},b.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=P(r,!0):(x(t,0,a),void 0===e?e=i.rounding:x(e,0,8),n=P(r=T(new i(r),t+1,e),!0,t+1)),n},b.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?P(i):(x(t,0,a),void 0===e?e=o.rounding:x(e,0,8),n=P((r=T(new o(i),t+A(i)+1,e)).abs(),!1,t+A(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},b.toInteger=b.toint=function(){var t=this,e=t.constructor;return T(new e(t),A(t)+1,e.rounding)},b.toNumber=function(){return+this},b.toPower=b.pow=function(t){var e,n,r,i,a,u,l=this,f=l.constructor,h=+(t=new f(t));if(!t.s)return new f(o);if(!(l=new f(l)).s){if(t.s<1)throw Error(s+"Infinity");return l}if(l.eq(o))return l;if(r=f.precision,t.eq(o))return T(l,r);if(u=(e=t.e)>=(n=t.d.length-1),a=l.s,u){if((n=h<0?-h:h)<=9007199254740991){for(i=new f(o),e=Math.ceil(r/m+4),c=!1;n%2&&C((i=i.times(l)).d,e),0!==(n=p(n/2));)C((l=l.times(l)).d,e);return c=!0,t.s<0?new f(o).div(i):T(i,r)}}else if(a<0)throw Error(s+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,l.s=1,c=!1,i=t.times(S(l,r+12)),c=!0,(i=_(i)).s=a,i},b.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?r=P(i,(n=A(i))<=o.toExpNeg||n>=o.toExpPos):(x(t,1,a),void 0===e?e=o.rounding:x(e,0,8),r=P(i=T(new o(i),t,e),t<=(n=A(i))||n<=o.toExpNeg,t)),r},b.toSignificantDigits=b.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(x(t,1,a),void 0===e?e=n.rounding:x(e,0,8)),T(new n(this),t,e)},b.toString=b.valueOf=b.val=b.toJSON=function(){var t=this,e=A(t),n=t.constructor;return P(t,e<=n.toExpNeg||e>=n.toExpPos)};var O=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%y|0,r=n/y|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*y+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a){var u,c,l,f,p,h,d,v,b,g,x,w,O,_,k,E,S,j,M=r.constructor,P=r.s==i.s?1:-1,C=r.d,N=i.d;if(!r.s)return new M(r);if(!i.s)throw Error(s+"Division by zero");for(c=r.e-i.e,S=N.length,k=C.length,v=(d=new M(P)).d=[],l=0;N[l]==(C[l]||0);)++l;if(N[l]>(C[l]||0)&&--c,(w=null==o?o=M.precision:a?o+(A(r)-A(i))+1:o)<0)return new M(0);if(w=w/m+2|0,l=0,1==S)for(f=0,N=N[0],w++;(l<k||f)&&w--;l++)O=f*y+(C[l]||0),v[l]=O/N|0,f=O%N|0;else{for((f=y/(N[0]+1)|0)>1&&(N=t(N,f),C=t(C,f),S=N.length,k=C.length),_=S,g=(b=C.slice(0,S)).length;g<S;)b[g++]=0;(j=N.slice()).unshift(0),E=N[0],N[1]>=y/2&&++E;do{f=0,(u=e(N,b,S,g))<0?(x=b[0],S!=g&&(x=x*y+(b[1]||0)),(f=x/E|0)>1?(f>=y&&(f=y-1),1==(u=e(p=t(N,f),b,h=p.length,g=b.length))&&(f--,n(p,S<h?j:N,h))):(0==f&&(u=f=1),p=N.slice()),(h=p.length)<g&&p.unshift(0),n(b,p,g),-1==u&&(u=e(N,b,S,g=b.length))<1&&(f++,n(b,S<g?j:N,g)),g=b.length):0===u&&(f++,b=[0]),v[l++]=f,u&&b[0]?b[g++]=C[_]||0:(b=[C[_]],g=1)}while((_++<k||void 0!==b[0])&&w--)}return v[0]||v.shift(),d.e=c,T(d,a?o+A(d)+1:o)}}();function _(t,e){var n,r,i,a,u,s=0,l=0,p=t.constructor,d=p.precision;if(A(t)>16)throw Error(f+A(t));if(!t.s)return new p(o);for(null==e?(c=!1,u=d):u=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),l+=5;for(u+=Math.log(h(2,l))/Math.LN10*2+5|0,n=r=i=new p(o),p.precision=u;;){if(r=T(r.times(t),u),n=n.times(++s),w((a=i.plus(O(r,n,u))).d).slice(0,u)===w(i.d).slice(0,u)){for(;l--;)i=T(i.times(i),u);return p.precision=d,null==e?(c=!0,T(i,d)):i}i=a}}function A(t){for(var e=t.e*m,n=t.d[0];n>=10;n/=10)e++;return e}function k(t,e,n){if(e>t.LN10.sd())throw c=!0,n&&(t.precision=n),Error(s+"LN10 precision limit exceeded");return T(new t(t.LN10),e)}function E(t){for(var e="";t--;)e+="0";return e}function S(t,e){var n,r,i,a,u,l,f,p,h,d=1,y=t,m=y.d,v=y.constructor,b=v.precision;if(y.s<1)throw Error(s+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new v(0);if(null==e?(c=!1,p=b):p=e,y.eq(10))return null==e&&(c=!0),k(v,p);if(p+=10,v.precision=p,r=(n=w(m)).charAt(0),a=A(y),!(Math.abs(a)<15e14))return f=k(v,p+2,b).times(a+""),y=S(new v(r+"."+n.slice(1)),p-10).plus(f),v.precision=b,null==e?(c=!0,T(y,b)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((y=y.times(t)).d)).charAt(0),d++;for(a=A(y),r>1?(y=new v("0."+n),a++):y=new v(r+"."+n.slice(1)),l=u=y=O(y.minus(o),y.plus(o),p),h=T(y.times(y),p),i=3;;){if(u=T(u.times(h),p),w((f=l.plus(O(u,new v(i),p))).d).slice(0,p)===w(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(k(v,p+2,b).times(a+""))),l=O(l,new v(d),p),v.precision=b,null==e?(c=!0,T(l,b)):l;l=f,i+=2}}function j(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=p(n/m),t.d=[],r=(n+1)%m,n<0&&(r+=m),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=m;r<i;)t.d.push(+e.slice(r,r+=m));e=e.slice(r),r=m-e.length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),c&&(t.e>v||t.e<-v))throw Error(f+n)}else t.s=0,t.e=0,t.d=[0];return t}function T(t,e,n){var r,i,o,a,u,s,l,d,b=t.d;for(a=1,o=b[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=m,i=e,l=b[d=0];else{if((d=Math.ceil((r+1)/m))>=(o=b.length))return t;for(l=o=b[d],a=1;o>=10;o/=10)a++;i=(r%=m)-m+a}if(void 0!==n&&(u=l/(o=h(10,a-i-1))%10|0,s=e<0||void 0!==b[d+1]||l%o,s=n<4?(u||s)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||s||6==n&&(r>0?i>0?l/h(10,a-i):0:b[d-1])%10&1||n==(t.s<0?8:7))),e<1||!b[0])return s?(o=A(t),b.length=1,e=e-o-1,b[0]=h(10,(m-e%m)%m),t.e=p(-e/m)||0):(b.length=1,b[0]=t.e=t.s=0),t;if(0==r?(b.length=d,o=1,d--):(b.length=d+1,o=h(10,m-r),b[d]=i>0?(l/h(10,a-i)%h(10,i)|0)*o:0),s)for(;;){if(0==d){(b[0]+=o)==y&&(b[0]=1,++t.e);break}if(b[d]+=o,b[d]!=y)break;b[d--]=0,o=1}for(r=b.length;0===b[--r];)b.pop();if(c&&(t.e>v||t.e<-v))throw Error(f+A(t));return t}function M(t,e){var n,r,i,o,a,u,s,l,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),c?T(e,d):e;if(s=t.d,p=e.d,r=e.e,l=t.e,s=s.slice(),a=l-r){for((f=a<0)?(n=s,a=-a,u=p.length):(n=p,r=l,u=s.length),a>(i=Math.max(Math.ceil(d/m),u)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=s.length)<(u=p.length))&&(u=i),i=0;i<u;i++)if(s[i]!=p[i]){f=s[i]<p[i];break}a=0}for(f&&(n=s,s=p,p=n,e.s=-e.s),u=s.length,i=p.length-u;i>0;--i)s[u++]=0;for(i=p.length;i>a;){if(s[--i]<p[i]){for(o=i;o&&0===s[--o];)s[o]=y-1;--s[o],s[i]+=y}s[i]-=p[i]}for(;0===s[--u];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(e.d=s,e.e=r,c?T(e,d):e):new h(0)}function P(t,e,n){var r,i=A(t),o=w(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+E(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+E(-i-1)+o,n&&(r=n-a)>0&&(o+=E(r))):i>=a?(o+=E(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+E(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=E(r))),t.s<0?"-"+o:o}function C(t,e){if(t.length>e)return t.length=e,!0}function N(t){if(!t||"object"!=typeof t)throw Error(s+"Object expected");var e,n,r,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(r=t[n=i[e]])){if(!(p(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}(u=function t(e){var n,r,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):j(e,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!d.test(t))throw Error(l+t);j(e,t)}if(o.prototype=b,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=N,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}(u)).default=u.Decimal=u,o=new u(1),void 0===(r=function(){return u}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),e.memoize=e.reverse=e.compose=e.map=e.range=e.curry=e.PLACE_HOLDER=void 0;var i=function(t){return t},o={"@@functional/placeholder":!0};e.PLACE_HOLDER=o;var a=function(t){return t===o},u=function(t){return function e(){return 0===arguments.length||1===arguments.length&&a(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},c=function(t){return function t(e,n){return 1===e?n:u(function(){for(var i=arguments.length,c=new Array(i),s=0;s<i;s++)c[s]=arguments[s];var l=c.filter(function(t){return t!==o}).length;return l>=e?n.apply(void 0,c):t(e-l,u(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var o=c.map(function(t){return a(t)?e.shift():t});return n.apply(void 0,r(o).concat(e))}))})}(t.length,t)};e.curry=c;e.range=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n};var s=c(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)});e.map=s;e.compose=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return i;var r=e.reverse(),o=r[0],a=r.slice(1);return function(){return a.reduce(function(t,e){return e(t)},o.apply(void 0,arguments))}};e.reverse=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")};e.memoize=function(t){var e=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e&&i.every(function(t,n){return t===e[n]})?n:(e=i,n=t.apply(void 0,i))}}},function(t,e,n){var r=n(97),i=1/0,o=1.7976931348623157e308;t.exports=function(t){return t?(t=r(t))===i||t===-i?(t<0?-1:1)*o:t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(64),i=n(34),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(81),i=n(235),o=n(19);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e,n){var r=n(53),i=n(62),o=n(54),a=n(80),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=u},function(t,e,n){var r=n(78),i=n(107),o=n(106);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(22),i=n(172),o=n(85),a=n(182),u=o(function(t){var e=r(t,a);return e.length&&e[0]===t[0]?i(e):[]});t.exports=u},function(t,e,n){var r=n(79),i=n(184),o=n(11),a=n(5);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(n(205));e.default=r.default},function(t,e,n){var r=n(39),i=n(100),o=n(24);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e,n){var r=n(63),i=n(220);t.exports=function(t,e){return r(i(t,e),1)}},function(t,e,n){var r=n(74),i=n(11),o=n(223),a=n(5),u=n(38);t.exports=function(t,e,n){var c=a(t)?r:o;return n&&u(t,e,n)&&(e=void 0),c(t,i(e,3))}},function(t,e,n){var r=n(39),i=n(11),o=n(101);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},function(t,e,n){var r=n(228)(n(229));t.exports=r},function(t,e,n){var r=n(66),i=n(7),o="Expected a function";t.exports=function(t,e,n){var a=!0,u=!0;if("function"!=typeof t)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,u="trailing"in n?!!n.trailing:u),r(t,e,{leading:a,maxWait:e,trailing:u})}},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!function(t){return"number"==typeof t}(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,a,u,c,s;if(this._events||(this._events={}),"error"===t&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(o(n=this._events[t]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),n.apply(this,u)}else if(i(n))for(u=Array.prototype.slice.call(arguments,1),a=(s=n.slice()).length,c=0;c<a;c++)s[c].apply(this,u);return!0},n.prototype.addListener=function(t,e){var a;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?i(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,i(this._events[t])&&!this._events[t].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[t].length>a&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){if(!r(e))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},n.prototype.removeListener=function(t,e){var n,o,a,u;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(a=(n=this._events[t]).length,o=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(i(n)){for(u=a;u-- >0;)if(n[u]===e||n[u].listener&&n[u].listener===e){o=u;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){var r=n(11),i=n(259);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):0}},function(t,e,n){var r=n(20),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[u]=n:delete t[u]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(123)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=o},function(t,e,n){var r=n(124),i=500;t.exports=function(t){var e=r(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var r=n(49),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},function(t,e,n){var r=n(126),i=n(32),o=n(50);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(127),i=n(132),o=n(133),a=n(134),u=n(135);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(31);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(2),i=n(129),o=n(7),a=n(71),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?p:u).test(a(t))}},function(t,e,n){var r=n(130),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(9)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(31),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(31),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(31),i="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(33),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(33);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(33);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(33);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(35);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(35);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(35);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(35);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(147);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(20),i=n(22),o=n(5),a=n(21),u=1/0,c=r?r.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return s?s.call(e):"";var n=e+"";return"0"==n&&1/e==-u?"-0":n}},function(t,e,n){var r=n(52),i=n(72),o=n(156),a=n(159),u=n(36),c=n(5),s=n(56),l=n(82),f=1,p="[object Arguments]",h="[object Array]",d="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,m,v,b){var g=c(t),x=c(e),w=g?h:u(t),O=x?h:u(e),_=(w=w==p?d:w)==d,A=(O=O==p?d:O)==d,k=w==O;if(k&&s(t)){if(!s(e))return!1;g=!0,_=!1}if(k&&!_)return b||(b=new r),g||l(t)?i(t,e,n,m,v,b):o(t,e,w,n,m,v,b);if(!(n&f)){var E=_&&y.call(t,"__wrapped__"),S=A&&y.call(e,"__wrapped__");if(E||S){var j=E?t.value():t,T=S?e.value():e;return b||(b=new r),v(j,T,n,m,b)}}return!!k&&(b||(b=new r),a(t,e,n,m,v,b))}},function(t,e,n){var r=n(32);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(32),i=n(50),o=n(49),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var u=n.__data__;if(!i||u.length<a-1)return u.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(u)}return n.set(t,e),this.size=n.size,this}},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(20),i=n(76),o=n(34),a=n(72),u=n(157),c=n(158),s=1,l=2,f="[object Boolean]",p="[object Date]",h="[object Error]",d="[object Map]",y="[object Number]",m="[object RegExp]",v="[object Set]",b="[object String]",g="[object Symbol]",x="[object ArrayBuffer]",w="[object DataView]",O=r?r.prototype:void 0,_=O?O.valueOf:void 0;t.exports=function(t,e,n,r,O,A,k){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!A(new i(t),new i(e)));case f:case p:case y:return o(+t,+e);case h:return t.name==e.name&&t.message==e.message;case m:case b:return t==e+"";case d:var E=u;case v:var S=r&s;if(E||(E=c),t.size!=e.size&&!S)return!1;var j=k.get(t);if(j)return j==e;r|=l,k.set(t,e);var T=a(E(t),E(e),r,O,A,k);return k.delete(t),T;case g:if(_)return _.call(t)==_.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var r=n(77),i=1,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,a,u,c){var s=n&i,l=r(t),f=l.length;if(f!=r(e).length&&!s)return!1;for(var p=f;p--;){var h=l[p];if(!(s?h in e:o.call(e,h)))return!1}var d=c.get(t);if(d&&c.get(e))return d==e;var y=!0;c.set(t,e),c.set(e,t);for(var m=s;++p<f;){var v=t[h=l[p]],b=e[h];if(a)var g=s?a(b,v,h,e,t,c):a(v,b,h,t,e,c);if(!(void 0===g?v===b||u(v,b,n,a,c):g)){y=!1;break}m||(m="constructor"==h)}if(y&&!m){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(y=!1)}return c.delete(t),c.delete(e),y}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(14),i=n(10),o="[object Arguments]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(14),i=n(59),o=n(10),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(61),i=n(165),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(83)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(18)(n(9),"DataView");t.exports=r},function(t,e,n){var r=n(18)(n(9),"Promise");t.exports=r},function(t,e,n){var r=n(18)(n(9),"Set");t.exports=r},function(t,e,n){var r=n(18)(n(9),"WeakMap");t.exports=r},function(t,e,n){(function(e){(function(){var n,r,i,o,a,u;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:void 0!==e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-a)/1e6},r=e.hrtime,o=(n=function(){var t;return 1e9*(t=r())[0]+t[1]})(),u=1e9*e.uptime(),a=o-u):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n(171))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,s=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&h())}function h(){if(!l){var t=u(p);l=!0;for(var e=s.length;e;){for(c=s,s=[];++f<e;)c&&c[f].run();f=-1,e=s.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new d(t,e)),1!==s.length||l||u(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){var r=n(73),i=n(173),o=n(177),a=n(22),u=n(28),c=n(75),s=Math.min;t.exports=function(t,e,n){for(var l=n?o:i,f=t[0].length,p=t.length,h=p,d=Array(p),y=1/0,m=[];h--;){var v=t[h];h&&e&&(v=a(v,u(e))),y=s(v.length,y),d[h]=!n&&(e||f>=120&&v.length>=120)?new r(h&&v):void 0}v=t[0];var b=-1,g=d[0];t:for(;++b<f&&m.length<y;){var x=v[b],w=e?e(x):x;if(x=n||0!==x?x:0,!(g?c(g,w):l(m,w,n))){for(h=p;--h;){var O=d[h];if(!(O?c(O,w):l(t[h],w,n)))continue t}g&&g.push(w),m.push(x)}}return m}},function(t,e,n){var r=n(174);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},function(t,e,n){var r=n(84),i=n(175),o=n(176);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(180),i=n(88),o=n(24),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=800,r=16,i=Date.now;t.exports=function(t){var e=0,o=0;return function(){var a=i(),u=r-(a-o);if(o=a,u>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(183);t.exports=function(t){return r(t)?t:[]}},function(t,e,n){var r=n(19),i=n(10);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(37);t.exports=function(t,e){var n=[];return r(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}},function(t,e,n){var r=n(186)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),u=a.length;u--;){var c=a[t?u:++i];if(!1===n(o[c],c,o))break}return e}}},function(t,e,n){var r=n(19);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,u=Object(n);(e?a--:++a<o)&&!1!==i(u[a],a,u););return n}}},function(t,e,n){var r=n(189),i=n(190),o=n(91);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(52),i=n(51),o=1,a=2;t.exports=function(t,e,n,u){var c=n.length,s=c,l=!u;if(null==t)return!s;for(t=Object(t);c--;){var f=n[c];if(l&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++c<s;){var p=(f=n[c])[0],h=t[p],d=f[1];if(l&&f[2]){if(void 0===h&&!(p in t))return!1}else{var y=new r;if(u)var m=u(h,d,p,t,e,y);if(!(void 0===m?i(d,h,o|a,u,y):m))return!1}}return!0}},function(t,e,n){var r=n(90),i=n(23);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},function(t,e,n){var r=n(51),i=n(8),o=n(192),a=n(48),u=n(90),c=n(91),s=n(27),l=1,f=2;t.exports=function(t,e){return a(t)&&u(e)?c(s(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,l|f)}}},function(t,e,n){var r=n(193),i=n(194);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(30),i=n(55),o=n(5),a=n(58),u=n(59),c=n(27);t.exports=function(t,e,n){for(var s=-1,l=(e=r(e,t)).length,f=!1;++s<l;){var p=c(e[s]);if(!(f=null!=t&&n(t,p)))break;t=t[p]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(p,l)&&(o(t)||i(t))}},function(t,e,n){var r=n(196),i=n(197),o=n(48),a=n(27);t.exports=function(t){return o(t)?r(a(t)):i(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(47);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n(0));var r=u(n(199)),i=u(n(201)),o=u(n(1)),a=u(n(92));n(95);function u(t){return t&&t.__esModule?t:{default:t}}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var s=function(t,e){return t&&e&&e.split(" ").forEach(function(e){return(0,r.default)(t,e)})},l=function(t,e){return t&&e&&e.split(" ").forEach(function(e){return(0,i.default)(t,e)})},f=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).onEnter=function(t,n){var r=e.getClassNames(n?"appear":"enter").className;e.removeClasses(t,"exit"),s(t,r),e.props.onEnter&&e.props.onEnter(t)},e.onEntering=function(t,n){var r=e.getClassNames(n?"appear":"enter").activeClassName;e.reflowAndAddClass(t,r),e.props.onEntering&&e.props.onEntering(t)},e.onEntered=function(t,n){var r=e.getClassNames("enter").doneClassName;e.removeClasses(t,n?"appear":"enter"),s(t,r),e.props.onEntered&&e.props.onEntered(t)},e.onExit=function(t){var n=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),s(t,n),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,n),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),s(t,n),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var n=e.props.classNames,r="string"!=typeof n?n[t]:n+"-"+t;return{className:r,activeClassName:"string"!=typeof n?n[t+"Active"]:r+"-active",doneClassName:"string"!=typeof n?n[t+"Done"]:r+"-done"}},e}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&l(t,r),i&&l(t,i),o&&l(t,o)},n.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,s(t,e))},n.render=function(){var t=c({},this.props);return delete t.classNames,o.default.createElement(a.default,c({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(o.default.Component);f.propTypes={};var p=f;e.default=p,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){t.classList?t.classList.add(e):(0,r.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var r=function(t){return t&&t.__esModule?t:{default:t}}(n(200));t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},function(t,e,n){"use strict";function r(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=r(t.className,e):t.setAttribute("class",r(t.className&&t.className.baseVal||"",e))}},function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;a(n(0));var r=a(n(1)),i=n(93),o=a(n(96));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).handleEnter=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEnter",0,n)},e.handleEntering=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntering",0,n)},e.handleEntered=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntered",0,n)},e.handleExit=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExit",1,n)},e.handleExiting=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExiting",1,n)},e.handleExited=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExited",1,n)},e}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.handleLifecycle=function(t,e,n){var o,a=this.props.children,u=r.default.Children.toArray(a)[e];u.props[t]&&(o=u.props)[t].apply(o,n),this.props[t]&&this.props[t]((0,i.findDOMNode)(this))},n.render=function(){var t=this.props,e=t.children,n=t.in,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,["children","in"]),a=r.default.Children.toArray(e),u=a[0],c=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},e}(r.default.Component);u.propTypes={};var c=u;e.default=c,t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.getChildMapping=i,e.mergeChildMappings=o,e.getInitialChildMapping=function(t,e){return i(t.children,function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:a(n,"appear",t),enter:a(n,"enter",t),exit:a(n,"exit",t)})})},e.getNextChildMapping=function(t,e,n){var u=i(t.children),c=o(e,u);return Object.keys(c).forEach(function(i){var o=c[i];if((0,r.isValidElement)(o)){var s=i in e,l=i in u,f=e[i],p=(0,r.isValidElement)(f)&&!f.props.in;!l||s&&!p?l||!s||p?l&&s&&(0,r.isValidElement)(f)&&(c[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:f.props.in,exit:a(o,"exit",t),enter:a(o,"enter",t)})):c[i]=(0,r.cloneElement)(o,{in:!1}):c[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:a(o,"exit",t),enter:a(o,"enter",t)})}}),c};var r=n(1);function i(t,e){var n=Object.create(null);return t&&r.Children.map(t,function(t){return t}).forEach(function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)}),n}function o(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,i=Object.create(null),o=[];for(var a in t)a in e?o.length&&(i[a]=o,o=[]):o.push(a);var u={};for(var c in e){if(i[c])for(r=0;r<i[c].length;r++){var s=i[c][r];u[i[c][r]]=n(s)}u[c]=n(c)}for(r=0;r<o.length;r++)u[o[r]]=n(o[r]);return u}function a(t,e,n){return null!=n[e]?n[e]:t.props[e]}},function(t,e,n){var r=n(9);t.exports=function(){return r.Date.now()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(1),o=l(i),a=l(n(0)),u=l(n(206)),c=l(n(207)),s=l(n(208));function l(t){return t&&t.__esModule?t:{default:t}}var f={debounce:c.default,throttle:s.default},p={position:"absolute",width:0,height:0,visibility:"hidden",display:"none"},h=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));n.createResizeObserver=function(t){var e=n.props,r=e.handleWidth,i=e.handleHeight,o=e.onResize;t.forEach(function(t){var e=t.contentRect,a=e.width,u=e.height,c=r&&n.width!==a,s=i&&n.height!==u;n.skipOnMount||!c&&!s||o(a,u),n.width=a,n.height=u,n.skipOnMount=!1})};var r=t.skipOnMount,i=t.refreshMode,o=t.refreshRate;n.width=void 0,n.height=void 0,n.skipOnMount=r;var a=f[i]&&f[i](n.createResizeObserver,o)||n.createResizeObserver;return n.ro=new u.default(a),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.PureComponent),r(e,[{key:"componentDidMount",value:function(){var t=this.props.resizableElementId,e=t?document.getElementById(t):this.el.parentElement;this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var t=this.props.resizableElementId,e=t?document.getElementById(t):this.el.parentElement;this.ro.unobserve(e)}},{key:"render",value:function(){var t=this;return o.default.createElement("div",{style:p,ref:function(e){t.el=e}})}}]),e}();e.default=h,h.propTypes={handleWidth:a.default.bool,handleHeight:a.default.bool,skipOnMount:a.default.bool,refreshRate:a.default.number,refreshMode:a.default.string,resizableElementId:a.default.string,onResize:a.default.func},h.defaultProps={handleWidth:!1,handleHeight:!1,skipOnMount:!1,refreshRate:1e3,refreshMode:void 0,resizableElementId:"",onResize:function(t){return t}}},function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var i=r[n];t.call(e,i[1],i[0])}},Object.defineProperties(e.prototype,n),e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},a=2,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,s=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function u(){n&&(n=!1,t()),r&&s()}function c(){o(u)}function s(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(c,e);i=t}return s}(this.refresh.bind(this),20)};s.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},s.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},s.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},s.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},s.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},s.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},s.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),u.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},s.getInstance=function(){return this.instance_||(this.instance_=new s),this.instance_},s.instance_=null;var l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},p=b(0,0,0,0);function h(t){return parseFloat(t)||0}function d(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return e.reduce(function(e,n){return e+h(t["border-"+n+"-width"])},0)}function y(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=f(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var i=r[n],o=t["padding-"+i];e[i]=h(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,u=h(r.width),c=h(r.height);if("border-box"===r.boxSizing&&(Math.round(u+o)!==e&&(u-=d(r,"left","right")+o),Math.round(c+a)!==n&&(c-=d(r,"top","bottom")+a)),!function(t){return t===f(t).document.documentElement}(t)){var s=Math.round(u+o)-e,l=Math.round(c+a)-n;1!==Math.abs(s)&&(u-=s),1!==Math.abs(l)&&(c-=l)}return b(i.left,i.top,u,c)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function v(t){return r?m(t)?function(t){var e=t.getBBox();return b(0,0,e.width,e.height)}(t):y(t):p}function b(t,e,n,r){return{x:t,y:e,width:n,height:r}}var g=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=t};g.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},g.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var x=function(t,e){var n=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return l(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}(e);l(this,{target:t,contentRect:n})},w=function(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r};w.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new g(t)),this.controller_.addObserver(this),this.controller_.refresh())}},w.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},w.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},w.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},w.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new x(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},w.prototype.clearActive=function(){this.activeObservations_.splice(0)},w.prototype.hasActive=function(){return this.activeObservations_.length>0};var O="undefined"!=typeof WeakMap?new WeakMap:new n,_=function(t){if(!(this instanceof _))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=s.getInstance(),n=new w(t,e,this);O.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){_.prototype[t]=function(){return(e=O.get(this))[t].apply(e,arguments);var e}});var A=void 0!==i.ResizeObserver?i.ResizeObserver:_;e.default=A}.call(this,n(26))},function(t,e,n){(function(e){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,y=Math.min,m=function(){return p.Date.now()};function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function b(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&h.call(t)==i}(t))return r;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=u.test(t);return n||c.test(t)?s(t.slice(2),n?2:8):a.test(t)?r:+t}t.exports=function(t,e,r){var i,o,a,u,c,s,l=0,f=!1,p=!1,h=!0;if("function"!=typeof t)throw new TypeError(n);function g(e){var n=i,r=o;return i=o=void 0,l=e,u=t.apply(r,n)}function x(t){var n=t-s;return void 0===s||n>=e||n<0||p&&t-l>=a}function w(){var t=m();if(x(t))return O(t);c=setTimeout(w,function(t){var n=e-(t-s);return p?y(n,a-(t-l)):n}(t))}function O(t){return c=void 0,h&&i?g(t):(i=o=void 0,u)}function _(){var t=m(),n=x(t);if(i=arguments,o=this,s=t,n){if(void 0===c)return function(t){return l=t,c=setTimeout(w,e),f?g(t):u}(s);if(p)return c=setTimeout(w,e),g(s)}return void 0===c&&(c=setTimeout(w,e)),u}return e=b(e)||0,v(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(b(r.maxWait)||0,e):a,h="trailing"in r?!!r.trailing:h),_.cancel=function(){void 0!==c&&clearTimeout(c),l=0,i=s=o=c=void 0},_.flush=function(){return void 0===c?u:O(m())},_}}).call(this,n(26))},function(t,e,n){(function(e){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,y=Math.min,m=function(){return p.Date.now()};function v(t,e,r){var i,o,a,u,c,s,l=0,f=!1,p=!1,h=!0;if("function"!=typeof t)throw new TypeError(n);function v(e){var n=i,r=o;return i=o=void 0,l=e,u=t.apply(r,n)}function x(t){var n=t-s;return void 0===s||n>=e||n<0||p&&t-l>=a}function w(){var t=m();if(x(t))return O(t);c=setTimeout(w,function(t){var n=e-(t-s);return p?y(n,a-(t-l)):n}(t))}function O(t){return c=void 0,h&&i?v(t):(i=o=void 0,u)}function _(){var t=m(),n=x(t);if(i=arguments,o=this,s=t,n){if(void 0===c)return function(t){return l=t,c=setTimeout(w,e),f?v(t):u}(s);if(p)return c=setTimeout(w,e),v(s)}return void 0===c&&(c=setTimeout(w,e)),u}return e=g(e)||0,b(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(g(r.maxWait)||0,e):a,h="trailing"in r?!!r.trailing:h),_.cancel=function(){void 0!==c&&clearTimeout(c),l=0,i=s=o=c=void 0},_.flush=function(){return void 0===c?u:O(m())},_}function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&h.call(t)==i}(t))return r;if(b(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=b(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=u.test(t);return n||c.test(t)?s(t.slice(2),n?2:8):a.test(t)?r:+t}t.exports=function(t,e,r){var i=!0,o=!0;if("function"!=typeof t)throw new TypeError(n);return b(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),v(t,e,{leading:i,maxWait:e,trailing:o})}}).call(this,n(26))},function(t,e,n){var r=n(98);function i(t,e,n){var o=t;return function(t,e){var n=[],i="string"==typeof e?new RegExp("\\b("+e+")\\("):e;do{var o=i.exec(t);if(!o)return n;if(void 0===o[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+e);var a=o[1],u=o.index,c=r("(",")",t.substring(u));if(!c||c.start!==o[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+t+"'");n.push({matches:c,functionIdentifier:a}),t=c.post}while(i.test(t));return n}(t,e).reduce(function(t,r){return t.replace(r.functionIdentifier+"("+r.matches.body+")",function(t,e,n,r,o){return n(i(t,o,n),e,r)}(r.matches.body,r.functionIdentifier,n,o,e))},t)}t.exports=i},function(t,e,n){var r=n(211);r.prototype.formulaEval=function(){"use strict";for(var t,e,n,r=[],i=this.value,o=0;o<i.length;o++)1===i[o].type||3===i[o].type?r.push({value:3===i[o].type?i[o].show:i[o].value,type:1}):13===i[o].type?r.push({value:i[o].show,type:1}):0===i[o].type?r[r.length-1]={value:i[o].show+("-"!=i[o].show?"(":"")+r[r.length-1].value+("-"!=i[o].show?")":""),type:0}:7===i[o].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+i[o].show,type:7}:10===i[o].type?(t=r.pop(),e=r.pop(),"P"===i[o].show||"C"===i[o].show?r.push({value:"<sup>"+e.value+"</sup>"+i[o].show+"<sub>"+t.value+"</sub>",type:10}):r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+"<sup>"+t.value+"</sup>",type:1})):2===i[o].type||9===i[o].type?(t=r.pop(),e=r.pop(),r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+i[o].show+(1!=t.type?"(":"")+t.value+(1!=t.type?")":""),type:i[o].type})):12===i[o].type&&(t=r.pop(),e=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+e.value+","+t.value+")",type:12}));return r[0].value},t.exports=r},function(t,e,n){var r=n(212);r.prototype.postfixEval=function(t){"use strict";(t=t||{}).PI=Math.PI,t.E=Math.E;for(var e,n,i,o=[],a=this.value,u=void 0!==t.n,c=0;c<a.length;c++)1===a[c].type?o.push({value:a[c].value,type:1}):3===a[c].type?o.push({value:t[a[c].value],type:1}):0===a[c].type?void 0===o[o.length-1].type?o[o.length-1].value.push(a[c]):o[o.length-1].value=a[c].value(o[o.length-1].value):7===a[c].type?void 0===o[o.length-1].type?o[o.length-1].value.push(a[c]):o[o.length-1].value=a[c].value(o[o.length-1].value):8===a[c].type?(e=o.pop(),n=o.pop(),o.push({type:1,value:a[c].value(n.value,e.value)})):10===a[c].type?(e=o.pop(),void 0===(n=o.pop()).type?(n.value=n.concat(e),n.value.push(a[c]),o.push(n)):void 0===e.type?(e.unshift(n),e.push(a[c]),o.push(e)):o.push({type:1,value:a[c].value(n.value,e.value)})):2===a[c].type||9===a[c].type?(e=o.pop(),void 0===(n=o.pop()).type?(console.log(n),(n=n.concat(e)).push(a[c]),o.push(n)):void 0===e.type?(e.unshift(n),e.push(a[c]),o.push(e)):o.push({type:1,value:a[c].value(n.value,e.value)})):12===a[c].type?(void 0!==(e=o.pop()).type&&(e=[e]),n=o.pop(),i=o.pop(),o.push({type:1,value:a[c].value(i.value,n.value,new r(e))})):13===a[c].type&&(u?o.push({value:t[a[c].value],type:3}):o.push([a[c]]));if(o.length>1)throw new r.exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(t,e,n){return void 0===e?this.lex(t).toPostfix().postfixEval():void 0===n?void 0!==e.length?this.lex(t,e).toPostfix().postfixEval():this.lex(t).toPostfix().postfixEval(e):this.lex(t,e).toPostfix().postfixEval(n)},t.exports=r},function(t,e,n){var r=n(213);r.prototype.toPostfix=function(){"use strict";for(var t,e,n,i,o,a=[],u=[{value:"(",type:4,pre:0}],c=this.value,s=1;s<c.length;s++)if(1===c[s].type||3===c[s].type||13===c[s].type)1===c[s].type&&(c[s].value=Number(c[s].value)),a.push(c[s]);else if(4===c[s].type)u.push(c[s]);else if(5===c[s].type)for(;4!==(e=u.pop()).type;)a.push(e);else if(11===c[s].type){for(;4!==(e=u.pop()).type;)a.push(e);u.push(e)}else{i=(t=c[s]).pre,n=(o=u[u.length-1]).pre;var l="Math.pow"==o.value&&"Math.pow"==t.value;if(i>n)u.push(t);else{for(;n>=i&&!l||l&&i<n;)e=u.pop(),o=u[u.length-1],a.push(e),n=o.pre,l="Math.pow"==t.value&&"Math.pow"==o.value;u.push(t)}}return new r(a)},t.exports=r},function(t,e,n){var r=n(214);function o(t,e){for(var n=0;n<t.length;n++)t[n]+=e;return t}var a=["sin","cos","tan","pi","(",")","P","C","asin","acos","atan","7","8","9","int","cosh","acosh","ln","^","root","4","5","6","/","!","tanh","atanh","Mod","1","2","3","*","sinh","asinh","e","log","0",".","+","-",",","Sigma","n","Pi","pow"],u=["sin","cos","tan","&pi;","(",")","P","C","asin","acos","atan","7","8","9","Int","cosh","acosh"," ln","^","root","4","5","6","&divide;","!","tanh","atanh"," Mod ","1","2","3","&times;","sinh","asinh","e"," log","0",".","+","-",",","&Sigma;","n","&Pi;","pow"],c=[r.math.sin,r.math.cos,r.math.tan,"PI","(",")",r.math.P,r.math.C,r.math.asin,r.math.acos,r.math.atan,"7","8","9",Math.floor,r.math.cosh,r.math.acosh,Math.log,Math.pow,Math.sqrt,"4","5","6",r.math.div,r.math.fact,r.math.tanh,r.math.atanh,r.math.mod,"1","2","3",r.math.mul,r.math.sinh,r.math.asinh,"E",r.math.log,"0",".",r.math.add,r.math.sub,",",r.math.sigma,"n",r.math.Pi,Math.pow],s={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0},l=[0,0,0,3,4,5,10,10,0,0,0,1,1,1,0,0,0,0,10,0,1,1,1,2,7,0,0,2,1,1,1,2,0,0,3,0,1,6,9,9,11,12,13,12,8],f={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0},p={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},h={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},d={},m={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},v={1:!0},b=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function g(t,e,n,r){for(var i=0;i<r;i++)if(t[n+i]!==e[i])return!1;return!0}r.addToken=function(t){for(i=0;i<t.length;i++){x=t[i].token.length;var e=-1;if(x<b.length)for(y=0;y<b[x].length;y++)if(t[i].token===b[x][y]){e=a.indexOf(b[x][y]);break}-1===e?(a.push(t[i].token),l.push(t[i].type),b.length<=t[i].token.length&&(b[t[i].token.length]=[]),b[t[i].token.length].push(t[i].token),c.push(t[i].value),u.push(t[i].show)):(a[e]=t[i].token,l[e]=t[i].type,c[e]=t[i].value,u[e]=t[i].show)}},r.lex=function(t,e){"use strict";var n,i,y,x,w=[{type:4,value:"(",show:"(",pre:0}],O=[],_=t,A=0,k=f,E=0,S=d,j="";void 0!==e&&r.addToken(e);var T={};for(i=0;i<_.length;i++)if(" "!=_[i]){n="";t:for(y=_.length-i>b.length-2?b.length-1:_.length-i;y>0;y--)for(x=0;x<b[y].length;x++)if(g(_,b[y][x],i,y)){n=b[y][x];break t}if(i+=n.length-1,""===n)throw new r.exception("Can't understand after "+_.slice(i));var M=a.indexOf(n),P=n,C=l[M],N=c[M],I=s[C],D=u[M],R=w[w.length-1];for(L=O.length;L--;)if(0===O[L]&&-1!==[0,2,3,5,9,11,12,13].indexOf(C)){if(!0!==k[C])throw new r.exception(n+" is not allowed after "+j);w.push({value:")",type:5,pre:0,show:")"}),k=p,S=m,o(O,-1).pop()}if(!0!==k[C])throw new r.exception(n+" is not allowed after "+j);if(!0===S[C]&&(C=2,N=r.math.mul,D="&times;",I=3,i-=n.length),T={value:N,type:C,pre:I,show:D},0===C)k=f,S=d,o(O,2).push(2),w.push(T),w.push({value:"(",type:4,pre:0,show:"("});else if(1===C)1===R.type?(R.value+=N,o(O,1)):w.push(T),k=p,S=h;else if(2===C)k=f,S=d,o(O,2),w.push(T);else if(3===C)w.push(T),k=p,S=m;else if(4===C)A+=O.length,O=[],E++,k=f,S=d,w.push(T);else if(5===C){if(!E)throw new r.exception("Closing parenthesis are more than opening one, wait What!!!");for(;A--;)w.push({value:")",type:5,pre:0,show:")"});A=0,E--,k=p,S=m,w.push(T)}else if(6===C){if(R.hasDec)throw new r.exception("Two decimals are not allowed in one number");1!==R.type&&(R={value:0,type:1,pre:0},w.push(R),o(O,-1)),k=v,o(O,1),S=d,R.value+=N,R.hasDec=!0}else 7===C&&(k=p,S=m,o(O,1),w.push(T));8===C?(k=f,S=d,o(O,4).push(4),w.push(T),w.push({value:"(",type:4,pre:0,show:"("})):9===C?(9===R.type?R.value===r.math.add?(R.value=N,R.show=D,o(O,1)):R.value===r.math.sub&&"-"===D&&(R.value=r.math.add,R.show="+",o(O,1)):5!==R.type&&7!==R.type&&1!==R.type&&3!==R.type&&13!==R.type?"-"===P&&(k=f,S=d,o(O,2).push(2),w.push({value:r.math.changeSign,type:0,pre:21,show:"-"}),w.push({value:"(",type:4,pre:0,show:"("})):(w.push(T),o(O,2)),k=f,S=d):10===C?(k=f,S=d,o(O,2),w.push(T)):11===C?(k=f,S=d,w.push(T)):12===C?(k=f,S=d,o(O,6).push(6),w.push(T),w.push({value:"(",type:4,pre:0})):13===C&&(k=p,S=m,w.push(T)),o(O,-1),j=n}for(var L=O.length;L--;)0===O[L]&&(w.push({value:")",show:")",type:5,pre:3}),o(O,-1).pop());if(!0!==k[5])throw new r.exception("complete the expression");for(;E--;)w.push({value:")",show:")",type:5,pre:3});return w.push({type:5,value:")",show:")",pre:0}),new r(w)},t.exports=r},function(t,e){var n=function(t){this.value=t};n.math={isDegree:!0,acos:function(t){return n.math.isDegree?180/Math.PI*Math.acos(t):Math.acos(t)},add:function(t,e){return t+e},asin:function(t){return n.math.isDegree?180/Math.PI*Math.asin(t):Math.asin(t)},atan:function(t){return n.math.isDegree?180/Math.PI*Math.atan(t):Math.atan(t)},acosh:function(t){return Math.log(t+Math.sqrt(t*t-1))},asinh:function(t){return Math.log(t+Math.sqrt(t*t+1))},atanh:function(t){return Math.log((1+t)/(1-t))},C:function(t,e){var r=1,i=t-e,o=e;o<i&&(o=i,i=e);for(var a=o+1;a<=t;a++)r*=a;return r/n.math.fact(i)},changeSign:function(t){return-t},cos:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.cos(t)},cosh:function(t){return(Math.pow(Math.E,t)+Math.pow(Math.E,-1*t))/2},div:function(t,e){return t/e},fact:function(t){if(t%1!=0)return"NAN";for(var e=1,n=2;n<=t;n++)e*=n;return e},inverse:function(t){return 1/t},log:function(t){return Math.log(t)/Math.log(10)},mod:function(t,e){return t%e},mul:function(t,e){return t*e},P:function(t,e){for(var n=1,r=Math.floor(t)-Math.floor(e)+1;r<=Math.floor(t);r++)n*=r;return n},Pi:function(t,e,n){for(var r=1,i=t;i<=e;i++)r*=Number(n.postfixEval({n:i}));return r},pow10x:function(t){for(var e=1;t--;)e*=10;return e},sigma:function(t,e,n){for(var r=0,i=t;i<=e;i++)r+=Number(n.postfixEval({n:i}));return r},sin:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.sin(t)},sinh:function(t){return(Math.pow(Math.E,t)-Math.pow(Math.E,-1*t))/2},sub:function(t,e){return t-e},tan:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.tan(t)},tanh:function(t){return n.sinha(t)/n.cosha(t)},toRadian:function(t){return t*Math.PI/180}},n.exception=function(t){this.message=t},t.exports=n},function(t,e,n){var r=n(20),i=n(55),o=n(5),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(22),i=n(11),o=n(99),a=n(217),u=n(28),c=n(218),s=n(24);t.exports=function(t,e,n){var l=-1;e=r(e.length?e:[s],u(i));var f=o(t,function(t,n,i){return{criteria:r(e,function(e){return e(t)}),index:++l,value:t}});return a(f,function(t,e){return c(t,e,n)})}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(219);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,u=o.length,c=n.length;++i<u;){var s=r(o[i],a[i]);if(s)return i>=c?s:s*("desc"==n[i]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(21);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),u=void 0!==e,c=null===e,s=e==e,l=r(e);if(!c&&!l&&!a&&t>e||a&&u&&s&&!c&&!l||i&&u&&s||!n&&s||!o)return 1;if(!i&&!a&&!l&&t<e||l&&n&&o&&!i&&!a||c&&n&&o||!u&&o||!s)return-1}return 0}},function(t,e,n){var r=n(22),i=n(11),o=n(99),a=n(5);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTickValuesFixedDomain=e.getTickValues=e.getNiceTickValues=void 0;var r=a(n(102)),i=n(103),o=a(n(222));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(t){var e=c(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function l(t,e,n){if(t.lte(0))return new r.default(0);var i=o.default.getDigitCount(t.toNumber()),a=new r.default(10).pow(i),u=t.div(a),c=1!==i?.05:.1,s=new r.default(Math.ceil(u.div(c).toNumber())).add(n).mul(c).mul(a);return e?s:new r.default(Math.ceil(s))}function f(t,e,n){var a=1,u=new r.default(t);if(!u.isint()&&n){var c=Math.abs(t);c<1?(a=new r.default(10).pow(o.default.getDigitCount(t)-1),u=new r.default(Math.floor(u.div(a).toNumber())).mul(a)):c>1&&(u=new r.default(Math.floor(t)))}else 0===t?u=new r.default(Math.floor((e-1)/2)):n||(u=new r.default(Math.floor(t)));var s=Math.floor((e-1)/2);return(0,i.compose)((0,i.map)(function(t){return u.add(new r.default(t-s).mul(a)).toNumber()}),i.range)(0,e)}var p=(0,i.memoize)(function(t){var e=c(t,2),n=e[0],a=e[1],p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,h=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=Math.max(p,2),y=c(s([n,a]),2),m=y[0],v=y[1];if(m===-1/0||v===1/0){var b=v===1/0?[m].concat(u((0,i.range)(0,p-1).map(function(){return 1/0}))):u((0,i.range)(0,p-1).map(function(){return-1/0})).concat([v]);return n>a?(0,i.reverse)(b):b}if(m===v)return f(m,p,h);var g=function t(e,n,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-e)/(i-1)))return{step:new r.default(0),tickMin:new r.default(0),tickMax:new r.default(0)};var u,c=l(new r.default(n).sub(e).div(i-1),o,a);u=e<=0&&n>=0?new r.default(0):(u=new r.default(e).add(n).div(2)).sub(new r.default(u).mod(c));var s=Math.ceil(u.sub(e).div(c).toNumber()),f=Math.ceil(new r.default(n).sub(u).div(c).toNumber()),p=s+f+1;return p>i?t(e,n,i,o,a+1):(p<i&&(f=n>0?f+(i-p):f,s=n>0?s:s+(i-p)),{step:c,tickMin:u.sub(new r.default(s).mul(c)),tickMax:u.add(new r.default(f).mul(c))})}(m,v,d,h),x=g.step,w=g.tickMin,O=g.tickMax,_=o.default.rangeStep(w,O.add(new r.default(.1).mul(x)),x);return n>a?(0,i.reverse)(_):_});e.getNiceTickValues=p;var h=(0,i.memoize)(function(t){var e=c(t,2),n=e[0],o=e[1],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],p=Math.max(a,2),h=c(s([n,o]),2),d=h[0],y=h[1];if(d===-1/0||y===1/0)return[n,o];if(d===y)return f(d,a,u);var m=l(new r.default(y).sub(d).div(p-1),u,0),v=(0,i.compose)((0,i.map)(function(t){return new r.default(d).add(new r.default(t).mul(m)).toNumber()}),i.range)(0,p).filter(function(t){return t>=d&&t<=y});return n>o?(0,i.reverse)(v):v});e.getTickValues=h;var d=(0,i.memoize)(function(t,e){var n=c(t,2),a=n[0],f=n[1],p=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],h=c(s([a,f]),2),d=h[0],y=h[1];if(d===-1/0||y===1/0)return[a,f];if(d===y)return[d];var m=Math.max(e,2),v=l(new r.default(y).sub(d).div(m-1),p,0),b=u(o.default.rangeStep(new r.default(d),new r.default(y).sub(new r.default(.99).mul(v)),v)).concat([y]);return a>f?(0,i.reverse)(b):b});e.getTickValuesFixedDomain=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(102)),i=n(103);var o={rangeStep:function(t,e,n){for(var i=new r.default(t),o=[];i.lt(e);)o.push(i.toNumber()),i=i.add(n);return o},getDigitCount:function(t){return 0===t?1:Math.floor(new r.default(t).abs().log(10).toNumber())+1},interpolateNumber:(0,i.curry)(function(t,e,n){var r=+t;return r+n*(+e-r)}),uninterpolateNumber:(0,i.curry)(function(t,e,n){var r=e-+t;return(n-t)/(r=r||1/0)}),uninterpolateTruncation:(0,i.curry)(function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))})};e.default=o},function(t,e,n){var r=n(37);t.exports=function(t,e){var n;return r(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},function(t,e,n){var r=n(37);t.exports=function(t,e){var n=!0;return r(t,function(t,r,i){return n=!!e(t,r,i)}),n}},function(t,e,n){var r=n(227),i=n(38),o=n(104);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}},function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,i,o){for(var a=-1,u=r(n((e-t)/(i||1)),0),c=Array(u);u--;)c[o?u:++a]=t,t+=i;return c}},function(t,e,n){var r=n(11),i=n(19),o=n(23);t.exports=function(t){return function(e,n,a){var u=Object(e);if(!i(e)){var c=r(n,3);e=o(e),n=function(t){return c(u[t],t,u)}}var s=t(e,n,a);return s>-1?u[c?e[s]:s]:void 0}}},function(t,e,n){var r=n(84),i=n(11),o=n(230),a=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return-1;var c=null==n?0:o(n);return c<0&&(c=a(u+c,0)),r(t,i(e,3),c)}},function(t,e,n){var r=n(104);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(52),i=n(232),o=n(105),a=n(233),u=n(234),c=n(237),s=n(238),l=n(239),f=n(240),p=n(77),h=n(108),d=n(36),y=n(241),m=n(242),v=n(247),b=n(5),g=n(56),x=n(249),w=n(7),O=n(251),_=n(23),A=1,k=2,E=4,S="[object Arguments]",j="[object Function]",T="[object GeneratorFunction]",M="[object Object]",P={};P[S]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[M]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[j]=P["[object WeakMap]"]=!1,t.exports=function t(e,n,C,N,I,D){var R,L=n&A,z=n&k,B=n&E;if(C&&(R=I?C(e,N,I,D):C(e)),void 0!==R)return R;if(!w(e))return e;var F=b(e);if(F){if(R=y(e),!L)return s(e,R)}else{var W=d(e),U=W==j||W==T;if(g(e))return c(e,L);if(W==M||W==S||U&&!I){if(R=z||U?{}:v(e),!L)return z?f(e,u(R,e)):l(e,a(R,e))}else{if(!P[W])return I?e:{};R=m(e,W,L)}}D||(D=new r);var G=D.get(e);if(G)return G;if(D.set(e,R),O(e))return e.forEach(function(r){R.add(t(r,n,C,r,e,D))}),R;if(x(e))return e.forEach(function(r,i){R.set(i,t(r,n,C,i,e,D))}),R;var q=B?z?h:p:z?keysIn:_,V=F?void 0:q(e);return i(V||e,function(r,i){V&&(r=e[i=r]),o(R,i,t(r,n,C,i,e,D))}),R}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(29),i=n(23);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(29),i=n(106);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(7),i=n(61),o=n(236),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var u in t)("constructor"!=u||!e&&a.call(t,u))&&n.push(u);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){(function(t){var r=n(9),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(57)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(29),i=n(54);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(29),i=n(107);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(65),i=n(243),o=n(244),a=n(245),u=n(246),c="[object Boolean]",s="[object Date]",l="[object Map]",f="[object Number]",p="[object RegExp]",h="[object Set]",d="[object String]",y="[object Symbol]",m="[object ArrayBuffer]",v="[object DataView]",b="[object Float32Array]",g="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",k="[object Uint16Array]",E="[object Uint32Array]";t.exports=function(t,e,n){var S=t.constructor;switch(e){case m:return r(t);case c:case s:return new S(+t);case v:return i(t,n);case b:case g:case x:case w:case O:case _:case A:case k:case E:return u(t,n);case l:return new S;case f:case d:return new S(t);case p:return o(t);case h:return new S;case y:return a(t)}}},function(t,e,n){var r=n(65);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(20),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var r=n(65);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(248),i=n(62),o=n(61);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(7),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){var r=n(250),i=n(28),o=n(60),a=o&&o.isMap,u=a?i(a):r;t.exports=u},function(t,e,n){var r=n(36),i=n(10),o="[object Map]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e,n){var r=n(252),i=n(28),o=n(60),a=o&&o.isSet,u=a?i(a):r;t.exports=u},function(t,e,n){var r=n(36),i=n(10),o="[object Set]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e,n){var r=n(30),i=n(67),o=n(254),a=n(27);t.exports=function(t,e){return e=r(e,t),null==(t=o(t,e))||delete t[a(i(e))]}},function(t,e,n){var r=n(47),i=n(255);t.exports=function(t,e){return e.length<2?t:r(t,i(e,0,-1))}},function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},function(t,e,n){var r=n(16);t.exports=function(t){return r(t)?void 0:t}},function(t,e,n){var r=n(258),i=n(86),o=n(87);t.exports=function(t){return o(i(t,void 0,r),t+"")}},function(t,e,n){var r=n(63);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e){t.exports=function(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"scaleBand",function(){return po}),n.d(r,"scalePoint",function(){return ho}),n.d(r,"scaleIdentity",function(){return pu}),n.d(r,"scaleLinear",function(){return fu}),n.d(r,"scaleLog",function(){return xu}),n.d(r,"scaleOrdinal",function(){return fo}),n.d(r,"scaleImplicit",function(){return lo}),n.d(r,"scalePow",function(){return Ou}),n.d(r,"scaleSqrt",function(){return _u}),n.d(r,"scaleQuantile",function(){return Au}),n.d(r,"scaleQuantize",function(){return ku}),n.d(r,"scaleThreshold",function(){return Eu}),n.d(r,"scaleTime",function(){return Ks}),n.d(r,"scaleUtc",function(){return Ys}),n.d(r,"scaleSequential",function(){return $s}),n.d(r,"scaleDiverging",function(){return Zs});var i=n(1),o=n.n(i),a=n(0),u=n.n(a),c=n(4),s=n.n(c),l=n(3),f=n.n(l),p=n(12),h=n.n(p),d=n(7),y=n.n(d),m=n(2),v=n.n(m),b=n(5),g=n.n(b),x=n(8),w=n.n(x),O=n(13),_=n.n(O),A=n(15),k=n.n(A),E=function(t){return 0===t?0:t>0?1:-1},S=function(t){return h()(t)&&t.indexOf("%")===t.length-1},j=function(t){return k()(t)&&!_()(t)},T=function(t){return j(t)||h()(t)},M=0,P=function(t){var e=++M;return"".concat(t||"").concat(e)},C=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!j(t)&&!h()(t))return r;if(S(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return _()(n)&&(n=r),i&&n>e&&(n=e),n},N=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},I=function(t,e){return j(t)&&j(e)?function(n){return t+n*(e-t)}:function(){return e}},D=function(t,e,n){return t&&t.length?t.find(function(t){return t&&w()(t,e)===n}):null};function R(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}function L(t,e){return!R(t,this.props)||!R(e,this.state)}function z(t){t.prototype.shouldComponentUpdate=L}function B(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function F(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var W={alignmentBaseline:u.a.string,angle:u.a.number,baselineShift:u.a.string,clip:u.a.string,clipPath:u.a.string,clipRule:u.a.string,color:u.a.string,colorInterpolation:u.a.string,colorInterpolationFilters:u.a.string,colorProfile:u.a.string,colorRendering:u.a.string,cursor:u.a.string,direction:u.a.oneOf(["ltr","rtl","inherit"]),display:u.a.string,dominantBaseline:u.a.string,enableBackground:u.a.string,fill:u.a.string,fillOpacity:u.a.oneOfType([u.a.string,u.a.number]),fillRule:u.a.oneOf(["nonzero","evenodd","inherit"]),filter:u.a.string,floodColor:u.a.string,floodOpacity:u.a.oneOfType([u.a.string,u.a.number]),font:u.a.string,fontFamily:u.a.string,fontSize:u.a.oneOfType([u.a.number,u.a.string]),fontSizeAdjust:u.a.oneOfType([u.a.number,u.a.string]),fontStretch:u.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:u.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:u.a.oneOf(["normal","small-caps","inherit"]),fontWeight:u.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:u.a.string,glyphOrientationVertical:u.a.string,imageRendering:u.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:u.a.oneOfType([u.a.number,u.a.string]),letterSpacing:u.a.oneOfType([u.a.number,u.a.string]),lightingColor:u.a.string,lineHeight:u.a.oneOfType([u.a.number,u.a.string]),markerEnd:u.a.string,markerMid:u.a.string,markerStart:u.a.string,mask:u.a.string,opacity:u.a.oneOfType([u.a.number,u.a.string]),overflow:u.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:u.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:u.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:u.a.string,stopOpacity:u.a.oneOfType([u.a.number,u.a.string]),stroke:u.a.oneOfType([u.a.number,u.a.string]),strokeDasharray:u.a.string,strokeDashoffset:u.a.oneOfType([u.a.number,u.a.string]),strokeLinecap:u.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:u.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:u.a.oneOfType([u.a.number,u.a.string]),strokeOpacity:u.a.oneOfType([u.a.number,u.a.string]),strokeWidth:u.a.oneOfType([u.a.number,u.a.string]),textAnchor:u.a.oneOf(["start","middle","end","inherit"]),textDecoration:u.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:u.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:u.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:u.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:u.a.oneOfType([u.a.number,u.a.string]),writingMode:u.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:u.a.string,style:u.a.object,width:u.a.number,height:u.a.number,dx:u.a.number,dy:u.a.number,x:u.a.number,y:u.a.number,r:u.a.number,radius:u.a.oneOfType([u.a.number,u.a.array])},U={onClick:u.a.func,onMouseDown:u.a.func,onMouseUp:u.a.func,onMouseOver:u.a.func,onMouseMove:u.a.func,onMouseOut:u.a.func,onMouseEnter:u.a.func,onMouseLeave:u.a.func,onTouchEnd:u.a.func,onTouchMove:u.a.func,onTouchStart:u.a.func,onTouchCancel:u.a.func},G={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},q=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"],V=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],H=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},X=function(t,e){var n=[],r=[];return r=g()(e)?e.map(function(t){return H(t)}):[H(e)],o.a.Children.forEach(t,function(t){var e=t&&t.type&&(t.type.displayName||t.type.name);-1!==r.indexOf(e)&&n.push(t)}),n},K=function(t,e){var n=X(t,e);return n&&n[0]},Y=function(t){if(!t||v()(t))return null;var e=o.a.isValidElement(t)?t.props:t;if(!y()(e))return null;var n=null;for(var r in e)({}).hasOwnProperty.call(e,r)&&W[r]&&(n||(n={}),n[r]=e[r]);return n},$=function(t,e){return function(n){return t(e,n),null}},Z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||v()(t))return null;var r=o.a.isValidElement(t)?t.props:t;if(!y()(r))return null;var i=null;for(var a in r)({}).hasOwnProperty.call(r,a)&&U[a]&&(i||(i={}),i[a]=e||(n?$(r[a],r):r[a]));return i},J=function(t,e,n){return function(r){return t(e,n,r),null}},Q=function(t,e,n){if(!y()(t))return null;var r=null;for(var i in t)({}).hasOwnProperty.call(t,i)&&U[i]&&v()(t[i])&&(r||(r={}),r[i]=J(t[i],e,n));return r},tt=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!j(n)||n<=0||!j(r)||r<=0)},et=function(){return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)},nt=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],rt=function(t){var e=[];return o.a.Children.forEach(t,function(t){t&&t.type&&h()(t.type)&&nt.indexOf(t.type)>=0&&e.push(t)}),e},it=function(t,e){if(f()(t)&&f()(e))return!0;if(!f()(t)&&!f()(e)){var n=t.props||{},r=n.children,i=F(n,["children"]),o=e.props||{},a=o.children,u=F(o,["children"]);return r&&a?R(i,u)&&ot(r,a):!r&&!a&&R(i,u)}return!1},ot=function t(e,n){if(e===n)return!0;if(i.Children.count(e)!==i.Children.count(n))return!1;var r=i.Children.count(e);if(0===r)return!0;if(1===r)return it(g()(e)?e[0]:e,g()(n)?n[0]:n);for(var o=0;o<r;o++){var a=e[o],u=n[o];if(g()(a)||g()(u)){if(!t(a,u))return!1}else if(!it(a,u))return!1}return!0},at=function(t,e){var n=[],r={};return i.Children.forEach(t,function(t,i){if(t&&function(t){return t&&t.type&&h()(t.type)&&nt.indexOf(t.type)>=0}(t))n.push(t);else if(t&&e[H(t.type)]){var o=H(t.type),a=e[o],u=a.handler,c=a.once;if(c&&!r[o]||!c){var s=u(t,o,i);g()(s)?n=[n].concat(B(s)):n.push(s),r[o]=!0}}}),n},ut=function(t){var e=t&&t.type;return e&&G[e]?G[e]:null};function ct(){return(ct=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function st(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var lt={width:u.a.number.isRequired,height:u.a.number.isRequired,viewBox:u.a.shape({x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number}),className:u.a.string,style:u.a.object,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node])};function ft(t){var e=t.children,n=t.width,r=t.height,i=t.viewBox,a=t.className,u=t.style,c=st(t,["children","width","height","viewBox","className","style"]),l=i||{width:n,height:r,x:0,y:0},f=s()("recharts-surface",a),p=Y(c);return o.a.createElement("svg",ct({},p,{className:f,width:n,height:r,style:u,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height),version:"1.1"}),e)}ft.propTypes=lt;var pt=ft;function ht(){return(ht=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function dt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var yt={className:u.a.string,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node])};function mt(t){var e=t.children,n=t.className,r=dt(t,["children","className"]),i=s()("recharts-layer",n);return o.a.createElement("g",ht({className:i},r),e)}mt.propTypes=yt;var vt=mt,bt=Math.PI,gt=2*bt,xt=gt-1e-6;function wt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ot(){return new wt}wt.prototype=Ot.prototype={constructor:wt,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,u=n-t,c=r-e,s=o-t,l=a-e,f=s*s+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(l*u-c*s)>1e-6&&i){var p=n-o,h=r-a,d=u*u+c*c,y=p*p+h*h,m=Math.sqrt(d),v=Math.sqrt(f),b=i*Math.tan((bt-Math.acos((d+f-y)/(2*m*v)))/2),g=b/v,x=b/m;Math.abs(g-1)>1e-6&&(this._+="L"+(t+g*s)+","+(e+g*l)),this._+="A"+i+","+i+",0,0,"+ +(l*p>s*h)+","+(this._x1=t+x*u)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+a,s=e+u,l=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),n&&(f<0&&(f=f%gt+gt),f>xt?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-u)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=bt)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var _t=Ot,At=function(t){return function(){return t}},kt=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,1e-12),Et=Math.PI,St=2*Et;function jt(t){this._context=t}jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var Tt=function(t){return new jt(t)};function Mt(t){return t[0]}function Pt(t){return t[1]}var Ct=function(){var t=Mt,e=Pt,n=At(!0),r=null,i=Tt,o=null;function a(a){var u,c,s,l=a.length,f=!1;for(null==r&&(o=i(s=_t())),u=0;u<=l;++u)!(u<l&&n(c=a[u],u,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(c,u,a),+e(c,u,a));if(s)return o=null,s+""||null}return a.x=function(e){return arguments.length?(t="function"==typeof e?e:At(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:At(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:At(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},Nt=function(){var t=Mt,e=null,n=At(0),r=Pt,i=At(!0),o=null,a=Tt,u=null;function c(c){var s,l,f,p,h,d=c.length,y=!1,m=new Array(d),v=new Array(d);for(null==o&&(u=a(h=_t())),s=0;s<=d;++s){if(!(s<d&&i(p=c[s],s,c))===y)if(y=!y)l=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),f=s-1;f>=l;--f)u.point(m[f],v[f]);u.lineEnd(),u.areaEnd()}y&&(m[s]=+t(p,s,c),v[s]=+n(p,s,c),u.point(e?+e(p,s,c):m[s],r?+r(p,s,c):v[s]))}if(h)return u=null,h+""||null}function s(){return Ct().defined(i).curve(a).context(o)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:At(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:At(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:At(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:At(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:At(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:At(+t),c):r},c.lineX0=c.lineY0=function(){return s().x(t).y(n)},c.lineY1=function(){return s().x(t).y(r)},c.lineX1=function(){return s().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:At(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c};Dt(Tt);function It(t){this._curve=t}function Dt(t){function e(e){return new It(t(e))}return e._curve=t,e}It.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Rt=Array.prototype.slice;var Lt={draw:function(t,e){var n=Math.sqrt(e/Et);t.moveTo(n,0),t.arc(0,0,n,0,St)}},zt={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Bt=Math.sqrt(1/3),Ft=2*Bt,Wt={draw:function(t,e){var n=Math.sqrt(e/Ft),r=n*Bt;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Ut=Math.sin(Et/10)/Math.sin(7*Et/10),Gt=Math.sin(St/10)*Ut,qt=-Math.cos(St/10)*Ut,Vt={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Gt*n,i=qt*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=St*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*n,-u*n),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},Ht={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Xt=Math.sqrt(3),Kt={draw:function(t,e){var n=-Math.sqrt(e/(3*Xt));t.moveTo(0,2*n),t.lineTo(-Xt*n,-n),t.lineTo(Xt*n,-n),t.closePath()}},Yt=Math.sqrt(3)/2,$t=1/Math.sqrt(12),Zt=3*($t/2+1),Jt={draw:function(t,e){var n=Math.sqrt(e/Zt),r=n/2,i=n*$t,o=r,a=n*$t+n,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(-.5*r-Yt*i,Yt*r+-.5*i),t.lineTo(-.5*o-Yt*a,Yt*o+-.5*a),t.lineTo(-.5*u-Yt*c,Yt*u+-.5*c),t.lineTo(-.5*r+Yt*i,-.5*i-Yt*r),t.lineTo(-.5*o+Yt*a,-.5*a-Yt*o),t.lineTo(-.5*u+Yt*c,-.5*c-Yt*u),t.closePath()}},Qt=function(){};function te(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ee(t){this._context=t}ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:te(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:te(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ne(t){this._context=t}ne.prototype={areaStart:Qt,areaEnd:Qt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:te(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function re(t){this._context=t}re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:te(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ie(t,e){this._basis=new ee(t),this._beta=e}ie.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};(function t(e){function n(t){return 1===e?new ee(t):new ie(t,e)}return n.beta=function(e){return t(+e)},n})(.85);function oe(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ae(t,e){this._context=t,this._k=(1-e)/6}ae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:oe(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:oe(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new ae(t,e)}return n.tension=function(e){return t(+e)},n})(0);function ue(t,e){this._context=t,this._k=(1-e)/6}ue.prototype={areaStart:Qt,areaEnd:Qt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:oe(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new ue(t,e)}return n.tension=function(e){return t(+e)},n})(0);function ce(t,e){this._context=t,this._k=(1-e)/6}ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:oe(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new ce(t,e)}return n.tension=function(e){return t(+e)},n})(0);function se(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>kt){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>kt){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*s+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function le(t,e){this._context=t,this._alpha=e}le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:se(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new le(t,e):new ae(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function fe(t,e){this._context=t,this._alpha=e}fe.prototype={areaStart:Qt,areaEnd:Qt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:se(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new fe(t,e):new ue(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function pe(t,e){this._context=t,this._alpha=e}pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:se(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new pe(t,e):new ce(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function he(t){this._context=t}he.prototype={areaStart:Qt,areaEnd:Qt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function de(t){return t<0?-1:1}function ye(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(de(o)+de(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function me(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ve(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function be(t){this._context=t}function ge(t){this._context=new xe(t)}function xe(t){this._context=t}function we(t){this._context=t}function Oe(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ve(this,this._t0,me(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ve(this,me(this,n=ye(this,t,e)),n);break;default:ve(this,this._t0,n=ye(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(ge.prototype=Object.create(be.prototype)).point=function(t,e){be.prototype.point.call(this,e,t)},xe.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Oe(t),i=Oe(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function _e(t,e){this._context=t,this._t=e}_e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Ae=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},ke=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};function Ee(t,e){return t[e]}var Se,je,Te;function Me(t){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ce(){return(Ce=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ie(t,e){return!e||"object"!==Me(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function De(t){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Re(t,e){return(Re=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Le,ze,Be,Fe={symbolCircle:Lt,symbolCross:zt,symbolDiamond:Wt,symbolSquare:Ht,symbolStar:Vt,symbolTriangle:Kt,symbolWye:Jt},We=Math.PI/180,Ue=z((Te=je=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ie(this,De(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Re(t,e)}(e,i["Component"]),function(t,e,n){e&&Ne(t.prototype,e),n&&Ne(t,n)}(e,[{key:"getPath",value:function(){var t=this.props,e=t.size,n=t.sizeType,r=t.type,i=function(t){var e="symbol".concat(t.slice(0,1).toUpperCase()).concat(t.slice(1));return Fe[e]||Lt}(r);return function(){var t=At(Lt),e=At(64),n=null;function r(){var r;if(n||(n=r=_t()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:At(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:At(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}().type(i).size(function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*We;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(e,n,r))()}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.cx,r=t.cy,i=t.size;return n===+n&&r===+r&&i===+i?o.a.createElement("path",Ce({},Y(this.props),Z(this.props),{className:s()("recharts-symbols",e),transform:"translate(".concat(n,", ").concat(r,")"),d:this.getPath()})):null}}]),e}(),je.displayName="Symbols",je.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Pe(t,e,n[e])})}return t}({},W,{className:u.a.string,type:u.a.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),cx:u.a.number,cy:u.a.number,size:u.a.number,sizeType:u.a.oneOf(["area","diameter"])}),je.defaultProps={type:"circle",size:64,sizeType:"area"},Se=Te))||Se;function Ge(t){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qe(){return(qe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function He(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xe(t,e){return!e||"object"!==Ge(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ke(t){return(Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ye(t,e){return(Ye=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var $e,Ze,Je,Qe=V.filter(function(t){return"none"!==t}),tn=z((Be=ze=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Xe(this,Ke(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ye(t,e)}(e,i["Component"]),function(t,e,n){e&&He(t.prototype,e),n&&He(t,n)}(e,[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=t.inactive?e:t.color;return"plainline"===t.type?o.a.createElement("line",{strokeWidth:4,fill:"none",stroke:n,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"}):"line"===t.type?o.a.createElement("path",{strokeWidth:4,fill:"none",stroke:n,d:"M0,".concat(16,"h").concat(32/3,"\n            A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3*2,",").concat(16,"\n            H").concat(32,"M").concat(32/3*2,",").concat(16,"\n            A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3,",").concat(16),className:"recharts-legend-icon"}):"rect"===t.type?o.a.createElement("path",{stroke:"none",fill:n,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"}):o.a.createElement(Ue,{fill:n,cx:16,cy:16,size:32,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,r=e.iconSize,i=e.layout,a=e.formatter,u={x:0,y:0,width:32,height:32},c={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map(function(e,n){var i,f=e.formatter||a,p=s()((Ve(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Ve(i,"inactive",e.inactive),i));return"none"===e.type?null:o.a.createElement("li",qe({className:p,style:c,key:"legend-item-".concat(n)},Q(t.props,e,n)),o.a.createElement(pt,{width:r,height:r,viewBox:u,style:l},t.renderIcon(e)),o.a.createElement("span",{className:"recharts-legend-item-text"},f?f(e.value,e,n):e.value))})}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return o.a.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}]),e}(),ze.displayName="Legend",ze.propTypes={content:u.a.element,iconSize:u.a.number,iconType:u.a.oneOf(Qe),layout:u.a.oneOf(["horizontal","vertical"]),align:u.a.oneOf(["center","left","right"]),verticalAlign:u.a.oneOf(["top","bottom","middle"]),payload:u.a.arrayOf(u.a.shape({value:u.a.any,id:u.a.any,type:u.a.oneOf(V)})),inactiveColor:u.a.string,formatter:u.a.func,onMouseEnter:u.a.func,onMouseLeave:u.a.func,onClick:u.a.func},ze.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"},Le=Be))||Le;function en(t){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){rn(t,e,n[e])})}return t}function rn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function on(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function an(t,e){return!e||"object"!==en(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function un(t){return(un=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function cn(t,e){return(cn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var sn=V.filter(function(t){return"none"!==t}),ln=z((Je=Ze=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=an(this,(t=un(e)).call.apply(t,[this].concat(i)))).state={boxWidth:-1,boxHeight:-1},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cn(t,e)}(e,i["Component"]),function(t,e,n){e&&on(t.prototype,e),n&&on(t,n)}(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;return e>=0&&n>=0?{width:e,height:n}:null}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,u=r.margin,c=r.chartWidth,s=r.chartHeight;if(!t||(void 0===t.left||null===t.left)&&(void 0===t.right||null===t.right))if("center"===o&&"vertical"===i){var l=this.getBBox()||{width:0};e={left:((c||0)-l.width)/2}}else e="right"===o?{right:u&&u.right||0}:{left:u&&u.left||0};if(!t||(void 0===t.top||null===t.top)&&(void 0===t.bottom||null===t.bottom))if("middle"===a){var f=this.getBBox()||{height:0};n={top:((s||0)-f.height)/2}}else n="bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return nn({},e,n)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-e)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},function(){r&&r(i)})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},function(){r&&r(null)})}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,a=e.wrapperStyle,u=nn({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a),a);return o.a.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(tn,e)}(n,this.props))}}],[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&j(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}]),e}(),Ze.displayName="Legend",Ze.propTypes={content:u.a.oneOfType([u.a.element,u.a.func]),wrapperStyle:u.a.object,chartWidth:u.a.number,chartHeight:u.a.number,width:u.a.number,height:u.a.number,iconSize:u.a.number,iconType:u.a.oneOf(sn),layout:u.a.oneOf(["horizontal","vertical"]),align:u.a.oneOf(["center","left","right"]),verticalAlign:u.a.oneOf(["top","bottom","middle"]),margin:u.a.shape({top:u.a.number,left:u.a.number,bottom:u.a.number,right:u.a.number}),payload:u.a.arrayOf(u.a.shape({value:u.a.any,id:u.a.any,type:u.a.oneOf(V)})),formatter:u.a.func,onMouseEnter:u.a.func,onMouseLeave:u.a.func,onClick:u.a.func,onBBoxUpdate:u.a.func},Ze.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},$e=Je))||$e,fn=n(6),pn=n.n(fn),hn=n(17),dn=n.n(hn);function yn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;dn()(function r(i){n<0&&(n=i),i-n>e?(t(i),n=-1):dn()(r)})}function mn(t){return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vn(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bn(){var t=function(){return null},e=!1;return{stop:function(){e=!0},start:function(n){e=!1,function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=vn(r),o=i[0],a=i.slice(1);return"number"==typeof o?void yn(n.bind(null,a),o):(n(o),void yn(n.bind(null,a)))}"object"===mn(r)&&t(r),"function"==typeof r&&r()}}(n)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}var gn=n(16),xn=n.n(gn);function wn(t){return(wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function On(t,e){if(t===e)return!0;if("object"!==wn(t)||null===t||"object"!==wn(e)||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=hasOwnProperty.bind(e),o=0;o<n.length;o++){var a=n[o];if(t[a]!==e[a])if(g()(t[a])){if(!g()(e[a])||t[a].length!==e[a].length)return!1;if(!pn()(t[a],e[a]))return!1}else if(xn()(t[a])){if(!xn()(e[a])||!pn()(t[a],e[a]))return!1}else if(!i(n[o])||t[n[o]]!==e[n[o]])return!1}return!0}function _n(t,e){return function(t,e,n){return!On(t.props,e)||!On(t.state,n)}(this,t,e)}var An=function(t){t.prototype.shouldComponentUpdate=_n},kn=n(109),En=n.n(kn);function Sn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){jn(t,e,n[e])})}return t}function jn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tn=["Webkit","Moz","O","ms"],Mn=["-webkit-","-moz-","-o-","-ms-"],Pn=["transform","transformOrigin","transition"],Cn=function(t){return t},Nn=function(t,e){return Object.keys(e).reduce(function(n,r){return Sn({},n,jn({},r,t(r,e[r])))},{})},In=function(t){return Object.keys(t).reduce(function(t,e){return Sn({},t,function(t,e){if(-1===Pn.indexOf(t))return jn({},t,e);var n="transition"===t,r=t.replace(/(\w)/,function(t){return t.toUpperCase()}),i=e;return Tn.reduce(function(t,o,a){return n&&(i=e.replace(/(transform|transform-origin)/gim,"".concat(Mn[a],"$1"))),Sn({},t,jn({},o+r,i))},{})}(e,t[e]))},t)},Dn=function(t,e,n){return t.map(function(t){return"".concat(function(t){return t.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})}(t)," ").concat(e,"ms ").concat(n)}).join(",")};function Rn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ln=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},zn=function(t,e){return t.map(function(t,n){return t*Math.pow(e,n)}).reduce(function(t,e){return t+e})},Bn=function(t,e){return function(n){var r=Ln(t,e);return zn(r,n)}},Fn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break;case"ease-in-out":r=0,i=0,o=.58,a=1}[r,o,i,a].every(function(t){return"number"==typeof t&&t>=0&&t<=1});var u=Bn(r,o),c=Bn(i,a),s=function(t,e){return function(n){var r=Rn(Ln(t,e).map(function(t,e){return t*e}).slice(1)).concat([0]);return zn(r,n)}}(r,o),l=function(t){return t>1?1:t<0?0:t},f=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i=u(n)-e,o=s(n);if(Math.abs(i-e)<1e-4||o<1e-4)return c(n);n=l(n-i/o)}return c(n)};return f.isStepper=!1,f},Wn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Fn(r);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,u=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,u=r*a/1e3+t;return Math.abs(u-e)<1e-4&&Math.abs(o)<1e-4?[e,0]:[u,o]};return u.isStepper=!0,u.dt=a,u}()}return"function"==typeof r?r:null},Un=n(110),Gn=n.n(Un);function qn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Vn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Hn(t,e,n[e])})}return t}function Hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Kn,Yn,$n,Zn=function(t,e,n){return t+(e-t)*n},Jn=function(t){return t.from!==t.to},Qn=function(t,e,n,r,i){var o,a,u=function(t,e){return En()(Object.keys(t),Object.keys(e))}(t,e),c=u.reduce(function(n,r){return Vn({},n,Hn({},r,[t[r],e[r]]))},{}),s=u.reduce(function(n,r){return Vn({},n,Hn({},r,{from:t[r],velocity:0,to:e[r]}))},{}),l=-1,f=function(){return null};return f=n.isStepper?function(r){o||(o=r);var a=(r-o)/n.dt;s=function t(e,n,r){var i=Nn(function(t,n){if(Jn(n)){var r=Xn(e(n.from,n.to,n.velocity),2);return Vn({},n,{from:r[0],velocity:r[1]})}return n},n);return r<1?Nn(function(t,e){return Jn(e)?Vn({},e,{velocity:Zn(e.velocity,i[t].velocity,r),from:Zn(e.from,i[t].from,r)}):e},n):t(e,i,r-1)}(n,s,a),i(Vn({},t,e,Nn(function(t,e){return e.from},s))),o=r,Gn()(s,Jn).length&&(l=dn()(f))}:function(o){a||(a=o);var u=(o-a)/r,s=Nn(function(t,e){return Zn.apply(void 0,qn(e).concat([n(u)]))},c);if(i(Vn({},t,e,s)),u<1)l=dn()(f);else{var p=Nn(function(t,e){return Zn.apply(void 0,qn(e).concat([n(1)]))},c);i(Vn({},t,e,p))}},function(){return dn()(f),function(){Object(hn.cancel)(l)}}};function tr(t){return(tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function er(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function nr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function rr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){ir(t,e,n[e])})}return t}function ir(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ar(t,e){return!e||"object"!==tr(e)&&"function"!=typeof e?sr(t):e}function ur(t){return(ur=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function cr(t,e){return(cr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var lr=An(($n=Yn=function(t){function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=(r=ar(this,ur(e).call(this,t,n))).props,o=i.isActive,a=i.attributeName,u=i.from,c=i.to,s=i.steps,l=i.children;if(r.handleStyleChange=r.handleStyleChange.bind(sr(sr(r))),r.changeStyle=r.changeStyle.bind(sr(sr(r))),!o)return r.state={style:{}},"function"==typeof l&&(r.state={style:c}),ar(r);if(s&&s.length)r.state={style:s[0].style};else if(u){if("function"==typeof l)return r.state={style:u},ar(r);r.state={style:a?ir({},a,u):u}}else r.state={style:{}};return r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cr(t,e)}(e,i["Component"]),function(t,e,n){e&&or(t.prototype,e),n&&or(t,n)}(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentWillReceiveProps",value:function(t){var e=t.isActive,n=t.canBegin,r=t.attributeName,i=t.shouldReAnimate;if(n)if(e){if(!(pn()(this.props.to,t.to)&&this.props.canBegin&&this.props.isActive)){var o=!this.props.canBegin||!this.props.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var a=o||i?t.from:this.props.to;this.setState({style:r?ir({},r,a):a}),this.runAnimation(rr({},t,{from:a,begin:0}))}}else this.setState({style:r?ir({},r,t.to):t.to})}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(t){var e=this,n=t.from,r=t.to,i=t.duration,o=t.easing,a=t.begin,u=t.onAnimationEnd,c=t.onAnimationStart,s=Qn(n,r,Wn(o),i,this.changeStyle);this.manager.start([c,a,function(){e.stopJSAnimation=s()},i,u])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,i=t.onAnimationStart,o=n[0],a=o.style,u=o.duration,c=void 0===u?0:u;return this.manager.start([i].concat(nr(n.reduce(function(t,r,i){if(0===i)return t;var o=r.duration,a=r.easing,u=void 0===a?"ease":a,c=r.style,s=r.properties,l=r.onAnimationEnd,f=i>0?n[i-1]:r,p=s||Object.keys(c);if("function"==typeof u||"spring"===u)return nr(t).concat([e.runJSAnimation.bind(e,{from:f.style,to:c,duration:o,easing:u}),o]);var h=Dn(p,o,u),d=rr({},f.style,c,{transition:h});return nr(t).concat([d,o,l]).filter(Cn)},[a,Math.max(c,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=bn());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,u=t.onAnimationEnd,c=t.steps,s=t.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof s&&"spring"!==o)if(c.length>1)this.runStepAnimation(t);else{var f=r?ir({},r,i):i,p=Dn(Object.keys(f),n,o);l.start([a,e,rr({},f,{transition:p}),n,u])}else this.runJSAnimation(t)}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration,t.attributeName,t.easing,t.isActive),r=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,er(t,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),a=i.Children.count(e),u=In(this.state.style);if("function"==typeof e)return e(u);if(!n||0===a)return e;var c=function(t){var e=t.props,n=e.style,o=void 0===n?{}:n,a=e.className;return Object(i.cloneElement)(t,rr({},r,{style:rr({},o,u),className:a}))};return 1===a?c(i.Children.only(e)):o.a.createElement("div",null,i.Children.map(e,function(t){return c(t)}))}}]),e}(),Yn.displayName="Animate",Yn.propTypes={from:u.a.oneOfType([u.a.object,u.a.string]),to:u.a.oneOfType([u.a.object,u.a.string]),attributeName:u.a.string,duration:u.a.number,begin:u.a.number,easing:u.a.oneOfType([u.a.string,u.a.func]),steps:u.a.arrayOf(u.a.shape({duration:u.a.number.isRequired,style:u.a.object.isRequired,easing:u.a.oneOfType([u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),u.a.func]),properties:u.a.arrayOf("string"),onAnimationEnd:u.a.func})),children:u.a.oneOfType([u.a.node,u.a.func]),isActive:u.a.bool,canBegin:u.a.bool,onAnimationEnd:u.a.func,shouldReAnimate:u.a.bool,onAnimationStart:u.a.func,onAnimationReStart:u.a.func},Yn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Kn=$n))||Kn,fr=n(40);function pr(t){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hr(){return(hr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function dr(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function yr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vr(t,e){return!e||"object"!==pr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function br(t){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function gr(t,e){return(gr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var xr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(k()(e.duration)&&e.duration>0?e.duration:0)},0):k()(n)?n:0},wr=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=vr(this,(t=br(e)).call.apply(t,[this].concat(i)))).state={isActive:!1},n.handleEnter=function(t,e){var r=n.props,i=r.appearOptions,o=r.enterOptions;n.handleStyleActive(e?i:o)},n.handleExit=function(){n.handleStyleActive(n.props.leaveOptions)},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gr(t,e)}(e,i["Component"]),function(t,e,n){e&&mr(t.prototype,e),n&&mr(t,n)}(e,[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){yr(t,e,n[e])})}return t}({},t,{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return xr(e)+xr(n)+xr(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,r=(e.appearOptions,e.enterOptions,e.leaveOptions,dr(e,["children","appearOptions","enterOptions","leaveOptions"]));return o.a.createElement(fr.Transition,hr({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return o.a.createElement(lr,t.state,i.Children.only(n))})}}]),e}();wr.propTypes={appearOptions:u.a.object,enterOptions:u.a.object,leaveOptions:u.a.object,children:u.a.element};var Or=wr;function _r(t){var e=t.component,n=t.children,r=t.appear,a=t.enter,u=t.leave;return o.a.createElement(fr.TransitionGroup,{component:e},i.Children.map(n,function(t,e){return o.a.createElement(Or,{appearOptions:r,enterOptions:a,leaveOptions:u,key:"child-".concat(e)},t)}))}_r.propTypes={appear:u.a.object,enter:u.a.object,leave:u.a.object,children:u.a.oneOfType([u.a.array,u.a.element]),component:u.a.any},_r.defaultProps={component:"span"};var Ar,kr,Er,Sr=lr;function jr(t){return(jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Mr(t,e,n[e])})}return t}function Mr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cr(t,e){return!e||"object"!==jr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nr(t){return(Nr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ir(t,e){return(Ir=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Dr,Rr,Lr,zr=function(t){return g()(t)&&T(t[0])&&T(t[1])?t.join(" ~ "):t},Br=z((Er=kr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Cr(this,Nr(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ir(t,e)}(e,i["Component"]),function(t,e,n){e&&Pr(t.prototype,e),n&&Pr(t,n)}(e,[{key:"renderContent",value:function(){var t=this.props,e=t.payload,n=t.separator,r=t.formatter,i=t.itemStyle,a=t.itemSorter;if(e&&e.length){var u=e.sort(a).map(function(t,e){var a=Tr({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},i),u=T(t.name),c=t.formatter||r||zr;return o.a.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:a},u?o.a.createElement("span",{className:"recharts-tooltip-item-name"},t.name):null,u?o.a.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,o.a.createElement("span",{className:"recharts-tooltip-item-value"},c?c(t.value,t.name,t,e):t.value),o.a.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return o.a.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},u)}return null}},{key:"render",value:function(){var t=this.props,e=t.wrapperClassName,n=t.contentStyle,r=t.labelClassName,i=t.labelStyle,a=t.label,u=t.labelFormatter,c=Tr({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),l=Tr({margin:0},i),f=T(a),p=f?a:"",h=s()("recharts-default-tooltip",e),d=s()("recharts-tooltip-label",r);return f&&u&&(p=u(a)),o.a.createElement("div",{className:h,style:c},o.a.createElement("p",{className:d,style:l},p),this.renderContent())}}]),e}(),kr.displayName="DefaultTooltipContent",kr.propTypes={separator:u.a.string,wrapperClassName:u.a.string,labelClassName:u.a.string,formatter:u.a.func,contentStyle:u.a.object,itemStyle:u.a.object,labelStyle:u.a.object,labelFormatter:u.a.func,label:u.a.any,payload:u.a.arrayOf(u.a.shape({name:u.a.any,value:u.a.oneOfType([u.a.number,u.a.string,u.a.array]),unit:u.a.any})),itemSorter:u.a.func},kr.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}},Ar=Er))||Ar;function Fr(t){return(Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Ur(t,e,n[e])})}return t}function Ur(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qr(t,e){return!e||"object"!==Fr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vr(t){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Hr(t,e){return(Hr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Xr="recharts-tooltip-wrapper",Kr={content:u.a.oneOfType([u.a.element,u.a.func]),viewBox:u.a.shape({x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number}),active:u.a.bool,separator:u.a.string,formatter:u.a.func,offset:u.a.number,itemStyle:u.a.object,labelStyle:u.a.object,wrapperStyle:u.a.object,contentStyle:u.a.object,cursor:u.a.oneOfType([u.a.bool,u.a.element,u.a.object]),coordinate:u.a.shape({x:u.a.number,y:u.a.number}),position:u.a.shape({x:u.a.number,y:u.a.number}),label:u.a.any,payload:u.a.arrayOf(u.a.shape({name:u.a.any,value:u.a.oneOfType([u.a.number,u.a.string,u.a.array]),unit:u.a.any})),isAnimationActive:u.a.bool,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),itemSorter:u.a.func,filterNull:u.a.bool,useTranslate3d:u.a.bool},Yr={active:!1,offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,isAnimationActive:!et(),animationEasing:"ease",animationDuration:400,itemSorter:function(){return-1},filterNull:!0,useTranslate3d:!1},$r=z((Lr=Rr=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=qr(this,(t=Vr(e)).call.apply(t,[this].concat(i)))).state={boxWidth:-1,boxHeight:-1},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hr(t,e)}(e,i["Component"]),function(t,e,n){e&&Gr(t.prototype,e),n&&Gr(t,n)}(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-e)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var t,e,n,r=this,i=this.props,a=i.payload,u=i.isAnimationActive,c=i.animationDuration,l=i.animationEasing,p=i.filterNull&&a&&a.length?a.filter(function(t){return!f()(t.value)}):a,h=p&&p.length,d=this.props,y=d.content,m=d.viewBox,b=d.coordinate,g=d.position,x=d.active,w=d.offset,O=d.wrapperStyle,_=Wr({pointerEvents:"none",visibility:x&&h?"visible":"hidden",position:"absolute",top:0},O);if(g&&j(g.x)&&j(g.y))e=g.x,n=g.y;else{var A=this.state,k=A.boxWidth,E=A.boxHeight;k>0&&E>0&&b?(e=g&&j(g.x)?g.x:Math.max(b.x+k+w>m.x+m.width?b.x-k-w:b.x+w,m.x),n=g&&j(g.y)?g.y:Math.max(b.y+E+w>m.y+m.height?b.y-E-w:b.y+w,m.y)):_.visibility="hidden"}_=Wr({},_,In({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})),u&&x&&(_=Wr({},_,In({transition:"transform ".concat(c,"ms ").concat(l)})));var S=s()(Xr,(Ur(t={},"".concat(Xr,"-right"),j(e)&&b&&j(b.x)&&e>=b.x),Ur(t,"".concat(Xr,"-left"),j(e)&&b&&j(b.x)&&e<b.x),Ur(t,"".concat(Xr,"-bottom"),j(n)&&b&&j(b.y)&&n>=b.y),Ur(t,"".concat(Xr,"-top"),j(n)&&b&&j(b.y)&&n<b.y),t));return o.a.createElement("div",{className:S,style:_,ref:function(t){r.wrapperNode=t}},function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(Br,e)}(y,Wr({},this.props,{payload:p})))}}]),e}(),Rr.displayName="Tooltip",Rr.propTypes=Kr,Rr.defaultProps=Yr,Dr=Lr))||Dr,Zr=n(66),Jr=n.n(Zr),Qr=n(111),ti=n.n(Qr);function ei(t){return(ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ni(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ri(t,e){return!e||"object"!==ei(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ii(t){return(ii=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function oi(t,e){return(oi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ai=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ri(this,ii(e).call(this,t))).updateDimensionsImmediate=function(){if(n.mounted){var t=n.getContainerSize();if(t){var e=n.state,r=e.containerWidth,i=e.containerHeight,o=t.containerWidth,a=t.containerHeight;o===r&&a===i||n.setState({containerWidth:o,containerHeight:a})}}},n.state={containerWidth:-1,containerHeight:-1},n.handleResize=t.debounce>0?Jr()(n.updateDimensionsImmediate,t.debounce):n.updateDimensionsImmediate,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oi(t,e)}(e,i["Component"]),function(t,e,n){e&&ni(t.prototype,e),n&&ni(t,n)}(e,[{key:"componentDidMount",value:function(){this.mounted=!0;var t=this.getContainerSize();t&&this.setState(t)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var t=this.state,e=t.containerWidth,n=t.containerHeight;if(e<0||n<0)return null;var r=this.props,i=r.aspect,a=r.width,u=r.height,c=(r.minWidth,r.minHeight,r.maxHeight),s=r.children;S(a)||S(u);var l=S(a)?e:a,f=S(u)?n:u;return i&&i>0&&(f=l/i,c&&f>c&&(f=c)),o.a.cloneElement(s,{width:l,height:f})}},{key:"render",value:function(){var t=this,e=this.props,n=e.minWidth,r=e.minHeight,i=e.width,a=e.height,u=e.maxHeight,c=e.id,l=e.className,f={width:i,height:a,minWidth:n,minHeight:r,maxHeight:u};return o.a.createElement("div",{id:c,className:s()("recharts-responsive-container",l),style:f,ref:function(e){t.container=e}},this.renderChart(),o.a.createElement(ti.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}]),e}();ai.displayName="ResponsiveContainer",ai.propTypes={aspect:u.a.number,width:u.a.oneOfType([u.a.string,u.a.number]),height:u.a.oneOfType([u.a.string,u.a.number]),minHeight:u.a.oneOfType([u.a.string,u.a.number]),minWidth:u.a.oneOfType([u.a.string,u.a.number]),maxHeight:u.a.oneOfType([u.a.string,u.a.number]),children:u.a.node.isRequired,debounce:u.a.number,id:u.a.oneOfType([u.a.string,u.a.number]),className:u.a.oneOfType([u.a.string,u.a.number])},ai.defaultProps={width:"100%",height:"100%",debounce:0};var ui=ai;function ci(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function si(){return null}si.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){ci(t,e,n[e])})}return t}({},W),si.displayName="Cell";var li=si,fi=n(46),pi=n.n(fi);function hi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function di(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var yi={widthCache:{},cacheCount:0},mi={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},vi=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var bi=function(t){return Object.keys(t).reduce(function(e,n){return"".concat(e).concat(function(t){return t.split("").reduce(function(t,e){return e===e.toUpperCase()?di(t).concat(["-",e.toLowerCase()]):di(t).concat([e])},[]).join("")}(n),":").concat(function(t,e){return vi.indexOf(t)>=0&&e===+e?"".concat(e,"px"):e}(n,t[n]),";")},"")},gi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===t||null===t||et())return{width:0,height:0};var n="".concat(t),r=bi(e),i="".concat(n,"-").concat(r);if(yi.widthCache[i])return yi.widthCache[i];try{var o=document.getElementById("recharts_measurement_span");o||((o=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(o));var a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){hi(t,e,n[e])})}return t}({},mi,e);Object.keys(a).map(function(t){return o.style[t]=a[t],t}),o.textContent=n;var u=o.getBoundingClientRect(),c={width:u.width,height:u.height};return yi.widthCache[i]=c,++yi.cacheCount>2e3&&(yi.cacheCount=0,yi.widthCache={}),c}catch(t){return{width:0,height:0}}};function xi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wi(t){return(wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oi(){return(Oi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function _i(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ai(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ki(t,e){return!e||"object"!==wi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ei(t){return(Ei=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Si(t,e){return(Si=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ji=/[ \f\n\r\t\v\u2028\u2029]+/,Ti=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=ki(this,(t=Ei(e)).call.apply(t,[this].concat(i)))).state={wordsByLines:[]},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Si(t,e)}(e,i["Component"]),function(t,e,n){e&&Ai(t.prototype,e),n&&Ai(t,n)}(e,[{key:"componentWillMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props.children!==t.children||this.props.style!==t.style;this.updateWordsByLines(t,e)}},{key:"updateWordsByLines",value:function(t,e){if(!t.width&&!t.scaleToFit||et())this.updateWordsWithoutCalculate(t);else{if(e){var n=function(t){try{return{wordsWithComputedWidth:(f()(t.children)?[]:t.children.toString().split(ji)).map(function(e){return{word:e,width:gi(e,t.style).width}}),spaceWidth:gi(" ",t.style).width}}catch(t){return null}}(t);if(!n)return void this.updateWordsWithoutCalculate(t);var r=n.wordsWithComputedWidth,i=n.spaceWidth;this.wordsWithComputedWidth=r,this.spaceWidth=i}var o=this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,t.width);this.setState({wordsByLines:o})}}},{key:"updateWordsWithoutCalculate",value:function(t){var e=f()(t.children)?[]:t.children.toString().split(ji);this.setState({wordsByLines:[{words:e}]})}},{key:"calculateWordsByLines",value:function(t,e,n){var r=this.props.scaleToFit;return t.reduce(function(t,i){var o=i.word,a=i.width,u=t[t.length-1];if(u&&(null==n||r||u.width+a+e<n))u.words.push(o),u.width+=a+e;else{var c={words:[o],width:a};t.push(c)}return t},[])}},{key:"render",value:function(){var t=this.props,e=t.dx,n=t.dy,r=t.textAnchor,i=t.verticalAnchor,a=t.scaleToFit,u=t.angle,c=t.lineHeight,l=t.capHeight,f=t.className,p=_i(t,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className"]),h=this.state.wordsByLines;if(!T(p.x)||!T(p.y))return null;var d,y=p.x+(j(e)?e:0),m=p.y+(j(n)?n:0);switch(i){case"start":d=pi()("calc(".concat(l,")"));break;case"middle":d=pi()("calc(".concat((h.length-1)/2," * -").concat(c," + (").concat(l," / 2))"));break;default:d=pi()("calc(".concat(h.length-1," * -").concat(c,")"))}var v=[];if(a){var b=h[0].width;v.push("scale(".concat(this.props.width/b,")"))}return u&&v.push("rotate(".concat(u,", ").concat(y,", ").concat(m,")")),v.length&&(p.transform=v.join(" ")),o.a.createElement("text",Oi({},Y(p),{x:y,y:m,className:s()("recharts-text",f),textAnchor:r}),h.map(function(t,e){return o.a.createElement("tspan",{x:y,dy:0===e?d:c,key:e},t.words.join(" "))}))}}]),e}();Ti.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){xi(t,e,n[e])})}return t}({},W,{scaleToFit:u.a.bool,angle:u.a.number,textAnchor:u.a.oneOf(["start","middle","end","inherit"]),verticalAnchor:u.a.oneOf(["start","middle","end"]),style:u.a.object}),Ti.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var Mi=Ti,Pi=n(41),Ci=n.n(Pi),Ni=n(112),Ii=n.n(Ni),Di=n(42),Ri=n.n(Di),Li=n(113),zi=n.n(Li),Bi=n(68),Fi=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Wi=function(t){return 1===t.length&&(t=function(t){return function(e,n){return Fi(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};var Ui=Wi(Fi),Gi=Ui.right,qi=(Ui.left,Gi);var Vi=function(t){return null===t?NaN:+t},Hi=Array.prototype,Xi=(Hi.slice,Hi.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}),Ki=Math.sqrt(50),Yi=Math.sqrt(10),$i=Math.sqrt(2),Zi=function(t,e,n){var r,i,o,a,u=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=Ji(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++u<i;)o[u]=(t+u)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++u<i;)o[u]=(t-u)/a;return r&&o.reverse(),o};function Ji(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Ki?10:o>=Yi?5:o>=$i?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ki?10:o>=Yi?5:o>=$i?2:1)}function Qi(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ki?i*=10:o>=Yi?i*=5:o>=$i&&(i*=2),e<t?-i:i}var to=function(t,e,n){if(null==n&&(n=Vi),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}};function eo(){}function no(t,e){var n=new eo;if(t instanceof eo)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}eo.prototype=no.prototype={constructor:eo,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var ro=no;function io(){}var oo=ro.prototype;function ao(t,e){var n=new io;if(t instanceof io)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}io.prototype=ao.prototype={constructor:io,has:oo.has,add:function(t){return this["$"+(t+="")]=t,this},remove:oo.remove,clear:oo.clear,values:oo.keys,size:oo.size,empty:oo.empty,each:oo.each};var uo=Array.prototype,co=uo.map,so=uo.slice,lo={name:"implicit"};function fo(t){var e=ro(),n=[],r=lo;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==lo)return r;e.set(o,a=n.push(i))}return t[(a-1)%t.length]}return t=null==t?[]:so.call(t),i.domain=function(t){if(!arguments.length)return n.slice();n=[],e=ro();for(var r,o,a=-1,u=t.length;++a<u;)e.has(o=(r=t[a])+"")||e.set(o,n.push(r));return i},i.range=function(e){return arguments.length?(t=so.call(e),i):t.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return fo().domain(n).range(t).unknown(r)},i}function po(){var t,e,n=fo().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,u=0,c=0,s=.5;function l(){var n=r().length,l=o[1]<o[0],f=o[l-0],p=o[1-l];t=(p-f)/Math.max(1,n-u+2*c),a&&(t=Math.floor(t)),f+=(p-f-t*(n-u))*s,e=t*(1-u),a&&(f=Math.round(f),e=Math.round(e));var h=Xi(n).map(function(e){return f+t*e});return i(l?h.reverse():h)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?(o=[+t[0],+t[1]],l()):o.slice()},n.rangeRound=function(t){return o=[+t[0],+t[1]],a=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,l()):a},n.padding=function(t){return arguments.length?(u=c=Math.max(0,Math.min(1,t)),l()):u},n.paddingInner=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),l()):u},n.paddingOuter=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),l()):s},n.copy=function(){return po().domain(r()).range(o).round(a).paddingInner(u).paddingOuter(c).align(s)},l()}function ho(){return function t(e){var n=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(n())},e}(po().paddingInner(1))}var yo=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function mo(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function vo(){}var bo="\\s*([+-]?\\d+)\\s*",go="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",xo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wo=/^#([0-9a-f]{3})$/,Oo=/^#([0-9a-f]{6})$/,_o=new RegExp("^rgb\\("+[bo,bo,bo]+"\\)$"),Ao=new RegExp("^rgb\\("+[xo,xo,xo]+"\\)$"),ko=new RegExp("^rgba\\("+[bo,bo,bo,go]+"\\)$"),Eo=new RegExp("^rgba\\("+[xo,xo,xo,go]+"\\)$"),So=new RegExp("^hsl\\("+[go,xo,xo]+"\\)$"),jo=new RegExp("^hsla\\("+[go,xo,xo,go]+"\\)$"),To={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Mo(t){var e;return t=(t+"").trim().toLowerCase(),(e=wo.exec(t))?new Do((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=Oo.exec(t))?Po(parseInt(e[1],16)):(e=_o.exec(t))?new Do(e[1],e[2],e[3],1):(e=Ao.exec(t))?new Do(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ko.exec(t))?Co(e[1],e[2],e[3],e[4]):(e=Eo.exec(t))?Co(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=So.exec(t))?Lo(e[1],e[2]/100,e[3]/100,1):(e=jo.exec(t))?Lo(e[1],e[2]/100,e[3]/100,e[4]):To.hasOwnProperty(t)?Po(To[t]):"transparent"===t?new Do(NaN,NaN,NaN,0):null}function Po(t){return new Do(t>>16&255,t>>8&255,255&t,1)}function Co(t,e,n,r){return r<=0&&(t=e=n=NaN),new Do(t,e,n,r)}function No(t){return t instanceof vo||(t=Mo(t)),t?new Do((t=t.rgb()).r,t.g,t.b,t.opacity):new Do}function Io(t,e,n,r){return 1===arguments.length?No(t):new Do(t,e,n,null==r?1:r)}function Do(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ro(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Lo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Bo(t,e,n,r)}function zo(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Bo)return new Bo(t.h,t.s,t.l,t.opacity);if(t instanceof vo||(t=Mo(t)),!t)return new Bo;if(t instanceof Bo)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new Bo(a,u,c,t.opacity)}(t):new Bo(t,e,n,null==r?1:r)}function Bo(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Fo(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}yo(vo,Mo,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),yo(Do,Io,mo(vo,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Do(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Do(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Ro(this.r)+Ro(this.g)+Ro(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),yo(Bo,zo,mo(vo,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Bo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Bo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Do(Fo(t>=240?t-240:t+120,i,r),Fo(t,i,r),Fo(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Wo=Math.PI/180,Uo=180/Math.PI,Go=.96422,qo=1,Vo=.82521,Ho=4/29,Xo=6/29,Ko=3*Xo*Xo,Yo=Xo*Xo*Xo;function $o(t){if(t instanceof Jo)return new Jo(t.l,t.a,t.b,t.opacity);if(t instanceof oa){if(isNaN(t.h))return new Jo(t.l,0,0,t.opacity);var e=t.h*Wo;return new Jo(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof Do||(t=No(t));var n,r,i=na(t.r),o=na(t.g),a=na(t.b),u=Qo((.2225045*i+.7168786*o+.0606169*a)/qo);return i===o&&o===a?n=r=u:(n=Qo((.4360747*i+.3850649*o+.1430804*a)/Go),r=Qo((.0139322*i+.0971045*o+.7141733*a)/Vo)),new Jo(116*u-16,500*(n-u),200*(u-r),t.opacity)}function Zo(t,e,n,r){return 1===arguments.length?$o(t):new Jo(t,e,n,null==r?1:r)}function Jo(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Qo(t){return t>Yo?Math.pow(t,1/3):t/Ko+Ho}function ta(t){return t>Xo?t*t*t:Ko*(t-Ho)}function ea(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function na(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ra(t){if(t instanceof oa)return new oa(t.h,t.c,t.l,t.opacity);if(t instanceof Jo||(t=$o(t)),0===t.a&&0===t.b)return new oa(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Uo;return new oa(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ia(t,e,n,r){return 1===arguments.length?ra(t):new oa(t,e,n,null==r?1:r)}function oa(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}yo(Jo,Zo,mo(vo,{brighter:function(t){return new Jo(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Jo(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Do(ea(3.1338561*(e=Go*ta(e))-1.6168667*(t=qo*ta(t))-.4906146*(n=Vo*ta(n))),ea(-.9787684*e+1.9161415*t+.033454*n),ea(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),yo(oa,ia,mo(vo,{brighter:function(t){return new oa(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new oa(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return $o(this).rgb()}}));var aa=-.14861,ua=1.78277,ca=-.29227,sa=-.90649,la=1.97294,fa=la*sa,pa=la*ua,ha=ua*ca-sa*aa;function da(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ya)return new ya(t.h,t.s,t.l,t.opacity);t instanceof Do||(t=No(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(ha*r+fa*e-pa*n)/(ha+fa-pa),o=r-i,a=(la*(n-i)-ca*o)/sa,u=Math.sqrt(a*a+o*o)/(la*i*(1-i)),c=u?Math.atan2(a,o)*Uo-120:NaN;return new ya(c<0?c+360:c,u,i,t.opacity)}(t):new ya(t,e,n,null==r?1:r)}function ya(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ma(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}yo(ya,da,mo(vo,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ya(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ya(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Wo,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Do(255*(e+n*(aa*r+ua*i)),255*(e+n*(ca*r+sa*i)),255*(e+n*(la*r)),this.opacity)}}));var va=function(t){return function(){return t}};function ba(t,e){return function(n){return t+n*e}}function ga(t,e){var n=e-t;return n?ba(t,n>180||n<-180?n-360*Math.round(n/360):n):va(isNaN(t)?e:t)}function xa(t){return 1==(t=+t)?wa:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):va(isNaN(e)?n:e)}}function wa(t,e){var n=e-t;return n?ba(t,n):va(isNaN(t)?e:t)}var Oa=function t(e){var n=xa(e);function r(t,e){var r=n((t=Io(t)).r,(e=Io(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=wa(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function _a(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=Io(e[n]),o[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}_a(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return ma((n-r/e)*e,a,i,o,u)}}),_a(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return ma((n-r/e)*e,i,o,a,u)}});var Aa=function(t,e){return e-=t=+t,function(n){return t+e*n}},ka=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ea=new RegExp(ka.source,"g");var Sa,ja,Ta,Ma,Pa=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?va(e):("number"===r?Aa:"string"===r?(n=Mo(e))?(e=n,Oa):function(t,e){var n,r,i,o=ka.lastIndex=Ea.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=ka.exec(t))&&(r=Ea.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Aa(n,r)})),o=Ea.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)u[(n=c[r]).i]=n.x(t);return u.join("")})}:e instanceof Mo?Oa:e instanceof Date?function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}:Array.isArray(e)?function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Pa(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Pa(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}:Aa)(t,e)},Ca=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},Na=180/Math.PI,Ia={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Da=function(t,e,n,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Na,skewX:Math.atan(c)*Na,scaleX:a,scaleY:u}};function Ra(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],c=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var c=a.push("translate(",null,e,null,n);u.push({i:c-4,x:Aa(t,i)},{i:c-2,x:Aa(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,u,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Aa(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Aa(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Aa(t,n)},{i:u-2,x:Aa(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n<r;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}Ra(function(t){return"none"===t?Ia:(Sa||(Sa=document.createElement("DIV"),ja=document.documentElement,Ta=document.defaultView),Sa.style.transform=t,t=Ta.getComputedStyle(ja.appendChild(Sa),null).getPropertyValue("transform"),ja.removeChild(Sa),t=t.slice(7,-1).split(","),Da(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Ra(function(t){return null==t?Ia:(Ma||(Ma=document.createElementNS("http://www.w3.org/2000/svg","g")),Ma.setAttribute("transform",t),(t=Ma.transform.baseVal.consolidate())?(t=t.matrix,Da(t.a,t.b,t.c,t.d,t.e,t.f)):Ia)},", ",")",")"),Math.SQRT2;function La(t){return function(e,n){var r=t((e=zo(e)).h,(n=zo(n)).h),i=wa(e.s,n.s),o=wa(e.l,n.l),a=wa(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}La(ga),La(wa);function za(t){return function(e,n){var r=t((e=ia(e)).h,(n=ia(n)).h),i=wa(e.c,n.c),o=wa(e.l,n.l),a=wa(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}za(ga),za(wa);function Ba(t){return function e(n){function r(e,r){var i=t((e=da(e)).h,(r=da(r)).h),o=wa(e.s,r.s),a=wa(e.l,r.l),u=wa(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}Ba(ga),Ba(wa);var Fa=function(t){return function(){return t}},Wa=function(t){return+t},Ua=[0,1];function Ga(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Fa(e)}function qa(t,e,n,r){var i=t[0],o=t[1],a=e[0],u=e[1];return o<i?(i=n(o,i),a=r(u,a)):(i=n(i,o),a=r(a,u)),function(t){return a(i(t))}}function Va(t,e,n,r){var i=Math.min(t.length,e.length)-1,o=new Array(i),a=new Array(i),u=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<i;)o[u]=n(t[u],t[u+1]),a[u]=r(e[u],e[u+1]);return function(e){var n=qi(t,e,1,i)-1;return a[n](o[n](e))}}function Ha(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function Xa(t,e){var n,r,i,o=Ua,a=Ua,u=Pa,c=!1;function s(){return n=Math.min(o.length,a.length)>2?Va:qa,r=i=null,l}function l(e){return(r||(r=n(o,a,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,u)))(+e)}return l.invert=function(t){return(i||(i=n(a,o,Ga,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},l.domain=function(t){return arguments.length?(o=co.call(t,Wa),s()):o.slice()},l.range=function(t){return arguments.length?(a=so.call(t),s()):a.slice()},l.rangeRound=function(t){return a=so.call(t),u=Ca,s()},l.clamp=function(t){return arguments.length?(c=!!t,s()):c},l.interpolate=function(t){return arguments.length?(u=t,s()):u},s()}var Ka=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},Ya=function(t){return(t=Ka(Math.abs(t)))?t[1]:NaN},$a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Za(t){return new Ja(t)}function Ja(t){if(!(e=$a.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}Za.prototype=Ja.prototype,Ja.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Qa,tu,eu,nu,ru=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t},iu=function(t,e){var n=Ka(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},ou={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return iu(100*t,e)},r:iu,s:function(t,e){var n=Ka(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Qa=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ka(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},au=function(t){return t},uu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],cu=function(t){var e=t.grouping&&t.thousands?function(t,e){return function(n,r){for(var i=n.length,o=[],a=0,u=t[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(n.substring(i-=u,i+u)),!((c+=u+1)>r));)u=t[a=(a+1)%t.length];return o.reverse().join(e)}}(t.grouping,t.thousands):au,n=t.currency,r=t.decimal,i=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):au,o=t.percent||"%";function a(t){var a=(t=Za(t)).fill,u=t.align,c=t.sign,s=t.symbol,l=t.zero,f=t.width,p=t.comma,h=t.precision,d=t.trim,y=t.type;"n"===y?(p=!0,y="g"):ou[y]||(null==h&&(h=12),d=!0,y="g"),(l||"0"===a&&"="===u)&&(l=!0,a="0",u="=");var m="$"===s?n[0]:"#"===s&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",v="$"===s?n[1]:/[%p]/.test(y)?o:"",b=ou[y],g=/[defgprs%]/.test(y);function x(t){var n,o,s,x=m,w=v;if("c"===y)w=b(t)+w,t="";else{var O=(t=+t)<0;if(t=b(Math.abs(t),h),d&&(t=ru(t)),O&&0==+t&&(O=!1),x=(O?"("===c?c:"-":"-"===c||"("===c?"":c)+x,w=("s"===y?uu[8+Qa/3]:"")+w+(O&&"("===c?")":""),g)for(n=-1,o=t.length;++n<o;)if(48>(s=t.charCodeAt(n))||s>57){w=(46===s?r+t.slice(n+1):t.slice(n))+w,t=t.slice(0,n);break}}p&&!l&&(t=e(t,1/0));var _=x.length+t.length+w.length,A=_<f?new Array(f-_+1).join(a):"";switch(p&&l&&(t=e(A+t,A.length?f-w.length:1/0),A=""),u){case"<":t=x+t+w+A;break;case"=":t=x+A+t+w;break;case"^":t=A.slice(0,_=A.length>>1)+x+t+w+A.slice(_);break;default:t=A+x+t+w}return i(t)}return h=null==h?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),x.toString=function(){return t+""},x}return{format:a,formatPrefix:function(t,e){var n=a(((t=Za(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ya(e)/3))),i=Math.pow(10,-r),o=uu[8+r/3];return function(t){return n(i*t)+o}}}};!function(t){tu=cu(t),eu=tu.format,nu=tu.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var su=function(t,e,n){var r,i=t[0],o=t[t.length-1],a=Qi(i,o,null==e?10:e);switch((n=Za(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ya(e)/3)))-Ya(Math.abs(t)))}(a,u))||(n.precision=r),nu(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ya(e)-Ya(t))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(t){return Math.max(0,-Ya(Math.abs(t)))}(a))||(n.precision=r-2*("%"===n.type))}return eu(n)};function lu(t){var e=t.domain;return t.ticks=function(t){var n=e();return Zi(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return su(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,u=i[o],c=i[a];return c<u&&(r=u,u=c,c=r,r=o,o=a,a=r),(r=Ji(u,c,n))>0?r=Ji(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=Ji(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[o]=Math.floor(u/r)*r,i[a]=Math.ceil(c/r)*r,e(i)):r<0&&(i[o]=Math.ceil(u*r)/r,i[a]=Math.floor(c*r)/r,e(i)),t},t}function fu(){var t=Xa(Ga,Aa);return t.copy=function(){return Ha(t,fu())},lu(t)}function pu(){var t=[0,1];function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=co.call(n,Wa),e):t.slice()},e.copy=function(){return pu().domain(t)},lu(e)}var hu=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t};function du(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:Fa(e)}function yu(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function mu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function vu(t){return 10===t?mu:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function bu(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function gu(t){return function(e){return-t(-e)}}function xu(){var t=Xa(du,yu).domain([1,10]),e=t.domain,n=10,r=bu(10),i=vu(10);function o(){return r=bu(n),i=vu(n),e()[0]<0&&(r=gu(r),i=gu(i)),t}return t.base=function(t){return arguments.length?(n=+t,o()):n},t.domain=function(t){return arguments.length?(e(t),o()):e()},t.ticks=function(t){var o,a=e(),u=a[0],c=a[a.length-1];(o=c<u)&&(p=u,u=c,c=p);var s,l,f,p=r(u),h=r(c),d=null==t?10:+t,y=[];if(!(n%1)&&h-p<d){if(p=Math.round(p)-1,h=Math.round(h)+1,u>0){for(;p<h;++p)for(l=1,s=i(p);l<n;++l)if(!((f=s*l)<u)){if(f>c)break;y.push(f)}}else for(;p<h;++p)for(l=n-1,s=i(p);l>=1;--l)if(!((f=s*l)<u)){if(f>c)break;y.push(f)}}else y=Zi(p,h,Math.min(h-p,d)).map(i);return o?y.reverse():y},t.tickFormat=function(e,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=eu(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,n*e/t.ticks().length);return function(t){var e=t/i(Math.round(r(t)));return e*n<n-.5&&(e*=n),e<=a?o(t):""}},t.nice=function(){return e(hu(e(),{floor:function(t){return i(Math.floor(r(t)))},ceil:function(t){return i(Math.ceil(r(t)))}}))},t.copy=function(){return Ha(t,xu().base(n))},t}function wu(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function Ou(){var t=1,e=Xa(function(e,n){return(n=wu(n,t)-(e=wu(e,t)))?function(r){return(wu(r,t)-e)/n}:Fa(n)},function(e,n){return n=wu(n,t)-(e=wu(e,t)),function(r){return wu(e+n*r,1/t)}}),n=e.domain;return e.exponent=function(e){return arguments.length?(t=+e,n(n())):t},e.copy=function(){return Ha(e,Ou().exponent(t))},lu(e)}function _u(){return Ou().exponent(.5)}function Au(){var t=[],e=[],n=[];function r(){var r=0,o=Math.max(1,e.length);for(n=new Array(o-1);++r<o;)n[r-1]=to(t,r/o);return i}function i(t){if(!isNaN(t=+t))return e[qi(n,t)]}return i.invertExtent=function(r){var i=e.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:t[0],i<n.length?n[i]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,i=0,o=e.length;i<o;++i)null==(n=e[i])||isNaN(n=+n)||t.push(n);return t.sort(Fi),r()},i.range=function(t){return arguments.length?(e=so.call(t),r()):e.slice()},i.quantiles=function(){return n.slice()},i.copy=function(){return Au().domain(t).range(e)},i}function ku(){var t=0,e=1,n=1,r=[.5],i=[0,1];function o(t){if(t<=t)return i[qi(r,t,0,n)]}function a(){var i=-1;for(r=new Array(n);++i<n;)r[i]=((i+1)*e-(i-n)*t)/(n+1);return o}return o.domain=function(n){return arguments.length?(t=+n[0],e=+n[1],a()):[t,e]},o.range=function(t){return arguments.length?(n=(i=so.call(t)).length-1,a()):i.slice()},o.invertExtent=function(o){var a=i.indexOf(o);return a<0?[NaN,NaN]:a<1?[t,r[0]]:a>=n?[r[n-1],e]:[r[a-1],r[a]]},o.copy=function(){return ku().domain([t,e]).range(i)},lu(o)}function Eu(){var t=[.5],e=[0,1],n=1;function r(r){if(r<=r)return e[qi(t,r,0,n)]}return r.domain=function(i){return arguments.length?(t=so.call(i),n=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(i){return arguments.length?(e=so.call(i),n=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},r.copy=function(){return Eu().domain(t).range(e)},r}var Su=new Date,ju=new Date;function Tu(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,u=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return u;do{u.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return u},i.filter=function(n){return Tu(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Su.setTime(+e),ju.setTime(+r),t(Su),t(ju),Math.floor(n(Su,ju))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Mu=Tu(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Mu.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Tu(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Mu:null};var Pu=Mu,Cu=(Mu.range,6e4),Nu=6048e5,Iu=Tu(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),Du=Iu,Ru=(Iu.range,Tu(function(t){t.setTime(Math.floor(t/Cu)*Cu)},function(t,e){t.setTime(+t+e*Cu)},function(t,e){return(e-t)/Cu},function(t){return t.getMinutes()})),Lu=Ru,zu=(Ru.range,Tu(function(t){var e=t.getTimezoneOffset()*Cu%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()})),Bu=zu,Fu=(zu.range,Tu(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Cu)/864e5},function(t){return t.getDate()-1})),Wu=Fu;Fu.range;function Uu(t){return Tu(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Cu)/Nu})}var Gu=Uu(0),qu=Uu(1),Vu=Uu(2),Hu=Uu(3),Xu=Uu(4),Ku=Uu(5),Yu=Uu(6),$u=(Gu.range,qu.range,Vu.range,Hu.range,Xu.range,Ku.range,Yu.range,Tu(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),Zu=$u,Ju=($u.range,Tu(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));Ju.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Tu(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Qu=Ju,tc=(Ju.range,Tu(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Cu)},function(t,e){return(e-t)/Cu},function(t){return t.getUTCMinutes()})),ec=tc,nc=(tc.range,Tu(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()})),rc=nc,ic=(nc.range,Tu(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1})),oc=ic;ic.range;function ac(t){return Tu(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/Nu})}var uc=ac(0),cc=ac(1),sc=ac(2),lc=ac(3),fc=ac(4),pc=ac(5),hc=ac(6),dc=(uc.range,cc.range,sc.range,lc.range,fc.range,pc.range,hc.range,Tu(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),yc=dc,mc=(dc.range,Tu(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));mc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Tu(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var vc=mc;mc.range;function bc(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function gc(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function xc(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var wc,Oc,_c,Ac,kc={"-":"",_:" ",0:"0"},Ec=/^\s*\d+/,Sc=/^%/,jc=/[\\^$*+?|[\]().{}]/g;function Tc(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Mc(t){return t.replace(jc,"\\$&")}function Pc(t){return new RegExp("^(?:"+t.map(Mc).join("|")+")","i")}function Cc(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function Nc(t,e,n){var r=Ec.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ic(t,e,n){var r=Ec.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Dc(t,e,n){var r=Ec.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Rc(t,e,n){var r=Ec.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Lc(t,e,n){var r=Ec.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function zc(t,e,n){var r=Ec.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Bc(t,e,n){var r=Ec.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Fc(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Wc(t,e,n){var r=Ec.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Uc(t,e,n){var r=Ec.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Gc(t,e,n){var r=Ec.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function qc(t,e,n){var r=Ec.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Vc(t,e,n){var r=Ec.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Hc(t,e,n){var r=Ec.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Xc(t,e,n){var r=Ec.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Kc(t,e,n){var r=Ec.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yc(t,e,n){var r=Sc.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function $c(t,e,n){var r=Ec.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Zc(t,e,n){var r=Ec.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Jc(t,e){return Tc(t.getDate(),e,2)}function Qc(t,e){return Tc(t.getHours(),e,2)}function ts(t,e){return Tc(t.getHours()%12||12,e,2)}function es(t,e){return Tc(1+Wu.count(Qu(t),t),e,3)}function ns(t,e){return Tc(t.getMilliseconds(),e,3)}function rs(t,e){return ns(t,e)+"000"}function is(t,e){return Tc(t.getMonth()+1,e,2)}function os(t,e){return Tc(t.getMinutes(),e,2)}function as(t,e){return Tc(t.getSeconds(),e,2)}function us(t){var e=t.getDay();return 0===e?7:e}function cs(t,e){return Tc(Gu.count(Qu(t),t),e,2)}function ss(t,e){var n=t.getDay();return t=n>=4||0===n?Xu(t):Xu.ceil(t),Tc(Xu.count(Qu(t),t)+(4===Qu(t).getDay()),e,2)}function ls(t){return t.getDay()}function fs(t,e){return Tc(qu.count(Qu(t),t),e,2)}function ps(t,e){return Tc(t.getFullYear()%100,e,2)}function hs(t,e){return Tc(t.getFullYear()%1e4,e,4)}function ds(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Tc(e/60|0,"0",2)+Tc(e%60,"0",2)}function ys(t,e){return Tc(t.getUTCDate(),e,2)}function ms(t,e){return Tc(t.getUTCHours(),e,2)}function vs(t,e){return Tc(t.getUTCHours()%12||12,e,2)}function bs(t,e){return Tc(1+oc.count(vc(t),t),e,3)}function gs(t,e){return Tc(t.getUTCMilliseconds(),e,3)}function xs(t,e){return gs(t,e)+"000"}function ws(t,e){return Tc(t.getUTCMonth()+1,e,2)}function Os(t,e){return Tc(t.getUTCMinutes(),e,2)}function _s(t,e){return Tc(t.getUTCSeconds(),e,2)}function As(t){var e=t.getUTCDay();return 0===e?7:e}function ks(t,e){return Tc(uc.count(vc(t),t),e,2)}function Es(t,e){var n=t.getUTCDay();return t=n>=4||0===n?fc(t):fc.ceil(t),Tc(fc.count(vc(t),t)+(4===vc(t).getUTCDay()),e,2)}function Ss(t){return t.getUTCDay()}function js(t,e){return Tc(cc.count(vc(t),t),e,2)}function Ts(t,e){return Tc(t.getUTCFullYear()%100,e,2)}function Ms(t,e){return Tc(t.getUTCFullYear()%1e4,e,4)}function Ps(){return"+0000"}function Cs(){return"%"}function Ns(t){return+t}function Is(t){return Math.floor(+t/1e3)}!function(t){wc=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=Pc(i),l=Cc(i),f=Pc(o),p=Cc(o),h=Pc(a),d=Cc(a),y=Pc(u),m=Cc(u),v=Pc(c),b=Cc(c),g={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Jc,e:Jc,f:rs,H:Qc,I:ts,j:es,L:ns,m:is,M:os,p:function(t){return i[+(t.getHours()>=12)]},Q:Ns,s:Is,S:as,u:us,U:cs,V:ss,w:ls,W:fs,x:null,X:null,y:ps,Y:hs,Z:ds,"%":Cs},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:ys,e:ys,f:xs,H:ms,I:vs,j:bs,L:gs,m:ws,M:Os,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Ns,s:Is,S:_s,u:As,U:ks,V:Es,w:Ss,W:js,x:null,X:null,y:Ts,Y:Ms,Z:Ps,"%":Cs},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return A(t,e,n,r)},d:Uc,e:Uc,f:Kc,H:qc,I:qc,j:Gc,L:Xc,m:Wc,M:Vc,p:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:$c,s:Zc,S:Hc,u:Ic,U:Dc,V:Rc,w:Nc,W:Lc,x:function(t,e,r){return A(t,n,e,r)},X:function(t,e,n){return A(t,r,e,n)},y:Bc,Y:zc,Z:Fc,"%":Yc};function O(t,e){return function(n){var r,i,o,a=[],u=-1,c=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++u<s;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(i=kc[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function _(t,e){return function(n){var r,i,o=xc(1900);if(A(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=gc(xc(o.y))).getUTCDay())>4||0===i?cc.ceil(r):cc(r),r=oc.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=e(xc(o.y))).getDay())>4||0===i?qu.ceil(r):qu(r),r=Wu.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?gc(xc(o.y)).getUTCDay():e(xc(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,gc(o)):e(o)}}function A(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in kc?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return g.x=O(n,g),g.X=O(r,g),g.c=O(e,g),x.x=O(n,x),x.X=O(r,x),x.c=O(e,x),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",bc);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t,gc);return e.toString=function(){return t},e}}}(t),Oc=wc.format,wc.parse,_c=wc.utcFormat,Ac=wc.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||_c("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Ac("%Y-%m-%dT%H:%M:%S.%LZ");var Ds=1e3,Rs=60*Ds,Ls=60*Rs,zs=24*Ls,Bs=7*zs,Fs=30*zs,Ws=365*zs;function Us(t){return new Date(t)}function Gs(t){return t instanceof Date?+t:+new Date(+t)}function qs(t,e,n,r,i,o,a,u,c){var s=Xa(Ga,Aa),l=s.invert,f=s.domain,p=c(".%L"),h=c(":%S"),d=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),v=c("%b %d"),b=c("%B"),g=c("%Y"),x=[[a,1,Ds],[a,5,5*Ds],[a,15,15*Ds],[a,30,30*Ds],[o,1,Rs],[o,5,5*Rs],[o,15,15*Rs],[o,30,30*Rs],[i,1,Ls],[i,3,3*Ls],[i,6,6*Ls],[i,12,12*Ls],[r,1,zs],[r,2,2*zs],[n,1,Bs],[e,1,Fs],[e,3,3*Fs],[t,1,Ws]];function w(u){return(a(u)<u?p:o(u)<u?h:i(u)<u?d:r(u)<u?y:e(u)<u?n(u)<u?m:v:t(u)<u?b:g)(u)}function O(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var o=Math.abs(r-n)/e,a=Wi(function(t){return t[2]}).right(x,o);a===x.length?(i=Qi(n/Ws,r/Ws,e),e=t):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],e=a[0]):(i=Math.max(Qi(n,r,e),1),e=u)}return null==i?e:e.every(i)}return s.invert=function(t){return new Date(l(t))},s.domain=function(t){return arguments.length?f(co.call(t,Gs)):f().map(Us)},s.ticks=function(t,e){var n,r=f(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=O(t,i,o,e))?n.range(i,o+1):[],a?n.reverse():n},s.tickFormat=function(t,e){return null==e?w:c(e)},s.nice=function(t,e){var n=f();return(t=O(t,n[0],n[n.length-1],e))?f(hu(n,t)):s},s.copy=function(){return Ha(s,qs(t,e,n,r,i,o,a,u,c))},s}var Vs,Hs,Xs,Ks=function(){return qs(Qu,Zu,Gu,Wu,Bu,Lu,Du,Pu,Oc).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},Ys=function(){return qs(vc,yc,uc,oc,rc,ec,Du,Pu,_c).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])};function $s(t){var e=0,n=1,r=1,i=!1;function o(n){var o=(n-e)*r;return t(i?Math.max(0,Math.min(1,o)):o)}return o.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],r=e===n?0:1/(n-e),o):[e,n]},o.clamp=function(t){return arguments.length?(i=!!t,o):i},o.interpolator=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return $s(t).domain([e,n]).clamp(i)},lu(o)}function Zs(t){var e=0,n=.5,r=1,i=1,o=1,a=!1;function u(e){var r=.5+((e=+e)-n)*(e<n?i:o);return t(a?Math.max(0,Math.min(1,r)):r)}return u.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],r=+t[2],i=e===n?0:.5/(n-e),o=n===r?0:.5/(r-n),u):[e,n,r]},u.clamp=function(t){return arguments.length?(a=!!t,u):a},u.interpolator=function(e){return arguments.length?(t=e,u):t},u.copy=function(){return Zs(t).domain([e,n,r]).clamp(a)},lu(u)}function Js(t){return(Js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qs(){return(Qs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function tl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function el(t,e){return!e||"object"!==Js(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nl(t){return(nl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rl(t,e){return(rl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var il=z((Xs=Hs=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),el(this,nl(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rl(t,e)}(e,i["Component"]),function(t,e,n){e&&tl(t.prototype,e),n&&tl(t,n)}(e,[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.r,i=t.className,a=s()("recharts-dot",i);return e===+e&&n===+n&&r===+r?o.a.createElement("circle",Qs({},Y(this.props),Z(this.props,null,!0),{className:a,cx:e,cy:n,r:r})):null}}]),e}(),Hs.displayName="Dot",Hs.propTypes={className:u.a.string,cx:u.a.number,cy:u.a.number,r:u.a.number},Vs=Xs))||Vs,ol=n(43),al=n.n(ol),ul=n(69),cl=n.n(ul);function sl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ll(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fl(t,e,n){return e&&ll(t.prototype,e),n&&ll(t,n),t}function pl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){hl(t,e,n[e])})}return t}function hl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dl=function(t,e,n,r,i){var o=t.width,a=t.height,u=t.layout,c=Object.keys(e),s={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom};return c.reduce(function(t,o){var a,c,l,f,p=e[o],h=p.orientation,d=p.domain,y=p.padding,m=void 0===y?{}:y,v=p.mirror,b=p.reversed,g="".concat(h).concat(v?"Mirror":"");a="xAxis"===r?[n.left+(m.left||0),n.left+n.width-(m.right||0)]:"yAxis"===r?"horizontal"===u?[n.top+n.height-(m.bottom||0),n.top+(m.top||0)]:[n.top+(m.top||0),n.top+n.height-(m.bottom||0)]:p.range,b&&(a=[a[1],a[0]]);var x=Bf(p,i),w=x.scale,O=x.realScaleType;w.domain(d).range(a),Ff(w);var _=Vf(w,pl({},p,{realScaleType:O}));"xAxis"===r?(f="top"===h&&!v||"bottom"===h&&v,c=n.left,l=s[g]-f*p.height):"yAxis"===r&&(f="left"===h&&!v||"right"===h&&v,c=s[g]-f*p.width,l=n.top);var A=pl({},p,_,{realScaleType:O,x:c,y:l,scale:w,width:"xAxis"===r?n.width:p.width,height:"yAxis"===r?n.height:p.height});return A.bandSize=ep(A,_),p.hide||"xAxis"!==r?p.hide||(s[g]+=(f?-1:1)*A.width):s[g]+=(f?-1:1)*A.height,pl({},t,hl({},o,A))},{})},yl=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},ml=function(){function t(e){sl(this,t),this.scale=e}return fl(t,null,[{key:"create",value:function(e){return new t(e)}}]),fl(t,[{key:"apply",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).bandAware;if(void 0!==t){if(e){var n=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+n}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),t}();ml.EPS=1e-4;var vl,bl,gl,xl=function(){function t(e){sl(this,t),this.scales=cl()(e,ml.create),Object.assign(this,this.scales)}return fl(t,null,[{key:"create",value:function(t){return new this(t)}}]),fl(t,[{key:"apply",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).bandAware,n=this.scales;return cl()(t,function(t,r){return n[r].apply(t,{bandAware:e})})}},{key:"isInRange",value:function(t){var e=this.scales;return al()(t,function(t,n){return e[n].isInRange(t)})}}]),t}();function wl(t){return(wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ol(){return(Ol=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function _l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Al(t,e,n[e])})}return t}function Al(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function El(t,e){return!e||"object"!==wl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sl(t){return(Sl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jl(t,e){return(jl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Tl,Ml,Pl,Cl=z((gl=bl=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),El(this,Sl(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jl(t,e)}(e,i["Component"]),function(t,e,n){e&&kl(t.prototype,e),n&&kl(t,n)}(e,[{key:"getCoordinate",value:function(){var t=this.props,e=t.x,n=t.y,r=t.xAxis,i=t.yAxis,o=xl.create({x:r.scale,y:i.scale}),a=o.apply({x:e,y:n},{bandAware:!0});return Yf(this.props,"discard")&&!o.isInRange(a)?null:a}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.r,i=(t.alwaysShow,t.clipPathId),a=T(e),u=T(n);if(!a||!u)return null;var c=this.getCoordinate();if(!c)return null;var l=c.x,f=c.y,p=this.props,h=p.shape,d=p.className,y=_l({clipPath:Yf(this.props,"hidden")?"url(#".concat(i,")"):void 0},Y(this.props),Z(this.props),{cx:l,cy:f});return o.a.createElement(vt,{className:s()("recharts-reference-dot",d)},this.constructor.renderDot(h,y),kp.renderCallByParent(this.props,{x:l-r,y:f-r,width:2*r,height:2*r}))}}],[{key:"renderDot",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(il,Ol({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}}]),e}(),bl.displayName="ReferenceDot",bl.propTypes=_l({},W,U,{r:u.a.number,xAxis:u.a.shape({scale:u.a.func}),yAxis:u.a.shape({scale:u.a.func}),isFront:u.a.bool,alwaysShow:u.a.bool,ifOverflow:u.a.oneOf(["hidden","visible","discard","extendDomain"]),x:u.a.oneOfType([u.a.number,u.a.string]),y:u.a.oneOfType([u.a.number,u.a.string]),className:u.a.oneOfType([u.a.number,u.a.string]),yAxisId:u.a.oneOfType([u.a.string,u.a.number]),xAxisId:u.a.oneOfType([u.a.string,u.a.number]),shape:u.a.oneOfType([u.a.func,u.a.element]),clipPathId:u.a.string}),bl.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},vl=gl))||vl,Nl=n(114),Il=n.n(Nl);function Dl(t){return(Dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Ll(t,e,n[e])})}return t}function Ll(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Bl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fl(t,e){return!e||"object"!==Dl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wl(t){return(Wl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ul(t,e){return(Ul=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gl(){return(Gl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var ql,Vl,Hl,Xl=z((Pl=Ml=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Fl(this,Wl(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ul(t,e)}(e,i["Component"]),function(t,e,n){e&&Bl(t.prototype,e),n&&Bl(t,n)}(e,[{key:"getEndPoints",value:function(t,e,n,r){var i=this.props.viewBox,o=i.x,a=i.y,u=i.width,c=i.height;if(n){var s=this.props,l=s.y,f=s.yAxis.orientation,p=t.y.apply(l);if(Yf(this.props,"discard")&&!t.y.isInRange(p))return null;var h=[{x:o+u,y:p},{x:o,y:p}];return"left"===f?h.reverse():h}if(e){var d=this.props,y=d.x,m=d.xAxis.orientation,v=t.x.apply(y);if(Yf(this.props,"discard")&&!t.x.isInRange(v))return null;var b=[{x:v,y:a+c},{x:v,y:a}];return"top"===m?b.reverse():b}if(r){var g=this.props.segment.map(function(e){return t.apply(e)});return Yf(this.props,"discard")&&Il()(g,function(e){return!t.isInRange(e)})?null:g}return null}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.segment,i=t.xAxis,a=t.yAxis,u=t.shape,c=t.className,l=(t.alwaysShow,t.clipPathId),f=xl.create({x:i.scale,y:a.scale}),p=T(e),h=T(n),d=r&&2===r.length,y=this.getEndPoints(f,p,h,d);if(!y)return null;var m=zl(y,2),b=m[0],g=b.x,x=b.y,w=m[1],O=w.x,_=w.y,A=Rl({clipPath:Yf(this.props,"hidden")?"url(#".concat(l,")"):void 0},Y(this.props),Z(this.props),{x1:g,y1:x,x2:O,y2:_});return o.a.createElement(vt,{className:s()("recharts-reference-line",c)},function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement("line",Gl({},e,{className:"recharts-reference-line-line"}))}(u,A),kp.renderCallByParent(this.props,function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2;return yl({x:e,y:n},{x:r,y:i})}({x1:g,y1:x,x2:O,y2:_})))}}]),e}(),Ml.displayName="ReferenceLine",Ml.propTypes=Rl({},W,{viewBox:u.a.shape({x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number}),xAxis:u.a.object,yAxis:u.a.object,isFront:u.a.bool,alwaysShow:u.a.bool,ifOverflow:u.a.oneOf(["hidden","visible","discard","extendDomain"]),x:u.a.oneOfType([u.a.number,u.a.string]),y:u.a.oneOfType([u.a.number,u.a.string]),segment:u.a.arrayOf(u.a.shape({x:u.a.oneOfType([u.a.number,u.a.string]),y:u.a.oneOfType([u.a.number,u.a.string])})),className:u.a.oneOfType([u.a.number,u.a.string]),yAxisId:u.a.oneOfType([u.a.string,u.a.number]),xAxisId:u.a.oneOfType([u.a.string,u.a.number]),shape:u.a.func}),Ml.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Tl=Pl))||Tl;function Kl(t){return(Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $l(){return($l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Zl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jl(t,e){return!e||"object"!==Kl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ql(t){return(Ql=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function tf(t,e){return(tf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ef,nf,rf,of=function(t,e,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),u=r>=0?1:-1,c=r>=0?1:0;if(a>0&&i instanceof Array){for(var s=[],l=0;l<4;l++)s[l]=i[l]>a?a:i[l];o="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(c,",").concat(t+s[0],",").concat(e)),o+="L ".concat(t+n-s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(c,",\n        ").concat(t+n,",").concat(e+u*s[1])),o+="L ".concat(t+n,",").concat(e+r-u*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(c,",\n        ").concat(t+n-s[2],",").concat(e+r)),o+="L ".concat(t+s[3],",").concat(e+r),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(c,",\n        ").concat(t,",").concat(e+r-u*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var f=Math.min(a,i);o="M ".concat(t,",").concat(e+u*f,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t+f,",").concat(e,"\n            L ").concat(t+n-f,",").concat(e,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t+n,",").concat(e+u*f,"\n            L ").concat(t+n,",").concat(e+r-u*f,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t+n-f,",").concat(e+r,"\n            L ").concat(t+f,",").concat(e+r,"\n            A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t,",").concat(e+r-u*f," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},af=z((Hl=Vl=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=Jl(this,(t=Ql(e)).call.apply(t,[this].concat(i)))).state={totalLength:-1},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tf(t,e)}(e,i["Component"]),function(t,e,n){e&&Zl(t.prototype,e),n&&Zl(t,n)}(e,[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var t=this.node.getTotalLength();t&&this.setState({totalLength:t})}catch(t){}}},{key:"render",value:function(){var t=this,e=this.props,n=e.x,r=e.y,i=e.width,a=e.height,u=e.radius,c=e.className,l=this.state.totalLength,f=this.props,p=f.animationEasing,h=f.animationDuration,d=f.animationBegin,y=f.isAnimationActive,m=f.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||a!==+a||0===i||0===a)return null;var v=s()("recharts-rectangle",c);return m?o.a.createElement(Sr,{canBegin:l>0,from:{width:i,height:a,x:n,y:r},to:{width:i,height:a,x:n,y:r},duration:h,animationEasing:p,isActive:m},function(e){var n=e.width,r=e.height,i=e.x,a=e.y;return o.a.createElement(Sr,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:y,easing:p},o.a.createElement("path",$l({},Y(t.props),Z(t.props),{className:v,d:of(i,a,n,r,u),ref:function(e){t.node=e}})))}):o.a.createElement("path",$l({},Y(this.props),Z(this.props),{className:v,d:of(n,r,i,a,u)}))}}]),e}(),Vl.displayName="Rectangle",Vl.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Yl(t,e,n[e])})}return t}({},W,U,{className:u.a.string,x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number,radius:u.a.oneOfType([u.a.number,u.a.array]),isAnimationActive:u.a.bool,isUpdateAnimationActive:u.a.bool,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),Vl.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ql=Hl))||ql;function uf(t){return(uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cf(){return(cf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function sf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){lf(t,e,n[e])})}return t}function lf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ff(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pf(t,e){return!e||"object"!==uf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function hf(t){return(hf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function df(t,e){return(df=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var yf=z((rf=nf=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),pf(this,hf(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&df(t,e)}(e,i["Component"]),function(t,e,n){e&&ff(t.prototype,e),n&&ff(t,n)}(e,[{key:"getRect",value:function(t,e,n,r){var i=this.props,o=i.x1,a=i.x2,u=i.y1,c=i.y2,s=i.xAxis,l=i.yAxis,f=xl.create({x:s.scale,y:l.scale}),p={x:t?f.x.apply(o):f.x.rangeMin,y:n?f.y.apply(u):f.y.rangeMin},h={x:e?f.x.apply(a):f.x.rangeMax,y:r?f.y.apply(c):f.y.rangeMax};return!Yf(this.props,"discard")||f.isInRange(p)&&f.isInRange(h)?yl(p,h):null}},{key:"render",value:function(){var t=this.props,e=t.x1,n=t.x2,r=t.y1,i=t.y2,a=t.className,u=(t.alwaysShow,t.clipPathId),c=T(e),l=T(n),f=T(r),p=T(i);if(!(c||l||f||p))return null;var h=this.getRect(c,l,f,p);if(!h)return null;var d=this.props.shape,y=Yf(this.props,"hidden")?"url(#".concat(u,")"):void 0;return o.a.createElement(vt,{className:s()("recharts-reference-area",a)},this.constructor.renderRect(d,sf({clipPath:y},this.props,h)),kp.renderCallByParent(this.props,h))}}],[{key:"renderRect",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(af,cf({},e,{className:"recharts-reference-area-rect"}))}}]),e}(),nf.displayName="ReferenceArea",nf.propTypes=sf({},W,{viewBox:u.a.shape({x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number}),xAxis:u.a.object,yAxis:u.a.object,isFront:u.a.bool,alwaysShow:u.a.bool,ifOverflow:u.a.oneOf(["hidden","visible","discard","extendDomain"]),x1:u.a.oneOfType([u.a.number,u.a.string]),x2:u.a.oneOfType([u.a.number,u.a.string]),y1:u.a.oneOfType([u.a.number,u.a.string]),y2:u.a.oneOfType([u.a.number,u.a.string]),className:u.a.oneOfType([u.a.number,u.a.string]),yAxisId:u.a.oneOfType([u.a.string,u.a.number]),xAxisId:u.a.oneOfType([u.a.string,u.a.number]),shape:u.a.oneOfType([u.a.func,u.a.element])}),nf.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},ef=rf))||ef;function mf(t){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vf(){return(vf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function bf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function gf(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function xf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wf(t,e){return!e||"object"!==mf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Of(t){return(Of=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _f(t,e){return(_f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Af=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),wf(this,Of(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_f(t,e)}(e,i["Component"]),function(t,e,n){e&&xf(t.prototype,e),n&&xf(t,n)}(e,[{key:"renderErrorBars",value:function(){var t=this.props,e=t.offset,n=t.layout,r=t.width,i=t.dataKey,a=t.data,u=t.dataPointFormatter,c=t.xAxis,s=t.yAxis,l=gf(t,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=Y(l);return a.map(function(t,a){var l,p,h,d,y,m,v,b,g,x,w,O,_=u(t,i),A=_.x,k=_.y,E=_.value,S=_.errorVal;if(!S)return null;if(Array.isArray(S)){var j=bf(S,2);w=j[0],O=j[1]}else w=O=S;return"vertical"===n?(v=c.scale,p=k+e,h=v((l=E)-w),d=p+r,b={x1:y=v(l+O),y1:d,x2:y,y2:m=p-r},g={x1:h,y1:p,x2:y,y2:p},x={x1:h,y1:d,x2:h,y2:m}):"horizontal"===n&&(v=s.scale,h=(l=A+e)-r,y=l+r,d=v((p=E)-w),b={x1:h,y1:m=v(p+O),x2:y,y2:m},g={x1:l,y1:d,x2:l,y2:m},x={x1:h,y1:d,x2:y,y2:d}),o.a.createElement(vt,vf({className:"recharts-errorBar",key:"bar-".concat(a)},f),o.a.createElement("line",b),o.a.createElement("line",g),o.a.createElement("line",x))})}},{key:"render",value:function(){return o.a.createElement(vt,{className:"recharts-errorBars"},this.renderErrorBars())}}]),e}();Af.propTypes={dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]).isRequired,data:u.a.array,xAxis:u.a.object,yAxis:u.a.object,layout:u.a.string,dataPointFormatter:u.a.func,stroke:u.a.string,strokeWidth:u.a.number,width:u.a.number,offset:u.a.number},Af.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};var kf=Af;function Ef(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Sf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){jf(t,e,n[e])})}return t}function jf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tf=function(t,e,n){return f()(t)||f()(e)?n:T(e)?w()(t,e,n):v()(e)?e(t):n},Mf=function(t,e,n,r){var i=zi()(t,function(t){return Tf(t,e)});if("number"===n){var o=i.filter(function(t){return j(t)||parseFloat(t,10)});return[Math.min.apply(null,o),Math.max.apply(null,o)]}return(r?i.filter(function(t){return!f()(t)}):i).map(function(t){return T(t)?t:""})},Pf=function(t){var e;switch(t.type.displayName){case"Line":case"Area":case"Radar":e=t.props.stroke;break;default:e=t.props.fill}return e},Cf=function(t){var e,n=t.children,r=t.formatedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=K(n,ln);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce(function(t,e){var n=e.item,r=e.props,i=r.sectors||r.data||[];return t.concat(i.map(function(t){return{type:a.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}}))},[]):(r||[]).map(function(t){var e=t.item,n=e.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:Pf(e),value:i||r,payload:e.props}}),Sf({},a.props,ln.getWithHeight(a,i),{payload:e,item:a})):null},Nf=function(t,e,n,r){var i=e.props.children,o=X(i,kf).filter(function(t){var e=t.props.direction;return!(!f()(e)&&!f()(r))||r.indexOf(e)>=0});if(o&&o.length){var a=o.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var r=Tf(e,n,0),i=g()(r)?[Ri()(r),Ii()(r)]:[r,r],o=a.reduce(function(t,n){var r=Tf(e,n,0),o=i[0]-Math.abs(g()(r)?r[0]:r),a=i[1]+Math.abs(g()(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]},[1/0,-1/0])}return null},If=function(t,e,n,r){var i=e.map(function(e){var i=e.props.dataKey;return"number"===n&&i&&Nf(t,e,i)||Mf(t,i,n,r)});if("number"===n)return i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var o={};return i.reduce(function(t,e){for(var n=0,r=e.length;n<r;n++)o[e[n]]||(o[e[n]]=!0,t.push(e[n]));return t},[])},Df=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Rf=function(t,e,n){var r,i,o=t.map(function(t){return t.coordinate===e&&(r=!0),t.coordinate===n&&(i=!0),t.coordinate});return r||o.push(e),i||o.push(n),o},Lf=function(t,e,n){if(!t)return null;var r=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,u=(e||n)&&"category"===o&&r.bandwidth?r.bandwidth()/2:0;return u="angleAxis"===t.axisType?2*E(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map(function(t){var e=i?i.indexOf(t):t;return{coordinate:r(e)+u,value:t,offset:u}}):t.isCategorial&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:r(t),value:t,index:e,offset:u}}):r.ticks&&!n?r.ticks(t.tickCount).map(function(t){return{coordinate:r(t)+u,value:t,offset:u}}):r.domain().map(function(t,e){return{coordinate:r(t)+u,value:i?i[t]:t,index:e,offset:u}})},zf=function(t,e,n){var r;return v()(n)?r=n:v()(e)&&(r=e),v()(t)||r?function(e,n,i,o){v()(t)&&t(e,n,i,o),v()(r)&&r(e,n,i,o)}:null},Bf=function(t,e){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:po(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:fu(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0)?{scale:ho(),realScaleType:"point"}:"category"===i?{scale:po(),realScaleType:"band"}:{scale:fu(),realScaleType:"linear"};if(h()(n)){var u="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[u]||ho)(),realScaleType:r[u]?u:"point"}}return v()(n)?{scale:n}:{scale:ho(),realScaleType:"point"}},Ff=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=t(e[0]),u=t(e[n-1]);(a<i||a>o||u<i||u>o)&&t.domain([e[0],e[n-1]])}},Wf=function(t,e){if(!t)return null;for(var n=0,r=t.length;n<r;n++)if(t[n].item===e)return t[n].position;return null},Uf=function(t,e){if(!e||2!==e.length||!j(e[0])||!j(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!j(t[0])||t[0]<n)&&(i[0]=n),(!j(t[1])||t[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Gf={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0,a=0;a<e;++a){var u=_()(t[a][n][1])?t[a][n][0]:t[a][n][1];u>=0?(t[a][n][0]=i,t[a][n][1]=i+u,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+u,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}Ae(t,e)}},none:Ae,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<n;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}Ae(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var u=0,c=0,s=0;u<i;++u){for(var l=t[e[u]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,h=0;h<u;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}c+=f,s+=p*f}n[a-1][1]+=n[a-1][0]=o,c&&(o-=s/c)}n[a-1][1]+=n[a-1][0]=o,Ae(t,e)}}},qf=function(t,e,n){var r=e.map(function(t){return t.props.dataKey});return function(){var t=At([]),e=ke,n=Ae,r=Ee;function i(i){var o,a,u=t.apply(this,arguments),c=i.length,s=u.length,l=new Array(s);for(o=0;o<s;++o){for(var f,p=u[o],h=l[o]=new Array(c),d=0;d<c;++d)h[d]=f=[0,+r(i[d],p,d,i)],f.data=i[d];h.key=p}for(o=0,a=e(l);o<s;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:At(Rt.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:At(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?ke:"function"==typeof t?t:At(Rt.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Ae:t,i):n},i}().keys(r).value(function(t,e){return+Tf(t,e,0)}).order(ke).offset(Gf[n])(t)},Vf=function(t,e){var n=e.realScaleType,r=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,u=n||e.scale;if("auto"!==u&&"linear"!==u)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var c=t.domain(),s=Object(Bi.getNiceTickValues)(c,i,a);return t.domain(function(t,e){return"number"===e?[Math.min.apply(null,t),Math.max.apply(null,t)]:t}(s,r)),{niceTicks:s}}if(i&&"number"===r){var l=t.domain();return{niceTicks:Object(Bi.getTickValuesFixedDomain)(l,i,a)}}return null},Hf=function(t){var e=t.axis,n=t.ticks,r=t.bandSize,i=t.entry,o=t.index;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!f()(i[e.dataKey])){var a=D(n,"value",i[e.dataKey]);if(a)return a.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=Tf(i,e.dataKey);return f()(u)?null:e.scale(u)},Xf=function(t){var e=t.axis,n=t.ticks,r=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return n[a]?n[a].coordinate+r:null;var u=Tf(o,e.dataKey,e.domain[a]);return f()(u)?null:e.scale(u)-i/2+r},Kf=function(t){var e=t.numericAxis,n=e.scale.domain();if("number"===e.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},Yf=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},$f=function(t,e,n,r,i){var o=X(t,Xl),a=X(t,Cl),u=o.concat(a),c=X(t,yf),s="".concat(r,"Id"),l=r[0],f=e;if(u.length&&(f=u.reduce(function(t,e){if(e.props[s]===n&&Yf(e.props,"extendDomain")&&j(e.props[l])){var r=e.props[l];return[Math.min(t[0],r),Math.max(t[1],r)]}return t},f)),c.length){var p="".concat(l,"1"),h="".concat(l,"2");f=c.reduce(function(t,e){if(e.props[s]===n&&Yf(e.props,"extendDomain")&&j(e.props[p])&&j(e.props[h])){var r=e.props[p],i=e.props[h];return[Math.min(t[0],r,i),Math.max(t[1],r,i)]}return t},f)}return i&&i.length&&(f=i.reduce(function(t,e){return j(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},f)),f},Zf=function(t,e,n){return Object.keys(t).reduce(function(r,i){var o=t[i].stackedData.reduce(function(t,r){var i=function(t){return t.reduce(function(t,e){return[Math.min.apply(null,e.concat([t[0]]).filter(j)),Math.max.apply(null,e.concat([t[1]]).filter(j))]},[1/0,-1/0])}(r.slice(e,n+1));return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},Jf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Qf=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tp=function(t,e,n){if(!g()(t))return e;var r=[];if(j(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(Jf.test(t[0])){var i=+Jf.exec(t[0])[1];r[0]=e[0]-i}else v()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(j(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(Qf.test(t[1])){var o=+Qf.exec(t[1])[1];r[1]=e[1]+o}else v()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},ep=function(t,e){if(t&&t.scale&&t.scale.bandwidth)return t.scale.bandwidth();if(t&&e&&e.length>=2){for(var n=Ci()(e,function(t){return t.coordinate}),r=1/0,i=1,o=n.length;i<o;i++){var a=n[i],u=n[i-1];r=Math.min((a.coordinate||0)-(u.coordinate||0),r)}return r===1/0?0:r}return 0},np=function(t,e,n){return t&&t.length?pn()(t,w()(n,"type.defaultProps.domain"))?e:t:e};function rp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){ip(t,e,n[e])})}return t}function ip(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function op(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ap=Math.PI/180,up=function(t,e,n,r){return{x:t+Math.cos(-ap*r)*n,y:e+Math.sin(-ap*r)*n}},cp=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(e-(n.top||0)-(n.bottom||0)))/2},sp=function(t,e,n,r,i){var o=t.width,a=t.height,u=t.startAngle,c=t.endAngle,s=C(t.cx,o,o/2),l=C(t.cy,a,a/2),p=cp(o,a,n),h=C(t.innerRadius,p,0),d=C(t.outerRadius,p,.8*p);return Object.keys(e).reduce(function(t,n){var o,a=e[n],p=a.domain,y=a.reversed;if(f()(a.range))"angleAxis"===r?o=[u,c]:"radiusAxis"===r&&(o=[h,d]),y&&(o=[o[1],o[0]]);else{var m=op(o=a.range,2);u=m[0],c=m[1]}var v=Bf(a,i),b=v.realScaleType,g=v.scale;return g.domain(p).range(o),Ff(g),rp({},t,ip({},n,rp({},a,Vf(g,rp({},a,{realScaleType:b})),{range:o,radius:d,realScaleType:b,scale:g,cx:s,cy:l,innerRadius:h,outerRadius:d,startAngle:u,endAngle:c})))},{})},lp=function(t,e){var n=t.x,r=t.y,i=e.cx,o=e.cy,a=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var u=(n-i)/a,c=Math.acos(u);return r>o&&(c=2*Math.PI-c),{radius:a,angle:function(t){return 180*t/Math.PI}(c),angleInRadian:c}},fp=function(t,e){var n=t.x,r=t.y,i=lp({x:n,y:r},e),o=i.radius,a=i.angle,u=e.innerRadius,c=e.outerRadius;if(o<u||o>c)return!1;if(0===o)return!0;var s,l=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}}(e),f=l.startAngle,p=l.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;s=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;s=h>=p&&h<=f}return s?rp({},e,{radius:o,angle:function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)}(h,e)}):null};function pp(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function hp(){return(hp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function dp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yp=u.a.shape({x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number}),mp=u.a.shape({cx:u.a.number,cy:u.a.number,innerRadius:u.a.number,outerRadius:u.a.number,startAngle:u.a.number,endAngle:u.a.number}),vp=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){dp(t,e,n[e])})}return t}({},W,{viewBox:u.a.oneOfType([yp,mp]),formatter:u.a.func,value:u.a.oneOfType([u.a.number,u.a.string]),offset:u.a.number,position:u.a.oneOf(["top","left","right","bottom","inside","outside","insideLeft","insideRight","insideTop","insideBottom","insideTopLeft","insideBottomLeft","insideTopRight","insideBottomRight","insideStart","insideEnd","end","center","centerTop","centerBottom"]),children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),className:u.a.string,content:u.a.oneOfType([u.a.element,u.a.func])}),bp=function(t){var e=t.value,n=t.formatter,r=f()(t.children)?e:t.children;return v()(n)?n(r):r},gp=function(t,e,n){var r,i,a=t.position,u=t.viewBox,c=t.offset,l=t.className,p=u.cx,h=u.cy,d=u.innerRadius,y=u.outerRadius,m=u.startAngle,v=u.endAngle,b=u.clockWise,g=(d+y)/2,x=function(t,e){return E(e-t)*Math.min(Math.abs(e-t),360)}(m,v),w=x>=0?1:-1;"insideStart"===a?(r=m+w*c,i=b):"insideEnd"===a?(r=v-w*c,i=!b):"end"===a&&(r=v+w*c,i=b),i=x<=0?i:!i;var O=up(p,h,g,r),_=up(p,h,g,r+359*(i?1:-1)),A="M".concat(O.x,",").concat(O.y,"\n    A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n    ").concat(_.x,",").concat(_.y),k=f()(t.id)?P("recharts-radial-line-"):t.id;return o.a.createElement("text",hp({},n,{dominantBaseline:"central",className:s()("recharts-radial-bar-label",l)}),o.a.createElement("defs",null,o.a.createElement("path",{id:k,d:A})),o.a.createElement("textPath",{xlinkHref:"#".concat(k)},e))},xp=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.cx,o=e.cy,a=e.innerRadius,u=e.outerRadius,c=(e.startAngle+e.endAngle)/2;if("outside"===r){var s=up(i,o,u+n,c),l=s.x;return{x:l,y:s.y,textAnchor:l>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=up(i,o,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},wp=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.x,o=e.y,a=e.width,u=e.height,c=u>=0?1:-1;return"top"===r?{x:i+a/2,y:o-c*n,textAnchor:"middle",verticalAnchor:c>0?"end":"start"}:"bottom"===r?{x:i+a/2,y:o+u+c*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:i-n,y:o+u/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:i+a+n,y:o+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:i+n,y:o+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:i+a-n,y:o+u/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:i+a/2,y:o+c*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:i+a/2,y:o+u-c*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:i+n,y:o+c*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:i+a-n,y:o+c*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:i+n,y:o+u-c*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:i+a-n,y:o+u-c*n,textAnchor:"end",verticalAnchor:"end"}:y()(r)&&(j(r.x)||S(r.x))&&(j(r.y)||S(r.y))?{x:i+C(r.x,a),y:o+C(r.y,u),textAnchor:"end",verticalAnchor:"end"}:{x:i+a/2,y:o+u/2,textAnchor:"middle",verticalAnchor:"middle"}},Op=function(t){return j(t.cx)};function _p(t){var e,n=t.viewBox,r=t.position,a=t.value,u=t.children,c=t.content,l=t.className,p=void 0===l?"":l;if(!n||f()(a)&&f()(u)&&!Object(i.isValidElement)(c)&&!v()(c))return null;if(Object(i.isValidElement)(c))return Object(i.cloneElement)(c,t);if(v()(c)){if(e=c(t),Object(i.isValidElement)(e))return e}else e=bp(t);var h=Op(n),d=Y(t);if(h&&("insideStart"===r||"insideEnd"===r||"end"===r))return gp(t,e,d);var y=h?xp(t):wp(t);return o.a.createElement(Mi,hp({className:s()("recharts-label",p)},d,y),e)}_p.displayName="Label",_p.defaultProps={offset:5},_p.propTypes=vp;var Ap=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,s=t.outerRadius,l=t.x,f=t.y,p=t.top,h=t.left,d=t.width,y=t.height,m=t.clockWise;if(j(d)&&j(y)){if(j(l)&&j(f))return{x:l,y:f,width:d,height:y};if(j(p)&&j(h))return{x:p,y:h,width:d,height:y}}return j(l)&&j(f)?{x:l,y:f,width:0,height:0}:j(e)&&j(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:s||u||a||0,clockWise:m}:t.viewBox?t.viewBox:{}};_p.parseViewBox=Ap,_p.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,a=Ap(t),u=X(r,_p).map(function(t,n){return Object(i.cloneElement)(t,{viewBox:e||a,key:"label-".concat(n)})});return n?[function(t,e){return t?!0===t?o.a.createElement(_p,{key:"label-implicit",viewBox:e}):T(t)?o.a.createElement(_p,{key:"label-implicit",viewBox:e,value:t}):Object(i.isValidElement)(t)||v()(t)?o.a.createElement(_p,{key:"label-implicit",content:t,viewBox:e}):y()(t)?o.a.createElement(_p,hp({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||a)].concat(pp(u)):u};var kp=_p,Ep=n(67),Sp=n.n(Ep);function jp(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Tp(){return(Tp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Mp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pp(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var Cp={id:u.a.string,data:u.a.arrayOf(u.a.object),valueAccessor:u.a.func,clockWise:u.a.bool,dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func])},Np={valueAccessor:function(t){return g()(t.value)?Sp()(t.value):t.value}};function Ip(t){var e=t.data,n=t.valueAccessor,r=t.dataKey,i=t.clockWise,a=t.id,u=Pp(t,["data","valueAccessor","dataKey","clockWise","id"]);return e&&e.length?o.a.createElement(vt,{className:"recharts-label-list"},e.map(function(t,e){var c=f()(r)?n(t,e):Tf(t&&t.payload,r),s=f()(a)?{}:{id:"".concat(a,"-").concat(e)};return o.a.createElement(kp,Tp({},Y(t),u,s,{index:e,value:c,viewBox:kp.parseViewBox(f()(i)?t:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Mp(t,e,n[e])})}return t}({},t,{clockWise:i})),key:"label-".concat(e)}))})):null}Ip.propTypes=Cp,Ip.displayName="LabelList";Ip.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,a=X(r,Ip).map(function(t,n){return Object(i.cloneElement)(t,{data:e,key:"labelList-".concat(n)})});return n?[function(t,e){return t?!0===t?o.a.createElement(Ip,{key:"labelList-implicit",data:e}):o.a.isValidElement(t)||v()(t)?o.a.createElement(Ip,{key:"labelList-implicit",data:e,content:t}):y()(t)?o.a.createElement(Ip,Tp({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(jp(a)):a},Ip.defaultProps=Np;var Dp,Rp,Lp,zp=Ip;function Bp(t){return(Bp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wp(){return(Wp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Up(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gp(t,e){return!e||"object"!==Bp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qp(t){return(qp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vp(t,e){return(Vp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Hp,Xp,Kp,Yp=function(t){var e=t.cx,n=t.cy,r=t.radius,i=t.angle,o=t.sign,a=t.isExternal,u=t.cornerRadius,c=u*(a?1:-1)+r,s=Math.asin(u/c)/ap,l=i+o*s;return{center:up(e,n,c,l),circleTangency:up(e,n,r,l),lineTangency:up(e,n,c*Math.cos(s*ap),i),theta:s}},$p=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return E(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),u=o+a,c=up(e,n,i,o),s=up(e,n,i,u),l="M ".concat(c.x,",").concat(c.y,"\n    A ").concat(i,",").concat(i,",0,\n    ").concat(+(Math.abs(a)>180),",").concat(+(o>u),",\n    ").concat(s.x,",").concat(s.y,"\n  ");if(r>0){var f=up(e,n,r,o),p=up(e,n,r,u);l+="L ".concat(p.x,",").concat(p.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(a)>180),",").concat(+(o<=u),",\n            ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(e,",").concat(n," Z");return l},Zp=z((Lp=Rp=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Gp(this,qp(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vp(t,e)}(e,i["Component"]),function(t,e,n){e&&Up(t.prototype,e),n&&Up(t,n)}(e,[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,u=t.startAngle,c=t.endAngle,l=t.className;if(i<r||u===c)return null;var f,p=s()("recharts-sector",l),h=i-r,d=C(a,h,0,!0);return f=d>0&&Math.abs(u-c)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,u=t.endAngle,c=E(u-a),s=Yp({cx:e,cy:n,radius:i,angle:a,sign:c,cornerRadius:o}),l=s.circleTangency,f=s.lineTangency,p=s.theta,h=Yp({cx:e,cy:n,radius:i,angle:u,sign:-c,cornerRadius:o}),d=h.circleTangency,y=h.lineTangency,m=h.theta,v=Math.abs(a-u)-p-m;if(v<0)return $p({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:u});var b="M ".concat(f.x,",").concat(f.y,"\n    A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(l.x,",").concat(l.y,"\n    A").concat(i,",").concat(i,",0,").concat(+(v>180),",").concat(+(c<0),",").concat(d.x,",").concat(d.y,"\n    A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(y.x,",").concat(y.y,"\n  ");if(r>0){var g=Yp({cx:e,cy:n,radius:r,angle:a,sign:c,isExternal:!0,cornerRadius:o}),x=g.circleTangency,w=g.lineTangency,O=g.theta,_=Yp({cx:e,cy:n,radius:r,angle:u,sign:-c,isExternal:!0,cornerRadius:o}),A=_.circleTangency,k=_.lineTangency,S=_.theta,j=Math.abs(a-u)-O-S;if(j<0)return"".concat(b,"L").concat(e,",").concat(n,"Z");b+="L".concat(k.x,",").concat(k.y,"\n      A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(A.x,",").concat(A.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(c>0),",").concat(x.x,",").concat(x.y,"\n      A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(w.x,",").concat(w.y,"Z")}else b+="L".concat(e,",").concat(n,"Z");return b}({cx:e,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(d,h/2),startAngle:u,endAngle:c}):$p({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:c}),o.a.createElement("path",Wp({},Y(this.props),Z(this.props),{className:p,d:f}))}}]),e}(),Rp.displayName="Sector",Rp.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Fp(t,e,n[e])})}return t}({},W,{className:u.a.string,cx:u.a.number,cy:u.a.number,innerRadius:u.a.number,outerRadius:u.a.number,startAngle:u.a.number,endAngle:u.a.number,cornerRadius:u.a.oneOfType([u.a.number,u.a.string])}),Rp.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0},Dp=Lp))||Dp;function Jp(t){return(Jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qp(){return(Qp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function th(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){eh(t,e,n[e])})}return t}function eh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rh(t,e){return!e||"object"!==Jp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ih(t){return(ih=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function oh(t,e){return(oh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ah,uh,ch,sh={curveBasisClosed:function(t){return new ne(t)},curveBasisOpen:function(t){return new re(t)},curveBasis:function(t){return new ee(t)},curveLinearClosed:function(t){return new he(t)},curveLinear:Tt,curveMonotoneX:function(t){return new be(t)},curveMonotoneY:function(t){return new ge(t)},curveNatural:function(t){return new we(t)},curveStep:function(t){return new _e(t,.5)},curveStepAfter:function(t){return new _e(t,1)},curveStepBefore:function(t){return new _e(t,0)}},lh=function(t){return t.x===+t.x&&t.y===+t.y},fh=function(t){return t.x},ph=function(t){return t.y},hh=z((Kp=Xp=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),rh(this,ih(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oh(t,e)}(e,i["Component"]),function(t,e,n){e&&nh(t.prototype,e),n&&nh(t,n)}(e,[{key:"getPath",value:function(){var t,e=this.props,n=e.type,r=e.points,i=e.baseLine,o=e.layout,a=e.connectNulls,u=function(t,e){if(v()(t))return t;var n="curve".concat(t.slice(0,1).toUpperCase()).concat(t.slice(1));return"curveMonotone"===n&&e?sh["".concat(n).concat("vertical"===e?"Y":"X")]:sh[n]||Tt}(n,o),c=a?r.filter(function(t){return lh(t)}):r;if(g()(i)){var s=a?i.filter(function(t){return lh(t)}):i,l=c.map(function(t,e){return th({},t,{base:s[e]})});return(t="vertical"===o?Nt().y(ph).x1(fh).x0(function(t){return t.base.x}):Nt().x(fh).y1(ph).y0(function(t){return t.base.y})).defined(lh).curve(u),t(l)}return(t="vertical"===o&&j(i)?Nt().y(ph).x1(fh).x0(i):j(i)?Nt().x(fh).y1(ph).y0(i):Ct().x(fh).y(ph)).defined(lh).curve(u),t(c)}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.points,r=t.path,i=t.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return o.a.createElement("path",Qp({},Y(this.props),Z(this.props,null,!0),{className:s()("recharts-curve",e),d:a,ref:i}))}}]),e}(),Xp.displayName="Curve",Xp.propTypes=th({},W,{className:u.a.string,type:u.a.oneOfType([u.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),u.a.func]),layout:u.a.oneOf(["horizontal","vertical"]),baseLine:u.a.oneOfType([u.a.number,u.a.array]),points:u.a.arrayOf(u.a.object),connectNulls:u.a.bool,path:u.a.string,pathRef:u.a.func}),Xp.defaultProps={type:"linear",points:[],connectNulls:!1},Hp=Kp))||Hp;function dh(t){return(dh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mh(){return(mh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function vh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bh(t,e){return!e||"object"!==dh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gh(t){return(gh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xh(t,e){return(xh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var wh,Oh,_h,Ah=z((ch=uh=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),bh(this,gh(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xh(t,e)}(e,i["Component"]),function(t,e,n){e&&vh(t.prototype,e),n&&vh(t,n)}(e,[{key:"render",value:function(){var t=this.props,e=t.points,n=t.className;if(!e||!e.length)return null;var r=s()("recharts-polygon",n);return o.a.createElement("polygon",mh({},Y(this.props),Z(this.props),{className:r,points:function(t){return t.reduce(function(t,e){return e.x===+e.x&&e.y===+e.y&&t.push([e.x,e.y]),t},[]).join(" ")}(e)}))}}]),e}(),uh.displayName="Polygon",uh.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){yh(t,e,n[e])})}return t}({},W,{className:u.a.string,points:u.a.arrayOf(u.a.shape({x:u.a.number,y:u.a.number}))}),ah=ch))||ah;function kh(t){return(kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Eh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sh(){return(Sh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function jh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Th(t,e){return!e||"object"!==kh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mh(t){return(Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ph(t,e){return(Ph=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ch,Nh,Ih,Dh=z((_h=Oh=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Th(this,Mh(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ph(t,e)}(e,i["Component"]),function(t,e,n){e&&jh(t.prototype,e),n&&jh(t,n)}(e,[{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.top,u=t.left,c=t.className;return j(e)&&j(n)&&j(r)&&j(i)&&j(a)&&j(u)?o.a.createElement("path",Sh({},Y(this.props),{className:s()("recharts-cross",c),d:this.constructor.getPath(e,n,r,i,a,u)})):null}}],[{key:"getPath",value:function(t,e,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(e,"h").concat(n)}}]),e}(),Oh.displayName="Cross",Oh.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Eh(t,e,n[e])})}return t}({},W,{x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number,top:u.a.number,left:u.a.number,className:u.a.string}),Oh.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0},wh=_h))||wh;function Rh(t){return(Rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lh(){return(Lh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function zh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Bh(t,e,n[e])})}return t}function Bh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wh(t,e){return!e||"object"!==Rh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Uh(t){return(Uh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Gh(t,e){return(Gh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var qh,Vh,Hh,Xh=z((Ih=Nh=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Wh(this,Uh(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gh(t,e)}(e,i["Component"]),function(t,e,n){e&&Fh(t.prototype,e),n&&Fh(t,n)}(e,[{key:"getPolygonPath",value:function(t){var e=this.props,n=e.cx,r=e.cy,i="";return e.polarAngles.forEach(function(e,o){var a=up(n,r,t,e);i+=o?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)}),i+="Z"}},{key:"renderPolarAngles",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,a=t.polarAngles;if(!a||!a.length)return null;var u=zh({stroke:"#ccc"},Y(this.props));return o.a.createElement("g",{className:"recharts-polar-grid-angle"},a.map(function(t,a){var c=up(e,n,r,t),s=up(e,n,i,t);return o.a.createElement("line",Lh({},u,{key:"line-".concat(a),x1:c.x,y1:c.y,x2:s.x,y2:s.y}))}))}},{key:"renderConcentricCircle",value:function(t,e,n){var r=this.props,i=r.cx,a=r.cy,u=zh({stroke:"#ccc"},Y(this.props),{fill:"none"},n);return o.a.createElement("circle",Lh({},u,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(e),cx:i,cy:a,r:t}))}},{key:"renderConcentricPolygon",value:function(t,e,n){var r=zh({stroke:"#ccc"},Y(this.props),{fill:"none"},n);return o.a.createElement("path",Lh({},r,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(e),d:this.getPolygonPath(t)}))}},{key:"renderConcentricPath",value:function(){var t=this,e=this.props,n=e.polarRadius,r=e.gridType;return n&&n.length?o.a.createElement("g",{className:"recharts-polar-grid-concentric"},n.map(function(e,n){return"circle"===r?t.renderConcentricCircle(e,n):t.renderConcentricPolygon(e,n)})):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:o.a.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}]),e}(),Nh.displayName="PolarGrid",Nh.propTypes=zh({},W,{cx:u.a.number,cy:u.a.number,innerRadius:u.a.number,outerRadius:u.a.number,polarAngles:u.a.arrayOf(u.a.number),polarRadius:u.a.arrayOf(u.a.number),gridType:u.a.oneOf(["polygon","circle"])}),Nh.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon"},Ch=Ih))||Ch,Kh=n(115),Yh=n.n(Kh),$h=n(44),Zh=n.n($h);function Jh(t){return(Jh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qh(){return(Qh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function td(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){ed(t,e,n[e])})}return t}function ed(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nd(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function rd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function id(t,e){return!e||"object"!==Jh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function od(t){return(od=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ad(t,e){return(ad=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ud,cd,sd,ld=z((Hh=Vh=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),id(this,od(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ad(t,e)}(e,i["Component"]),function(t,e,n){e&&rd(t.prototype,e),n&&rd(t,n)}(e,[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return up(i,o,e,r)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.angle,i=t.ticks,o=Zh()(i,function(t){return t.coordinate||0});return{cx:e,cy:n,startAngle:r,endAngle:r,innerRadius:Yh()(i,function(t){return t.coordinate||0}).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.angle,i=t.ticks,a=t.axisLine,u=nd(t,["cx","cy","angle","ticks","axisLine"]),c=i.reduce(function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]},[1/0,-1/0]),s=up(e,n,c[0],r),l=up(e,n,c[1],r),f=td({},Y(u),{fill:"none"},Y(a),{x1:s.x,y1:s.y,x2:l.x,y2:l.y});return o.a.createElement("line",Qh({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,e=this.props,n=e.ticks,r=e.tick,i=e.angle,a=e.tickFormatter,u=e.stroke,c=nd(e,["ticks","tick","angle","tickFormatter","stroke"]),s=this.getTickTextAnchor(),l=Y(c),f=Y(r),p=n.map(function(e,n){var c=t.getTickValueCoord(e),p=td({textAnchor:s,transform:"rotate(".concat(90-i,", ").concat(c.x,", ").concat(c.y,")")},l,{stroke:"none",fill:u},f,{index:n},c,{payload:e});return o.a.createElement(vt,Qh({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},Q(t.props,e,n)),t.constructor.renderTickItem(r,p,a?a(e.value):e.value))});return o.a.createElement(vt,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.axisLine,r=t.tick;return e&&e.length?o.a.createElement(vt,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),kp.renderCallByParent(this.props,this.getViewBox())):null}}],[{key:"renderTickItem",value:function(t,e,n){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(Mi,Qh({},e,{className:"recharts-polar-radius-axis-tick-value"}),n)}}]),e}(),Vh.displayName="PolarRadiusAxis",Vh.axisType="radiusAxis",Vh.propTypes=td({},W,U,{type:u.a.oneOf(["number","category"]),cx:u.a.number,cy:u.a.number,hide:u.a.bool,radiusAxisId:u.a.oneOfType([u.a.string,u.a.number]),angle:u.a.number,tickCount:u.a.number,ticks:u.a.arrayOf(u.a.shape({value:u.a.any,coordinate:u.a.number})),orientation:u.a.oneOf(["left","right","middle"]),axisLine:u.a.oneOfType([u.a.bool,u.a.object]),tick:u.a.oneOfType([u.a.bool,u.a.object,u.a.element,u.a.func]),stroke:u.a.string,tickFormatter:u.a.func,domain:u.a.arrayOf(u.a.oneOfType([u.a.number,u.a.oneOf(["auto","dataMin","dataMax"])])),scale:u.a.oneOfType([u.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),u.a.func]),allowDataOverflow:u.a.bool,allowDuplicatedCategory:u.a.bool}),Vh.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0},qh=Hh))||qh;function fd(t){return(fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pd(){return(pd=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function hd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){dd(t,e,n[e])})}return t}function dd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function md(t,e){return!e||"object"!==fd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vd(t){return(vd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function bd(t,e){return(bd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var gd,xd,wd,Od=Math.PI/180,_d=z((sd=cd=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),md(this,vd(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bd(t,e)}(e,i["Component"]),function(t,e,n){e&&yd(t.prototype,e),n&&yd(t,n)}(e,[{key:"getTickLineCoord",value:function(t){var e=this.props,n=e.cx,r=e.cy,i=e.radius,o=e.orientation,a=e.tickLine,u=a&&a.size||8,c=up(n,r,i,t.coordinate),s=up(n,r,i+("inner"===o?-1:1)*u,t.coordinate);return{x1:c.x,y1:c.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,n=Math.cos(-t.coordinate*Od);return n>1e-5?"outer"===e?"start":"end":n<-1e-5?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.radius,i=t.axisLine,a=t.axisLineType,u=hd({},Y(this.props),{fill:"none"},Y(i));if("circle"===a)return o.a.createElement(il,pd({className:"recharts-polar-angle-axis-line"},u,{cx:e,cy:n,r:r}));var c=this.props.ticks.map(function(t){return up(e,n,r,t.coordinate)});return o.a.createElement(Ah,pd({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var t=this,e=this.props,n=e.ticks,r=e.tick,i=e.tickLine,a=e.tickFormatter,u=e.stroke,c=Y(this.props),s=Y(r),l=hd({},c,{fill:"none"},Y(i)),f=n.map(function(e,n){var f=t.getTickLineCoord(e),p=hd({textAnchor:t.getTickTextAnchor(e)},c,{stroke:"none",fill:u},s,{index:n,payload:e,x:f.x2,y:f.y2});return o.a.createElement(vt,pd({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},Q(t.props,e,n)),i&&o.a.createElement("line",pd({className:"recharts-polar-angle-axis-tick-line"},l,f)),r&&t.constructor.renderTickItem(r,p,a?a(e.value):e.value))});return o.a.createElement(vt,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.radius,r=t.axisLine;return n<=0||!e||!e.length?null:o.a.createElement(vt,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(t,e,n){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(Mi,pd({},e,{className:"recharts-polar-angle-axis-tick-value"}),n)}}]),e}(),cd.displayName="PolarAngleAxis",cd.axisType="angleAxis",cd.propTypes=hd({},W,U,{type:u.a.oneOf(["number","category"]),angleAxisId:u.a.oneOfType([u.a.string,u.a.number]),dataKey:u.a.oneOfType([u.a.number,u.a.string,u.a.func]),cx:u.a.number,cy:u.a.number,radius:u.a.oneOfType([u.a.number,u.a.string]),hide:u.a.bool,scale:u.a.oneOfType([u.a.oneOf(q),u.a.func]),axisLine:u.a.oneOfType([u.a.bool,u.a.object]),axisLineType:u.a.oneOf(["polygon","circle"]),tickLine:u.a.oneOfType([u.a.bool,u.a.object]),tick:u.a.oneOfType([u.a.bool,u.a.func,u.a.object,u.a.element]),ticks:u.a.arrayOf(u.a.shape({value:u.a.any,coordinate:u.a.number})),stroke:u.a.string,orientation:u.a.oneOf(["inner","outer"]),tickFormatter:u.a.func,allowDuplicatedCategory:u.a.bool}),cd.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1,allowDuplicatedCategory:!0},ud=sd))||ud;function Ad(t){return(Ad="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kd(){return(kd=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ed(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Sd(t,e,n[e])})}return t}function Sd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Td(t,e){return!e||"object"!==Ad(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Md(t){return(Md=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Pd(t,e){return(Pd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Cd,Nd,Id,Dd=z((wd=xd=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=Td(this,(t=Md(e)).call.apply(t,[this].concat(i)))).state={isAnimationFinished:!1},n.id=P("recharts-pie-"),n.cachePrevData=function(t){n.setState({prevSectors:t})},n.handleAnimationEnd=function(){var t=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),v()(t)&&t()},n.handleAnimationStart=function(){var t=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),v()(t)&&t()},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pd(t,e)}(e,i["Component"]),function(t,e,n){e&&jd(t.prototype,e),n&&jd(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.sectors;t.isAnimationActive!==this.props.isAnimationActive?this.cachePrevData([]):t.animationId!==n&&this.cachePrevData(r)}},{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"renderLabels",value:function(t){var e=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,a=n.dataKey,u=n.valueKey,c=Y(this.props),s=Y(r),l=Y(i),p=r&&r.offsetRadius||20,h=t.map(function(t,n){var h=(t.startAngle+t.endAngle)/2,d=up(t.cx,t.cy,t.outerRadius+p,h),y=Ed({},c,t,{stroke:"none"},s,{index:n,textAnchor:e.constructor.getTextAnchor(d.x,t.cx)},d),m=Ed({},c,t,{fill:"none",stroke:t.fill},l,{index:n,points:[up(t.cx,t.cy,t.outerRadius,h),d]}),v=a;return f()(a)&&f()(u)?v="value":f()(a)&&(v=u),o.a.createElement(vt,{key:"label-".concat(n)},i&&e.constructor.renderLabelLineItem(i,m),e.constructor.renderLabelItem(r,y,Tf(t,v)))});return o.a.createElement(vt,{className:"recharts-pie-labels"},h)}},{key:"renderSectorsStatically",value:function(t){var e=this,n=this.props,r=n.activeShape,i=n.blendStroke;return t.map(function(t,n){var a=e.isActiveIndex(n)?r:null,u=Ed({},t,{stroke:i?t.fill:t.stroke});return o.a.createElement(vt,kd({className:"recharts-pie-sector"},Q(e.props,t,n),{key:"sector-".concat(n)}),e.constructor.renderSectorItem(a,u))})}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,n=e.sectors,r=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,s=this.state.prevSectors;return o.a.createElement(Sr,{begin:i,duration:a,isActive:r,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(e){var r=e.t,i=[],a=(n&&n[0]).startAngle;return n.forEach(function(t,e){var n=s&&s[e],o=e>0?t.paddingAngle:0;if(n){var u=I(n.endAngle-n.startAngle,t.endAngle-t.startAngle),c=Ed({},t,{startAngle:a+o,endAngle:a+u(r)+o});i.push(c),a=c.endAngle}else{var l=t.endAngle,f=t.startAngle,p=I(0,l-f)(r),h=Ed({},t,{startAngle:a+o,endAngle:a+p+o});i.push(h),a=h.endAngle}}),o.a.createElement(vt,null,t.renderSectorsStatically(i))})}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,n=t.isAnimationActive,r=this.state.prevSectors;return!(n&&e&&e.length)||r&&pn()(r,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.sectors,r=t.className,i=t.label,a=t.cx,u=t.cy,c=t.innerRadius,l=t.outerRadius,p=t.isAnimationActive,h=t.prevSectors,d=t.id;if(e||!n||!n.length||!j(a)||!j(u)||!j(c)||!j(l))return null;var y=s()("recharts-pie",r);return o.a.createElement(vt,{className:y},o.a.createElement("g",{clipPath:"url(#".concat(f()(d)?this.id:d,")")},this.renderSectors()),i&&this.renderLabels(n),kp.renderCallByParent(this.props,null,!1),(!p||h&&pn()(h,n))&&zp.renderCallByParent(this.props,n,!1))}}],[{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(hh,kd({},e,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(t,e,n){if(o.a.isValidElement(t))return o.a.cloneElement(t,e);var r=n;return v()(t)&&(r=t(e),o.a.isValidElement(r))?r:o.a.createElement(Mi,kd({},e,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):xn()(t)?o.a.createElement(Zp,kd({},e,t)):o.a.createElement(Zp,e)}}]),e}(),xd.displayName="Pie",xd.propTypes=Ed({},W,U,{className:u.a.string,animationId:u.a.number,cx:u.a.oneOfType([u.a.number,u.a.string]),cy:u.a.oneOfType([u.a.number,u.a.string]),startAngle:u.a.number,endAngle:u.a.number,paddingAngle:u.a.number,innerRadius:u.a.oneOfType([u.a.number,u.a.string]),outerRadius:u.a.oneOfType([u.a.number,u.a.string]),cornerRadius:u.a.oneOfType([u.a.number,u.a.string]),dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]).isRequired,nameKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),valueKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),data:u.a.arrayOf(u.a.object),blendStroke:u.a.bool,minAngle:u.a.number,legendType:u.a.oneOf(V),maxRadius:u.a.number,sectors:u.a.arrayOf(u.a.object),hide:u.a.bool,labelLine:u.a.oneOfType([u.a.object,u.a.func,u.a.element,u.a.bool]),label:u.a.oneOfType([u.a.shape({offsetRadius:u.a.number}),u.a.func,u.a.element,u.a.bool]),activeShape:u.a.oneOfType([u.a.object,u.a.func,u.a.element]),activeIndex:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),isAnimationActive:u.a.bool,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"]),id:u.a.string}),xd.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!et(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},xd.parseDeltaAngle=function(t){var e=t.startAngle,n=t.endAngle;return E(n-e)*Math.min(Math.abs(n-e),360)},xd.getRealPieData=function(t){var e=t.props,n=e.data,r=e.children,i=Y(t.props),o=X(r,li);return n&&n.length?n.map(function(t,e){return Ed({payload:t},i,t,o&&o[e]&&o[e].props)}):o&&o.length?o.map(function(t){return Ed({},i,t.props)}):[]},xd.parseCoordinateOfPie=function(t,e){var n=e.top,r=e.left,i=e.width,o=e.height,a=cp(i,o);return{cx:r+C(t.props.cx,i,i/2),cy:n+C(t.props.cy,o,o/2),innerRadius:C(t.props.innerRadius,a,0),outerRadius:C(t.props.outerRadius,a,.8*a),maxRadius:t.props.maxRadius||Math.sqrt(i*i+o*o)/2}},xd.getComposedData=function(t){var e=t.item,n=t.offset,r=t.onItemMouseLeave,i=t.onItemMouseEnter,o=Dd.getRealPieData(e);if(!o||!o.length)return[];var a=e.props,u=a.cornerRadius,c=a.startAngle,s=a.endAngle,l=a.paddingAngle,p=a.dataKey,h=a.nameKey,d=a.valueKey,y=Math.abs(e.props.minAngle),m=Dd.parseCoordinateOfPie(e,n),v=o.length,b=Dd.parseDeltaAngle({startAngle:c,endAngle:s}),g=Math.abs(b),x=g-v*y-(g>=360?v:v-1)*l,w=p;f()(p)&&f()(d)?w="value":f()(p)&&(w=d);var O,_,A=o.reduce(function(t,e){var n=Tf(e,w,0);return t+(j(n)?n:0)},0);A>0&&(O=o.map(function(t,e){var n,r=Tf(t,w,0),i=Tf(t,h,e),o=(j(r)?r:0)/A,a=(n=e?_.endAngle+E(b)*l:c)+E(b)*(y+o*x),s=(n+a)/2,f=(m.innerRadius+m.outerRadius)/2,p=[{name:i,value:r,payload:t}],d=up(m.cx,m.cy,f,s);return _=Ed({percent:o,cornerRadius:u,name:i,tooltipPayload:p,midAngle:s,middleRadius:f,tooltipPosition:d},t,m,{value:Tf(t,w),startAngle:n,endAngle:a,payload:t,paddingAngle:E(b)*l})}));return Ed({},m,{sectors:O,data:o,onMouseLeave:r,onMouseEnter:i})},gd=wd))||gd,Rd=Dd;function Ld(t){return(Ld="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zd(){return(zd=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Bd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Fd(t,e,n[e])})}return t}function Fd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ud(t,e){return!e||"object"!==Ld(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gd(t){return(Gd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qd(t,e){return(qd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Vd,Hd,Xd,Kd=z((Id=Nd=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=Ud(this,(t=Gd(e)).call.apply(t,[this].concat(i)))).state={isAnimationFinished:!1},n.cachePrevData=function(t){n.setState({prevPoints:t})},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0})},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1})},n.handleMouseEnter=function(t){var e=n.props.onMouseEnter;e&&e(n.props,t)},n.handleMouseLeave=function(t){var e=n.props.onMouseLeave;e&&e(n.props,t)},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qd(t,e)}(e,i["Component"]),function(t,e,n){e&&Wd(t.prototype,e),n&&Wd(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.points;t.animationId!==n&&this.cachePrevData(r)}},{key:"renderDots",value:function(t){var e=this,n=this.props,r=n.dot,i=n.dataKey,a=Y(this.props),u=Y(r),c=t.map(function(t,n){var o=Bd({key:"dot-".concat(n),r:3},a,u,{dataKey:i,cx:t.x,cy:t.y,index:n,payload:t});return e.constructor.renderDotItem(r,o)});return o.a.createElement(vt,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(t){var e,n=this.props,r=n.shape,i=n.dot;return e=o.a.isValidElement(r)?o.a.cloneElement(r,Bd({},this.props,{points:t})):v()(r)?r(Bd({},this.props,{points:t})):o.a.createElement(Ah,zd({},Z(this.props),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},Y(this.props),{points:t})),o.a.createElement(vt,{className:"recharts-radar-polygon"},e,i?this.renderDots(t):null)}},{key:"renderPolygonWithAnimation",value:function(){var t=this,e=this.props,n=e.points,r=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,s=this.state.prevPoints;return o.a.createElement(Sr,{begin:i,duration:a,isActive:r,easing:u,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var r=e.t,i=s&&s.length/n.length,o=n.map(function(t,e){var n=s&&s[Math.floor(e*i)];if(n){var o=I(n.x,t.x),a=I(n.y,t.y);return Bd({},t,{x:o(r),y:a(r)})}var u=I(t.cx,t.x),c=I(t.cy,t.y);return Bd({},t,{x:u(r),y:c(r)})});return t.renderPolygonStatically(o)})}},{key:"renderPolygon",value:function(){var t=this.props,e=t.points,n=t.isAnimationActive,r=this.state.prevPoints;return!(n&&e&&e.length)||r&&pn()(r,e)?this.renderPolygonStatically(e):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.className,r=t.points,i=t.isAnimationActive;if(e||!r||!r.length)return null;var a=this.state.isAnimationFinished,u=s()("recharts-radar",n);return o.a.createElement(vt,{className:u},this.renderPolygon(),(!i||a)&&zp.renderCallByParent(this.props,r))}}],[{key:"renderDotItem",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(il,zd({},e,{className:"recharts-radar-dot"}))}}]),e}(),Nd.displayName="Radar",Nd.propTypes=Bd({},W,{className:u.a.string,dataKey:u.a.oneOfType([u.a.number,u.a.string,u.a.func]).isRequired,angleAxisId:u.a.oneOfType([u.a.string,u.a.number]),radiusAxisId:u.a.oneOfType([u.a.string,u.a.number]),points:u.a.arrayOf(u.a.shape({x:u.a.number,y:u.a.number,cx:u.a.number,cy:u.a.number,angle:u.a.number,radius:u.a.number,value:u.a.number,payload:u.a.object})),shape:u.a.oneOfType([u.a.element,u.a.func]),activeDot:u.a.oneOfType([u.a.object,u.a.element,u.a.func,u.a.bool]),dot:u.a.oneOfType([u.a.object,u.a.element,u.a.func,u.a.bool]),label:u.a.oneOfType([u.a.element,u.a.func,u.a.object,u.a.bool]),legendType:u.a.oneOf(V),hide:u.a.bool,onMouseEnter:u.a.func,onMouseLeave:u.a.func,onClick:u.a.func,isAnimationActive:u.a.bool,animationId:u.a.number,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),Nd.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!et(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},Nd.getComposedData=function(t){var e=t.radiusAxis,n=t.angleAxis,r=t.displayedData,i=t.dataKey,o=t.bandSize,a=n.cx,u=n.cy;return{points:r.map(function(t,r){var c=Tf(t,n.dataKey,r),s=Tf(t,i,0),l=n.scale(c)+(o||0),f=e.scale(s);return Bd({},up(a,u,f,l),{name:c,value:s,cx:a,cy:u,radius:f,angle:l,payload:t})})}},Cd=Id))||Cd;function Yd(t){return(Yd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Zd(t,e,n[e])})}return t}function Zd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jd(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Qd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ty(t,e){return!e||"object"!==Yd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ey(t){return(ey=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ny(t,e){return(ny=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ry=z((Xd=Hd=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=ty(this,(t=ey(e)).call.apply(t,[this].concat(i)))).state={isAnimationFinished:!1},n.cachePrevData=function(t){n.setState({prevData:t})},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0})},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1})},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ny(t,e)}(e,i["Component"]),function(t,e,n){e&&Qd(t.prototype,e),n&&Qd(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.data;t.animationId!==n&&this.cachePrevData(r)}},{key:"getDeltaAngle",value:function(){var t=this.props,e=t.startAngle,n=t.endAngle;return E(n-e)*Math.min(Math.abs(n-e),360)}},{key:"renderSectorsStatically",value:function(t){var e=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,a=n.cornerRadius,u=Jd(n,["shape","activeShape","activeIndex","cornerRadius"]),c=Y(u);return t.map(function(t,n){var u=$d({},c,{cornerRadius:a},t,Q(e.props,t,n),{key:"sector-".concat(n),className:"recharts-radial-bar-sector"});return e.constructor.renderSectorShape(n===o?i:r,u)})}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,n=e.data,r=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,s=this.state.prevData;return o.a.createElement(Sr,{begin:i,duration:a,isActive:r,easing:u,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(e){var r=e.t,i=n.map(function(t,e){var n=s&&s[e];if(n){var i=I(n.startAngle,t.startAngle),o=I(n.endAngle,t.endAngle);return $d({},t,{startAngle:i(r),endAngle:o(r)})}var a=t.endAngle,u=t.startAngle;return $d({},t,{endAngle:I(u,a)(r)})});return o.a.createElement(vt,null,t.renderSectorsStatically(i))})}},{key:"renderSectors",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&pn()(r,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(t){var e=this,n=this.props.cornerRadius,r=Y(this.props.background);return t.map(function(t,i){t.value;var o=t.background,a=Jd(t,["value","background"]);if(!o)return null;var u=$d({cornerRadius:n},a,{fill:"#eee"},o,r,Q(e.props,t,i),{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return e.constructor.renderSectorShape(o,u)})}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,i=t.background,a=t.isAnimationActive;if(e||!n||!n.length)return null;var u=this.state.isAnimationFinished,c=s()("recharts-area",r);return o.a.createElement(vt,{className:c},i&&o.a.createElement(vt,{className:"recharts-radial-bar-background"},this.renderBackground(n)),o.a.createElement(vt,{className:"recharts-radial-bar-sectors"},this.renderSectors(n)),(!a||u)&&zp.renderCallByParent($d({},this.props,{clockWise:this.getDeltaAngle()<0}),n))}}],[{key:"renderSectorShape",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(Zp,e)}}]),e}(),Hd.displayName="RadialBar",Hd.propTypes=$d({},W,{className:u.a.string,angleAxisId:u.a.oneOfType([u.a.string,u.a.number]),radiusAxisId:u.a.oneOfType([u.a.string,u.a.number]),shape:u.a.oneOfType([u.a.func,u.a.element]),activeShape:u.a.oneOfType([u.a.object,u.a.func,u.a.element]),activeIndex:u.a.number,dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]).isRequired,cornerRadius:u.a.oneOfType([u.a.number,u.a.string]),minPointSize:u.a.number,maxBarSize:u.a.number,data:u.a.arrayOf(u.a.shape({cx:u.a.number,cy:u.a.number,innerRadius:u.a.number,outerRadius:u.a.number,value:u.a.value})),legendType:u.a.oneOf(V),label:u.a.oneOfType([u.a.bool,u.a.func,u.a.element,u.a.object]),background:u.a.oneOfType([u.a.bool,u.a.func,u.a.object,u.a.element]),hide:u.a.bool,onMouseEnter:u.a.func,onMouseLeave:u.a.func,onClick:u.a.func,isAnimationActive:u.a.bool,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear","spring"])}),Hd.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!et(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},Hd.getComposedData=function(t){var e=t.item,n=t.props,r=t.radiusAxis,i=t.radiusAxisTicks,o=t.angleAxis,a=t.angleAxisTicks,u=t.displayedData,c=t.dataKey,s=t.stackedData,l=t.barPosition,f=t.bandSize,p=t.dataStartIndex,h=Wf(l,e);if(!h)return[];var d=o.cx,y=o.cy,m=n.layout,v=e.props,b=v.children,x=v.minPointSize,w="radial"===m?o:r,O=s?w.scale.domain():null,_=Kf({props:n,numericAxis:w}),A=X(b,li);return{data:u.map(function(t,e){var u,l,v,b,w,k;if(s?u=Uf(s[p+e],O):(u=Tf(t,c),g()(u)||(u=[_,u])),"radial"===m){l=Xf({axis:r,ticks:i,bandSize:f,offset:h.offset,entry:t,index:e}),w=o.scale(u[1]),b=o.scale(u[0]),v=l+h.size;var S=w-b;if(Math.abs(x)>0&&Math.abs(S)<Math.abs(x))w+=E(S||x)*(Math.abs(x)-Math.abs(S));k={background:{cx:d,cy:y,innerRadius:l,outerRadius:v,startAngle:n.startAngle,endAngle:n.endAngle}}}else{l=r.scale(u[0]),v=r.scale(u[1]),w=(b=Xf({axis:o,ticks:a,bandSize:f,offset:h.offset,entry:t,index:e}))+h.size;var j=v-l;if(Math.abs(x)>0&&Math.abs(j)<Math.abs(x))v+=E(j||x)*(Math.abs(x)-Math.abs(j))}return $d({},t,k,{payload:t,value:s?u:u[1],cx:d,cy:y,innerRadius:l,outerRadius:v,startAngle:b,endAngle:w},A&&A[e]&&A[e].props)}),layout:m}},Vd=Xd))||Vd,iy=n(25),oy=n.n(iy);function ay(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uy,cy,sy,ly=["Webkit","Moz","O","ms"],fy=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,function(t){return t.toUpperCase()}),r=ly.reduce(function(t,r){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){ay(t,e,n[e])})}return t}({},t,ay({},r+n,e))},{});return r[t]=e,r};function py(t){return(py="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hy(){return(hy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function dy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function my(t){return(my=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vy(t,e){return(vy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function by(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var gy=z((sy=cy=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==py(e)&&"function"!=typeof e?by(t):e}(this,my(e).call(this,t))).handleDrag=function(t){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(t):n.state.isSlideMoving&&n.handleSlideDrag(t)},n.handleTouchMove=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleDrag(t.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,1e3))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(t){var e=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(by(by(n)),"startX"),endX:n.handleTravellerDragStart.bind(by(by(n)),"endX")},n.state=t.data&&t.data.length?n.updateScale(t):{},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vy(t,e)}(e,i["Component"]),function(t,e,n){e&&yy(t.prototype,e),n&&yy(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,i=n.width,o=n.x,a=n.travellerWidth,u=n.updateId;(t.data!==r||t.updateId!==u)&&t.data&&t.data.length?this.setState(this.updateScale(t)):t.width===i&&t.x===o&&t.travellerWidth===a||(this.scale.range([t.x,t.x+t.width-t.travellerWidth]),this.scaleValues=this.scale.domain().map(function(t){return e.scale(t)}),this.setState({startX:this.scale(t.startIndex),endX:this.scale(t.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.props,i=r.gap,o=r.data.length-1,a=Math.min(e,n),u=Math.max(e,n),c=this.constructor.getIndexInRange(this.scaleValues,a),s=this.constructor.getIndexInRange(this.scaleValues,u);return{startIndex:c-c%i,endIndex:s===o?o:s-s%i}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=Tf(n[t],i,t);return v()(r)?r(o):o}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,u=o.width,c=o.travellerWidth,s=o.startIndex,l=o.endIndex,f=o.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+u-c-i,a+u-c-r):p<0&&(p=Math.max(p,a-r,a-i));var h=this.getIndex({startX:r+p,endX:i+p});h.startIndex===s&&h.endIndex===l||!f||f(h),this.setState({startX:r+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,u=this.state[i],c=this.props,s=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,h=c.gap,d=c.data,y={startX:this.state.startX,endX:this.state.endX},m=t.pageX-r;m>0?m=Math.min(m,s+l-f-u):m<0&&(m=Math.max(m,s-u)),y[i]=u+m;var v=this.getIndex(y),b=v.startIndex,g=v.endIndex;this.setState((dy(e={},i,u+m),dy(e,"brushMoveStartX",t.pageX),e),function(){p&&function(){var t=d.length-1;return"startX"===i&&(o>a?b%h==0:g%h==0)||o<a&&g===t||"endX"===i&&(o>a?g%h==0:b%h==0)||o>a&&g===t}()&&p(v)})}},{key:"updateScale",value:function(t){var e=this,n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,u=t.travellerWidth,c=n.length;return this.scale=ho().domain(oy()(0,c)).range([o,o+a-u]),this.scaleValues=this.scale.domain().map(function(t){return e.scale(t)}),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(i)}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.fill,u=t.stroke;return o.a.createElement("rect",{stroke:u,fill:a,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,a=t.height,u=t.data,c=t.children,s=t.padding,l=i.Children.only(c);return l?o.a.cloneElement(l,{x:e,y:n,width:r,height:a,margin:s,compact:!0,data:u}):null}},{key:"renderTraveller",value:function(t,e){var n=this.props,r=n.y,i=n.travellerWidth,a=n.height,u=n.stroke,c=Math.floor(r+a/2)-1,s=Math.max(t,this.props.x);return o.a.createElement(vt,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],style:{cursor:"col-resize"}},o.a.createElement("rect",{x:s,y:r,width:i,height:a,fill:u,stroke:"none"}),o.a.createElement("line",{x1:s+1,y1:c,x2:s+i-1,y2:c,fill:"none",stroke:"#fff"}),o.a.createElement("line",{x1:s+1,y1:c+2,x2:s+i-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,a=n.stroke;return o.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(t,e),y:r,width:Math.abs(e-t),height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,a=t.travellerWidth,u=t.stroke,c=this.state,s=c.startX,l=c.endX,f={pointerEvents:"none",fill:u};return o.a.createElement(vt,{className:"recharts-brush-texts"},o.a.createElement(Mi,hy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,l)-5,y:r+i/2},f),this.getTextOfTick(e)),o.a.createElement(Mi,hy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,l)+a+5,y:r+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,a=t.y,u=t.width,c=t.height,l=this.state,f=l.startX,p=l.endX,h=l.isTextActive,d=l.isSlideMoving,y=l.isTravellerMoving;if(!e||!e.length||!j(i)||!j(a)||!j(u)||!j(c)||u<=0||c<=0)return null;var m=s()("recharts-brush",n),v=1===o.a.Children.count(r),b=fy("userSelect","none");return o.a.createElement(vt,{className:m,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTraveller(f,"startX"),this.renderTraveller(p,"endX"),(h||d||y)&&this.renderText())}}],[{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i}return e>=t[r]?r:n}}]),e}(),cy.displayName="Brush",cy.propTypes={className:u.a.string,fill:u.a.string,stroke:u.a.string,x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number.isRequired,travellerWidth:u.a.number,gap:u.a.number,padding:u.a.shape({top:u.a.number,right:u.a.number,bottom:u.a.number,left:u.a.number}),dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),data:u.a.array,startIndex:u.a.number,endIndex:u.a.number,tickFormatter:u.a.func,children:u.a.node,onChange:u.a.func,updateId:u.a.oneOfType([u.a.string,u.a.number])},cy.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1}},uy=sy))||uy;function xy(t){return(xy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wy(){return(wy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Oy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){_y(t,e,n[e])})}return t}function _y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ay(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ky(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ey(t,e){return!e||"object"!==xy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sy(t){return(Sy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jy(t,e){return(jy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ty=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ey(this,Sy(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jy(t,e)}(e,i["Component"]),function(t,e,n){e&&ky(t.prototype,e),n&&ky(t,n)}(e,[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=Ay(t,["viewBox"]),i=this.props,o=i.viewBox,a=Ay(i,["viewBox"]);return!R(n,o)||!R(r,a)||!R(e,this.state)}},{key:"getTickLineCoord",value:function(t){var e,n,r,i,o,a,u=this.props,c=u.x,s=u.y,l=u.width,f=u.height,p=u.orientation,h=u.tickSize,d=u.mirror,y=u.tickMargin,m=d?-1:1,v=t.tickSize||h,b=j(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=n=t.coordinate,a=(r=(i=s+!d*f)-m*v)-m*y,o=b;break;case"left":r=i=t.coordinate,o=(e=(n=c+!d*l)-m*v)-m*y,a=b;break;case"right":r=i=t.coordinate,o=(e=(n=c+d*l)+m*v)+m*y,a=b;break;default:e=n=t.coordinate,a=(r=(i=s+d*f)+m*v)+m*y,o=b}return{line:{x1:e,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.orientation,u=t.axisLine,c=t.mirror,s=Oy({},Y(this.props),{fill:"none"},Y(u));if("top"===a||"bottom"===a){var l="top"===a&&!c||"bottom"===a&&c;s=Oy({},s,{x1:e,y1:n+l*i,x2:e+r,y2:n+l*i})}else{var f="left"===a&&!c||"right"===a&&c;s=Oy({},s,{x1:e+f*r,y1:n,x2:e+f*r,y2:n+i})}return o.a.createElement("line",wy({className:"recharts-cartesian-axis-line"},s))}},{key:"renderTicks",value:function(t){var n=this,r=this.props,i=r.tickLine,a=r.stroke,u=r.tick,c=r.tickFormatter,s=r.unit,l=e.getTicks(Oy({},this.props,{ticks:t})),f=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),h=Y(this.props),d=Y(u),y=Oy({},h,{fill:"none"},Y(i)),m=l.map(function(t,e){var r=n.getTickLineCoord(t),m=r.line,b=r.tick,g=Oy({textAnchor:f,verticalAnchor:p},h,{stroke:"none",fill:a},d,b,{index:e,payload:t,visibleTicksCount:l.length});return o.a.createElement(vt,wy({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},Q(n.props,t,e)),i&&o.a.createElement("line",wy({className:"recharts-cartesian-axis-tick-line"},y,m)),u&&n.constructor.renderTickItem(u,g,"".concat(v()(c)?c(t.value):t.value).concat(s||"")))});return o.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this.props,e=t.axisLine,n=t.width,r=t.height,i=t.ticksGenerator,a=t.className;if(t.hide)return null;var u=this.props,c=u.ticks,l=Ay(u,["ticks"]),f=c;return v()(i)&&(f=c&&c.length>0?i(this.props):i(l)),n<=0||r<=0||!f||!f.length?null:o.a.createElement(vt,{className:s()("recharts-cartesian-axis",a)},e&&this.renderAxisLine(),this.renderTicks(f),kp.renderCallByParent(this.props))}}],[{key:"getTicks",value:function(t){var n=t.tick,r=t.ticks,i=t.viewBox,o=t.minTickGap,a=t.orientation,u=t.interval,c=t.tickFormatter,s=t.unit;return r&&r.length&&n?j(u)||et()?e.getNumberIntervalTicks(r,j(u)?u:0):"preserveStartEnd"===u?e.getTicksStart({ticks:r,tickFormatter:c,viewBox:i,orientation:a,minTickGap:o,unit:s},!0):"preserveStart"===u?e.getTicksStart({ticks:r,tickFormatter:c,viewBox:i,orientation:a,minTickGap:o,unit:s}):e.getTicksEnd({ticks:r,tickFormatter:c,viewBox:i,orientation:a,minTickGap:o,unit:s}):[]}},{key:"getNumberIntervalTicks",value:function(t,e){return t.filter(function(t,n){return n%(e+1)==0})}},{key:"getTicksStart",value:function(t,e){var n,r,i=t.ticks,o=t.tickFormatter,a=t.viewBox,u=t.orientation,c=t.minTickGap,s=t.unit,l=a.x,f=a.y,p=a.width,h=a.height,d="top"===u||"bottom"===u?"width":"height",y=(i||[]).slice(),m=s?gi(s)[d]:0,b=y.length,g=b>=2?E(y[1].coordinate-y[0].coordinate):1;if(1===g?(n="width"===d?l:f,r="width"===d?l+p:f+h):(n="width"===d?l+p:f+h,r="width"===d?l:f),e){var x=i[b-1],w=v()(o)?o(x.value):x.value,O=gi(w)[d]+m,_=g*(x.coordinate+g*O/2-r);y[b-1]=x=Oy({},x,{tickCoord:_>0?x.coordinate-_*g:x.coordinate}),g*(x.tickCoord-g*O/2-n)>=0&&g*(x.tickCoord+g*O/2-r)<=0&&(r=x.tickCoord-g*(O/2+c),y[b-1]=Oy({},x,{isShow:!0}))}for(var A=e?b-1:b,k=0;k<A;k++){var S=y[k],j=v()(o)?o(S.value):S.value,T=gi(j)[d]+m;if(0===k){var M=g*(S.coordinate-g*T/2-n);y[k]=S=Oy({},S,{tickCoord:M<0?S.coordinate-M*g:S.coordinate})}else y[k]=S=Oy({},S,{tickCoord:S.coordinate});g*(S.tickCoord-g*T/2-n)>=0&&g*(S.tickCoord+g*T/2-r)<=0&&(n=S.tickCoord+g*(T/2+c),y[k]=Oy({},S,{isShow:!0}))}return y.filter(function(t){return t.isShow})}},{key:"getTicksEnd",value:function(t){var e,n,r=t.ticks,i=t.tickFormatter,o=t.viewBox,a=t.orientation,u=t.minTickGap,c=t.unit,s=o.x,l=o.y,f=o.width,p=o.height,h="top"===a||"bottom"===a?"width":"height",d=c?gi(c)[h]:0,y=(r||[]).slice(),m=y.length,b=m>=2?E(y[1].coordinate-y[0].coordinate):1;1===b?(e="width"===h?s:l,n="width"===h?s+f:l+p):(e="width"===h?s+f:l+p,n="width"===h?s:l);for(var g=m-1;g>=0;g--){var x=y[g],w=v()(i)?i(x.value):x.value,O=gi(w)[h]+d;if(g===m-1){var _=b*(x.coordinate+b*O/2-n);y[g]=x=Oy({},x,{tickCoord:_>0?x.coordinate-_*b:x.coordinate})}else y[g]=x=Oy({},x,{tickCoord:x.coordinate});b*(x.tickCoord-b*O/2-e)>=0&&b*(x.tickCoord+b*O/2-n)<=0&&(n=x.tickCoord-b*(O/2+u),y[g]=Oy({},x,{isShow:!0}))}return y.filter(function(t){return t.isShow})}},{key:"renderTickItem",value:function(t,e,n){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(Mi,wy({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}]),e}();Ty.displayName="CartesianAxis",Ty.propTypes=Oy({},W,U,{className:u.a.string,x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number,orientation:u.a.oneOf(["top","bottom","left","right"]),viewBox:u.a.shape({x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number}),tick:u.a.oneOfType([u.a.bool,u.a.func,u.a.object,u.a.element]),axisLine:u.a.oneOfType([u.a.bool,u.a.object]),tickLine:u.a.oneOfType([u.a.bool,u.a.object]),mirror:u.a.bool,tickMargin:u.a.number.isRequired,minTickGap:u.a.number,ticks:u.a.array,tickSize:u.a.number,stroke:u.a.string,tickFormatter:u.a.func,ticksGenerator:u.a.func,interval:u.a.oneOfType([u.a.number,u.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),Ty.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var My,Py,Cy,Ny=Ty;function Iy(t){return(Iy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dy(){return(Dy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ry(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ly(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){zy(t,e,n[e])})}return t}function zy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function By(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fy(t,e){return!e||"object"!==Iy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wy(t){return(Wy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Uy(t,e){return(Uy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Gy,qy,Vy,Hy=z((Cy=Py=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Fy(this,Wy(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Uy(t,e)}(e,i["Component"]),function(t,e,n){e&&By(t.prototype,e),n&&By(t,n)}(e,[{key:"renderHorizontal",value:function(t){var e=this,n=this.props,r=n.x,i=n.width,a=n.horizontal;if(!t||!t.length)return null;var u=t.map(function(t,n){var o=Ly({},e.props,{x1:r,y1:t,x2:r+i,y2:t,key:"line-".concat(n),index:n});return e.constructor.renderLineItem(a,o)});return o.a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(t){var e=this,n=this.props,r=n.y,i=n.height,a=n.vertical;if(!t||!t.length)return null;var u=t.map(function(t,n){var o=Ly({},e.props,{x1:t,y1:r,x2:t,y2:r+i,key:"line-".concat(n),index:n});return e.constructor.renderLineItem(a,o)});return o.a.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(t){var e=this.props.verticalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,u=n.width,c=n.height,s=t.slice().sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var l=s.map(function(t,n){var l=s[n+1]?s[n+1]-t:i+u-t;if(l<=0)return null;var f=n%e.length;return o.a.createElement("rect",{key:"react-".concat(n),x:Math.round(t+i-i),y:a,width:l,height:c,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return o.a.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(t){var e=this.props.horizontalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,u=n.width,c=n.height,s=t.slice().sort(function(t,e){return t-e});a!==s[0]&&s.unshift(0);var l=s.map(function(t,n){var l=s[n+1]?s[n+1]-t:a+c-t;if(l<=0)return null;var f=n%e.length;return o.a.createElement("rect",{key:"react-".concat(n),y:Math.round(t+a-a),x:i,height:l,width:u,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return o.a.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var e=this.props,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,u=e.height;return o.a.createElement("rect",{x:r,y:i,width:a,height:u,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.horizontal,u=t.vertical,c=t.horizontalCoordinatesGenerator,s=t.verticalCoordinatesGenerator,l=t.xAxis,f=t.yAxis,p=t.offset,h=t.chartWidth,d=t.chartHeight;if(!j(r)||r<=0||!j(i)||i<=0||!j(e)||e!==+e||!j(n)||n!==+n)return null;var y=this.props,m=y.horizontalPoints,b=y.verticalPoints;return m&&m.length||!v()(c)||(m=c({yAxis:f,width:h,height:d,offset:p})),b&&b.length||!v()(s)||(b=s({xAxis:l,width:h,height:d,offset:p})),o.a.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(m),u&&this.renderVertical(b),a&&this.renderHorizontalStripes(m),u&&this.renderVerticalStripes(b))}}],[{key:"renderLineItem",value:function(t,e){var n;if(o.a.isValidElement(t))n=o.a.cloneElement(t,e);else if(v()(t))n=t(e);else{var r=e.x1,i=e.y1,a=e.x2,u=e.y2,c=e.key,s=Ry(e,["x1","y1","x2","y2","key"]);n=o.a.createElement("line",Dy({},Y(s),{x1:r,y1:i,x2:a,y2:u,fill:"none",key:c}))}return n}}]),e}(),Py.displayName="CartesianGrid",Py.propTypes=Ly({},W,{x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number,horizontal:u.a.oneOfType([u.a.object,u.a.element,u.a.func,u.a.bool]),vertical:u.a.oneOfType([u.a.object,u.a.element,u.a.func,u.a.bool]),horizontalPoints:u.a.arrayOf(u.a.number),verticalPoints:u.a.arrayOf(u.a.number),horizontalCoordinatesGenerator:u.a.func,verticalCoordinatesGenerator:u.a.func,xAxis:u.a.object,yAxis:u.a.object,offset:u.a.object,chartWidth:u.a.number,chartHeight:u.a.number,verticalFill:u.a.arrayOf(u.a.string),horizontalFill:u.a.arrayOf(u.a.string)}),Py.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},My=Cy))||My;function Xy(t){return(Xy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ky(){return(Ky=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Yy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){$y(t,e,n[e])})}return t}function $y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zy(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Jy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qy(t,e){return!e||"object"!==Xy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function tm(t){return(tm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function em(t,e){return(em=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var nm,rm,im,om=z((Vy=qy=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=Qy(this,(t=tm(e)).call.apply(t,[this].concat(i)))).state={isAnimationFinished:!0,totalLength:0},n.id=P("recharts-line-"),n.cachePrevData=function(t){n.setState({prevPoints:t})},n.pathRef=function(t){n.mainCurve=t},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd()},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart()},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&em(t,e)}(e,i["Component"]),function(t,e,n){e&&Jy(t.prototype,e),n&&Jy(t,n)}(e,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.points;t.animationId!==n&&this.cachePrevData(r)}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"getStrokeDasharray",value:function(t,e,n){for(var r=n.reduce(function(t,e){return t+e}),i=parseInt(t/r,10),o=t%r,a=e-t,u=[],c=0,s=0;;s+=n[c],++c)if(s+n[c]>o){u=Zy(n.slice(0,c)).concat([o-s]);break}var l=u.length%2==0?[0,a]:[a];return Zy(this.constructor.repeat(n,i)).concat(Zy(u),l).map(function(t){return"".concat(t,"px")}).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,e=t.points,n=t.xAxis,r=t.yAxis,i=t.layout,a=t.children,u=X(a,kf);if(!u)return null;function c(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Tf(t.payload,e)}}return u.map(function(t,a){return o.a.cloneElement(t,{key:a,data:e,xAxis:n,yAxis:r,layout:i,dataPointFormatter:c})})}},{key:"renderDots",value:function(t,e){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,a=r.points,u=r.dataKey,c=Y(this.props),s=Y(i),l=Z(i),f=a.map(function(t,e){var r=Yy({key:"dot-".concat(e),r:3},c,s,l,{value:t.value,dataKey:u,cx:t.x,cy:t.y,index:e,payload:t.payload});return n.constructor.renderDotItem(i,r)}),p={clipPath:t?"url(#clipPath-".concat(e,")"):null};return o.a.createElement(vt,Ky({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,n,r){var i=this.props,a=i.type,u=i.layout,c=i.connectNulls,s=Yy({},Y(this.props),Z(this.props),{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r,{type:a,layout:u,connectNulls:c});return o.a.createElement(hh,Ky({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,a=r.strokeDasharray,u=r.isAnimationActive,c=r.animationBegin,s=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.width,h=r.height,d=this.state,y=d.prevPoints,m=d.totalLength;return o.a.createElement(Sr,{begin:c,duration:s,isActive:u,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var o=r.t;if(y){var u=y.length/i.length,c=i.map(function(t,e){var r=Math.floor(e*u);if(y[r]){var i=y[r],a=I(i.x,t.x),c=I(i.y,t.y);return Yy({},t,{x:a(o),y:c(o)})}if(n.animateNewValues){var s=I(2*p,t.x),l=I(h/2,t.y);return Yy({},t,{x:s(o),y:l(o)})}return Yy({},t,{x:t.x,y:t.y})});return n.renderCurveStatically(c,t,e)}var s,l=I(0,m)(o);if(a){var f=a.split(/[,\s]+/gim).map(function(t){return parseFloat(t)});s=n.getStrokeDasharray(l,m,f)}else s="".concat(l,"px ").concat(m-l,"px");return n.renderCurveStatically(i,t,e,{strokeDasharray:s})})}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,u=o.totalLength;return i&&r&&r.length&&(!a&&u>0||!pn()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,a=t.xAxis,u=t.yAxis,c=t.top,l=t.left,p=t.width,h=t.height,d=t.isAnimationActive,y=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,v=1===r.length,b=s()("recharts-line",i),g=a&&a.allowDataOverflow||u&&u.allowDataOverflow,x=f()(y)?this.id:y;return o.a.createElement(vt,{className:b},g?o.a.createElement("defs",null,o.a.createElement("clipPath",{id:"clipPath-".concat(x)},o.a.createElement("rect",{x:l,y:c,width:p,height:h}))):null,!v&&this.renderCurve(g,x),this.renderErrorBar(),(v||n)&&this.renderDots(g,x),(!d||m)&&zp.renderCallByParent(this.props,r))}}],[{key:"repeat",value:function(t,e){for(var n=t.length%2!=0?Zy(t).concat([0]):t,r=[],i=0;i<e;++i)r=Zy(r).concat(Zy(n));return r}},{key:"renderDotItem",value:function(t,e){var n;if(o.a.isValidElement(t))n=o.a.cloneElement(t,e);else if(v()(t))n=t(e);else{var r=s()("recharts-line-dot",t?t.className:"");n=o.a.createElement(il,Ky({},e,{className:r}))}return n}}]),e}(),qy.displayName="Line",qy.propTypes=Yy({},W,U,{className:u.a.string,type:u.a.oneOfType([u.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),u.a.func]),unit:u.a.oneOfType([u.a.string,u.a.number]),name:u.a.oneOfType([u.a.string,u.a.number]),yAxisId:u.a.oneOfType([u.a.string,u.a.number]),xAxisId:u.a.oneOfType([u.a.string,u.a.number]),yAxis:u.a.object,xAxis:u.a.object,legendType:u.a.oneOf(V),layout:u.a.oneOf(["horizontal","vertical"]),connectNulls:u.a.bool,hide:u.a.bool,activeDot:u.a.oneOfType([u.a.object,u.a.element,u.a.func,u.a.bool]),dot:u.a.oneOfType([u.a.object,u.a.element,u.a.func,u.a.bool]),top:u.a.number,left:u.a.number,width:u.a.number,height:u.a.number,points:u.a.arrayOf(u.a.shape({x:u.a.number,y:u.a.number,value:u.a.value})),onAnimationStart:u.a.func,onAnimationEnd:u.a.func,isAnimationActive:u.a.bool,animateNewValues:u.a.bool,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:u.a.number,id:u.a.string}),qy.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!et(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},qy.getComposedData=function(t){var e=t.props,n=t.xAxis,r=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,u=t.bandSize,c=t.displayedData,s=t.offset,l=e.layout;return Yy({points:c.map(function(t,e){var c=Tf(t,a);return"horizontal"===l?{x:Hf({axis:n,ticks:i,bandSize:u,entry:t,index:e}),y:f()(c)?null:r.scale(c),value:c,payload:t}:{x:f()(c)?null:n.scale(c),y:Hf({axis:r,ticks:o,bandSize:u,entry:t,index:e}),value:c,payload:t}}),layout:l},s)},Gy=Vy))||Gy;function am(t){return(am="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function um(){return(um=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function cm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){sm(t,e,n[e])})}return t}function sm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fm(t,e){return!e||"object"!==am(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pm(t){return(pm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function hm(t,e){return(hm=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var dm,ym,mm,vm=z((im=rm=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=fm(this,(t=pm(e)).call.apply(t,[this].concat(i)))).state={isAnimationFinished:!0},n.id=P("recharts-area-"),n.cachePrevData=function(t,e){n.setState({prevPoints:t,prevBaseLine:e})},n.handleAnimationEnd=function(){var t=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),v()(t)&&t()},n.handleAnimationStart=function(){var t=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),v()(t)&&t()},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hm(t,e)}(e,i["Component"]),function(t,e,n){e&&lm(t.prototype,e),n&&lm(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.points,i=e.baseLine;t.animationId!==n&&this.cachePrevData(r,i)}},{key:"renderDots",value:function(t,e){var n=this,r=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(r&&!i)return null;var a=this.props,u=a.dot,c=a.points,s=a.dataKey,l=Y(this.props),f=Y(u),p=Z(u),h=c.map(function(t,e){var r=cm({key:"dot-".concat(e),r:3},l,f,p,{dataKey:s,cx:t.x,cy:t.y,index:e,value:t.value,payload:t.payload});return n.constructor.renderDotItem(u,r)}),d={clipPath:t?"url(#clipPath-".concat(e,")"):null};return o.a.createElement(vt,um({className:"recharts-area-dots"},d),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,i=e.strokeWidth,a=r[0].x,u=r[r.length-1].x,c=t*Math.abs(a-u),s=Math.max.apply(null,r.map(function(t){return t.y||0}));return j(n)?s=Math.max(n,s):n&&g()(n)&&n.length&&(s=Math.max(Math.max.apply(null,n.map(function(t){return t.y||0})),s)),j(s)?o.a.createElement("rect",{x:a<u?a:a-c,y:0,width:c,height:parseInt(s+(i||1),10)}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,i=e.strokeWidth,a=r[0].y,u=r[r.length-1].y,c=t*Math.abs(a-u),s=Math.max.apply(null,r.map(function(t){return t.x||0}));return j(n)?s=Math.max(n,s):n&&g()(n)&&n.length&&(s=Math.max(Math.max.apply(null,n.map(function(t){return t.x||0})),s)),j(s)?o.a.createElement("rect",{x:0,y:a<u?a:a-c,width:s+(i||1),height:parseInt(c,10)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,n,r){var i=this.props,a=i.layout,u=i.type,c=i.stroke,s=i.connectNulls,l=i.isRange;return o.a.createElement(vt,{clipPath:n?"url(#clipPath-".concat(r,")"):null},o.a.createElement(hh,um({},this.props,{points:t,baseLine:e,stroke:"none",className:"recharts-area-area"})),"none"!==c&&o.a.createElement(hh,um({},Y(this.props),{className:"recharts-area-curve",layout:a,type:u,connectNulls:s,fill:"none",points:t})),"none"!==c&&l&&o.a.createElement(hh,um({},Y(this.props),{className:"recharts-area-curve",layout:a,type:u,connectNulls:s,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,a=r.baseLine,u=r.isAnimationActive,c=r.animationBegin,s=r.animationDuration,l=r.animationEasing,p=r.animationId,h=this.state,d=h.prevPoints,y=h.prevBaseLine;return o.a.createElement(Sr,{begin:c,duration:s,isActive:u,easing:l,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var u=r.t;if(d){var c,s=d.length/i.length,l=i.map(function(t,e){var n=Math.floor(e*s);if(d[n]){var r=d[n],i=I(r.x,t.x),o=I(r.y,t.y);return cm({},t,{x:i(u),y:o(u)})}return t});if(j(a))c=I(y,a)(u);else if(f()(a)||_()(a)){c=I(y,0)(u)}else c=a.map(function(t,e){var n=Math.floor(e*s);if(y[n]){var r=y[n],i=I(r.x,t.x),o=I(r.y,t.y);return cm({},t,{x:i(u),y:o(u)})}return t});return n.renderAreaStatically(l,c,t,e)}return o.a.createElement(vt,null,o.a.createElement("defs",null,o.a.createElement("clipPath",{id:"animationClipPath-".concat(e)},n.renderClipRect(u))),o.a.createElement(vt,{clipPath:"url(#animationClipPath-".concat(e,")")},n.renderAreaStatically(i,a,t,e)))})}},{key:"renderArea",value:function(t,e){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,u=a.prevPoints,c=a.prevBaseLine,s=a.totalLength;return o&&r&&r.length&&(!u&&s>0||!pn()(u,r)||!pn()(c,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,i,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,a=t.top,u=t.left,c=t.xAxis,l=t.yAxis,p=t.width,h=t.height,d=t.isAnimationActive,y=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,v=1===r.length,b=s()("recharts-area",i),g=c&&c.allowDataOverflow||l&&l.allowDataOverflow,x=f()(y)?this.id:y;return o.a.createElement(vt,{className:b},g?o.a.createElement("defs",null,o.a.createElement("clipPath",{id:"clipPath-".concat(x)},o.a.createElement("rect",{x:u,y:a,width:p,height:parseInt(h,10)}))):null,v?null:this.renderArea(g,x),(n||v)&&this.renderDots(g,x),(!d||m)&&zp.renderCallByParent(this.props,r))}}]),e}(),rm.displayName="Area",rm.propTypes=cm({},W,U,{className:u.a.string,dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]).isRequired,type:u.a.oneOfType([u.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),u.a.func]),unit:u.a.oneOfType([u.a.string,u.a.number]),name:u.a.oneOfType([u.a.string,u.a.number]),yAxisId:u.a.oneOfType([u.a.string,u.a.number]),xAxisId:u.a.oneOfType([u.a.string,u.a.number]),yAxis:u.a.object,xAxis:u.a.object,stackId:u.a.oneOfType([u.a.number,u.a.string]),legendType:u.a.oneOf(V),connectNulls:u.a.bool,activeDot:u.a.oneOfType([u.a.object,u.a.element,u.a.func,u.a.bool]),dot:u.a.oneOfType([u.a.func,u.a.element,u.a.object,u.a.bool]),label:u.a.oneOfType([u.a.func,u.a.element,u.a.object,u.a.bool]),hide:u.a.bool,layout:u.a.oneOf(["horizontal","vertical"]),baseLine:u.a.oneOfType([u.a.number,u.a.array]),isRange:u.a.bool,points:u.a.arrayOf(u.a.shape({x:u.a.number,y:u.a.number,value:u.a.oneOfType([u.a.number,u.a.array])})),onAnimationStart:u.a.func,onAnimationEnd:u.a.func,animationId:u.a.number,isAnimationActive:u.a.bool,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:u.a.string}),rm.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!et(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},rm.getBaseValue=function(t,e,n){var r=t.layout,i=t.baseValue;if(j(i))return i;var o="horizontal"===r?n:e,a=o.scale.domain();if("number"===o.type){var u=Math.max(a[0],a[1]),c=Math.min(a[0],a[1]);return"dataMin"===i?c:"dataMax"===i?u:u<0?u:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===i?a[0]:"dataMax"===i?a[1]:a[0]},rm.getComposedData=function(t){var e=t.props,n=t.xAxis,r=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.bandSize,u=t.dataKey,c=t.stackedData,s=t.dataStartIndex,l=t.displayedData,p=t.offset,h=e.layout,d=c&&c.length,y=vm.getBaseValue(e,n,r),m=!1,v=l.map(function(t,e){var l;return d?l=c[s+e]:(l=Tf(t,u),g()(l)?m=!0:l=[y,l]),"horizontal"===h?{x:Hf({axis:n,ticks:i,bandSize:a,entry:t,index:e}),y:f()(l[1])?null:r.scale(l[1]),value:l,payload:t}:{x:f()(l[1])?null:n.scale(l[1]),y:Hf({axis:r,ticks:o,bandSize:a,entry:t,index:e}),value:l,payload:t}});return cm({points:v,baseLine:d||m?v.map(function(t){return"horizontal"===h?{x:t.x,y:f()(w()(t,"value[0]"))?null:r.scale(w()(t,"value[0]"))}:{x:f()(w()(t,"value[0]"))?null:n.scale(w()(t,"value[0]")),y:t.y}}):"horizontal"===h?r.scale(y):n.scale(y),layout:h,isRange:m},p)},rm.renderDotItem=function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(il,um({},e,{className:"recharts-area-dot"}))},nm=im))||nm,bm=vm;function gm(t){return(gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xm(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function wm(){return(wm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Om(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){_m(t,e,n[e])})}return t}function _m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Am(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function km(t,e){return!e||"object"!==gm(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Em(t){return(Em=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Sm(t,e){return(Sm=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var jm,Tm,Mm,Pm=z((mm=ym=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=km(this,(t=Em(e)).call.apply(t,[this].concat(i)))).state={isAnimationFinished:!1},n.id=P("recharts-bar-"),n.cachePrevData=function(t){n.setState({prevData:t})},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd()},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart()},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sm(t,e)}(e,i["Component"]),function(t,e,n){e&&Am(t.prototype,e),n&&Am(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.data;t.animationId!==n&&this.cachePrevData(r)}},{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props.shape,r=Y(this.props);return t&&t.map(function(t,i){var a=Om({},r,t,{index:i});return o.a.createElement(vt,wm({className:"recharts-bar-rectangle"},Q(e.props,t,i),{key:"rectangle-".concat(i)}),e.constructor.renderRectangle(n,a))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,r=e.layout,i=e.isAnimationActive,a=e.animationBegin,u=e.animationDuration,c=e.animationEasing,s=e.animationId,l=this.state.prevData;return o.a.createElement(Sr,{begin:a,duration:u,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var i=e.t,a=n.map(function(t,e){var n=l&&l[e];if(n){var o=I(n.x,t.x),a=I(n.y,t.y),u=I(n.width,t.width),c=I(n.height,t.height);return Om({},t,{x:o(i),y:a(i),width:u(i),height:c(i)})}if("horizontal"===r){var s=I(0,t.height)(i);return Om({},t,{y:t.y+t.height-s,height:s})}return Om({},t,{width:I(0,t.width)(i)})});return o.a.createElement(vt,null,t.renderRectanglesStatically(a))})}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&pn()(r,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props.data,n=Y(this.props.background);return e.map(function(e,r){e.value;var i=e.background,o=xm(e,["value","background"]);if(!i)return null;var a=Om({},o,{fill:"#eee"},i,n,Q(t.props,e,r),{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return t.constructor.renderRectangle(t.props.background,a)})}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,e=t.data,n=t.xAxis,r=t.yAxis,i=t.layout,a=t.children,u=X(a,kf);if(!u)return null;var c="vertical"===i?e[0].height/2:e[0].width/2;function s(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Tf(t,e)}}return u.map(function(t,a){return o.a.cloneElement(t,{key:"error-bar-".concat(a),data:e,xAxis:n,yAxis:r,layout:i,offset:c,dataPointFormatter:s})})}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,i=t.xAxis,a=t.yAxis,u=t.left,c=t.top,l=t.width,p=t.height,h=t.isAnimationActive,d=t.background,y=t.id;if(e||!n||!n.length)return null;var m=this.state.isAnimationFinished,v=s()("recharts-bar",r),b=i&&i.allowDataOverflow||a&&a.allowDataOverflow,g=f()(y)?this.id:y;return o.a.createElement(vt,{className:v},b?o.a.createElement("defs",null,o.a.createElement("clipPath",{id:"clipPath-".concat(g)},o.a.createElement("rect",{x:u,y:c,width:l,height:p}))):null,o.a.createElement(vt,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(g,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!h||m)&&zp.renderCallByParent(this.props,n))}}],[{key:"renderRectangle",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(af,e)}}]),e}(),ym.displayName="Bar",ym.propTypes=Om({},W,U,{className:u.a.string,layout:u.a.oneOf(["vertical","horizontal"]),xAxisId:u.a.oneOfType([u.a.number,u.a.string]),yAxisId:u.a.oneOfType([u.a.number,u.a.string]),yAxis:u.a.object,xAxis:u.a.object,stackId:u.a.oneOfType([u.a.number,u.a.string]),barSize:u.a.number,unit:u.a.oneOfType([u.a.string,u.a.number]),name:u.a.oneOfType([u.a.string,u.a.number]),dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]).isRequired,legendType:u.a.oneOf(V),minPointSize:u.a.number,maxBarSize:u.a.number,hide:u.a.bool,shape:u.a.oneOfType([u.a.func,u.a.element]),data:u.a.arrayOf(u.a.shape({x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number,radius:u.a.oneOfType([u.a.number,u.a.array]),value:u.a.oneOfType([u.a.number,u.a.string,u.a.array])})),onAnimationStart:u.a.func,onAnimationEnd:u.a.func,animationId:u.a.number,isAnimationActive:u.a.bool,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:u.a.string}),ym.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!et(),animationBegin:0,animationDuration:400,animationEasing:"ease",onAnimationStart:function(){},onAnimationEnd:function(){}},ym.getComposedData=function(t){var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,s=t.stackedData,l=t.dataStartIndex,f=t.displayedData,p=t.offset,h=Wf(r,n);if(!h)return[];var d=e.layout,y=n.props,m=y.dataKey,v=y.children,b=y.minPointSize,x="horizontal"===d?a:o,w=s?x.scale.domain():null,O=Kf({props:e,numericAxis:x}),_=X(v,li);return Om({data:f.map(function(t,e){var n,r,f,p,y,v;if(s?n=Uf(s[l+e],w):(n=Tf(t,m),g()(n)||(n=[O,n])),"horizontal"===d){if(r=Xf({axis:o,ticks:u,bandSize:i,offset:h.offset,entry:t,index:e}),f=a.scale(n[1]),p=h.size,y=a.scale(n[0])-a.scale(n[1]),v={x:r,y:a.y,width:p,height:a.height},Math.abs(b)>0&&Math.abs(y)<Math.abs(b)){var x=E(y||b)*(Math.abs(b)-Math.abs(y));f-=x,y+=x}}else r=o.scale(n[0]),f=Xf({axis:a,ticks:c,bandSize:i,offset:h.offset,entry:t,index:e}),p=o.scale(n[1])-o.scale(n[0]),y=h.size,v={x:o.x,y:f,width:o.width,height:y},Math.abs(b)>0&&Math.abs(p)<Math.abs(b)&&(p+=E(p||b)*(Math.abs(b)-Math.abs(p)));return Om({},t,{x:r,y:f,width:p,height:y,value:s?n:n[1],payload:t,background:v},_&&_[e]&&_[e].props)}),layout:d},p)},dm=mm))||dm;function Cm(t){return(Cm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Im(t,e){return!e||"object"!==Cm(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Dm(t){return(Dm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rm(t,e){return(Rm=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Lm,zm,Bm,Fm=z((Mm=Tm=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Im(this,Dm(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rm(t,e)}(e,i["Component"]),function(t,e,n){e&&Nm(t.prototype,e),n&&Nm(t,n)}(e,[{key:"render",value:function(){return null}}]),e}(),Tm.displayName="ZAxis",Tm.propTypes={type:u.a.oneOf(["number","category"]),name:u.a.oneOfType([u.a.string,u.a.number]),unit:u.a.oneOfType([u.a.string,u.a.number]),zAxisId:u.a.oneOfType([u.a.string,u.a.number]),dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),range:u.a.arrayOf(u.a.number),scale:u.a.oneOfType([u.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),u.a.func])},Tm.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"},jm=Mm))||jm;function Wm(t){return(Wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Um(){return(Um=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Gm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){qm(t,e,n[e])})}return t}function qm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hm(t,e){return!e||"object"!==Wm(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xm(t){return(Xm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Km(t,e){return(Km=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ym,$m,Zm,Jm=z((Bm=zm=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=Hm(this,(t=Xm(e)).call.apply(t,[this].concat(i)))).state={isAnimationFinished:!1},n.cachePrevPoints=function(t){n.setState({prevPoints:t})},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0})},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1})},n.id=P("recharts-scatter-"),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Km(t,e)}(e,i["Component"]),function(t,e,n){e&&Vm(t.prototype,e),n&&Vm(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.points;t.animationId!==n&&this.cachePrevPoints(r)}},{key:"renderSymbolsStatically",value:function(t){var e=this,n=this.props,r=n.shape,i=n.activeShape,a=n.activeIndex,u=Y(this.props);return t.map(function(t,n){var c=Gm({key:"symbol-".concat(n)},u,t);return o.a.createElement(vt,Um({className:"recharts-scatter-symbol"},Q(e.props,t,n),{key:"symbol-".concat(n)}),e.constructor.renderSymbolItem(a===n?i:r,c))})}},{key:"renderSymbolsWithAnimation",value:function(){var t=this,e=this.props,n=e.points,r=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,s=this.state.prevPoints;return o.a.createElement(Sr,{begin:i,duration:a,isActive:r,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var r=e.t,i=n.map(function(t,e){var n=s&&s[e];if(n){var i=I(n.cx,t.cx),o=I(n.cy,t.cy),a=I(n.size,t.size);return Gm({},t,{cx:i(r),cy:o(r),size:a(r)})}return Gm({},t,{size:I(0,t.size)(r)})});return o.a.createElement(vt,null,t.renderSymbolsStatically(i))})}},{key:"renderSymbols",value:function(){var t=this.props,e=t.points,n=t.isAnimationActive,r=this.state.prevPoints;return!(n&&e&&e.length)||r&&pn()(r,e)?this.renderSymbolsStatically(e):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,e=t.points,n=t.xAxis,r=t.yAxis,i=t.children,a=X(i,kf);if(!a)return null;function u(t,e){return{x:t.cx,y:t.cy,value:t.y,errorVal:Tf(t,e)}}function c(t,e){return{x:t.cx,y:t.cy,value:t.x,errorVal:Tf(t,e)}}return a.map(function(t,i){var a=t.props.direction;return o.a.cloneElement(t,{key:i,data:e,xAxis:n,yAxis:r,layout:"x"===a?"vertical":"horizontal",dataPointFormatter:"x"===a?c:u})})}},{key:"renderLine",value:function(){var t,e,n=this.props,r=n.points,i=n.line,a=n.lineType,u=n.lineJointType,c=Y(this.props),s=Y(i);if("joint"===a)t=r.map(function(t){return{x:t.cx,y:t.cy}});else if("fitting"===a){var l=function(t){if(!t||!t.length)return null;for(var e=t.length,n=0,r=0,i=0,o=0,a=1/0,u=-1/0,c=0;c<e;c++)n+=t[c].cx,r+=t[c].cy,i+=t[c].cx*t[c].cy,o+=t[c].cx*t[c].cx,a=Math.min(a,t[c].cx),u=Math.max(u,t[c].cx);var s=e*o!=n*n?(e*i-n*r)/(e*o-n*n):0;return{xmin:a,xmax:u,a:s,b:(r-s*n)/e}}(r),f=l.xmin,p=l.xmax,h=l.a,d=l.b,y=function(t){return h*t+d};t=[{x:f,y:y(f)},{x:p,y:y(p)}]}var m=Gm({},c,{fill:"none",stroke:c&&c.fill},s,{points:t});return e=o.a.isValidElement(i)?o.a.cloneElement(i,m):v()(i)?i(m):o.a.createElement(hh,Um({},m,{type:u})),o.a.createElement(vt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.points,r=t.line,i=t.className,a=t.xAxis,u=t.yAxis,c=t.left,l=t.top,p=t.width,h=t.height,d=t.id;if(e||!n||!n.length)return null;var y=this.state,m=y.isAnimationActive,v=y.isAnimationFinished,b=s()("recharts-scatter",i),g=a&&a.allowDataOverflow||u&&u.allowDataOverflow,x=f()(d)?this.id:d;return o.a.createElement(vt,{className:b,clipPath:g?"url(#clipPath-".concat(x,")"):null},g?o.a.createElement("defs",null,o.a.createElement("clipPath",{id:"clipPath-".concat(x)},o.a.createElement("rect",{x:c,y:l,width:p,height:h}))):null,r&&this.renderLine(),this.renderErrorBar(),o.a.createElement(vt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||v)&&zp.renderCallByParent(this.props,n))}}],[{key:"renderSymbolItem",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(Ue,Um({},e,{type:t}))}}]),e}(),zm.displayName="Scatter",zm.propTypes=Gm({},U,W,{xAxisId:u.a.oneOfType([u.a.string,u.a.number]),yAxisId:u.a.oneOfType([u.a.string,u.a.number]),zAxisId:u.a.oneOfType([u.a.string,u.a.number]),line:u.a.oneOfType([u.a.bool,u.a.object,u.a.func,u.a.element]),lineType:u.a.oneOf(["fitting","joint"]),lineJointType:u.a.oneOfType([u.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),u.a.func]),legendType:u.a.oneOf(V),className:u.a.string,name:u.a.oneOfType([u.a.string,u.a.number]),activeIndex:u.a.number,activeShape:u.a.oneOfType([u.a.object,u.a.func,u.a.element]),shape:u.a.oneOfType([u.a.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),u.a.element,u.a.func]),points:u.a.arrayOf(u.a.shape({cx:u.a.number,cy:u.a.number,size:u.a.number,node:u.a.shape({x:u.a.oneOfType([u.a.number,u.a.string]),y:u.a.oneOfType([u.a.number,u.a.string]),z:u.a.oneOfType([u.a.number,u.a.string])}),payload:u.a.any})),hide:u.a.bool,isAnimationActive:u.a.bool,animationId:u.a.number,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),zm.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!et(),animationBegin:0,animationDuration:400,animationEasing:"linear"},zm.getComposedData=function(t){var e=t.xAxis,n=t.yAxis,r=t.zAxis,i=t.item,o=t.displayedData,a=t.onItemMouseLeave,u=t.onItemMouseEnter,c=t.offset,s=t.xAxisTicks,l=X(i.props.children,li),p=f()(e.dataKey)?i.props.dataKey:e.dataKey,h=f()(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,y=r?r.range:Fm.defaultProps.range,m=y&&y[0],v=e.scale.bandwidth?e.scale.bandwidth():0,b=n.scale.bandwidth?n.scale.bandwidth():0;return Gm({onMouseLeave:a,onMouseEnter:u,points:o.map(function(t,i){var o=t[p],a=t[h],u=!f()(d)&&t[d]||"-",c=[{name:e.name||e.dataKey,unit:e.unit||"",value:o,payload:t},{name:n.name||n.dataKey,unit:n.unit||"",value:a,payload:t}];"-"!==u&&c.push({name:r.name||r.dataKey,unit:r.unit||"",value:u,payload:t});var y=Hf({axis:e,ticks:s,bandSize:v,entry:t,index:i}),g=Hf({axis:n,ticks:s,bandSize:b,entry:t,index:i}),x="-"!==u?r.scale(u):m,w=Math.sqrt(Math.max(x,0)/Math.PI);return Gm({},t,{cx:y,cy:g,x:y-w,y:g-w,xAxis:e,yAxis:n,zAxis:r,width:2*w,height:2*w,size:x,node:{x:o,y:a,z:u},tooltipPayload:c,tooltipPosition:{x:y,y:g},payload:t},l&&l[i]&&l[i].props)})},c)},Lm=Bm))||Lm;function Qm(t){return(Qm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ev(t,e){return!e||"object"!==Qm(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nv(t){return(nv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rv(t,e){return(rv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var iv,ov,av,uv=z((Zm=$m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ev(this,nv(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rv(t,e)}(e,i["Component"]),function(t,e,n){e&&tv(t.prototype,e),n&&tv(t,n)}(e,[{key:"render",value:function(){return null}}]),e}(),$m.displayName="XAxis",$m.propTypes={allowDecimals:u.a.bool,allowDuplicatedCategory:u.a.bool,hide:u.a.bool,name:u.a.oneOfType([u.a.string,u.a.number]),unit:u.a.oneOfType([u.a.string,u.a.number]),xAxisId:u.a.oneOfType([u.a.string,u.a.number]),domain:u.a.arrayOf(u.a.oneOfType([u.a.string,u.a.number,u.a.func,u.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),width:u.a.number,height:u.a.number,mirror:u.a.bool,orientation:u.a.oneOf(["top","bottom"]),type:u.a.oneOf(["number","category"]),ticks:u.a.array,tickCount:u.a.number,tickFormatter:u.a.func,padding:u.a.shape({left:u.a.number,right:u.a.number}),allowDataOverflow:u.a.bool,scale:u.a.oneOfType([u.a.oneOf(q),u.a.func]),tick:u.a.oneOfType([u.a.bool,u.a.func,u.a.object,u.a.element]),axisLine:u.a.oneOfType([u.a.bool,u.a.object]),tickLine:u.a.oneOfType([u.a.bool,u.a.object]),minTickGap:u.a.number,tickSize:u.a.number,interval:u.a.oneOfType([u.a.number,u.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:u.a.bool},$m.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0},Ym=Zm))||Ym;function cv(t){return(cv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lv(t,e){return!e||"object"!==cv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fv(t){return(fv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function pv(t,e){return(pv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var hv=z((av=ov=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),lv(this,fv(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pv(t,e)}(e,i["Component"]),function(t,e,n){e&&sv(t.prototype,e),n&&sv(t,n)}(e,[{key:"render",value:function(){return null}}]),e}(),ov.displayName="YAxis",ov.propTypes={allowDecimals:u.a.bool,allowDuplicatedCategory:u.a.bool,hide:u.a.bool,name:u.a.oneOfType([u.a.string,u.a.number]),unit:u.a.oneOfType([u.a.string,u.a.number]),yAxisId:u.a.oneOfType([u.a.string,u.a.number]),domain:u.a.arrayOf(u.a.oneOfType([u.a.string,u.a.number,u.a.func,u.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),ticks:u.a.array,tickCount:u.a.number,tickFormatter:u.a.func,width:u.a.number,height:u.a.number,mirror:u.a.bool,orientation:u.a.oneOf(["left","right"]),type:u.a.oneOf(["number","category"]),padding:u.a.shape({top:u.a.number,bottom:u.a.number}),allowDataOverflow:u.a.bool,scale:u.a.oneOfType([u.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),u.a.func]),tick:u.a.oneOfType([u.a.bool,u.a.func,u.a.object,u.a.element]),axisLine:u.a.oneOfType([u.a.bool,u.a.object]),tickLine:u.a.oneOfType([u.a.bool,u.a.object]),minTickGap:u.a.number,tickSize:u.a.number,interval:u.a.oneOfType([u.a.number,u.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:u.a.bool},ov.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1},iv=av))||iv,dv=n(116),yv=n.n(dv),mv=n(117),vv=n.n(mv),bv=n(118),gv=new(n.n(bv).a);gv.setMaxListeners&&gv.setMaxListeners(10);var xv="recharts.syncMouseEvents";function wv(t){return(wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ov(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _v(){return(_v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Av(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function kv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Ev(t,e,n[e])})}return t}function Ev(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jv(t){return(jv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Tv(t,e){return(Tv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Pv,Cv,Nv,Iv={xAxis:["bottom","top"],yAxis:["left","right"]},Dv={x:0,y:0},Rv=function(t){var e=t.chartName,n=t.GraphicalChild,r=t.eventType,a=void 0===r?"axis":r,c=t.axisComponents,l=t.legendContent,p=t.formatAxisMap,h=t.defaultProps,d=t.propTypes,y=function(t){function r(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(n=function(t,e){return!e||"object"!==wv(e)&&"function"!=typeof e?Mv(t):e}(this,jv(r).call(this,t))).handleLegendBBoxUpdate=function(t){if(t&&n.legendInstance){var e=n.state,r=e.dataStartIndex,i=e.dataEndIndex,o=e.updateId;n.setState(n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:r,dataEndIndex:i,updateId:o}))}},n.handleReceiveSyncEvent=function(t,e,r){var i=n.props,o=i.syncId,a=i.layout,u=n.state.updateId;if(o===t&&e!==n.uniqueChartId){var c=r.dataStartIndex,s=r.dataEndIndex;if(f()(r.dataStartIndex)&&f()(r.dataEndIndex))if(f()(r.activeTooltipIndex))n.setState(r);else{var l=r.chartX,p=r.chartY,h=r.activeTooltipIndex,d=n.state,y=d.offset,m=d.tooltipTicks;if(!y)return;var v=kv({},y,{x:y.left,y:y.top}),b=Math.min(l,v.x+v.width),g=Math.min(p,v.y+v.height),x=m[h]&&m[h].value,w=n.getTooltipContent(h),O=m[h]?{x:"horizontal"===a?m[h].coordinate:b,y:"horizontal"===a?g:m[h].coordinate}:Dv;n.setState(kv({},r,{activeLabel:x,activeCoordinate:O,activePayload:w}))}else n.setState(kv({dataStartIndex:c,dataEndIndex:s},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:c,dataEndIndex:s,updateId:u})))}},n.handleBrushChange=function(t){var e=t.startIndex,r=t.endIndex;if(e!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var i=n.state.updateId;n.setState(function(){return kv({dataStartIndex:e,dataEndIndex:r},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:e,dataEndIndex:r,updateId:i}))}),n.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}},n.handleMouseEnter=function(t){var e=n.props.onMouseEnter,r=n.getMouseInfo(t);if(r){var i=kv({},r,{isTooltipActive:!0});n.setState(i),n.triggerSyncEvent(i),v()(e)&&e(i,t)}},n.triggeredAfterMouseMove=function(t){var e=n.props.onMouseMove,r=n.getMouseInfo(t),i=r?kv({},r,{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(i),n.triggerSyncEvent(i),v()(e)&&e(i,t)},n.handleItemMouseEnter=function(t){n.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})},n.handleItemMouseLeave=function(){n.setState(function(){return{isTooltipActive:!1}})},n.handleMouseMove=function(t){t&&v()(t.persist)&&t.persist(),n.triggeredAfterMouseMove(t)},n.handleMouseLeave=function(t){var e=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),v()(e)&&e(r,t)},n.handleOuterEvent=function(t){var e=ut(t);if(e&&v()(n.props[e])){var r=n.getMouseInfo(t);(0,n.props[e])(r,t)}},n.handleClick=function(t){var e=n.props.onClick;v()(e)&&e(n.getMouseInfo(t),t)},n.handleMouseDown=function(t){var e=n.props.onMouseDown;v()(e)&&e(n.getMouseInfo(t),t)},n.handleMouseUp=function(t){var e=n.props.onMouseUp;v()(e)&&e(n.getMouseInfo(t),t)},n.handleTouchMove=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseMove(t.changedTouches[0])},n.handleTouchStart=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseDown(t.changedTouches[0])},n.handleTouchEnd=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseUp(t.changedTouches[0])},n.verticalCoordinatesGenerator=function(t){var e=t.xAxis,n=t.width,r=t.height,i=t.offset;return Rf(Ny.getTicks(kv({},Ny.defaultProps,e,{ticks:Lf(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},n.horizontalCoordinatesGenerator=function(t){var e=t.yAxis,n=t.width,r=t.height,i=t.offset;return Rf(Ny.getTicks(kv({},Ny.defaultProps,e,{ticks:Lf(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},n.axesTicksGenerator=function(t){return Lf(t,!0)},n.tooltipTicksGenerator=function(t){var e=N(t),n=Lf(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ci()(n,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:ep(e)}},n.renderCursor=function(t){var r=n.state,o=r.isTooltipActive,a=r.activeCoordinate,u=r.activePayload,c=r.offset;if(!(t&&t.props.cursor&&o&&a))return null;var s,l=n.props.layout,f=hh;if("ScatterChart"===e)s=a,f=Dh;else if("BarChart"===e)s=n.getCursorRectangle(),f=af;else if("radial"===l){var p=n.getCursorPoints(),h=p.cx,d=p.cy,y=p.radius;s={cx:h,cy:d,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:y,outerRadius:y},f=Zp}else s={points:n.getCursorPoints()},f=hh;var m=t.key||"_recharts-cursor",v=kv({stroke:"#ccc",pointerEvents:"none"},c,s,Y(t.props.cursor),{payload:u,key:m,className:"recharts-tooltip-cursor"});return Object(i.isValidElement)(t.props.cursor)?Object(i.cloneElement)(t.props.cursor,v):Object(i.createElement)(f,v)},n.renderPolarAxis=function(t,e,r){var o=t.type.axisType,a=n.state["".concat(o,"Map")][t.props["".concat(o,"Id")]];return Object(i.cloneElement)(t,kv({},a,{className:o,key:t.key||"".concat(e,"-").concat(r),ticks:Lf(a,!0)}))},n.renderXAxis=function(t,e,r){var i=n.state.xAxisMap[t.props.xAxisId];return n.renderAxis(i,t,e,r)},n.renderYAxis=function(t,e,r){var i=n.state.yAxisMap[t.props.yAxisId];return n.renderAxis(i,t,e,r)},n.renderGrid=function(t){var e=n.state,r=e.xAxisMap,o=e.yAxisMap,a=e.offset,u=n.props,c=u.width,s=u.height,l=N(r),f=yv()(o,function(t){return al()(t.domain,Number.isFinite)})||N(o),p=t.props||{};return Object(i.cloneElement)(t,{key:t.key||"grid",x:j(p.x)?p.x:a.left,y:j(p.y)?p.y:a.top,width:j(p.width)?p.width:a.width,height:j(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:c,chartHeight:s,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(t){var e=n.state,r=e.radiusAxisMap,o=e.angleAxisMap,a=N(r),u=N(o),c=u.cx,s=u.cy,l=u.innerRadius,f=u.outerRadius;return Object(i.cloneElement)(t,{polarAngles:Lf(u,!0).map(function(t){return t.coordinate}),polarRadius:Lf(a,!0).map(function(t){return t.coordinate}),cx:c,cy:s,innerRadius:l,outerRadius:f,key:t.key||"polar-grid"})},n.renderBrush=function(t){var e=n.props,r=e.margin,o=e.data,a=n.state,u=a.offset,c=a.dataStartIndex,s=a.dataEndIndex,l=a.updateId;return Object(i.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:zf(n.handleBrushChange,null,t.props.onChange),data:o,x:j(t.props.x)?t.props.x:u.left,y:j(t.props.y)?t.props.y:u.top+u.height+u.brushBottom-(r.bottom||0),width:j(t.props.width)?t.props.width:u.width,startIndex:c,endIndex:s,updateId:"brush-".concat(l)})},n.renderReferenceElement=function(t,e,r){if(!t)return null;var o=Mv(Mv(n)).clipPathId,a=n.state,u=a.xAxisMap,c=a.yAxisMap,s=a.offset,l=t.props,f=l.xAxisId,p=l.yAxisId;return Object(i.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:u[f],yAxis:c[p],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:o})},n.renderGraphicChild=function(t,e,r){var o=n.filterFormatItem(t,e,r);if(!o)return null;var a,u,c=Object(i.cloneElement)(t,o.props),s=n.state,l=s.isTooltipActive,p=s.tooltipAxis,h=s.activeTooltipIndex,d=s.activeLabel,y=n.props.children,m=K(y,$r),v=o.props,b=v.points,g=v.isRange,x=v.baseLine,w=o.item.props,O=w.activeDot;return!w.hide&&l&&m&&O&&h>=0&&(p.dataKey&&!p.allowDuplicatedCategory?(a=D(b,"payload.".concat(p.dataKey),d),u=g&&x&&D(x,"payload.".concat(p.dataKey),d)):(a=b[h],u=g&&x&&x[h]),!f()(a))?[c].concat(Av(n.renderActivePoints({item:o,activePoint:a,basePoint:u,childIndex:h,isRange:g}))):g?[c,null,null]:[c,null]};var o=n.constructor.createDefaultState(t);return n.state=kv({},o,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(kv({props:t},o,{updateId:0}))),n.uniqueChartId=f()(t.id)?P("recharts"):t.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),t.throttleDelay&&(n.triggeredAfterMouseMove=vv()(n.triggeredAfterMouseMove,t.throttleDelay)),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tv(t,e)}(r,i.Component),function(t,e,n){e&&Sv(t.prototype,e),n&&Sv(t,n)}(r,[{key:"componentDidMount",value:function(){f()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,i=n.children,o=n.width,a=n.height,u=n.layout,c=n.stackOffset,s=n.margin,l=this.state.updateId;if(t.data===r&&t.width===o&&t.height===a&&t.layout===u&&t.stackOffset===c&&R(t.margin,s)){if(!ot(t.children,i)){var p=f()(t.data)?l+1:l;this.setState(function(n){return kv({updateId:p},e.updateStateOfAxisMapsOffsetAndStackGroups(kv({props:t},n,{updateId:p})))})}}else{var h=this.constructor.createDefaultState(t);this.setState(kv({},h,{updateId:l+1},this.updateStateOfAxisMapsOffsetAndStackGroups(kv({props:t},h,{updateId:l+1}))))}f()(this.props.syncId)&&!f()(t.syncId)&&this.addListener(),!f()(this.props.syncId)&&f()(t.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){f()(this.props.syncId)||this.removeListener(),"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.children,l="".concat(r,"Id"),f=X(s,i),p={};return f&&f.length?p=this.getAxisMapByAxes(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):o&&o.length&&(p=this.getAxisMapByItems(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p}},{key:"getAxisMapByAxes",value:function(t,e){var n=this,r=e.axes,i=e.graphicalItems,o=e.axisType,a=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,s=e.dataEndIndex,l=t.layout,p=t.children,h=t.stackOffset,d=Df(l,o);return r.reduce(function(e,r){var y=r.props,m=y.type,v=y.dataKey,b=y.allowDataOverflow,x=y.allowDuplicatedCategory,w=y.scale,O=y.ticks,_=r.props[a],A=n.constructor.getDisplayedData(t,{graphicalItems:i.filter(function(t){return t.props[a]===_}),dataStartIndex:c,dataEndIndex:s}),k=A.length;if(!e[_]){var E,S,j;if(v){if(E=Mf(A,v,m),"category"===m&&d){var T=function(t){if(!g()(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1}(E);x&&T?(S=E,E=oy()(0,k)):x||(E=np(r.props.domain,E,r).reduce(function(t,e){return t.indexOf(e)>=0?t:Av(t).concat([e])},[]))}else if("category"===m)E=x?E.filter(function(t){return""!==t&&!f()(t)}):np(r.props.domain,E,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||f()(e)?t:Av(t).concat([e])},[]);else if("number"===m){var M=function(t,e,n,r){var i=e.map(function(e){return Nf(t,e,n,r)}).filter(function(t){return!f()(t)});return i&&i.length?i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null}(A,i.filter(function(t){return t.props[a]===_&&!t.props.hide}),v,o);M&&(E=M)}!d||"number"!==m&&"auto"===w||(j=Mf(A,v,"category"))}else E=d?oy()(0,k):u&&u[_]&&u[_].hasStack&&"number"===m?"expand"===h?[0,1]:Zf(u[_].stackGroups,c,s):If(A,i.filter(function(t){return t.props[a]===_&&!t.props.hide}),m,!0);return"number"===m&&(E=$f(p,E,_,o,O),r.props.domain&&(E=tp(r.props.domain,E,b))),kv({},e,Ev({},_,kv({},r.props,{axisType:o,domain:E,categoricalDomain:j,duplicateDomain:S,originalDomain:r.props.domain,isCategorial:d,layout:l})))}return e},{})}},{key:"getAxisMapByItems",value:function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.layout,l=t.children,f=this.constructor.getDisplayedData(t,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),p=f.length,h=Df(s,i),d=-1;return n.reduce(function(t,e){var y,m=e.props[o];return t[m]?t:(d++,h?y=oy()(0,p):a&&a[m]&&a[m].hasStack?(y=Zf(a[m].stackGroups,u,c),y=$f(l,y,m,i)):(y=tp(r.defaultProps.domain,If(f,n.filter(function(t){return t.props[o]===m&&!t.props.hide}),"number"),r.defaultProps.allowDataOverflow),y=$f(l,y,m,i)),kv({},t,Ev({},m,kv({axisType:i},r.defaultProps,{hide:!0,orientation:Iv[i]&&Iv[i][d%2],domain:y,originalDomain:r.defaultProps.domain,isCategorial:h,layout:s}))))},{})}},{key:"getActiveCoordinate",value:function(t,e,n){var r=this.props.layout,i=t.find(function(t){return t&&t.index===e});if(i){if("horizontal"===r)return{x:i.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:i.coordinate};if("centric"===r){var o=i.coordinate,a=n.radius;return kv({},n,up(n.cx,n.cy,a,o),{angle:o,radius:a})}var u=i.coordinate,c=n.angle;return kv({},n,up(n.cx,n.cy,u,c),{angle:c,radius:u})}return Dv}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}(t,function(t){var e=t.ownerDocument.documentElement,n={top:0,left:0};return void 0!==t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-e.clientTop,left:n.left+window.pageXOffset-e.clientLeft}}(this.container)),n=this.inRange(e.chartX,e.chartY);if(!n)return null;var r=this.state,i=r.xAxisMap,o=r.yAxisMap;if("axis"!==a&&i&&o){var u=N(i).scale,c=N(o).scale;return kv({},e,{xValue:u&&u.invert?u.invert(e.chartX):null,yValue:c&&c.invert?c.invert(e.chartY):null})}var s=this.state,l=s.orderedTooltipTicks,f=s.tooltipAxis,p=s.tooltipTicks,h=function(t,e,n,r){var i=-1,o=e.length;if(o>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,u=0;u<o;u++){var c=u>0?n[u-1].coordinate:n[o-1].coordinate,s=n[u].coordinate,l=u>=o-1?n[0].coordinate:n[u+1].coordinate,f=void 0;if(E(s-c)!==E(l-s)){var p=[];if(E(l-s)===E(a[1]-a[0])){f=l;var h=s+a[1]-a[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{f=c;var d=l+a[1]-a[0];p[0]=Math.min(s,(d+s)/2),p[1]=Math.max(s,(d+s)/2)}var y=[Math.min(s,(f+s)/2),Math.max(s,(f+s)/2)];if(t>y[0]&&t<=y[1]||t>=p[0]&&t<=p[1]){i=n[u].index;break}}else{var m=Math.min(c,l),v=Math.max(c,l);if(t>(m+s)/2&&t<=(v+s)/2){i=n[u].index;break}}}else for(var b=0;b<o;b++)if(0===b&&t<=(e[b].coordinate+e[b+1].coordinate)/2||b>0&&b<o-1&&t>(e[b].coordinate+e[b-1].coordinate)/2&&t<=(e[b].coordinate+e[b+1].coordinate)/2||b===o-1&&t>(e[b].coordinate+e[b-1].coordinate)/2){i=e[b].index;break}}else i=0;return i}(this.calculateTooltipPos(n),l,p,f);if(h>=0&&p){var d=p[h]&&p[h].value;return kv({},e,{activeTooltipIndex:h,activeLabel:d,activePayload:this.getTooltipContent(h,d),activeCoordinate:this.getActiveCoordinate(l,h,n)})}return null}},{key:"getTooltipContent",value:function(t,e){var n=this.state,r=n.graphicalItems,i=n.tooltipAxis,o=this.constructor.getDisplayedData(this.props,this.state);return t<0||!r||!r.length||t>=o.length?null:r.reduce(function(n,r){if(r.props.hide)return n;var a,u=r.props,c=u.dataKey,s=u.name,l=u.unit,f=u.formatter,p=u.data;return(a=i.dataKey&&!i.allowDuplicatedCategory?D(p||o,i.dataKey,e):o[t])?Av(n).concat([kv({},Y(r),{dataKey:c,unit:l,formatter:f,name:s||c,color:Pf(r),value:Tf(a,c),payload:a})]):n},[])}},{key:"getFormatItems",value:function(t,e){var n=this,r=e.graphicalItems,o=e.stackGroups,a=e.offset,u=e.updateId,s=e.dataStartIndex,l=e.dataEndIndex,p=t.barSize,h=t.layout,d=t.barGap,y=t.barCategoryGap,m=t.maxBarSize,v=this.constructor.getAxisNameByLayout(h),b=v.numericAxisName,g=v.cateAxisName,x=this.constructor.hasBar(r),w=x&&function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,u=o.length;a<u;a++)for(var c=r[o[a]].stackGroups,s=Object.keys(c),l=0,p=s.length;l<p;l++){var h=c[s[l]],d=h.items,y=h.cateAxisId,m=d.filter(function(t){return H(t.type).indexOf("Bar")>=0});if(m&&m.length){var v=m[0].props.barSize,b=m[0].props[y];i[b]||(i[b]=[]),i[b].push({item:m[0],stackList:m.slice(1),barSize:f()(v)?e:v})}}return i}({barSize:p,stackGroups:o}),O=[];return r.forEach(function(r,p){var v,_=n.constructor.getDisplayedData(t,{dataStartIndex:s,dataEndIndex:l},r),A=r.props,k=A.dataKey,E=A.maxBarSize,S=r.props["".concat(b,"Id")],j=r.props["".concat(g,"Id")],M=c.reduce(function(t,n){var i,o=e["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],u=o&&o[a];return kv({},t,(Ev(i={},n.axisType,u),Ev(i,"".concat(n.axisType,"Ticks"),Lf(u)),i))},{}),P=M[g],N=M["".concat(g,"Ticks")],I=o&&o[S]&&o[S].hasStack&&function(t,e){var n=t.props.stackId;if(T(n)){var r=e[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===t){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(r,o[S].stackGroups),D=ep(P,N),R=f()(E)?m:E,L=x&&function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,u=o.length;if(u<1)return null;var c,s=C(e,r,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,f=r/u,p=o.reduce(function(t,e){return t+e.barSize||0},0);(p+=(u-1)*s)>=r&&(p-=(u-1)*s,s=0),p>=r&&f>0&&(l=!0,p=u*(f*=.9));var h={offset:((r-p)/2>>0)-s,size:0};c=o.reduce(function(t,e){var n=Ef(t).concat([{item:e.item,position:{offset:h.offset+h.size+s,size:l?f:e.barSize}}]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:h})}),n},[])}else{var d=C(n,r,0,!0);r-2*d-(u-1)*s<=0&&(s=0);var y=(r-2*d-(u-1)*s)/u;y>1&&(y>>=0);var m=a===+a?Math.min(y,a):y;c=o.reduce(function(t,e,n){var r=Ef(t).concat([{item:e.item,position:{offset:d+(y+s)*n+(y-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){r.push({item:t,position:r[r.length-1].position})}),r},[])}return c}({barGap:d,barCategoryGap:y,bandSize:D,sizeList:w[j],maxBarSize:R}),z=r&&r.type&&r.type.getComposedData;z&&O.push({props:kv({},z(kv({},M,{displayedData:_,props:t,dataKey:k,item:r,bandSize:D,barPosition:L,offset:a,stackedData:I,layout:h,dataStartIndex:s,dataEndIndex:l,onItemMouseLeave:zf(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:zf(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(v={key:r.key||"item-".concat(p)},Ev(v,b,M[b]),Ev(v,g,M[g]),Ev(v,"animationId",u),v)),childIndex:function(t,e){var n=-1;return i.Children.forEach(e,function(e,r){e===t&&(n=r)}),n}(r,t.children),item:r})}),O}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,n=e.activeCoordinate,r=e.offset,i=e.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?n.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:n.y-o,width:"horizontal"===t?i:r.width-1,height:"horizontal"===t?r.height-1:i}}},{key:"getCursorPoints",value:function(){var t,e,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,u=o.offset;if("horizontal"===i)n=t=a.x,e=u.top,r=u.top+u.height;else if("vertical"===i)r=e=a.y,t=u.left,n=u.left+u.width;else if(!f()(a.cx)||!f()(a.cy)){if("centric"!==i){var c=a.cx,s=a.cy,l=a.radius,p=a.startAngle,h=a.endAngle;return{points:[up(c,s,l,p),up(c,s,l,h)],cx:c,cy:s,radius:l,startAngle:p,endAngle:h}}var d=a.cx,y=a.cy,m=a.innerRadius,v=a.outerRadius,b=a.angle,g=up(d,y,m,b),x=up(d,y,v,b);t=g.x,e=g.y,n=x.x,r=x.y}return[{x:t,y:e},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(t){var e=this.props.layout;return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}},{key:"inRange",value:function(t,e){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return t>=r.left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height?{x:t,y:e}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var u=N(o);return fp({x:t,y:e},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=K(t,$r)&&"axis"===a?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return kv({},Z(this.props,this.handleOuterEvent),e)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(t){var r=this,i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!tt({props:i}))return null;var s=i.children,l=i.layout,f=i.stackOffset,h=i.data,d=i.reverseStackOrder,y=this.constructor.getAxisNameByLayout(l),m=y.numericAxisName,v=y.cateAxisName,b=X(s,n),g=function(t,e,n,r,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce(function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[n],u=t[a]||{hasStack:!1,stackGroups:{}};if(T(o)){var c=u.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(e),u.hasStack=!0,u.stackGroups[o]=c}else u.stackGroups[P("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return Sf({},t,jf({},a,u))},{});return Object.keys(a).reduce(function(e,o){var u=a[o];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce(function(e,o){var a=u.stackGroups[o];return Sf({},e,jf({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:qf(t,a.items,i)}))},{})),Sf({},e,jf({},o,u))},{})}(h,b,"".concat(m,"Id"),"".concat(v,"Id"),f,d),x=c.reduce(function(t,e){return kv({},t,Ev({},"".concat(e.axisType,"Map"),r.getAxisMap(i,kv({},e,{graphicalItems:b,stackGroups:e.axisType===m&&g,dataStartIndex:o,dataEndIndex:a}))))},{}),w=this.calculateOffset(kv({},x,{props:i,graphicalItems:b}));Object.keys(x).forEach(function(t){x[t]=p(i,x[t],w,t.replace("Map",""),e)});var O=x["".concat(v,"Map")],_=this.tooltipTicksGenerator(O);return kv({formatedGraphicalItems:this.getFormatItems(i,kv({},x,{dataStartIndex:o,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:g,offset:w})),graphicalItems:b,offset:w,stackGroups:g},_,x)}},{key:"addListener",value:function(){gv.on(xv,this.handleReceiveSyncEvent),gv.setMaxListeners&&gv._maxListeners&&gv.setMaxListeners(gv._maxListeners+1)}},{key:"removeListener",value:function(){gv.removeListener(xv,this.handleReceiveSyncEvent),gv.setMaxListeners&&gv._maxListeners&&gv.setMaxListeners(gv._maxListeners-1)}},{key:"calculateOffset",value:function(t){var e=t.props,n=t.graphicalItems,r=t.xAxisMap,i=void 0===r?{}:r,o=t.yAxisMap,a=void 0===o?{}:o,u=e.width,c=e.height,s=e.children,l=e.margin||{},f=K(s,gy),p=K(s,ln),h=Object.keys(a).reduce(function(t,e){var n=a[e],r=n.orientation;return n.mirror||n.hide?t:kv({},t,Ev({},r,t[r]+n.width))},{left:l.left||0,right:l.right||0}),d=kv({},Object.keys(i).reduce(function(t,e){var n=i[e],r=n.orientation;return n.mirror||n.hide?t:kv({},t,Ev({},r,t[r]+n.height))},{top:l.top||0,bottom:l.bottom||0}),h),y=d.bottom;return f&&(d.bottom+=f.props.height||gy.defaultProps.height),p&&this.legendInstance&&(d=function(t,e,n,r){var i=n.children,o=n.width,a=n.height,u=n.margin,c=o-(u.left||0)-(u.right||0),s=a-(u.top||0)-(u.bottom||0),l=Cf({children:i,items:e,legendWidth:c,legendHeight:s}),f=t;if(l){var p=r||{},h=l.align,d=l.verticalAlign,y=l.layout;("vertical"===y||"horizontal"===y&&"center"===d)&&j(t[h])&&(f=Sf({},t,jf({},h,f[h]+(p.width||0)))),("horizontal"===y||"vertical"===y&&"center"===h)&&j(t[d])&&(f=Sf({},t,jf({},d,f[d]+(p.height||0))))}return f}(d,n,e,this.legendInstance.getBBox())),kv({brushBottom:y},d,{width:u-d.left-d.right,height:c-d.top-d.bottom})}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;f()(e)||gv.emit(xv,e,this.uniqueChartId,t)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formatedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===t||a.props.key===t.key||e===H(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,n,r){var i=this.props,a=i.width,u=i.height;return o.a.createElement(Ny,_v({},t,{className:"recharts-".concat(t.axisType," ").concat(t.axisType),key:e.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:u},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderLegend",value:function(){var t=this,e=this.state.formatedGraphicalItems,n=this.props,r=n.children,o=n.width,a=n.height,u=this.props.margin||{},c=o-(u.left||0)-(u.right||0),s=a-(u.top||0)-(u.bottom||0),f=Cf({children:r,formatedGraphicalItems:e,legendWidth:c,legendHeight:s,legendContent:l});if(!f)return null;var p=f.item,h=Ov(f,["item"]);return Object(i.cloneElement)(p,kv({},h,{chartWidth:o,chartHeight:a,margin:u,ref:function(e){t.legendInstance=e},onBBoxUpdate:this.handleLegendBBoxUpdate}))}},{key:"renderTooltip",value:function(){var t=this.props.children,e=K(t,$r);if(!e)return null;var n=this.state,r=n.isTooltipActive,o=n.activeCoordinate,a=n.activePayload,u=n.activeLabel,c=n.offset;return Object(i.cloneElement)(e,{viewBox:kv({},c,{x:c.left,y:c.top}),active:r,label:u,payload:r?a:[],coordinate:o})}},{key:"renderActivePoints",value:function(t){var e=t.item,n=t.activePoint,r=t.basePoint,i=t.childIndex,o=t.isRange,a=[],u=e.props.key,c=e.item.props,s=c.activeDot,l=kv({index:i,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:Pf(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(i)},Y(s),Z(s));return a.push(this.constructor.renderActiveDot(s,l,i)),r?a.push(this.constructor.renderActiveDot(s,kv({},l,{cx:r.x,cy:r.y,key:"".concat(u,"-basePoint-").concat(i)}),i)):o&&a.push(null),a}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,r=e.top,i=e.height,a=e.width;return o.a.createElement("clipPath",{id:t},o.a.createElement("rect",{x:n,y:r,height:i,width:a}))}},{key:"render",value:function(){var t=this;if(!tt(this))return null;var e=this.props,n=e.children,r=e.className,i=e.width,a=e.height,u=e.style,c=e.compact,l=Ov(e,["children","className","width","height","style","compact"]),f=Y(l),p={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis}};if(c)return o.a.createElement(pt,_v({},f,{width:i,height:a}),this.renderClipPath(),at(n,p));var h=this.parseEventsOfWrapper();return o.a.createElement("div",_v({className:s()("recharts-wrapper",r),style:kv({position:"relative",cursor:"default",width:i,height:a},u)},h,{ref:function(e){t.container=e}}),o.a.createElement(pt,_v({},f,{width:i,height:a}),this.renderClipPath(),at(n,p)),this.renderLegend(),this.renderTooltip())}}],[{key:"getAxisNameByLayout",value:function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(t,e){var n;return n=Object(i.isValidElement)(t)?Object(i.cloneElement)(t,e):v()(t)?t(e):o.a.createElement(il,e),o.a.createElement(vt,{className:"recharts-active-dot",key:e.key},n)}}]),r}();return y.displayName=e,y.propTypes=kv({syncId:u.a.oneOfType([u.a.string,u.a.number]),compact:u.a.bool,width:u.a.number,height:u.a.number,data:u.a.arrayOf(u.a.object),layout:u.a.oneOf(["horizontal","vertical"]),stackOffset:u.a.oneOf(["sign","expand","none","wiggle","silhouette"]),throttleDelay:u.a.number,margin:u.a.shape({top:u.a.number,right:u.a.number,bottom:u.a.number,left:u.a.number}),barCategoryGap:u.a.oneOfType([u.a.number,u.a.string]),barGap:u.a.oneOfType([u.a.number,u.a.string]),barSize:u.a.oneOfType([u.a.number,u.a.string]),maxBarSize:u.a.number,style:u.a.object,className:u.a.string,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),defaultShowTooltip:u.a.bool,onClick:u.a.func,onMouseLeave:u.a.func,onMouseEnter:u.a.func,onMouseMove:u.a.func,onMouseDown:u.a.func,onMouseUp:u.a.func,reverseStackOrder:u.a.bool,id:u.a.string},d),y.defaultProps=kv({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1},h),y.createDefaultState=function(t){var e=t.children,n=t.defaultShowTooltip,r=K(e,gy);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!f()(n)&&n}},y.hasBar=function(t){return!(!t||!t.length)&&t.some(function(t){var e=H(t&&t.type);return e&&e.indexOf("Bar")>=0})},y.getDisplayedData=function(t,e,n){var r=e.graphicalItems,i=e.dataStartIndex,o=e.dataEndIndex,a=(r||[]).reduce(function(t,e){var n=e.props.data;return n&&n.length?Av(t).concat(Av(n)):t},[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var u=t.data;return u&&u.length&&j(i)&&j(o)?u.slice(i,o+1):[]},y},Lv=Rv({chartName:"LineChart",GraphicalChild:om,axisComponents:[{axisType:"xAxis",AxisComp:uv},{axisType:"yAxis",AxisComp:hv}],formatAxisMap:dl}),zv=Rv({chartName:"BarChart",GraphicalChild:Pm,axisComponents:[{axisType:"xAxis",AxisComp:uv},{axisType:"yAxis",AxisComp:hv}],formatAxisMap:dl}),Bv=Rv({chartName:"PieChart",GraphicalChild:Rd,eventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:_d},{axisType:"radiusAxis",AxisComp:ld}],formatAxisMap:sp,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:u.a.oneOf(["centric"]),startAngle:u.a.number,endAngle:u.a.number,cx:u.a.oneOfType([u.a.number,u.a.string]),cy:u.a.oneOfType([u.a.number,u.a.string]),innerRadius:u.a.oneOfType([u.a.number,u.a.string]),outerRadius:u.a.oneOfType([u.a.number,u.a.string])}}),Fv=n(45),Wv=n.n(Fv),Uv=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"];function Gv(t){return(Gv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qv(){return(qv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Vv(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Hv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xv(t,e){return!e||"object"!==Gv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Kv(t){return(Kv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Yv(t,e){return(Yv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Zv(t,e,n[e])})}return t}function Zv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jv,Qv,tb,eb=function t(e){var n=e.depth,r=e.node,i=e.index,o=e.valueKey,a=r.children,u=n+1,c=a&&a.length?a.map(function(e,n){return t({depth:u,node:e,index:n,valueKey:o})}):null;return $v({},r,{children:c,value:a&&a.length?c.reduce(function(t,e){return t+e.value},0):_()(r[o])||r[o]<=0?0:r[o],depth:n,index:i})},nb=function(t,e,n){var r=e*e,i=t.area*t.area,o=t.reduce(function(t,e){return{min:Math.min(t.min,e.area),max:Math.max(t.max,e.area)}},{min:1/0,max:0}),a=o.min,u=o.max;return i?Math.max(r*u*n/i,i/(r*a*n)):1/0},rb=function(t,e,n,r){return e===n.width?function(t,e,n,r){var i=e?Math.round(t.area/e):0;(r||i>n.height)&&(i=n.height);for(var o,a=n.x,u=0,c=t.length;u<c;u++)(o=t[u]).x=a,o.y=n.y,o.height=i,o.width=Math.min(i?Math.round(o.area/i):0,n.x+n.width-a),a+=o.width;return o.z=!0,o.width+=n.x+n.width-a,$v({},n,{y:n.y+i,height:n.height-i})}(t,e,n,r):function(t,e,n,r){var i=e?Math.round(t.area/e):0;(r||i>n.width)&&(i=n.width);for(var o,a=n.y,u=0,c=t.length;u<c;u++)(o=t[u]).x=n.x,o.y=a,o.width=i,o.height=Math.min(i?Math.round(o.area/i):0,n.y+n.height-a),a+=o.height;return o.z=!1,o.height+=n.y+n.height-a,$v({},n,{x:n.x+i,width:n.width-i})}(t,e,n,r)},ib=function t(e,n){var r=e.children;if(r&&r.length){var i,o,a=function(t){return{x:t.x,y:t.y,width:t.width,height:t.height}}(e),u=[],c=1/0,s=Math.min(a.width,a.height),l=function(t,e){var n=e<0?0:e;return t.map(function(t){var e=t.value*n;return $v({},t,{area:_()(e)||e<=0?0:e})})}(r,a.width*a.height/e.value),f=l.slice();for(u.area=0;f.length>0;)u.push(i=f[0]),u.area+=i.area,(o=nb(u,s,n))<=c?(f.shift(),c=o):(u.area-=u.pop().area,a=rb(u,s,a,!1),s=Math.min(a.width,a.height),u.length=u.area=0,c=1/0);return u.length&&(a=rb(u,s,a,!0),u.length=u.area=0),$v({},e,{children:l.map(function(e){return t(e,n)})})}return e},ob=z((Nv=Cv=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=Xv(this,(t=Kv(e)).call.apply(t,[this].concat(i)))).state=n.constructor.createDefaultState(),n.handleAnimationEnd=function(){var t=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),v()(t)&&t()},n.handleAnimationStart=function(){var t=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),v()(t)&&t()},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yv(t,e)}(e,i["Component"]),function(t,e,n){e&&Hv(t.prototype,e),n&&Hv(t,n)}(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.type,n=t.width,r=t.height,i=t.data,o=t.dataKey,a=t.aspectRatio,u=this.computeRoot({type:e,width:n,height:r,data:i,dataKey:o,aspectRatio:a}),c=u.formatRoot,s=u.currentRoot,l=u.nestIndex;this.setState({formatRoot:c,currentRoot:s,nestIndex:l})}},{key:"computeRoot",value:function(t){var e=t.type,n=t.width,r=t.height,i=t.data,o=t.dataKey,a=t.aspectRatio,u=eb({depth:0,node:{children:i,x:0,y:0,width:n,height:r},index:0,valueKey:o}),c=ib(u,a),s=this.state.nestIndex;return"nest"===e&&s.push(u),{formatRoot:c,currentRoot:u,nestIndex:s}}},{key:"componentWillReceiveProps",value:function(t){if(t.data!==this.props.data){var e=t.type,n=t.width,r=t.height,i=t.data,o=t.dataKey,a=t.aspectRatio,u=this.computeRoot({type:e,width:n,height:r,data:i,dataKey:o,aspectRatio:a});this.setState($v({},this.constructor.createDefaultState(),u,{nestIndex:[u.currentRoot]}))}}},{key:"handleMouseEnter",value:function(t,e){var n=this.props,r=n.onMouseEnter,i=n.children;K(i,$r)?this.setState({isTooltipActive:!0,activeNode:t},function(){r&&r(t,e)}):r&&r(t,e)}},{key:"handleMouseLeave",value:function(t,e){var n=this.props,r=n.onMouseLeave,i=n.children;K(i,$r)?this.setState({isTooltipActive:!1,activeNode:null},function(){r&&r(t,e)}):r&&r(t,e)}},{key:"handleClick",value:function(t){var e=this.props,n=e.onClick;if("nest"===e.type&&t.children){var r=this.props,i=r.width,o=r.height,a=r.dataKey,u=r.aspectRatio,c=eb({depth:0,node:$v({},t,{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),s=ib(c,u),l=this.state.nestIndex;l.push(t),this.setState({formatRoot:s,currentRoot:c,nestIndex:l})}n&&n(t)}},{key:"handleNestIndex",value:function(t,e){var n=this.state.nestIndex,r=this.props,i=r.width,o=r.height,a=r.dataKey,u=r.aspectRatio,c=eb({depth:0,node:$v({},t,{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),s=ib(c,u);n=n.slice(0,e+1),this.setState({formatRoot:s,currentRoot:t,nestIndex:n})}},{key:"renderItem",value:function(t,e,n){var r=this,i=this.props,a=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,l=i.isUpdateAnimationActive,f=i.type,p=i.animationId,h=i.colorPanel,d=this.state.isAnimationFinished,y=e.width,m=e.height,v=e.x,b=e.y,g=e.depth,x=parseInt((2*Math.random()-1)*y,10),w={};return(n||"nest"===f)&&(w={onMouseEnter:this.handleMouseEnter.bind(this,e),onMouseLeave:this.handleMouseLeave.bind(this,e),onClick:this.handleClick.bind(this,e)}),a?o.a.createElement(Sr,{begin:u,duration:c,isActive:a,easing:s,key:"treemap-".concat(p),from:{x:v,y:b,width:y,height:m},to:{x:v,y:b,width:y,height:m},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(n){var i=n.x,p=n.y,y=n.width,m=n.height;return o.a.createElement(Sr,{from:"translate(".concat(x,"px, ").concat(x,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:u,easing:s,isActive:a,duration:c},o.a.createElement(vt,w,g>2&&!d?null:r.constructor.renderContentItem(t,$v({},e,{isAnimationActive:a,isUpdateAnimationActive:!l,width:y,height:m,x:i,y:p}),f,h)))}):o.a.createElement(vt,w,this.constructor.renderContentItem(t,$v({},e,{isAnimationActive:!1,isUpdateAnimationActive:!1,width:y,height:m,x:v,y:b}),f,h))}},{key:"renderNode",value:function(t,e,n){var r=this,i=this.props,a=i.content,u=i.type,c=$v({},Y(this.props),e,{root:t}),s=!e.children||!e.children.length;return!(this.state.currentRoot.children||[]).filter(function(t){return t.depth===e.depth&&t.name===e.name}).length&&t.depth&&"nest"===u?null:o.a.createElement(vt,{key:"recharts-treemap-node-".concat(n),className:"recharts-treemap-depth-".concat(e.depth)},this.renderItem(a,c,s),e.children&&e.children.length?e.children.map(function(t,n){return r.renderNode(e,t,n)}):null)}},{key:"renderAllNodes",value:function(){var t=this.state.formatRoot;return t?this.renderNode(t,t,0):null}},{key:"renderTooltip",value:function(){var t=this.props,e=t.children,n=t.nameKey,r=K(e,$r);if(!r)return null;var i=this.props,a=i.width,u=i.height,c=i.dataKey,s=this.state,l=s.isTooltipActive,f=s.activeNode,p={x:0,y:0,width:a,height:u},h=f?{x:f.x+f.width/2,y:f.y+f.height/2}:null,d=l&&f?[{payload:f,name:Tf(f,n,""),value:Tf(f,c)}]:[];return o.a.cloneElement(r,{viewBox:p,active:l,coordinate:h,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var t=this,e=this.props,n=e.nameKey,r=e.nestIndexContent,i=this.state.nestIndex;return o.a.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map(function(e,i){var a=w()(e,n,"root"),u=null;return o.a.isValidElement(r)&&(u=o.a.cloneElement(r,e,i)),u=v()(r)?r(e,i):a,o.a.createElement("div",{onClick:t.handleNestIndex.bind(t,e,i),key:"nest-index-".concat(P()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},u)}))}},{key:"render",value:function(){if(!tt(this))return null;var t=this.props,e=t.width,n=t.height,r=t.className,i=t.style,a=t.children,u=t.type,c=Vv(t,["width","height","className","style","children","type"]),l=Y(c);return o.a.createElement("div",{className:s()("recharts-wrapper",r),style:$v({},i,{position:"relative",cursor:"default",width:e,height:n})},o.a.createElement(pt,qv({},l,{width:e,height:"nest"===u?n-30:n}),this.renderAllNodes(),rt(a)),this.renderTooltip(),"nest"===u&&this.renderNestIndex())}}],[{key:"createDefaultState",value:function(){return{isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,currentRoot:null,formatRoot:null,nestIndex:[]}}},{key:"renderContentItem",value:function(t,e,n,r){if(o.a.isValidElement(t))return o.a.cloneElement(t,e);if(v()(t))return t(e);var i=e.x,a=e.y,u=e.width,c=e.height,s=e.index,l=null;u>10&&c>10&&e.children&&"nest"===n&&(l=o.a.createElement(Ah,{points:[{x:i+2,y:a+c/2},{x:i+6,y:a+c/2+3},{x:i+2,y:a+c/2+6}]}));var f=null,p=gi(e.name);u>20&&c>20&&p.width<u&&p.height<c&&(f=o.a.createElement("text",{x:i+8,y:a+c/2+7,fontSize:14},e.name));var h=r||Uv;return o.a.createElement("g",null,o.a.createElement(af,qv({fill:e.depth<2?h[s%h.length]:"rgba(255,255,255,0)",stroke:"#fff"},Wv()(e,"children"))),l,f)}}]),e}(),Cv.displayName="Treemap",Cv.propTypes={width:u.a.number,height:u.a.number,data:u.a.array,style:u.a.object,aspectRatio:u.a.number,content:u.a.oneOfType([u.a.element,u.a.func]),fill:u.a.string,stroke:u.a.string,className:u.a.string,nameKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),type:u.a.oneOf(["flat","nest"]),colorPanel:u.a.array,nestIndexContent:u.a.oneOfType([u.a.element,u.a.func]),onMouseEnter:u.a.func,onMouseLeave:u.a.func,onClick:u.a.func,isAnimationActive:u.a.bool,isUpdateAnimationActive:u.a.bool,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])},Cv.defaultProps={dataKey:"value",aspectRatio:.5*(1+Math.sqrt(5)),isAnimationActive:!et(),isUpdateAnimationActive:!et(),animationBegin:0,animationDuration:1500,animationEasing:"linear",type:"flat"},Pv=Nv))||Pv,ab=n(119),ub=n.n(ab);function cb(t){return(cb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sb(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function lb(){return(lb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function fb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pb(t,e){return!e||"object"!==cb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function hb(t){return(hb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function db(t,e){return(db=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function yb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){mb(t,e,n[e])})}return t}function mb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vb,bb,gb,xb={x:0,y:0},wb=function(t){return t.y+t.dy/2},Ob=function(t){return t&&t.value||0},_b=function(t,e){return e.reduce(function(e,n){return e+Ob(t[n])},0)},Ab=function(t,e,n){return n.reduce(function(n,r){var i=e[r],o=t[i.source];return n+wb(o)*Ob(e[r])},0)},kb=function(t,e,n){return n.reduce(function(n,r){var i=e[r],o=t[i.target];return n+wb(o)*Ob(e[r])},0)},Eb=function(t,e){return t.y-e.y},Sb=function t(e,n){for(var r=n.targetNodes,i=0,o=r.length;i<o;i++){var a=e[r[i]];a&&(a.depth=Math.max(n.depth+1,a.depth),t(e,a))}},jb=function(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=t[r],a=o.length;o.sort(Eb);for(var u=0,c=0;c<a;c++){var s=o[c],l=u-s.y;l>0&&(s.y+=l),u=s.y+s.dy+n}u=e+n;for(var f=a-1;f>=0;f--){var p=o[f],h=p.y+p.dy+n-u;if(!(h>0))break;p.y-=h,u=p.y}}},Tb=function(t,e,n,r){for(var i=0,o=e.length;i<o;i++)for(var a=e[i],u=0,c=a.length;u<c;u++){var s=a[u];if(s.sourceLinks.length){var l=_b(n,s.sourceLinks),f=Ab(t,n,s.sourceLinks)/l;s.y+=(f-wb(s))*r}}},Mb=function(t,e,n,r){for(var i=e.length-1;i>=0;i--)for(var o=e[i],a=0,u=o.length;a<u;a++){var c=o[a];if(c.targetLinks.length){var s=_b(n,c.targetLinks),l=kb(t,n,c.targetLinks)/s;c.y+=(l-wb(c))*r}}},Pb=function(t){var e=t.data,n=t.width,r=t.height,i=t.iterations,o=t.nodeWidth,a=t.nodePadding,u=e.links,c=function(t,e,n){for(var r=t.nodes,i=t.links,o=r.map(function(t,e){var n=function(t,e){for(var n=[],r=[],i=[],o=[],a=0,u=t.length;a<u;a++){var c=t[a];c.source===e&&(i.push(c.target),o.push(a)),c.target===e&&(n.push(c.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:o,targetNodes:i}}(i,e);return yb({},t,n,{value:Math.max(_b(i,n.sourceLinks),_b(i,n.targetLinks)),depth:0})}),a=0,u=o.length;a<u;a++){var c=o[a];c.sourceNodes.length||Sb(o,c)}var s=Zh()(o,function(t){return t.depth}).depth;if(s>=1)for(var l=(e-n)/s,f=0,p=o.length;f<p;f++){var h=o[f];h.targetNodes.length||(h.depth=s),h.x=h.depth*l,h.dx=n}return{tree:o,maxDepth:s}}(e,n,o).tree,s=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];e[i.depth]||(e[i.depth]=[]),e[i.depth].push(i)}return e}(c),l=function(t,e,n,r){for(var i=Ri()(t.map(function(t){return(e-(t.length-1)*n)/ub()(t,Ob)})),o=0,a=t.length;o<a;o++)for(var u=0,c=t[o].length;u<c;u++){var s=t[o][u];s.y=u,s.dy=s.value*i}return r.map(function(t){return yb({},t,{dy:Ob(t)*i})})}(s,r,a,u);jb(s,r,a);for(var f=1,p=1;p<=i;p++)Mb(c,s,l,f*=.99),jb(s,r,a),Tb(c,s,l,f),jb(s,r,a);return function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n],o=0,a=0;i.targetLinks.sort(function(n,r){return t[e[n].target].y-t[e[r].target].y}),i.sourceLinks.sort(function(n,r){return t[e[n].source].y-t[e[r].source].y});for(var u=0,c=i.targetLinks.length;u<c;u++){var s=e[i.targetLinks[u]];s&&(s.sy=o,o+=s.dy)}for(var l=0,f=i.sourceLinks.length;l<f;l++){var p=e[i.sourceLinks[l]];p&&(p.ty=a,a+=p.dy)}}}(c,l),{nodes:c,links:l}},Cb=z((tb=Qv=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=pb(this,hb(e).call(this,t))).state=n.constructor.createDefaultState(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&db(t,e)}(e,i["Component"]),function(t,e,n){e&&fb(t.prototype,e),n&&fb(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.data,r=e.width,i=e.height,o=e.margin,a=e.iterations,u=e.nodeWidth,c=e.nodePadding,s=e.nameKey;t.data===n&&t.width===r&&t.height===i&&R(t.margin,o)&&t.iterations===a&&t.nodeWidth===u&&t.nodePadding===c&&t.nameKey===s||this.setState(this.constructor.createDefaultState(t))}},{key:"handleMouseEnter",value:function(t,e,n){var r=this.props,i=r.onMouseEnter,o=r.children;K(o,$r)?this.setState({activeElement:t,activeElementType:e,isTooltipActive:!0},function(){i&&i(t,e,n)}):i&&i(t,e,n)}},{key:"handleMouseLeave",value:function(t,e,n){var r=this.props,i=r.onMouseLeave,o=r.children;K(o,$r)?this.setState({isTooltipActive:!1},function(){i&&i(t,e,n)}):i&&i(t,e,n)}},{key:"renderLinks",value:function(t,e){var n=this,r=this.props,i=r.linkCurvature,a=r.link,u=r.margin,c=u.top||0,s=u.left||0;return o.a.createElement(vt,{className:"recharts-sankey-links",key:"recharts-sankey-links"},t.map(function(t,r){var u=t.sy,l=t.ty,f=t.dy,p=e[t.source],h=e[t.target],d=p.x+p.dx+s,y=h.x+s,m=function(t,e){var n=+t,r=e-n;return function(t){return n+r*t}}(d,y),v=m(i),b=m(1-i),g=yb({sourceX:d,targetX:y,sourceY:p.y+u+f/2+c,targetY:h.y+l+f/2+c,sourceControlX:v,targetControlX:b,sourceRelativeY:u,targetRelativeY:l,linkWidth:f,index:r,payload:yb({},t,{source:p,target:h})},Y(a)),x={onMouseEnter:n.handleMouseEnter.bind(n,g,"link"),onMouseLeave:n.handleMouseLeave.bind(n,g,"link")};return o.a.createElement(vt,lb({key:"link".concat(r)},x),n.constructor.renderLinkItem(a,g))}))}},{key:"renderNodes",value:function(t){var e=this,n=this.props,r=n.node,i=n.margin,a=i.top||0,u=i.left||0;return o.a.createElement(vt,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},t.map(function(t,n){var i=t.x,c=t.y,s=t.dx,l=t.dy,f=yb({},Y(r),{x:i+u,y:c+a,width:s,height:l,index:n,payload:t}),p={onMouseEnter:e.handleMouseEnter.bind(e,f,"node"),onMouseLeave:e.handleMouseLeave.bind(e,f,"node")};return o.a.createElement(vt,lb({key:"node".concat(n)},p),e.constructor.renderNodeItem(r,f))}))}},{key:"renderTooltip",value:function(){var t=this.props,e=t.children,n=t.width,r=t.height,i=t.nameKey,a=K(e,$r);if(!a)return null;var u=this.state,c=u.isTooltipActive,s=u.activeElement,l=u.activeElementType,f={x:0,y:0,width:n,height:r},p=s?function(t,e){return"node"===e?{x:t.x+t.width/2,y:t.y+t.height/2}:{x:(t.sourceX+t.targetX)/2,y:(t.sourceY+t.targetY)/2}}(s,l):xb,h=s?function(t,e,n){var r=t.payload;if("node"===e)return[{payload:t,name:Tf(r,n,""),value:Tf(r,"value")}];if(r.source&&r.target){var i=Tf(r.source,n,""),o=Tf(r.target,n,"");return[{payload:t,name:"".concat(i," - ").concat(o),value:Tf(r,"value")}]}return[]}(s,l,i):[];return o.a.cloneElement(a,{viewBox:f,active:c,coordinate:p,label:"",payload:h})}},{key:"render",value:function(){if(!tt(this))return null;var t=this.props,e=t.width,n=t.height,r=t.className,i=t.style,a=t.children,u=sb(t,["width","height","className","style","children"]),c=this.state,l=c.links,f=c.nodes,p=Y(u);return o.a.createElement("div",{className:s()("recharts-wrapper",r),style:yb({},i,{position:"relative",cursor:"default",width:e,height:n})},o.a.createElement(pt,lb({},p,{width:e,height:n}),rt(a),this.renderLinks(l,f),this.renderNodes(f)),this.renderTooltip())}}],[{key:"createDefaultState",value:function(t){var e=t.data,n=t.width,r=t.height,i=t.margin,o=t.iterations,a=t.nodeWidth,u=t.nodePadding,c=n-(i&&i.left||0)-(i&&i.right||0),s=r-(i&&i.top||0)-(i&&i.bottom||0),l=Pb({data:e,width:c,height:s,iterations:o,nodeWidth:a,nodePadding:u}),f=l.links;return{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:l.nodes,links:f}}},{key:"renderLinkItem",value:function(t,e){if(o.a.isValidElement(t))return o.a.cloneElement(t,e);if(v()(t))return t(e);var n=e.sourceX,r=e.sourceY,i=e.sourceControlX,a=e.targetX,u=e.targetY,c=e.targetControlX,s=e.linkWidth,l=sb(e,["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"]);return o.a.createElement("path",lb({className:"recharts-sankey-link",d:"\n          M".concat(n,",").concat(r,"\n          C").concat(i,",").concat(r," ").concat(c,",").concat(u," ").concat(a,",").concat(u,"\n        "),fill:"none",stroke:"#333",strokeWidth:s,strokeOpacity:"0.2"},Y(l)))}},{key:"renderNodeItem",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):o.a.createElement(af,lb({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},e))}}]),e}(),Qv.displayName="Sankey",Qv.propTypes=yb({},W,U,{nameKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),width:u.a.number,height:u.a.number,data:u.a.shape({nodes:u.a.array,links:u.a.arrayOf(u.a.shape({target:u.a.number,source:u.a.number,value:u.a.number}))}),nodePadding:u.a.number,nodeWidth:u.a.number,linkCurvature:u.a.number,iterations:u.a.number,node:u.a.oneOfType([u.a.object,u.a.element,u.a.func]),link:u.a.oneOfType([u.a.object,u.a.element,u.a.func]),style:u.a.object,className:u.a.string,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),margin:u.a.shape({top:u.a.number,right:u.a.number,bottom:u.a.number,left:u.a.number})}),Qv.defaultProps={nodePadding:10,nodeWidth:10,nameKey:"name",dataKey:"value",linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}},Jv=tb))||Jv,Nb=Rv({chartName:"RadarChart",GraphicalChild:Kd,axisComponents:[{axisType:"angleAxis",AxisComp:_d},{axisType:"radiusAxis",AxisComp:ld}],formatAxisMap:sp,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:u.a.oneOf(["centric"]),startAngle:u.a.number,endAngle:u.a.number,cx:u.a.oneOfType([u.a.number,u.a.string]),cy:u.a.oneOfType([u.a.number,u.a.string]),innerRadius:u.a.oneOfType([u.a.number,u.a.string]),outerRadius:u.a.oneOfType([u.a.number,u.a.string])}}),Ib=Rv({chartName:"ScatterChart",GraphicalChild:Jm,eventType:"single",axisComponents:[{axisType:"xAxis",AxisComp:uv},{axisType:"yAxis",AxisComp:hv},{axisType:"zAxis",AxisComp:Fm}],formatAxisMap:dl}),Db=Rv({chartName:"AreaChart",GraphicalChild:bm,axisComponents:[{axisType:"xAxis",AxisComp:uv},{axisType:"yAxis",AxisComp:hv}],formatAxisMap:dl}),Rb=Rv({chartName:"RadialBarChart",GraphicalChild:ry,legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:_d},{axisType:"radiusAxis",AxisComp:ld}],formatAxisMap:sp,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:u.a.oneOf(["radial"]),startAngle:u.a.number,endAngle:u.a.number,cx:u.a.oneOfType([u.a.number,u.a.string]),cy:u.a.oneOfType([u.a.number,u.a.string]),innerRadius:u.a.oneOfType([u.a.number,u.a.string]),outerRadius:u.a.oneOfType([u.a.number,u.a.string])}}),Lb=Rv({chartName:"ComposedChart",GraphicalChild:[om,bm,Pm,Jm],axisComponents:[{axisType:"xAxis",AxisComp:uv},{axisType:"yAxis",AxisComp:hv},{axisType:"zAxis",AxisComp:Fm}],formatAxisMap:dl});function zb(t){return(zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fb(){return(Fb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Wb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ub(t,e){return!e||"object"!==zb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gb(t){return(Gb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qb(t,e){return(qb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Vb,Hb,Xb,Kb=function(t,e,n,r,i){var o,a=n-r;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+n,",").concat(e),o+="L ".concat(t+n-a/2,",").concat(e+i),o+="L ".concat(t+n-a/2-r,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},Yb=z((gb=bb=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=Ub(this,(t=Gb(e)).call.apply(t,[this].concat(i)))).state={totalLength:-1},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qb(t,e)}(e,i["Component"]),function(t,e,n){e&&Wb(t.prototype,e),n&&Wb(t,n)}(e,[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var t=this.node.getTotalLength();t&&this.setState({totalLength:t})}catch(t){}}},{key:"render",value:function(){var t=this,e=this.props,n=e.x,r=e.y,i=e.upperWidth,a=e.lowerWidth,u=e.height,c=e.className,l=this.state.totalLength,f=this.props,p=f.animationEasing,h=f.animationDuration,d=f.animationBegin,y=f.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||a!==+a||u!==+u||0===i&&0===a||0===u)return null;var m=s()("recharts-trapezoid",c);return y?o.a.createElement(Sr,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:u,x:n,y:r},to:{upperWidth:i,lowerWidth:a,height:u,x:n,y:r},duration:h,animationEasing:p,isActive:y},function(e){var n=e.upperWidth,r=e.lowerWidth,i=e.height,a=e.x,u=e.y;return o.a.createElement(Sr,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,easing:p},o.a.createElement("path",Fb({},Y(t.props),Z(t.props),{className:m,d:Kb(a,u,n,r,i),ref:function(e){t.node=e}})))}):o.a.createElement("g",null,o.a.createElement("path",Fb({},Y(this.props),Z(this.props),{className:m,d:Kb(n,r,i,a,u)})))}}]),e}(),bb.displayName="Trapezoid",bb.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Bb(t,e,n[e])})}return t}({},W,U,{className:u.a.string,x:u.a.number,y:u.a.number,upperWidth:u.a.number,lowerWidth:u.a.number,height:u.a.number,isUpdateAnimationActive:u.a.bool,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),bb.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},vb=gb))||vb;function $b(t){return($b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zb(){return(Zb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Jb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Qb(t,e,n[e])})}return t}function Qb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tg(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function eg(t,e){return!e||"object"!==$b(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ng(t){return(ng=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rg(t,e){return(rg=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ig=z((Xb=Hb=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=eg(this,(t=ng(e)).call.apply(t,[this].concat(i)))).state={isAnimationFinished:!1},n.cachePrevData=function(t){n.setState({prevTrapezoids:t})},n.handleAnimationEnd=function(){var t=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),v()(t)&&t()},n.handleAnimationStart=function(){var t=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),v()(t)&&t()},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rg(t,e)}(e,i["Component"]),function(t,e,n){e&&tg(t.prototype,e),n&&tg(t,n)}(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.trapezoids;t.isAnimationActive!==this.props.isAnimationActive?this.cachePrevData([]):t.animationId!==n&&this.cachePrevData(r)}},{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"renderTrapezoidsStatically",value:function(t){var e=this,n=this.props.activeShape;return t.map(function(t,r){var i=e.isActiveIndex(r)?n:null,a=Jb({},t,{stroke:t.stroke});return o.a.createElement(vt,Zb({className:"recharts-funnel-trapezoid"},Q(e.props,t,r),{key:"trapezoid-".concat(r)}),e.constructor.renderTrapezoidItem(i,a))})}},{key:"renderTrapezoidsWithAnimation",value:function(){var t=this,e=this.props,n=e.trapezoids,r=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,s=this.state.prevTrapezoids;return o.a.createElement(Sr,{begin:i,duration:a,isActive:r,easing:u,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(e){var r=e.t,i=n.map(function(t,e){var n=s&&s[e];if(n){var i=I(n.x,t.x),o=I(n.y,t.y),a=I(n.upperWidth,t.upperWidth),u=I(n.lowerWidth,t.lowerWidth),c=I(n.height,t.height);return Jb({},t,{x:i(r),y:o(r),upperWidth:a(r),lowerWidth:u(r),height:c(r)})}var l=I(t.x+t.upperWidth/2,t.x),f=I(t.y+t.height/2,t.y),p=I(0,t.upperWidth),h=I(0,t.lowerWidth),d=I(0,t.height);return Jb({},t,{x:l(r),y:f(r),upperWidth:p(r),lowerWidth:h(r),height:d(r)})});return o.a.createElement(vt,null,t.renderTrapezoidsStatically(i))})}},{key:"renderTrapezoids",value:function(){var t=this.props,e=t.trapezoids,n=t.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&e&&e.length)||r&&pn()(r,e)?this.renderTrapezoidsStatically(e):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.trapezoids,r=t.className,i=t.isAnimationActive,a=this.state.isAnimationFinished;if(e||!n||!n.length)return null;var u=s()("recharts-trapezoids",r);return o.a.createElement(vt,{className:u},this.renderTrapezoids(),(!i||a)&&zp.renderCallByParent(this.props,n))}}],[{key:"renderTrapezoidItem",value:function(t,e){return o.a.isValidElement(t)?o.a.cloneElement(t,e):v()(t)?t(e):xn()(t)?o.a.createElement(Yb,Zb({},e,t)):o.a.createElement(Yb,e)}}]),e}(),Hb.displayName="Funnel",Hb.propTypes=Jb({},W,U,{className:u.a.string,animationId:u.a.number,dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]).isRequired,nameKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),data:u.a.arrayOf(u.a.object),trapezoids:u.a.arrayOf(u.a.object),hide:u.a.bool,activeShape:u.a.oneOfType([u.a.object,u.a.func,u.a.element]),activeIndex:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),isAnimationActive:u.a.bool,animationBegin:u.a.number,animationDuration:u.a.number,animationEasing:u.a.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"])}),Hb.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!et(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name"},Hb.getRealFunnelData=function(t){var e=t.props,n=e.data,r=e.children,i=Y(t.props),o=X(r,li);return n&&n.length?n.map(function(t,e){return Jb({payload:t},i,t,o&&o[e]&&o[e].props)}):o&&o.length?o.map(function(t){return Jb({},i,t.props)}):[]},Hb.getRealWidthHeight=function(t,e){var n=t.props.width,r=e.width,i=e.height,o=e.left,a=e.right,u=e.top,c=e.bottom,s=i,l=r;return k()(n)?l=n:h()(n)&&(l=l*parseFloat(n)/100),{realWidth:l-o-a-50,realHeight:s-c-u,offsetX:(r-l)/2,offsetY:(i-s)/2}},Hb.getComposedData=function(t){var e=t.item,n=t.offset,r=t.onItemMouseLeave,i=t.onItemMouseEnter,o=ig.getRealFunnelData(e),a=e.props,u=a.dataKey,c=a.nameKey,s=n.left,l=n.top,f=ig.getRealWidthHeight(e,n),p=f.realHeight,h=f.realWidth,d=f.offsetX,y=f.offsetY,m=Tf(o[0],u,0),v=o.length,b=p/v;return{trapezoids:o.map(function(t,e){var n=Tf(t,u,0),r=Tf(t,c,e),i=0;e!==v-1&&(i=Tf(o[e+1],u,0));var a=(m-n)*h/(2*m)+l+25+d,f=p/v*e+s+y,g=n/m*h,x=i/m*h,w=[{name:r,value:n,payload:t}],O={x:a+g/2,y:f+b/2};return Jb({x:a,y:f,width:Math.max(g,x),upperWidth:g,lowerWidth:x,height:b,name:r,val:n,tooltipPayload:w,tooltipPosition:O},Wv()(t,"width"),{payload:t})}),data:o,onMouseLeave:r,onMouseEnter:i}},Vb=Xb))||Vb,og=ig,ag=Rv({chartName:"FunnelChart",GraphicalChild:og,eventType:"item",axisComponents:[],defaultProps:{layout:"centric"},propTypes:{layout:u.a.oneOf(["centric"])}});n.d(e,"Surface",function(){return pt}),n.d(e,"Layer",function(){return vt}),n.d(e,"Legend",function(){return ln}),n.d(e,"Tooltip",function(){return $r}),n.d(e,"ResponsiveContainer",function(){return ui}),n.d(e,"Cell",function(){return li}),n.d(e,"Text",function(){return Mi}),n.d(e,"Label",function(){return kp}),n.d(e,"LabelList",function(){return zp}),n.d(e,"Sector",function(){return Zp}),n.d(e,"Curve",function(){return hh}),n.d(e,"Rectangle",function(){return af}),n.d(e,"Polygon",function(){return Ah}),n.d(e,"Dot",function(){return il}),n.d(e,"Cross",function(){return Dh}),n.d(e,"Symbols",function(){return Ue}),n.d(e,"PolarGrid",function(){return Xh}),n.d(e,"PolarRadiusAxis",function(){return ld}),n.d(e,"PolarAngleAxis",function(){return _d}),n.d(e,"Pie",function(){return Rd}),n.d(e,"Radar",function(){return Kd}),n.d(e,"RadialBar",function(){return ry}),n.d(e,"Brush",function(){return gy}),n.d(e,"ReferenceLine",function(){return Xl}),n.d(e,"ReferenceDot",function(){return Cl}),n.d(e,"ReferenceArea",function(){return yf}),n.d(e,"CartesianAxis",function(){return Ny}),n.d(e,"CartesianGrid",function(){return Hy}),n.d(e,"Line",function(){return om}),n.d(e,"Area",function(){return bm}),n.d(e,"Bar",function(){return Pm}),n.d(e,"Scatter",function(){return Jm}),n.d(e,"XAxis",function(){return uv}),n.d(e,"YAxis",function(){return hv}),n.d(e,"ZAxis",function(){return Fm}),n.d(e,"ErrorBar",function(){return kf}),n.d(e,"LineChart",function(){return Lv}),n.d(e,"BarChart",function(){return zv}),n.d(e,"PieChart",function(){return Bv}),n.d(e,"Treemap",function(){return ob}),n.d(e,"Sankey",function(){return Cb}),n.d(e,"RadarChart",function(){return Nb}),n.d(e,"ScatterChart",function(){return Ib}),n.d(e,"AreaChart",function(){return Db}),n.d(e,"RadialBarChart",function(){return Rb}),n.d(e,"ComposedChart",function(){return Lb}),n.d(e,"Funnel",function(){return og}),n.d(e,"FunnelChart",function(){return ag}),n.d(e,"Trapezoid",function(){return Yb})}])});