@wavv/ui 1.4.0-beta.2 → 1.4.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -197,7 +197,7 @@ var i=n[t];i.value*=-1,this.$=i}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
197
197
|
38:14,
|
|
198
198
|
/*! Conditions:: INITIAL */
|
|
199
199
|
/*! Rule:: $ */
|
|
200
|
-
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return i.lexer=o,a.prototype=i,i.Parser=a,new a}();e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)}}(gv);var yv={},vv={exports:{}},mv={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},bv=function(e,t,n,r){if(!mv.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!mv[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=mv[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(i*r)/r):i};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(bv);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(vv,vv.exports),Object.defineProperty(yv,"__esModule",{value:!0}),yv.flip=Ov;var wv=function(e){return e&&e.__esModule?e:{default:e}}(vv.exports);function xv(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,wv.default)(e.left,e.right,t),r=xv(n.left,t),i=xv(n.right,t);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(_v(r.right,i.right)?n=(0,wv.default)(r.left,i.left,t):_v(r.right,i.left)&&(n=(0,wv.default)(r.left,i.right,t)),r=xv(n.left,t),i=xv(n.right,t));return e.left=r,e.right=i,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return e;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return Sv(i);r.type===i.type&&Cv(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(Cv(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=xv({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?Ov(i.operator):i.operator,xv(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=xv({type:"MathExpression",operator:"-"===o?Ov(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,xv(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Cv(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=xv({type:"MathExpression",operator:o,left:r.left,right:i},t),xv(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=xv({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=xv({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),xv(e,t)}return e}(e,t);case"/":return function(e,t){if(!Cv(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return Cv(e.left.left.type)&&Cv(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,xv(e.left,t)):e;if(Cv(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(Cv(e.left.left.type)&&Cv(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Cv(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(Cv(e.right.left.type)&&Cv(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&Cv(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?xv(e.value,t):e}function _v(e,t){return e.type===t.type&&e.value===t.value}function Cv(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function Ov(e){return"+"===e?"-":"+"}function Sv(e){return Cv(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Sv(e.left),e.right=Sv(e.right)),e}yv.default=xv;var kv={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=yv,r={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function o(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,c=e.operator,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+o(a,t)+")":u+=o(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+o(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=o(s,t)):u+=o(s,t),u;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+o(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+o(e.value,t)+")":"calc("+o(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default}(kv,kv.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(hv),r=gv,i=a(yv),o=a(kv.exports);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var c=r.parser.parse(a),u=(0,i.default)(c,t);e.type="word",e.value=(0,o.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(Jy,Jy.exports);var Ev=St(Jy.exports);function Av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Av(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Av(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mv(e){return function(e){if(Array.isArray(e))return Pv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pv(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Dv={widthCache:{},cacheCount:0},Iv={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Rv=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var Lv=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((o=n,o.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(Mv(e),["-",t.toLowerCase()]):[].concat(Mv(e),[t])}),[]).join("")),":").concat((r=n,i=e[n],Rv.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},Nv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||_g.isSsr)return{width:0,height:0};var n="".concat(e),r=Lv(t),i="".concat(n,"-").concat(r);if(Dv.widthCache[i])return Dv.widthCache[i];try{var o=document.getElementById("recharts_measurement_span");o||((o=document.createElement("span")).setAttribute("id","recharts_measurement_span"),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Tv(Tv({},Iv),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=n;var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Dv.widthCache[i]=c,++Dv.cacheCount>2e3&&(Dv.cacheCount=0,Dv.widthCache={}),c}catch(e){return{width:0,height:0}}};function Bv(e){return Bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bv(e)}function Fv(){return Fv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fv.apply(this,arguments)}function zv(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vv(e,t){return Vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vv(e,t)}function Kv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$v(e);if(t){var i=$v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Wv(this,n)}}function Wv(e,t){return!t||"object"!==Bv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$v(e)}function qv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zv(Object(n),!0).forEach((function(t){Xv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jv=/[ \f\n\r\t\v\u2028\u2029]+/,Qv=function(e){try{var t=[];return Wf(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Jv)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Nv(t,e.style).width}})),spaceWidth:e.breakAll?0:Nv(" ",e.style).width}}catch(e){return null}},em=function(e){return[{words:Wf(e)?[]:e.toString().split(Jv)}]},tm=function(e,t){if((e.width||e.scaleToFit)&&!_g.isSsr&&t){var n=Qv(e);return n?function(e,t,n,r,i){var o=Cf(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||i||s.width+a+n<r))s.words.push(o),s.width+=a+n;else{var c={words:[o],width:a};e.push(c)}return e}),[])},c=s(t);if(!o)return c;for(var u,l=function(t){var n=a.slice(0,t),i=Qv(Yv(Yv({},e),{},{children:n+"…"})).wordsWithComputedWidth,o=s(i),c=o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>r;return[c,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=qv(l(h-1),2),y=g[0],v=g[1],m=qv(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(p=h-1),!y&&m){u=v;break}d++}return u||c}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):em(e.children)}return em(e.children)},nm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vv(e,t)}(a,w);var t,n,r,o=Kv(a);function a(){var e;Uv(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={},e}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,o=e.verticalAnchor,a=e.scaleToFit,s=e.angle,c=e.lineHeight,u=e.capHeight,l=e.className,f=e.breakAll,p=zv(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),d=this.state.wordsByLines;if(!Of(p.x)||!Of(p.y))return null;var h,g=p.x+(Cf(t)?t:0),y=p.y+(Cf(n)?n:0);switch(o){case"start":h=Ev("calc(".concat(u,")"));break;case"middle":h=Ev("calc(".concat((d.length-1)/2," * -").concat(c," + (").concat(u," / 2))"));break;default:h=Ev("calc(".concat(d.length-1," * -").concat(c,")"))}var v=[];if(a){var m=d[0].width,b=this.props.width;v.push("scale(".concat((Cf(b)?b/m:1)/m,")"))}return s&&v.push("rotate(".concat(s,", ").concat(g,", ").concat(y,")")),v.length&&(p.transform=v.join(" ")),i.createElement("text",Fv({},$n(p,!0),{x:g,y:y,className:zn("recharts-text",l),textAnchor:r}),d.map((function(e,t){return i.createElement("tspan",{x:g,dy:0===t?h:c,key:t},e.words.join(f?"":" "))})))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:tm(e,n)}}return null}}],n&&Hv(t.prototype,n),r&&Hv(t,r),a}();function rm(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function im(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}nm.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var om={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},am=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},sm=null,cm=null,um=function e(t){if(t===sm&&xo(cm))return cm;var n=[];return g.forEach(t,(function(t){Wf(t)||(Tt.exports.isFragment(t)?n=n.concat(e(t.props.children)):n.push(t))})),cm=n,sm=t,n},lm=function(e,t){var n=[],r=[];return r=xo(t)?t.map((function(e){return am(e)})):[am(t)],um(e).forEach((function(e){var t=ac(e,"type.displayName")||ac(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n},fm=function(e,t){var n=lm(e,t);return n&&n[0]},pm=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Cf(n)||n<=0||!Cf(r)||r<=0)},dm=["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"],hm=function e(t,n){if(t===n)return!0;var r=g.count(t);if(r!==g.count(n))return!1;if(0===r)return!0;if(1===r)return gm(xo(t)?t[0]:t,xo(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(xo(o)||xo(a)){if(!e(o,a))return!1}else if(!gm(o,a))return!1}return!0},gm=function(e,t){if(Wf(e)&&Wf(t))return!0;if(!Wf(e)&&!Wf(t)){var n=e.props||{},r=n.children,i=im(n,["children"]),o=t.props||{},a=o.children,s=im(o,["children"]);return r&&a?rm(i,s)&&hm(r,a):!r&&!a&&rm(i,s)}return!1},ym=function(e,t){var n=[],r={};return um(e).forEach((function(e,i){if(function(e){return e&&e.type&&wf(e.type)&&dm.indexOf(e.type)>=0}(e))n.push(e);else if(e){var o=am(e.type),a=t[o]||{},s=a.handler,c=a.once;if(s&&(!c||!r[o])){var u=s(e,o,i);n.push(u),r[o]=!0}}})),n},vm=fs;var mm=function(e,t){return vm(e,t)},bm=Es;var wm=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!bm(a):n(a,s)))var s=a,c=o}return c};var xm=function(e,t){return e>t},_m=wm,Cm=xm,Om=kc;var Sm=function(e){return e&&e.length?_m(e,Om,Cm):void 0};var km=function(e,t){return e<t},Em=wm,Am=km,Tm=kc;var jm=function(e){return e&&e.length?Em(e,Tm,Am):void 0},Mm=zs,Pm=zc,Dm=_h,Im=xo;var Rm=dh,Lm=function(e,t){return(Im(e)?Mm:Dm)(e,Pm(t))};var Nm,Bm=function(e,t){return Rm(Lm(e,t),1)},Fm=!0,zm="[DecimalError] ",Um=zm+"Invalid argument: ",Hm=zm+"Exponent out of range: ",Vm=Math.floor,Km=Math.pow,Wm=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$m=1e7,qm=Vm(1286742750677284.5),Gm={};function Zm(e,t){var n,r,i,o,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),Fm?ob(t,f):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i){for(o<0?(r=c,o=-o,s=u.length):(r=u,i=a,s=c.length),o>(s=(a=Math.ceil(f/7))>s?a+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=c.length)-(o=u.length)<0&&(o=s,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/$m|0,c[o]%=$m;for(n&&(c.unshift(n),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=i,Fm?ob(t,f):t}function Ym(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Um+e)}function Xm(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=nb(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=nb(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}Gm.absoluteValue=Gm.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Gm.comparedTo=Gm.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},Gm.decimalPlaces=Gm.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},Gm.dividedBy=Gm.div=function(e){return Jm(this,new this.constructor(e))},Gm.dividedToIntegerBy=Gm.idiv=function(e){var t=this.constructor;return ob(Jm(this,new t(e),0,1),t.precision)},Gm.equals=Gm.eq=function(e){return!this.cmp(e)},Gm.exponent=function(){return eb(this)},Gm.greaterThan=Gm.gt=function(e){return this.cmp(e)>0},Gm.greaterThanOrEqualTo=Gm.gte=function(e){return this.cmp(e)>=0},Gm.isInteger=Gm.isint=function(){return this.e>this.d.length-2},Gm.isNegative=Gm.isneg=function(){return this.s<0},Gm.isPositive=Gm.ispos=function(){return this.s>0},Gm.isZero=function(){return 0===this.s},Gm.lessThan=Gm.lt=function(e){return this.cmp(e)<0},Gm.lessThanOrEqualTo=Gm.lte=function(e){return this.cmp(e)<1},Gm.logarithm=Gm.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(Nm))throw Error(zm+"NaN");if(n.s<1)throw Error(zm+(n.s?"NaN":"-Infinity"));return n.eq(Nm)?new r(0):(Fm=!1,t=Jm(rb(n,o),rb(e,o),o),Fm=!0,ob(t,i))},Gm.minus=Gm.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ab(t,e):Zm(t,(e.s=-e.s,e))},Gm.modulo=Gm.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(zm+"NaN");return n.s?(Fm=!1,t=Jm(n,e,0,1).times(e),Fm=!0,n.minus(t)):ob(new r(n),i)},Gm.naturalExponential=Gm.exp=function(){return Qm(this)},Gm.naturalLogarithm=Gm.ln=function(){return rb(this)},Gm.negated=Gm.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Gm.plus=Gm.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Zm(t,e):ab(t,(e.s=-e.s,e))},Gm.precision=Gm.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Um+e);if(t=eb(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Gm.squareRoot=Gm.sqrt=function(){var e,t,n,r,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(zm+"NaN")}for(e=eb(s),Fm=!1,0==(i=Math.sqrt(+s))||i==1/0?(((t=Xm(s.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Vm((e+1)/2)-(e<0||e%2),r=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(i.toString()),i=a=(n=c.precision)+3;;)if(r=(o=r).plus(Jm(s,o,a+2)).times(.5),Xm(o.d).slice(0,a)===(t=Xm(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(ob(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if("9999"!=t)break;a+=4}return Fm=!0,ob(r,n)},Gm.times=Gm.mul=function(e){var t,n,r,i,o,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(c=p.length)<(u=d.length)&&(o=p,p=d,d=o,a=c,c=u,u=a),o=[],r=a=c+u;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)s=o[i]+d[r]*p[i-r-1]+t,o[i--]=s%$m|0,t=s/$m|0;o[i]=(o[i]+t)%$m|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Fm?ob(e,f.precision):e},Gm.toDecimalPlaces=Gm.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Ym(e,0,1e9),void 0===t?t=r.rounding:Ym(t,0,8),ob(n,e+eb(n)+1,t))},Gm.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=sb(r,!0):(Ym(e,0,1e9),void 0===t?t=i.rounding:Ym(t,0,8),n=sb(r=ob(new i(r),e+1,t),!0,e+1)),n},Gm.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?sb(i):(Ym(e,0,1e9),void 0===t?t=o.rounding:Ym(t,0,8),n=sb((r=ob(new o(i),e+eb(i)+1,t)).abs(),!1,e+eb(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},Gm.toInteger=Gm.toint=function(){var e=this,t=e.constructor;return ob(new t(e),eb(e)+1,t.rounding)},Gm.toNumber=function(){return+this},Gm.toPower=Gm.pow=function(e){var t,n,r,i,o,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(Nm);if(!(s=new c(s)).s){if(e.s<1)throw Error(zm+"Infinity");return s}if(s.eq(Nm))return s;if(r=c.precision,e.eq(Nm))return ob(s,r);if(a=(t=e.e)>=(n=e.d.length-1),o=s.s,a){if((n=u<0?-u:u)<=9007199254740991){for(i=new c(Nm),t=Math.ceil(r/7+4),Fm=!1;n%2&&cb((i=i.times(s)).d,t),0!==(n=Vm(n/2));)cb((s=s.times(s)).d,t);return Fm=!0,e.s<0?new c(Nm).div(i):ob(i,r)}}else if(o<0)throw Error(zm+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,Fm=!1,i=e.times(rb(s,r+12)),Fm=!0,(i=Qm(i)).s=o,i},Gm.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=sb(i,(n=eb(i))<=o.toExpNeg||n>=o.toExpPos):(Ym(e,1,1e9),void 0===t?t=o.rounding:Ym(t,0,8),r=sb(i=ob(new o(i),e,t),e<=(n=eb(i))||n<=o.toExpNeg,e)),r},Gm.toSignificantDigits=Gm.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Ym(e,1,1e9),void 0===t?t=n.rounding:Ym(t,0,8)),ob(new n(this),e,t)},Gm.toString=Gm.valueOf=Gm.val=Gm.toJSON=Gm[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=eb(e),n=e.constructor;return sb(e,t<=n.toExpNeg||t>=n.toExpPos)};var Jm=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%$m|0,r=n/$m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*$m+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,O,S=r.constructor,k=r.s==i.s?1:-1,E=r.d,A=i.d;if(!r.s)return new S(r);if(!i.s)throw Error(zm+"Division by zero");for(c=r.e-i.e,C=A.length,x=E.length,h=(d=new S(k)).d=[],u=0;A[u]==(E[u]||0);)++u;if(A[u]>(E[u]||0)&&--c,(m=null==o?o=S.precision:a?o+(eb(r)-eb(i))+1:o)<0)return new S(0);if(m=m/7+2|0,u=0,1==C)for(l=0,A=A[0],m++;(u<x||l)&&m--;u++)b=l*$m+(E[u]||0),h[u]=b/A|0,l=b%A|0;else{for((l=$m/(A[0]+1)|0)>1&&(A=e(A,l),E=e(E,l),C=A.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(O=A.slice()).unshift(0),_=A[0],A[1]>=$m/2&&++_;do{l=0,(s=t(A,g,C,y))<0?(v=g[0],C!=y&&(v=v*$m+(g[1]||0)),(l=v/_|0)>1?(l>=$m&&(l=$m-1),1==(s=t(f=e(A,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?O:A,p))):(0==l&&(s=l=1),f=A.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(A,g,C,y=g.length))<1&&(l++,n(g,C<y?O:A,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),d.e=c,ob(d,a?o+eb(d)+1:o)}}();function Qm(e,t){var n,r,i,o,a,s=0,c=0,u=e.constructor,l=u.precision;if(eb(e)>16)throw Error(Hm+eb(e));if(!e.s)return new u(Nm);for(null==t?(Fm=!1,a=l):a=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(a+=Math.log(Km(2,c))/Math.LN10*2+5|0,n=r=i=new u(Nm),u.precision=a;;){if(r=ob(r.times(e),a),n=n.times(++s),Xm((o=i.plus(Jm(r,n,a))).d).slice(0,a)===Xm(i.d).slice(0,a)){for(;c--;)i=ob(i.times(i),a);return u.precision=l,null==t?(Fm=!0,ob(i,l)):i}i=o}}function eb(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function tb(e,t,n){if(t>e.LN10.sd())throw Fm=!0,n&&(e.precision=n),Error(zm+"LN10 precision limit exceeded");return ob(new e(e.LN10),t)}function nb(e){for(var t="";e--;)t+="0";return t}function rb(e,t){var n,r,i,o,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(zm+(p.s?"NaN":"-Infinity"));if(p.eq(Nm))return new h(0);if(null==t?(Fm=!1,u=g):u=t,p.eq(10))return null==t&&(Fm=!0),tb(h,u);if(u+=10,h.precision=u,r=(n=Xm(d)).charAt(0),o=eb(p),!(Math.abs(o)<15e14))return c=tb(h,u+2,g).times(o+""),p=rb(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(Fm=!0,ob(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Xm((p=p.times(e)).d)).charAt(0),f++;for(o=eb(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),s=a=p=Jm(p.minus(Nm),p.plus(Nm),u),l=ob(p.times(p),u),i=3;;){if(a=ob(a.times(l),u),Xm((c=s.plus(Jm(a,new h(i),u))).d).slice(0,u)===Xm(s.d).slice(0,u))return s=s.times(2),0!==o&&(s=s.plus(tb(h,u+2,g).times(o+""))),s=Jm(s,new h(f),u),h.precision=g,null==t?(Fm=!0,ob(s,g)):s;s=c,i+=2}}function ib(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=Vm(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Fm&&(e.e>qm||e.e<-qm))throw Error(Hm+n)}else e.s=0,e.e=0,e.d=[0];return e}function ob(e,t,n){var r,i,o,a,s,c,u,l,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=7,i=t,u=f[l=0];else{if((l=Math.ceil((r+1)/7))>=(o=f.length))return e;for(u=o=f[l],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(s=u/(o=Km(10,a-i-1))%10|0,c=t<0||void 0!==f[l+1]||u%o,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?i>0?u/Km(10,a-i):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(o=eb(e),f.length=1,t=t-o-1,f[0]=Km(10,(7-t%7)%7),e.e=Vm(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,o=1,l--):(f.length=l+1,o=Km(10,7-r),f[l]=i>0?(u/Km(10,a-i)%Km(10,i)|0)*o:0),c)for(;;){if(0==l){(f[0]+=o)==$m&&(f[0]=1,++e.e);break}if(f[l]+=o,f[l]!=$m)break;f[l--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(Fm&&(e.e>qm||e.e<-qm))throw Error(Hm+eb(e));return e}function ab(e,t){var n,r,i,o,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Fm?ob(t,d):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(i=Math.max(Math.ceil(d/7),s)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((l=(i=c.length)<(s=f.length))&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,i=f.length-s;i>0;--i)c[s++]=0;for(i=f.length;i>a;){if(c[--i]<f[i]){for(o=i;o&&0===c[--o];)c[o]=$m-1;--c[o],c[i]+=$m}c[i]-=f[i]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,Fm?ob(t,d):t):new p(0)}function sb(e,t,n){var r,i=eb(e),o=Xm(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+nb(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+nb(-i-1)+o,n&&(r=n-a)>0&&(o+=nb(r))):i>=a?(o+=nb(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+nb(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=nb(r))),e.s<0?"-"+o:o}function cb(e,t){if(e.length>t)return e.length=t,!0}function ub(e){if(!e||"object"!=typeof e)throw Error(zm+"Object expected");var t,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(Vm(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(Um+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Um+n+": "+r);this[n]=new this(r)}return this}var lb=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(Um+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):ib(t,e.toString())}if("string"!=typeof e)throw Error(Um+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Wm.test(e))throw Error(Um+e);ib(t,e)}if(o.prototype=Gm,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=e,o.config=o.set=ub,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Nm=new lb(1);var fb=lb;function pb(e){return function(e){if(Array.isArray(e))return db(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return db(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return db(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function db(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hb=function(e){return e},gb={"@@functional/placeholder":!0},yb=function(e){return e===gb},vb=function(e){return function t(){return 0===arguments.length||1===arguments.length&&yb(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},mb=function e(t,n){return 1===t?n:vb((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==gb})).length;return a>=t?n.apply(void 0,i):e(t-a,vb((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return yb(e)?t.shift():e}));return n.apply(void 0,pb(o).concat(t))})))}))},bb=function(e){return mb(e.length,e)},wb=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},xb=bb((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),_b=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Cb=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var Ob=bb((function(e,t,n){var r=+e;return r+n*(+t-r)})),Sb=bb((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),kb=bb((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),Eb={rangeStep:function(e,t,n){for(var r=new fb(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new fb(e).abs().log(10).toNumber())+1},interpolateNumber:Ob,uninterpolateNumber:Sb,uninterpolateTruncation:kb};function Ab(e){return function(e){if(Array.isArray(e))return Mb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||jb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||jb(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jb(e,t){if(e){if("string"==typeof e)return Mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mb(e,t):void 0}}function Mb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pb(e){var t=Tb(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Db(e,t,n){if(e.lte(0))return new fb(0);var r=Eb.getDigitCount(e.toNumber()),i=new fb(10).pow(r),o=e.div(i),a=1!==r?.05:.1,s=new fb(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?s:new fb(Math.ceil(s))}function Ib(e,t,n){var r=1,i=new fb(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new fb(10).pow(Eb.getDigitCount(e)-1),i=new fb(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new fb(Math.floor(e)))}else 0===e?i=new fb(Math.floor((t-1)/2)):n||(i=new fb(Math.floor(e)));var a=Math.floor((t-1)/2),s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return hb;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}}(xb((function(e){return i.add(new fb(e-a).mul(r)).toNumber()})),wb);return s(0,t)}function Rb(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new fb(0),tickMin:new fb(0),tickMax:new fb(0)};var o,a=Db(new fb(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new fb(0):(o=new fb(e).add(t).div(2)).sub(new fb(o).mod(a));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new fb(t).sub(o).div(a).toNumber()),u=s+c+1;return u>n?Rb(e,t,n,r,i+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:o.sub(new fb(s).mul(a)),tickMax:o.add(new fb(c).mul(a))})}var Lb=Cb((function(e){var t=Tb(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=Pb([n,r]),c=Tb(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(Ab(wb(0,i-1).map((function(){return 1/0})))):[].concat(Ab(wb(0,i-1).map((function(){return-1/0}))),[l]);return n>r?_b(f):f}if(u===l)return Ib(u,i,o);var p=Rb(u,l,a,o),d=p.step,h=p.tickMin,g=p.tickMax,y=Eb.rangeStep(h,g.add(new fb(.1).mul(d)),d);return n>r?_b(y):y})),Nb=Cb((function(e,t){var n=Tb(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Pb([r,i]),s=Tb(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var l=Math.max(t,2),f=Db(new fb(u).sub(c).div(l-1),o,0),p=[].concat(Ab(Eb.rangeStep(new fb(c),new fb(u).sub(new fb(.99).mul(f)),f)),[u]);return r>i?_b(p):p}));function Bb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Fb(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>Bb(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}function zb(e){return null===e?NaN:+e}const Ub=Fb(Bb).right;Fb(zb).center;var Hb=Math.sqrt(50),Vb=Math.sqrt(10),Kb=Math.sqrt(2);function Wb(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=$b(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}function $b(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Hb?10:o>=Vb?5:o>=Kb?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Hb?10:o>=Vb?5:o>=Kb?2:1)}function qb(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Hb?i*=10:o>=Vb?i*=5:o>=Kb&&(i*=2),t<e?-i:i}function Gb(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Zb(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Yb(e,t,n=0,r=e.length-1,i=Bb){for(;r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(o-c)/o)*(a-o/2<0?-1:1);Yb(e,t,Math.max(n,Math.floor(t-a*c/o+u)),Math.min(r,Math.floor(t+(o-a)*c/o+u)),i)}const o=e[t];let a=n,s=r;for(Xb(e,n,t),i(e[r],o)>0&&Xb(e,n,r);a<s;){for(Xb(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}0===i(e[n],o)?Xb(e,n,s):(++s,Xb(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Xb(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Jb(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return Zb(e);if(t>=1)return Gb(e);var r,i=(r-1)*t,o=Math.floor(i),a=Gb(Yb(e,o).subarray(0,o+1));return a+(Zb(e.subarray(o+1))-a)*(i-o)}}function Qb(e,t,n=zb){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function ew(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}function tw(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function nw(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const rw=Symbol("implicit");function iw(){var e=new Map,t=[],n=[],r=rw;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==rw)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return iw(t,n).unknown(r)},tw.apply(i,arguments),i}function ow(){var e,t,n=iw().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<o,p=f?a:o,d=f?o:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),t=Math.round(t));var h=ew(n).map((function(t){return p+e*t}));return i(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return ow(r(),[o,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},tw.apply(f(),arguments)}function aw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aw(t())},e}function sw(){return aw(ow.apply(null,arguments).paddingInner(1))}function cw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function lw(){}var fw=1/.7,pw="\\s*([+-]?\\d+)\\s*",dw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",hw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gw=/^#([0-9a-f]{3,8})$/,yw=new RegExp("^rgb\\("+[pw,pw,pw]+"\\)$"),vw=new RegExp("^rgb\\("+[hw,hw,hw]+"\\)$"),mw=new RegExp("^rgba\\("+[pw,pw,pw,dw]+"\\)$"),bw=new RegExp("^rgba\\("+[hw,hw,hw,dw]+"\\)$"),ww=new RegExp("^hsl\\("+[dw,hw,hw]+"\\)$"),xw=new RegExp("^hsla\\("+[dw,hw,hw,dw]+"\\)$"),_w={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 Cw(){return this.rgb().formatHex()}function Ow(){return this.rgb().formatRgb()}function Sw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?kw(t):3===n?new jw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ew(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ew(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=yw.exec(e))?new jw(t[1],t[2],t[3],1):(t=vw.exec(e))?new jw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=mw.exec(e))?Ew(t[1],t[2],t[3],t[4]):(t=bw.exec(e))?Ew(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ww.exec(e))?Iw(t[1],t[2]/100,t[3]/100,1):(t=xw.exec(e))?Iw(t[1],t[2]/100,t[3]/100,t[4]):_w.hasOwnProperty(e)?kw(_w[e]):"transparent"===e?new jw(NaN,NaN,NaN,0):null}function kw(e){return new jw(e>>16&255,e>>8&255,255&e,1)}function Ew(e,t,n,r){return r<=0&&(e=t=n=NaN),new jw(e,t,n,r)}function Aw(e){return e instanceof lw||(e=Sw(e)),e?new jw((e=e.rgb()).r,e.g,e.b,e.opacity):new jw}function Tw(e,t,n,r){return 1===arguments.length?Aw(e):new jw(e,t,n,null==r?1:r)}function jw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Mw(){return"#"+Dw(this.r)+Dw(this.g)+Dw(this.b)}function Pw(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}function Dw(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Iw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lw(e,t,n,r)}function Rw(e){if(e instanceof Lw)return new Lw(e.h,e.s,e.l,e.opacity);if(e instanceof lw||(e=Sw(e)),!e)return new Lw;if(e instanceof Lw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new Lw(a,s,c,e.opacity)}function Lw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Nw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}cw(lw,Sw,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Cw,formatHex:Cw,formatHsl:function(){return Rw(this).formatHsl()},formatRgb:Ow,toString:Ow}),cw(jw,Tw,uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new jw(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new jw(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mw,formatHex:Mw,formatRgb:Pw,toString:Pw})),cw(Lw,(function(e,t,n,r){return 1===arguments.length?Rw(e):new Lw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new Lw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Lw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new jw(Nw(e>=240?e-240:e+120,i,r),Nw(e,i,r),Nw(e<120?e+240:e-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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Bw=Math.PI/180,Fw=180/Math.PI,zw=4/29,Uw=6/29,Hw=3*Uw*Uw;function Vw(e){if(e instanceof Kw)return new Kw(e.l,e.a,e.b,e.opacity);if(e instanceof Yw)return Xw(e);e instanceof jw||(e=Aw(e));var t,n,r=Gw(e.r),i=Gw(e.g),o=Gw(e.b),a=Ww((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Ww((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Ww((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Kw(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Kw(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ww(e){return e>.008856451679035631?Math.pow(e,1/3):e/Hw+zw}function $w(e){return e>Uw?e*e*e:Hw*(e-zw)}function qw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Gw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Zw(e){if(e instanceof Yw)return new Yw(e.h,e.c,e.l,e.opacity);if(e instanceof Kw||(e=Vw(e)),0===e.a&&0===e.b)return new Yw(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Fw;return new Yw(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Yw(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Xw(e){if(isNaN(e.h))return new Kw(e.l,0,0,e.opacity);var t=e.h*Bw;return new Kw(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}cw(Kw,(function(e,t,n,r){return 1===arguments.length?Vw(e):new Kw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return new Kw(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Kw(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new jw(qw(3.1338561*(t=.96422*$w(t))-1.6168667*(e=1*$w(e))-.4906146*(n=.82521*$w(n))),qw(-.9787684*t+1.9161415*e+.033454*n),qw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),cw(Yw,(function(e,t,n,r){return 1===arguments.length?Zw(e):new Yw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return new Yw(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Yw(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Xw(this).rgb()}}));var Jw=-.14861,Qw=1.78277,ex=-.29227,tx=-.90649,nx=1.97294,rx=nx*tx,ix=nx*Qw,ox=Qw*ex-tx*Jw;function ax(e){if(e instanceof cx)return new cx(e.h,e.s,e.l,e.opacity);e instanceof jw||(e=Aw(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(ox*r+rx*t-ix*n)/(ox+rx-ix),o=r-i,a=(nx*(n-i)-ex*o)/tx,s=Math.sqrt(a*a+o*o)/(nx*i*(1-i)),c=s?Math.atan2(a,o)*Fw-120:NaN;return new cx(c<0?c+360:c,s,i,e.opacity)}function sx(e,t,n,r){return 1===arguments.length?ax(e):new cx(e,t,n,null==r?1:r)}function cx(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cw(cx,sx,uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new cx(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new cx(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Bw,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new jw(255*(t+n*(Jw*r+Qw*i)),255*(t+n*(ex*r+tx*i)),255*(t+n*(nx*r)),this.opacity)}}));var ux=e=>()=>e;function lx(e,t){return function(n){return e+n*t}}function fx(e){return 1==(e=+e)?px:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ux(isNaN(t)?n:t)}}function px(e,t){var n=t-e;return n?lx(e,n):ux(isNaN(e)?t:e)}var dx=function e(t){var n=fx(t);function r(e,t){var r=n((e=Tw(e)).r,(t=Tw(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=px(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function hx(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function gx(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=_x(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function yx(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vx(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function mx(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=_x(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var bx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wx=new RegExp(bx.source,"g");function xx(e,t){var n,r,i,o=bx.lastIndex=wx.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=bx.exec(e))&&(r=wx.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:vx(n,r)})),o=wx.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function _x(e,t){var n,r=typeof t;return null==t||"boolean"===r?ux(t):("number"===r?vx:"string"===r?(n=Sw(t))?(t=n,dx):xx:t instanceof Sw?dx:t instanceof Date?yx:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?hx:Array.isArray(t)?gx:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?mx:vx)(e,t)}function Cx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ox(e){return((e=Math.exp(e))+1/e)/2}function Sx(e){return function t(n){function r(t,r){var i=e((t=sx(t)).h,(r=sx(r)).h),o=px(t.s,r.s),a=px(t.l,r.l),s=px(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function kx(e,t){void 0===t&&(t=e,e=_x);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function Ex(e){return+e}!function e(t,n,r){function i(e,i){var o,a,s=e[0],c=e[1],u=e[2],l=i[0],f=i[1],p=i[2],d=l-s,h=f-c,g=d*d+h*h;if(g<1e-12)a=Math.log(p/u)/t,o=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,o=function(e){var r=e*a,i=Ox(b),o=u/(n*y)*(i*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+o*d,c+o*h,u*i/Ox(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),Sx((function(e,t){var n=t-e;return n?lx(e,n>180||n<-180?n-360*Math.round(n/360):n):ux(isNaN(e)?t:e)})),Sx(px);var Ax=[0,1];function Tx(e){return e}function jx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Mx(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=jx(i,r),o=n(a,o)):(r=jx(r,i),o=n(o,a)),function(e){return o(r(e))}}function Px(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=jx(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Ub(e,t,1,r)-1;return o[n](i[n](t))}}function Dx(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ix(){var e,t,n,r,i,o,a=Ax,s=Ax,c=_x,u=Tx;function l(){var e=Math.min(a.length,s.length);return u!==Tx&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Px:Mx,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((o||(o=r(s,a.map(e),vx)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Ex),l()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),l()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=Cx,l()},f.clamp=function(e){return arguments.length?(u=!!e||Tx,l()):u!==Tx},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function Rx(){return Ix()(Tx,Tx)}function Lx(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Nx(e){return(e=Lx(Math.abs(e)))?e[1]:NaN}var Bx,Fx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zx(e){if(!(t=Fx.exec(e)))throw new Error("invalid format: "+e);var t;return new Ux({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Ux(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Hx(e,t){var n=Lx(e,t);if(!n)return e+"";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")}zx.prototype=Ux.prototype,Ux.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Vx={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Hx(100*e,t),r:Hx,s:function(e,t){var n=Lx(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Bx=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")+Lx(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Kx(e){return e}var Wx,$x,qx,Gx=Array.prototype.map,Zx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yx(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Kx:(t=Gx.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Kx:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Gx.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=zx(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):Vx[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?o:/[%p]/.test(m)?c:"",x=Vx[m],_=/[defgprs%]/.test(m);function C(e){var i,o,c,p=b,C=w;if("c"===m)C=x(e)+C,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==f&&(O=!1),p=(O?"("===f?f:u:"-"===f||"("===f?"":f)+p,C=("s"===m?Zx[8+Bx/3]:"")+C+(O&&"("===f?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(c=e.charCodeAt(i))||c>57){C=(46===c?a+e.slice(i+1):e.slice(i))+C,e=e.slice(0,i);break}}g&&!d&&(e=r(e,1/0));var S=p.length+e.length+C.length,k=S<h?new Array(h-S+1).join(t):"";switch(g&&d&&(e=r(k+e,k.length?h-C.length:1/0),k=""),n){case"<":e=p+e+C+k;break;case"=":e=p+k+e+C;break;case"^":e=k.slice(0,S=k.length>>1)+p+e+C+k.slice(S);break;default:e=k+p+e+C}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=zx(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Nx(t)/3))),i=Math.pow(10,-r),o=Zx[8+r/3];return function(e){return n(i*e)+o}}}}function Xx(e,t,n,r){var i,o=qb(e,t,n);switch((r=zx(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Nx(t)/3)))-Nx(Math.abs(e)))}(o,a))||(r.precision=i),qx(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Nx(t)-Nx(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-Nx(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return $x(r)}function Jx(e){var t=e.domain;return e.ticks=function(e){var n=t();return Wb(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Xx(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,c=o[a],u=o[s],l=10;for(u<c&&(i=c,c=u,u=i,i=a,a=s,s=i);l-- >0;){if((i=$b(c,u,n))===r)return o[a]=c,o[s]=u,t(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return e},e}function Qx(){var e=Rx();return e.copy=function(){return Dx(e,Qx())},tw.apply(e,arguments),Jx(e)}function e_(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function t_(e){return Math.log(e)}function n_(e){return Math.exp(e)}function r_(e){return-Math.log(-e)}function i_(e){return-Math.exp(-e)}function o_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function a_(e){return function(t){return-e(-t)}}function s_(e){var t,n,r=e(t_,n_),i=r.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?o_:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=a_(t),n=a_(n),e(r_,i_)):e(t_,n_),r}return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=function(e){var r,a=i(),s=a[0],c=a[a.length-1];(r=c<s)&&(p=s,s=c,c=p);var u,l,f,p=t(s),d=t(c),h=null==e?10:+e,g=[];if(!(o%1)&&d-p<h){if(p=Math.floor(p),d=Math.ceil(d),s>0){for(;p<=d;++p)for(l=1,u=n(p);l<o;++l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}}else for(;p<=d;++p)for(l=o-1,u=n(p);l>=1;--l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}2*g.length<h&&(g=Wb(s,c,h))}else g=Wb(p,d,Math.min(d-p,h)).map(n);return r?g.reverse():g},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=$x(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=function(){return i(e_(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function c_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function u_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l_(e){var t=1,n=e(c_(t),u_(t));return n.constant=function(n){return arguments.length?e(c_(t=+n),u_(t)):t},Jx(n)}function f_(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function p_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function d_(e){return e<0?-e*e:e*e}function h_(e){var t=e(Tx,Tx),n=1;function r(){return 1===n?e(Tx,Tx):.5===n?e(p_,d_):e(f_(n),f_(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Jx(t)}function g_(){var e=h_(Ix());return e.copy=function(){return Dx(e,g_()).exponent(e.exponent())},tw.apply(e,arguments),e}function y_(e){return Math.sign(e)*e*e}function v_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}Wx=Yx({thousands:",",grouping:[3],currency:["$",""]}),$x=Wx.format,qx=Wx.formatPrefix;var m_=new Date,b_=new Date;function w_(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return w_((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return m_.setTime(+t),b_.setTime(+r),e(m_),e(b_),Math.floor(n(m_,b_))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var x_=w_((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));x_.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?w_((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):x_:null},x_.range;var __=w_((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));__.range;var C_=w_((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}));C_.range;var O_=w_((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}));O_.range;var S_=w_((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5),(e=>e.getDate()-1));function k_(e){return w_((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}S_.range;var E_=k_(0),A_=k_(1),T_=k_(2),j_=k_(3),M_=k_(4),P_=k_(5),D_=k_(6);E_.range,A_.range,T_.range,j_.range,M_.range,P_.range,D_.range;var I_=w_((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));I_.range;var R_=w_((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));R_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?w_((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},R_.range;var L_=w_((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}));L_.range;var N_=w_((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}));N_.range;var B_=w_((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}));function F_(e){return w_((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}B_.range;var z_=F_(0),U_=F_(1),H_=F_(2),V_=F_(3),K_=F_(4),W_=F_(5),$_=F_(6);z_.range,U_.range,H_.range,V_.range,K_.range,W_.range,$_.range;var q_=w_((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));q_.range;var G_=w_((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Z_(e,t,n,r,i,o){const a=[[__,1,1e3],[__,5,5e3],[__,15,15e3],[__,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){const i=Math.abs(n-t)/r,o=Fb((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(qb(t/31536e6,n/31536e6,r));if(0===o)return x_.every(Math.max(qb(t,n,r),1));const[s,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}G_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?w_((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},G_.range;const[Y_,X_]=Z_(G_,q_,z_,B_,N_,L_),[J_,Q_]=Z_(R_,I_,E_,S_,O_,C_);function eC(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function tC(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function nC(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rC,iC,oC,aC,sC={"-":"",_:" ",0:"0"},cC=/^\s*\d+/,uC=/^%/,lC=/[\\^$*+?|[\]().{}]/g;function fC(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function pC(e){return e.replace(lC,"\\$&")}function dC(e){return new RegExp("^(?:"+e.map(pC).join("|")+")","i")}function hC(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function gC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function yC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function mC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function wC(e,t,n){var r=cC.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _C(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function CC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function OC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function SC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kC(e,t,n){var r=cC.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function EC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function AC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function TC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function jC(e,t,n){var r=cC.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function MC(e,t,n){var r=cC.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function PC(e,t,n){var r=uC.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function DC(e,t,n){var r=cC.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function IC(e,t,n){var r=cC.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function RC(e,t){return fC(e.getDate(),t,2)}function LC(e,t){return fC(e.getHours(),t,2)}function NC(e,t){return fC(e.getHours()%12||12,t,2)}function BC(e,t){return fC(1+S_.count(R_(e),e),t,3)}function FC(e,t){return fC(e.getMilliseconds(),t,3)}function zC(e,t){return FC(e,t)+"000"}function UC(e,t){return fC(e.getMonth()+1,t,2)}function HC(e,t){return fC(e.getMinutes(),t,2)}function VC(e,t){return fC(e.getSeconds(),t,2)}function KC(e){var t=e.getDay();return 0===t?7:t}function WC(e,t){return fC(E_.count(R_(e)-1,e),t,2)}function $C(e){var t=e.getDay();return t>=4||0===t?M_(e):M_.ceil(e)}function qC(e,t){return e=$C(e),fC(M_.count(R_(e),e)+(4===R_(e).getDay()),t,2)}function GC(e){return e.getDay()}function ZC(e,t){return fC(A_.count(R_(e)-1,e),t,2)}function YC(e,t){return fC(e.getFullYear()%100,t,2)}function XC(e,t){return fC((e=$C(e)).getFullYear()%100,t,2)}function JC(e,t){return fC(e.getFullYear()%1e4,t,4)}function QC(e,t){var n=e.getDay();return fC((e=n>=4||0===n?M_(e):M_.ceil(e)).getFullYear()%1e4,t,4)}function eO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fC(t/60|0,"0",2)+fC(t%60,"0",2)}function tO(e,t){return fC(e.getUTCDate(),t,2)}function nO(e,t){return fC(e.getUTCHours(),t,2)}function rO(e,t){return fC(e.getUTCHours()%12||12,t,2)}function iO(e,t){return fC(1+B_.count(G_(e),e),t,3)}function oO(e,t){return fC(e.getUTCMilliseconds(),t,3)}function aO(e,t){return oO(e,t)+"000"}function sO(e,t){return fC(e.getUTCMonth()+1,t,2)}function cO(e,t){return fC(e.getUTCMinutes(),t,2)}function uO(e,t){return fC(e.getUTCSeconds(),t,2)}function lO(e){var t=e.getUTCDay();return 0===t?7:t}function fO(e,t){return fC(z_.count(G_(e)-1,e),t,2)}function pO(e){var t=e.getUTCDay();return t>=4||0===t?K_(e):K_.ceil(e)}function dO(e,t){return e=pO(e),fC(K_.count(G_(e),e)+(4===G_(e).getUTCDay()),t,2)}function hO(e){return e.getUTCDay()}function gO(e,t){return fC(U_.count(G_(e)-1,e),t,2)}function yO(e,t){return fC(e.getUTCFullYear()%100,t,2)}function vO(e,t){return fC((e=pO(e)).getUTCFullYear()%100,t,2)}function mO(e,t){return fC(e.getUTCFullYear()%1e4,t,4)}function bO(e,t){var n=e.getUTCDay();return fC((e=n>=4||0===n?K_(e):K_.ceil(e)).getUTCFullYear()%1e4,t,4)}function wO(){return"+0000"}function xO(){return"%"}function _O(e){return+e}function CO(e){return Math.floor(+e/1e3)}!function(e){rC=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=dC(i),l=hC(i),f=dC(o),p=hC(o),d=dC(a),h=hC(a),g=dC(s),y=hC(s),v=dC(c),m=hC(c),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:RC,e:RC,f:zC,g:XC,G:QC,H:LC,I:NC,j:BC,L:FC,m:UC,M:HC,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:_O,s:CO,S:VC,u:KC,U:WC,V:qC,w:GC,W:ZC,x:null,X:null,y:YC,Y:JC,Z:eO,"%":xO},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:tO,e:tO,f:aO,g:vO,G:bO,H:nO,I:rO,j:iO,L:oO,m:sO,M:cO,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:_O,s:CO,S:uO,u:lO,U:fO,V:dO,w:hO,W:gO,x:null,X:null,y:yO,Y:mO,Z:wO,"%":xO},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:SC,e:SC,f:MC,g:xC,G:wC,H:EC,I:EC,j:kC,L:jC,m:OC,M:AC,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:CC,Q:DC,s:IC,S:TC,u:yC,U:vC,V:mC,w:gC,W:bC,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:xC,Y:wC,Z:_C,"%":PC};function _(e,t){return function(n){var r,i,o,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(i=sC[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=nC(1900,void 0,1);if(O(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=tC(nC(o.y,0,1))).getUTCDay(),r=i>4||0===i?U_.ceil(r):U_(r),r=B_.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=eC(nC(o.y,0,1))).getDay(),r=i>4||0===i?A_.ceil(r):A_(r),r=S_.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?tC(nC(o.y,0,1)).getUTCDay():eC(nC(o.y,0,1)).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,tC(o)):eC(o)}}function O(e,t,n,r){for(var i,o,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in sC?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),iC=rC.format,rC.parse,oC=rC.utcFormat,aC=rC.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"]});function OO(e){return new Date(e)}function SO(e){return e instanceof Date?+e:+new Date(+e)}function kO(e,t,n,r,i,o,a,s,c,u){var l=Rx(),f=l.invert,p=l.domain,d=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?d:s(e)<e?h:a(e)<e?g:o(e)<e?y:r(e)<e?i(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,SO)):p().map(OO)},l.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:u(t)},l.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(e_(n,e)):l},l.copy=function(){return Dx(l,kO(e,t,n,r,i,o,a,s,c,u))},l}function EO(){var e,t,n,r,i,o=0,a=1,s=Tx,c=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(_x),u.rangeRound=l(Cx),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function AO(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function TO(){var e=h_(EO());return e.copy=function(){return AO(e,TO()).exponent(e.exponent())},nw.apply(e,arguments)}function jO(){var e,t,n,r,i,o,a,s=0,c=.5,u=1,l=1,f=Tx,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(l*e<l*t?r:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,f=kx(e,[n,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=o(s=+s),t=o(c=+c),n=o(u=+u),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),l=t<e?-1:1,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(_x),d.rangeRound=h(Cx),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function MO(){var e=h_(jO());return e.copy=function(){return AO(e,MO()).exponent(e.exponent())},nw.apply(e,arguments)}Date.prototype.toISOString||oC("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||aC("%Y-%m-%dT%H:%M:%S.%LZ");var PO=Object.freeze({__proto__:null,scaleBand:ow,scalePoint:sw,scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,Ex),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,Ex):[0,1],Jx(r)},scaleLinear:Qx,scaleLog:function e(){var t=s_(Ix()).domain([1,10]);return t.copy=function(){return Dx(t,e()).base(t.base())},tw.apply(t,arguments),t},scaleSymlog:function e(){var t=l_(Ix());return t.copy=function(){return Dx(t,e()).constant(t.constant())},tw.apply(t,arguments)},scaleOrdinal:iw,scaleImplicit:rw,scalePow:g_,scaleSqrt:function(){return g_.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=Rx(),r=[0,1],i=!1;function o(e){var r=v_(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(y_(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,Ex)).map(y_)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},tw.apply(o,arguments),Jx(o)},scaleQuantile:function e(){var t,n=[],r=[],i=[];function o(){var e=0,t=Math.max(1,r.length);for(i=new Array(t-1);++e<t;)i[e-1]=Qb(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Ub(i,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(Bb),o()},a.range=function(e){return arguments.length?(r=Array.from(e),o()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},tw.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,i=1,o=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[Ub(o,e,0,i)]:t}function c(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(i=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},tw.apply(Jx(s),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[Ub(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},tw.apply(o,arguments)},scaleTime:function(){return tw.apply(kO(J_,Q_,R_,I_,E_,S_,O_,C_,__,iC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return tw.apply(kO(Y_,X_,G_,q_,z_,B_,N_,L_,__,oC).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=Jx(EO()(Tx));return t.copy=function(){return AO(t,e())},nw.apply(t,arguments)},scaleSequentialLog:function e(){var t=s_(EO()).domain([1,10]);return t.copy=function(){return AO(t,e()).base(t.base())},nw.apply(t,arguments)},scaleSequentialPow:TO,scaleSequentialSqrt:function(){return TO.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=l_(EO());return t.copy=function(){return AO(t,e()).constant(t.constant())},nw.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=Tx;function r(e){if(null!=e&&!isNaN(e=+e))return n((Ub(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(Bb),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>Jb(t,r/e)))},r.copy=function(){return e(n).domain(t)},nw.apply(r,arguments)},scaleDiverging:function e(){var t=Jx(jO()(Tx));return t.copy=function(){return AO(t,e())},nw.apply(t,arguments)},scaleDivergingLog:function e(){var t=s_(jO()).domain([.1,1,10]);return t.copy=function(){return AO(t,e()).base(t.base())},nw.apply(t,arguments)},scaleDivergingPow:MO,scaleDivergingSqrt:function(){return MO.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=l_(jO());return t.copy=function(){return AO(t,e()).constant(t.constant())},nw.apply(t,arguments)},tickFormat:Xx});function DO(e){return function(e){if(Array.isArray(e))return IO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return IO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IO(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RO(Object(n),!0).forEach((function(t){NO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BO(e,t,n){return Wf(e)||Wf(t)?n:Of(t)?ac(e,t,n):br(t)?t(e):n}function FO(e,t,n,r){var i=Bm(e,(function(e){return BO(e,t)}));if("number"===n){var o=i.filter((function(e){return Cf(e)||parseFloat(e)}));return o.length?[jm(o),Sm(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!Wf(e)})):i).map((function(e){return Of(e)||e instanceof Date?e:""}))}var zO=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},UO=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=fm(n,Kf.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:zO(t),value:i||r,payload:t.props}})),LO(LO(LO({},a.props),Kf.getWithHeight(a,i)),{},{payload:t,item:a})):null},HO=function(e,t,n,r,i){var o=t.props.children,a=lm(o,"ErrorBar").filter((function(e){return function(e,t,n){return!!Wf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,i,e.props.direction)}));if(a&&a.length){var s=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=BO(t,n,0),i=xo(r)?[jm(r),Sm(r)]:[r,r],o=s.reduce((function(e,n){var r=BO(t,n,0),o=i[0]-Math.abs(xo(r)?r[0]:r),a=i[1]+Math.abs(xo(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},VO=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&HO(e,t,o,r)||FO(e,o,n,i)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},KO=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},WO=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},$O=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType?2*xf(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:i?i[e]:e,index:t,offset:c}}))},qO=function(e,t,n){var r;return br(n)?r=n:br(t)&&(r=t),br(e)||r?function(t,n,i,o){br(e)&&e(t,n,i,o),br(r)&&r(t,n,i,o)}:null},GO=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:ow(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Qx(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:sw(),realScaleType:"point"}:"category"===i?{scale:ow(),realScaleType:"band"}:{scale:Qx(),realScaleType:"linear"};if(wf(r)){var s="scale".concat(Ru(r));return{scale:(PO[s]||sw)(),realScaleType:PO[s]?s:"point"}}return br(r)?{scale:r}:{scale:sw(),realScaleType:"point"}},ZO=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},YO=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},XO=function(e,t){if(!t||2!==t.length||!Cf(t[0])||!Cf(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Cf(e[0])||e[0]<n)&&(i[0]=n),(!Cf(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},JO={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=yf(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}Fl(e,t)}},none:Fl,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}Fl(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<i;++s){for(var l=e[t[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=o,c&&(o-=u/c)}n[a-1][1]+=n[a-1][0]=o,Fl(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=yf(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},QO=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=Uu([]),t=zl,n=Fl,r=Ul;function i(i){var o,a,s=Array.from(e.apply(this,arguments),Hl),c=s.length,u=-1;for(const e of i)for(o=0,++u;o<c;++o)(s[o][u]=[0,+r(e,s[o].key,u,i)]).data=e;for(o=0,a=Ku(t(s));o<c;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Uu(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Uu(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?zl:"function"==typeof e?e:Uu(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Fl:e,i):n},i}().keys(r).value((function(e,t){return+BO(e,t,0)})).order(zl).offset(JO[n]);return i(e)},eS=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var c=e.domain();if(!c.length)return null;var u=Lb(c,i,a);return e.domain(function(e,t){return"number"===t?[jm(e),Sm(e)]:e}(u,r)),{niceTicks:u}}if(i&&"number"===r){var l=e.domain();return{niceTicks:Nb(l,i,a)}}return null},tS=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Wf(i[t.dataKey])){var s=jf(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=BO(i,Wf(a)?t.dataKey:a);return Wf(c)?null:t.scale(c)},nS=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=BO(o,t.dataKey,t.domain[a]);return Wf(s)?null:t.scale(s)-i/2+r},rS=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.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]},iS=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[jm(t.concat([e[0]]).filter(Cf)),Sm(t.concat([e[1]]).filter(Cf))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[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(e){return e===1/0||e===-1/0?0:e}))},oS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sS=function(e,t,n){if(br(e))return e(t,n);if(!xo(e))return t;var r=[];if(Cf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(oS.test(e[0])){var i=+oS.exec(e[0])[1];r[0]=t[0]-i}else br(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Cf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(aS.test(e[1])){var o=+aS.exec(e[1])[1];r[1]=t[1]+o}else br(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},cS=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=sg(t,(function(e){return e.coordinate})),o=1/0,a=1,s=i.length;a<s;a++){var c=i[a],u=i[a-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},uS=function(e,t,n){return e&&e.length?mm(e,ac(n,"type.defaultProps.domain"))?t:e:t},lS=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return LO(LO({},$n(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:zO(e),value:BO(t,r),type:s,payload:t,chartType:c})};function fS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fS(Object(n),!0).forEach((function(t){dS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yS=Math.PI/180,vS=function(e){return 180*e/Math.PI},mS=function(e,t,n,r){return{x:e+Math.cos(-yS*r)*n,y:t+Math.sin(-yS*r)*n}},bS=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},wS=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ef(e.cx,o,o/2),l=Ef(e.cy,a,a/2),f=bS(o,a,n),p=Ef(e.innerRadius,f,0),d=Ef(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var o,a=t[n],f=a.domain,h=a.reversed;if(Wf(a.range))"angleAxis"===r?o=[s,c]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var g=hS(o=a.range,2);s=g[0],c=g[1]}var y=GO(a,i),v=y.realScaleType,m=y.scale;m.domain(f).range(o),ZO(m);var b=eS(m,pS(pS({},a),{},{realScaleType:v})),w=pS(pS(pS({},a),b),{},{range:o,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return pS(pS({},e),{},dS({},n,w))}),{})},xS=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.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 s=(n-i)/a,c=Math.acos(s);return r>o&&(c=2*Math.PI-c),{radius:a,angle:vS(c),angleInRadian:c}},_S=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},CS=function(e,t){var n=e.x,r=e.y,i=xS({x:n,y:r},t),o=i.radius,a=i.angle,s=t.innerRadius,c=t.outerRadius;if(o<s||o>c)return!1;if(0===o)return!0;var u,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),f=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?pS(pS({},t),{},{radius:o,angle:_S(d,t)}):null};function OS(e){return function(e){if(Array.isArray(e))return SS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return SS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SS(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ES(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kS(Object(n),!0).forEach((function(t){AS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TS(){return TS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TS.apply(this,arguments)}var jS=function(e,t,n){var r,o,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(r=g+w*c,o=v):"insideEnd"===a?(r=y-w*c,o=!v):"end"===a&&(r=y+w*c,o=v),o=b<=0?o:!o;var x=mS(f,p,m,r),_=mS(f,p,m,r+359*(o?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),O=Wf(e.id)?kf("recharts-radial-line-"):e.id;return i.createElement("text",TS({},n,{dominantBaseline:"central",className:zn("recharts-radial-bar-label",u)}),i.createElement("defs",null,i.createElement("path",{id:O,d:C})),i.createElement("textPath",{xlinkHref:"#".concat(O)},t))};function MS(e){var t,n=e.viewBox,r=e.position,o=e.value,s=e.children,u=e.content,l=e.className,f=void 0===l?"":l,p=e.textBreakAll;if(!n||Wf(o)&&Wf(s)&&!v(u)&&!br(u))return null;if(v(u))return c(u,e);if(br(u)){if(v(t=a(u,e)))return t}else t=function(e){var t=e.value,n=e.formatter,r=Wf(e.children)?t:e.children;return br(n)?n(r):r}(e);var d=function(e){return Cf(e.cx)}(n),h=$n(e,!0);if(d&&("insideStart"===r||"insideEnd"===r||"end"===r))return jS(e,t,h);var g=d?function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,s=i.innerRadius,c=i.outerRadius,u=(i.startAngle+i.endAngle)/2;if("outside"===r){var l=mS(o,a,c+n,u),f=l.x;return{x:f,y:l.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=mS(o,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,a=o.x,s=o.y,c=o.width,u=o.height,l=u>=0?1:-1,f=l*r,p=l>0?"end":"start",d=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===i)return ES(ES({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===i)return ES(ES({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===i){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return ES(ES({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===i){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return ES(ES({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===i?ES({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===i?ES({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===i?ES({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===i?ES({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?ES({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===i?ES({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===i?ES({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===i?ES({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Un(i)&&(Cf(i.x)||_f(i.x))&&(Cf(i.y)||_f(i.y))?ES({x:a+Ef(i.x,c),y:s+Ef(i.y,u),textAnchor:"end",verticalAnchor:"end"},w):ES({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return i.createElement(nm,TS({className:zn("recharts-label",f)},h,g,{breakAll:p}),t)}MS.displayName="Label",MS.defaultProps={offset:5};var PS=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,u=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(Cf(h)&&Cf(g)){if(Cf(l)&&Cf(f))return{x:l,y:f,width:h,height:g};if(Cf(p)&&Cf(d))return{x:p,y:d,width:h,height:g}}return Cf(l)&&Cf(f)?{x:l,y:f,width:0,height:0}:Cf(t)&&Cf(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},DS=function(e,t){return e?!0===e?i.createElement(MS,{key:"label-implicit",viewBox:t}):Of(e)?i.createElement(MS,{key:"label-implicit",viewBox:t,value:e}):v(e)?e.type===MS?c(e,{key:"label-implicit",viewBox:t}):i.createElement(MS,{key:"label-implicit",content:e,viewBox:t}):br(e)?i.createElement(MS,{key:"label-implicit",content:e,viewBox:t}):Un(e)?i.createElement(MS,TS({viewBox:t},e,{key:"label-implicit"})):null:null};MS.parseViewBox=PS,MS.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=PS(e),o=lm(r,MS.displayName).map((function(e,n){return c(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return o;var a=DS(e.label,t||i);return[a].concat(OS(o))};var IS=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function RS(e){return function(e){if(Array.isArray(e))return LS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return LS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LS(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NS(){return NS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NS.apply(this,arguments)}function BS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BS(Object(n),!0).forEach((function(t){zS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function US(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var HS={valueAccessor:function(e){return xo(e.value)?IS(e.value):e.value}};function VS(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,a=e.id,s=e.textBreakAll,c=US(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?i.createElement(er,{className:"recharts-label-list"},t.map((function(e,t){var u=Wf(r)?n(e,t):BO(e&&e.payload,r),l=Wf(a)?{}:{id:"".concat(a,"-").concat(t)};return i.createElement(MS,NS({},$n(e,!0),c,l,{parentViewBox:e.parentViewBox,index:t,value:u,textBreakAll:s,viewBox:MS.parseViewBox(Wf(o)?e:FS(FS({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}function KS(e,t){return e?!0===e?i.createElement(VS,{key:"labelList-implicit",data:t}):i.isValidElement(e)||br(e)?i.createElement(VS,{key:"labelList-implicit",data:t,content:e}):Un(e)?i.createElement(VS,NS({data:t},e,{key:"labelList-implicit"})):null:null}function WS(e){return WS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WS(e)}function $S(){return $S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$S.apply(this,arguments)}function qS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZS(e,t){return ZS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZS(e,t)}function YS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JS(e);if(t){var i=JS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return XS(this,n)}}function XS(e,t){return!t||"object"!==WS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function JS(e){return JS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},JS(e)}VS.displayName="LabelList",VS.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=lm(r,VS.displayName).map((function(e,n){return c(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return i;var o=KS(e.label,t);return[o].concat(RS(i))},VS.defaultProps=HS;var QS=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/yS,f=c?i:i+o*l,p=c?i-o*l:i;return{center:mS(t,n,u,f),circleTangency:mS(t,n,r,f),lineTangency:mS(t,n,u*Math.cos(l*yS),p),theta:l}},ek=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),s=o+a,c=mS(t,n,i,o),u=mS(t,n,i,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=mS(t,n,r,o),p=mS(t,n,r,s);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},tk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZS(e,t)}(a,m);var t,n,r,o=YS(a);function a(){return qS(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(o<r||u===l)return null;var p,d=zn("recharts-sector",f),h=o-r,g=Ef(a,h,0,!0);return p=g>0&&Math.abs(u-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,l=xf(u-c),f=QS({cx:t,cy:n,radius:i,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=QS({cx:t,cy:n,radius:i,angle:u,sign:-l,cornerRadius:o,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):ek({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=QS({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,O=x.theta,S=QS({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,A=S.theta,T=s?Math.abs(c-u):Math.abs(c-u)-O-A;if(T<0&&0===o)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):ek({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:l}),i.createElement("path",$S({},$n(this.props,!0),{className:d,d:p}))}}],n&&GS(t.prototype,n),r&&GS(t,r),a}();function nk(e){return nk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nk(e)}function rk(){return rk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rk.apply(this,arguments)}function ik(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ok(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ik(Object(n),!0).forEach((function(t){ak(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ik(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ak(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uk(e,t){return uk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uk(e,t)}function lk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pk(e);if(t){var i=pk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fk(this,n)}}function fk(e,t){return!t||"object"!==nk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pk(e){return pk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pk(e)}tk.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var dk={curveBasisClosed:function(e){return new vl(e)},curveBasisOpen:function(e){return new ml(e)},curveBasis:function(e){return new yl(e)},curveLinearClosed:function(e){return new Al(e)},curveLinear:$u,curveMonotoneX:function(e){return new Dl(e)},curveMonotoneY:function(e){return new Il(e)},curveNatural:function(e){return new Ll(e)},curveStep:function(e){return new Bl(e,.5)},curveStepAfter:function(e){return new Bl(e,1)},curveStepBefore:function(e){return new Bl(e,0)}},hk=function(e){return e.x===+e.x&&e.y===+e.y},gk=function(e){return e.x},yk=function(e){return e.y},vk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uk(e,t)}(a,m);var t,n,r,o=lk(a);function a(){return sk(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,s=function(e,t){if(br(e))return e;var n="curve".concat(Ru(e));return"curveMonotone"===n&&t?dk["".concat(n).concat("vertical"===t?"Y":"X")]:dk[n]||$u}(n,o),c=a?r.filter((function(e){return hk(e)})):r;if(xo(i)){var u=a?i.filter((function(e){return hk(e)})):i,l=c.map((function(e,t){return ok(ok({},e),{},{base:u[t]})}));return(e="vertical"===o?Yu().y(yk).x1(gk).x0((function(e){return e.base.x})):Yu().x(gk).y1(yk).y0((function(e){return e.base.y}))).defined(hk).curve(s),e(l)}return(e="vertical"===o&&Cf(i)?Yu().y(yk).x1(gk).x0(i):Cf(i)?Yu().x(gk).y1(yk).y0(i):Zu().x(gk).y(yk)).defined(hk).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return i.createElement("path",rk({},$n(this.props),qn(this.props),{className:zn("recharts-curve",t),d:a,ref:o}))}}],n&&ck(t.prototype,n),r&&ck(t,r),a}();function mk(e){return mk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mk(e)}function bk(){return bk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bk.apply(this,arguments)}function wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _k(e,t){return _k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_k(e,t)}function Ck(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sk(e);if(t){var i=Sk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ok(this,n)}}function Ok(e,t){return!t||"object"!==mk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sk(e){return Sk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sk(e)}vk.defaultProps={type:"linear",points:[],connectNulls:!1};var kk=function(e,t,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),o+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),o+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),o+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},Ek=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(i,i+a),u=Math.max(i,i+a),l=Math.min(o,o+s),f=Math.max(o,o+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},Ak=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_k(e,t)}(a,m);var t,n,r,o=Ck(a);function a(){var e;wk(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,o=t.width,a=t.height,s=t.radius,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||0===o||0===a)return null;var y=zn("recharts-rectangle",c);return g?i.createElement(Cd,{canBegin:u>0,from:{width:o,height:a,x:n,y:r},to:{width:o,height:a,x:n,y:r},duration:p,animationEasing:f,isActive:g},(function(t){var n=t.width,r=t.height,o=t.x,a=t.y;return i.createElement(Cd,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},i.createElement("path",bk({},$n(e.props,!0),{className:y,d:kk(o,a,n,r,s),ref:function(t){e.node=t}})))})):i.createElement("path",bk({},$n(this.props,!0),{className:y,d:kk(n,r,o,a,s)}))}}],n&&xk(t.prototype,n),r&&xk(t,r),a}();function Tk(e){return Tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tk(e)}function jk(){return jk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jk.apply(this,arguments)}function Mk(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ik(e,t){return Ik=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ik(e,t)}function Rk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nk(e);if(t){var i=Nk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Lk(this,n)}}function Lk(e,t){return!t||"object"!==Tk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nk(e){return Nk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nk(e)}function Bk(e){return function(e){if(Array.isArray(e))return Fk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Fk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fk(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Ak.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var zk=function(e){return e&&e.x===+e.x&&e.y===+e.y},Uk=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){zk(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),zk(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(Bk(e),Bk(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},Hk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ik(e,t)}(a,m);var t,n,r,o=Rk(a);function a(){return Pk(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.points,n=e.className,r=e.baseLinePoints,o=e.connectNulls,a=Mk(e,["points","className","baseLinePoints","connectNulls"]);if(!t||!t.length)return null;var s=zn("recharts-polygon",n);if(r&&r.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=Uk(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(Uk(t.reverse(),n).slice(1))}(t,r,o);return i.createElement("g",{className:s},i.createElement("path",jk({},$n(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?i.createElement("path",jk({},$n(a,!0),{fill:"none",d:Uk(t,o)})):null,c?i.createElement("path",jk({},$n(a,!0),{fill:"none",d:Uk(r,o)})):null)}var l=Uk(t,o);return i.createElement("path",jk({},$n(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&Dk(t.prototype,n),r&&Dk(t,r),a}();function Vk(e){return Vk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vk(e)}function Kk(){return Kk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kk.apply(this,arguments)}function Wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qk(e,t){return qk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qk(e,t)}function Gk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yk(e);if(t){var i=Yk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Zk(this,n)}}function Zk(e,t){return!t||"object"!==Vk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yk(e){return Yk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yk(e)}var Xk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qk(e,t)}(a,m);var t,n,r,o=Gk(a);function a(){return Wk(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,a=zn("recharts-dot",o);return t===+t&&n===+n&&r===+r?i.createElement("circle",Kk({},$n(this.props),qn(this.props),{className:a,cx:t,cy:n,r:r})):null}}],n&&$k(t.prototype,n),r&&$k(t,r),a}();function Jk(e){return Jk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jk(e)}function Qk(){return Qk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qk.apply(this,arguments)}function eE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nE(e,t){return nE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nE(e,t)}function rE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oE(e);if(t){var i=oE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return iE(this,n)}}function iE(e,t){return!t||"object"!==Jk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oE(e){return oE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oE(e)}var aE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nE(e,t)}(a,m);var t,n,r,o=rE(a);function a(){return eE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,s=e.top,c=e.left,u=e.className;return Cf(t)&&Cf(n)&&Cf(r)&&Cf(o)&&Cf(s)&&Cf(c)?i.createElement("path",Qk({},$n(this.props,!0),{className:zn("recharts-cross",u),d:a.getPath(t,n,r,o,s,c)})):null}}],r=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],n&&tE(t.prototype,n),r&&tE(t,r),a}();aE.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var sE=wm,cE=zc,uE=km;var lE=function(e,t){return e&&e.length?sE(e,cE(t),uE):void 0},fE=wm,pE=xm,dE=zc;var hE=function(e,t){return e&&e.length?fE(e,dE(t),pE):void 0};function gE(e){return gE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gE(e)}function yE(){return yE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yE.apply(this,arguments)}function vE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vE(Object(n),!0).forEach((function(t){bE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wE(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CE(e,t){return CE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},CE(e,t)}function OE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kE(e);if(t){var i=kE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return SE(this,n)}}function SE(e,t){return!t||"object"!==gE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kE(e){return kE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kE(e)}var EE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&CE(e,t)}(a,m);var t,n,r,o=OE(a);function a(){return xE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return mS(i,o,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,o=hE(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:lE(i,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,a=e.axisLine,s=wE(e,["cx","cy","angle","ticks","axisLine"]),c=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=mS(t,n,c[0],r),l=mS(t,n,c[1],r),f=mE(mE(mE({},$n(s)),{},{fill:"none"},$n(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return i.createElement("line",yE({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,s=t.tickFormatter,c=t.stroke,u=wE(t,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),f=$n(u),p=$n(r),d=n.map((function(t,n){var u=e.getTickValueCoord(t),d=mE(mE(mE(mE({textAnchor:l,transform:"rotate(".concat(90-o,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:n},u),{},{payload:t});return i.createElement(er,yE({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},Gn(e.props,t,n)),a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return i.createElement(er,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?i.createElement(er,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),MS.renderCallByParent(this.props,this.getViewBox())):null}}],r=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,yE({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],n&&_E(t.prototype,n),r&&_E(t,r),a}();function AE(e){return AE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AE(e)}function TE(){return TE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TE.apply(this,arguments)}function jE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ME(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jE(Object(n),!0).forEach((function(t){PE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function RE(e,t){return RE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RE(e,t)}function LE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BE(e);if(t){var i=BE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return NE(this,n)}}function NE(e,t){return!t||"object"!==AE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function BE(e){return BE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BE(e)}EE.displayName="PolarRadiusAxis",EE.axisType="radiusAxis",EE.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};var FE=Math.PI/180,zE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&RE(e,t)}(a,m);var t,n,r,o=LE(a);function a(){return DE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.orientation,a=t.tickSize||8,s=mS(n,r,i,e.coordinate),c=mS(n,r,i+("inner"===o?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*FE);return n>1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,a=e.axisLineType,s=ME(ME({},$n(this.props)),{},{fill:"none"},$n(o));if("circle"===a)return i.createElement(Xk,TE({className:"recharts-polar-angle-axis-line"},s,{cx:t,cy:n,r:r}));var c=this.props.ticks.map((function(e){return mS(t,n,r,e.coordinate)}));return i.createElement(Hk,TE({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,s=t.tickFormatter,c=t.stroke,u=$n(this.props),l=$n(r),f=ME(ME({},u),{},{fill:"none"},$n(o)),p=n.map((function(t,n){var p=e.getTickLineCoord(t),d=ME(ME(ME({textAnchor:e.getTickTextAnchor(t)},u),{},{stroke:"none",fill:c},l),{},{index:n,payload:t,x:p.x2,y:p.y2});return i.createElement(er,TE({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},Gn(e.props,t,n)),o&&i.createElement("line",TE({className:"recharts-polar-angle-axis-tick-line"},f,p)),r&&a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return i.createElement(er,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:i.createElement(er,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],r=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,TE({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],n&&IE(t.prototype,n),r&&IE(t,r),a}();zE.displayName="PolarAngleAxis",zE.axisType="angleAxis",zE.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0};var UE=ya(Object.getPrototypeOf,Object),HE=yr,VE=UE,KE=Io,WE=Function.prototype,$E=Object.prototype,qE=WE.toString,GE=$E.hasOwnProperty,ZE=qE.call(Object);var YE=function(e){if(!KE(e)||"[object Object]"!=HE(e))return!1;var t=VE(e);if(null===t)return!0;var n=GE.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qE.call(n)==ZE};function XE(e){return XE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XE(e)}function JE(){return JE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JE.apply(this,arguments)}function QE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QE(Object(n),!0).forEach((function(t){tA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rA(e,t){return rA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rA(e,t)}function iA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aA(e);if(t){var i=aA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oA(this,n)}}function oA(e,t){return!t||"object"!==XE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function aA(e){return aA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aA(e)}var sA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rA(e,t)}(a,m);var t,n,r,o=iA(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state=void 0,t.id=kf("recharts-pie-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),br(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),br(e)&&e()},t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId},t}return t=a,n=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.label,r=t.labelLine,o=t.dataKey,s=t.valueKey,c=$n(this.props),u=$n(n),l=$n(r),f=n&&n.offsetRadius||20,p=e.map((function(e,t){var p=(e.startAngle+e.endAngle)/2,d=mS(e.cx,e.cy,e.outerRadius+f,p),h=eA(eA(eA(eA({},c),e),{},{stroke:"none"},u),{},{index:t,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=eA(eA(eA(eA({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:t,points:[mS(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=o;return Wf(o)&&Wf(s)?y="value":Wf(o)&&(y=s),i.createElement(er,{key:"label-".concat(t)},r&&a.renderLabelLineItem(r,g),a.renderLabelItem(n,h,BO(e,y)))}));return i.createElement(er,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,o=n.blendStroke,s=n.inactiveShape;return e.map((function(e,n){var c=s&&t.hasActiveIndex()?s:null,u=t.isActiveIndex(n)?r:c,l=eA(eA({},e),{},{stroke:o?e.fill:e.stroke});return i.createElement(er,JE({className:"recharts-pie-sector"},Gn(t.props,e,n),{key:"sector-".concat(n)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=[],a=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=l&&l[t],i=t>0?ac(e,"paddingAngle",0):0;if(n){var s=Tf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=eA(eA({},e),{},{startAngle:a+i,endAngle:a+s(r)+i});o.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Tf(0,u-f)(r),d=eA(eA({},e),{},{startAngle:a+i,endAngle:a+p+i});o.push(d),a=d.endAngle}})),i.createElement(er,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,a=e.cx,s=e.cy,c=e.innerRadius,u=e.outerRadius,l=e.isAnimationActive,f=this.state.isAnimationFinished;if(t||!n||!n.length||!Cf(a)||!Cf(s)||!Cf(c)||!Cf(u))return null;var p=zn("recharts-pie",r);return i.createElement(er,{className:p},this.renderSectors(),o&&this.renderLabels(n),MS.renderCallByParent(this.props,null,!1),(!l||f)&&VS.renderCallByParent(this.props,n,!1))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(vk,JE({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(i.isValidElement(e))return i.cloneElement(e,t);var r=n;return br(e)&&(r=e(t),i.isValidElement(r))?r:i.createElement(nm,JE({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):YE(e)?i.createElement(tk,JE({},t,e)):i.createElement(tk,t)}}],n&&nA(t.prototype,n),r&&nA(t,r),a}();sA.displayName="Pie",sA.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:!_g.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},sA.parseDeltaAngle=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),360)},sA.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,i=$n(e.props),o=lm(r,Zy.displayName);return n&&n.length?n.map((function(e,t){return eA(eA(eA({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return eA(eA({},i),e.props)})):[]},sA.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=bS(i,o);return{cx:r+Ef(e.props.cx,i,i/2),cy:n+Ef(e.props.cy,o,o/2),innerRadius:Ef(e.props.innerRadius,a,0),outerRadius:Ef(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}},sA.getComposedData=function(e){var t=e.item,n=e.offset,r=sA.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,s=i.endAngle,c=i.paddingAngle,u=i.dataKey,l=i.nameKey,f=i.valueKey,p=i.tooltipType,d=Math.abs(t.props.minAngle),h=sA.parseCoordinateOfPie(t,n),g=sA.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Wf(u)&&Wf(f)?(Gy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Wf(u)&&(Gy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var m,b,w=r.filter((function(e){return 0!==BO(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=BO(t,v,0);return e+(Cf(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=BO(e,v,0),i=BO(e,l,t),s=(Cf(r)?r:0)/_,u=(n=t?b.endAngle+xf(g)*c*(0!==r?1:0):a)+xf(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:i,value:r,payload:e,dataKey:v,type:p}],w=mS(h.cx,h.cy,y,f);return b=eA(eA(eA({percent:s,cornerRadius:o,name:i,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:BO(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:xf(g)*c})})));return eA(eA({},h),{},{sectors:m,data:r})};var cA={exports:{}};var uA=function(e){return e&&e.length?e[0]:void 0},lA=St(cA.exports=uA);function fA(e){return fA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fA(e)}function pA(){return pA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pA.apply(this,arguments)}function dA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dA(Object(n),!0).forEach((function(t){gA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mA(e,t){return mA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mA(e,t)}function bA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xA(e);if(t){var i=xA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return wA(this,n)}}function wA(e,t){return!t||"object"!==fA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xA(e){return xA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xA(e)}var _A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mA(e,t)}(a,m);var t,n,r,o=bA(a);function a(){var e;yA(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e.handleMouseEnter=function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)},e.handleMouseLeave=function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)},e}return t=a,n=[{key:"renderDots",value:function(e){var t=this.props,n=t.dot,r=t.dataKey,o=$n(this.props),s=$n(n),c=e.map((function(e,t){var i=hA(hA(hA({key:"dot-".concat(t),r:3},o),s),{},{dataKey:r,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(n,i)}));return i.createElement(er,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var t,n=this.props,r=n.shape,o=n.dot,a=n.isRange,s=n.baseLinePoints,c=n.connectNulls;return t=i.isValidElement(r)?i.cloneElement(r,hA(hA({},this.props),{},{points:e})):br(r)?r(hA(hA({},this.props),{},{points:e})):i.createElement(Hk,pA({},$n(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),i.createElement(er,{className:"recharts-radar-polygon"},t,o?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,i=u&&u.length/n.length,o=n.map((function(e,t){var n=u&&u[Math.floor(t*i)];if(n){var o=Tf(n.x,e.x),a=Tf(n.y,e.y);return hA(hA({},e),{},{x:o(r),y:a(r)})}var s=Tf(e.cx,e.x),c=Tf(e.cy,e.y);return hA(hA({},e),{},{x:s(r),y:c(r)})}));return e.renderPolygonStatically(o)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,i=this.state.prevPoints;return!(n&&t&&t.length)||r||i&&mm(i,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.className,r=e.points,o=e.isAnimationActive;if(t||!r||!r.length)return null;var a=this.state.isAnimationFinished,s=zn("recharts-radar",n);return i.createElement(er,{className:s},this.renderPolygon(),(!o||a)&&VS.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,pA({},t,{className:"recharts-radar-dot"}))}}],n&&vA(t.prototype,n),r&&vA(t,r),a}();function CA(e){return CA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CA(e)}function OA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OA(Object(n),!0).forEach((function(t){kA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EA(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function AA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jA(e,t){return jA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jA(e,t)}function MA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=DA(e);if(t){var i=DA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return PA(this,n)}}function PA(e,t){return!t||"object"!==CA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function DA(e){return DA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},DA(e)}_A.displayName="Radar",_A.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_A.getComposedData=function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,i=e.dataKey,o=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=BO(e,n.dataKey,r),f=BO(e,i),p=n.scale(l)+(o||0),d=xo(f)?IS(f):f,h=Wf(d)?void 0:t.scale(d);xo(f)&&f.length>=2&&(c=!0),u.push(hA(hA({},mS(a,s,h,p)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:p,payload:e}))}));var l=[];return c&&u.forEach((function(e){if(xo(e.value)){var n=lA(e.value),r=Wf(n)?void 0:t.scale(n);l.push(hA(hA({},e),{},{radius:r},mS(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}};var IA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jA(e,t)}(a,m);var t,n,r,o=MA(a);function a(){var e;AA(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return xf(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,s=n.cornerRadius,c=EA(n,["shape","activeShape","activeIndex","cornerRadius"]),u=$n(c);return e.map((function(e,n){var l=SA(SA(SA(SA({},u),{},{cornerRadius:s},e),Gn(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===o?i:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevData;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.startAngle,e.startAngle),o=Tf(n.endAngle,e.endAngle);return SA(SA({},e),{},{startAngle:i(r),endAngle:o(r)})}var a=e.endAngle,s=e.startAngle,c=Tf(s,a);return SA(SA({},e),{},{endAngle:c(r)})}));return i.createElement(er,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=$n(this.props.background);return e.map((function(e,i){e.value;var o=e.background,s=EA(e,["value","background"]);if(!o)return null;var c=SA(SA(SA(SA(SA({cornerRadius:n},s),{},{fill:"#eee"},o),r),Gn(t.props,e,i)),{},{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(o,c)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.background,a=e.isAnimationActive;if(t||!n||!n.length)return null;var s=this.state.isAnimationFinished,c=zn("recharts-area",r);return i.createElement(er,{className:c},o&&i.createElement(er,{className:"recharts-radial-bar-background"},this.renderBackground(n)),i.createElement(er,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&VS.renderCallByParent(SA(SA({},this.props),{},{clockWise:this.getDeltaAngle()<0}),n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderSectorShape",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(tk,t)}}],n&&TA(t.prototype,n),r&&TA(t,r),a}();IA.displayName="RadialBar",IA.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1},IA.getComposedData=function(e){var t=e.item,n=e.props,r=e.radiusAxis,i=e.radiusAxisTicks,o=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=YO(l,t);if(!d)return null;var h=o.cx,g=o.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?o:r,x=u?w.scale.domain():null,_=rS({numericAxis:w}),C=lm(m,Zy.displayName);return{data:s.map((function(e,s){var l,v,m,w,O,S;if(u?l=XO(u[p+s],x):(l=BO(e,c),xo(l)||(l=[_,l])),"radial"===y){v=nS({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:s}),O=o.scale(l[1]),w=o.scale(l[0]),m=v+d.size;var k=O-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))O+=xf(k||b)*(Math.abs(b)-Math.abs(k));S={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),O=(w=nS({axis:o,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=xf(E||b)*(Math.abs(b)-Math.abs(E))}return SA(SA(SA(SA({},e),S),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:O},C&&C[s]&&C[s].props),{},{tooltipPayload:[lS(t,e)],tooltipPosition:mS(h,g,(v+m)/2,(w+O)/2)})})),layout:y}};var RA=Math.ceil,LA=Math.max;var NA=Zg;var BA=function(e){return e?Infinity===(e=NA(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},FA=function(e,t,n,r){for(var i=-1,o=LA(RA((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},zA=rg,UA=BA;var HA=function(e){return function(t,n,r){return r&&"number"!=typeof r&&zA(t,n,r)&&(n=r=void 0),t=UA(t),void 0===n?(n=t,t=0):n=UA(n),r=void 0===r?t<n?1:-1:UA(r),FA(t,n,r,e)}}();function VA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VA(Object(n),!0).forEach((function(t){WA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $A=["Webkit","Moz","O","ms"];function qA(e){return qA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qA(e)}function GA(){return GA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GA.apply(this,arguments)}function ZA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZA(Object(n),!0).forEach((function(t){XA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function QA(e,t){return QA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},QA(e,t)}function eT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rT(e);if(t){var i=rT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tT(this,n)}}function tT(e,t){return!t||"object"!==qA(t)&&"function"!=typeof t?nT(e):t}function nT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rT(e){return rT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rT(e)}var iT=function(e){return e.changedTouches&&!!e.changedTouches.length},oT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&QA(e,t)}(a,m);var t,n,r,o=eT(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=iT(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(nT(t),"startX"),endX:t.handleTravellerDragStart.bind(nT(t),"endX")},t.state={},t}return t=a,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,i=this.props,o=i.gap,s=i.data.length-1,c=Math.min(t,n),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);return{startIndex:l-l%o,endIndex:f===s?s:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=BO(n[e],i,e);return br(r)?r(o,e):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,s=o.width,c=o.travellerWidth,u=o.startIndex,l=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-i,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=iT(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],c=this.props,u=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[i]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((XA(t={},i,s+y),XA(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?m%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:m%d==0)||o>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,s=e.stroke;return i.createElement("rect",{stroke:s,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,s=e.children,c=e.padding,u=g.only(s);return u?i.cloneElement(u,{x:t,y:n,width:r,height:o,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,s=n.height,c=n.traveller,u=Math.max(e,this.props.x),l=YA(YA({},$n(this.props)),{},{x:u,y:r,width:o,height:s});return i.createElement(er,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,s=n.travellerWidth,c=Math.min(e,t)+s,u=Math.max(Math.abs(t-e)-s,0);return i.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:c,y:r,width:u,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return i.createElement(er,{className:"recharts-brush-texts"},i.createElement(nm,GA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+o/2},f),this.getTextOfTick(t)),i.createElement(nm,GA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,s=e.width,c=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!t||!t.length||!Cf(o)||!Cf(a)||!Cf(s)||!Cf(c)||s<=0||c<=0)return null;var y=zn("recharts-brush",n),v=1===i.Children.count(r),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=$A.reduce((function(e,r){return KA(KA({},e),{},WA({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return i.createElement(er,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||g||u)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,s=Math.floor(n+o/2)-1;return i.createElement(i.Fragment,null,i.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),i.createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),i.createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return YA({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=sw().domain(HA(0,s)).range([i,i+o-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:i,travellerWidth:o,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],n&&JA(t.prototype,n),r&&JA(t,r),a}();oT.displayName="Brush",oT.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var aT=bh;var sT=no,cT=zc,uT=function(e,t){var n;return aT(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},lT=xo,fT=rg;var pT=function(e,t,n){var r=lT(e)?sT:uT;return n&&fT(e,t,n)&&(t=void 0),r(e,cT(t))},dT=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var hT=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},gT=bh;var yT=hT,vT=function(e,t){var n=!0;return gT(e,(function(e,r,i){return n=!!t(e,r,i)})),n},mT=zc,bT=xo,wT=rg;var xT=function(e,t,n){var r=bT(e)?yT:vT;return n&&wT(e,t,n)&&(t=void 0),r(e,mT(t))},_T=Vh;var CT=function(e,t,n){"__proto__"==t&&_T?_T(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},OT=CT,ST=vh,kT=zc;var ET=function(e,t){var n={};return t=kT(t),ST(e,(function(e,r,i){OT(n,r,t(e,r,i))})),n};function AT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function TT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TT(Object(n),!0).forEach((function(t){MT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PT=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={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},f=!!fm(c,"Bar");return u.reduce((function(o,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],O=1/0,S=g.categoricalDomain.sort();S.forEach((function(e,t){t>0&&(O=Math.min((e||0)-(S[t-1]||0),O))}));var k=O/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var A=Ef(e.barCategoryGap,k*E),T=k*E/2;c=T-A-(T-A)/E*A}}u="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(u=[u[1],u[0]]);var j=GO(g,i,f),M=j.scale,P=j.realScaleType;M.domain(v).range(u),ZO(M);var D=eS(M,jT(jT({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var I=jT(jT(jT({},g),D),{},{realScaleType:P,x:p,y:d,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return I.bandSize=cS(I,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*I.width):l[_]+=(h?-1:1)*I.height,jT(jT({},o),{},MT({},a,I))}),{})},DT=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},IT=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=void 0,this.scale=t}var t,n,r;return t=e,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}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&AT(t.prototype,n),r&&AT(t,r),e}();IT.EPS=1e-4;var RT=function(e){var t=Object.keys(e).reduce((function(t,n){return jT(jT({},t),{},MT({},n,IT.create(e[n])))}),{});return jT(jT({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return ET(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return xT(e,(function(e,n){return t[n].isInRange(e)}))}})};function LT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LT(Object(n),!0).forEach((function(t){BT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zT(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UT(){return UT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UT.apply(this,arguments)}function HT(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;Gy(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,i){var o=i.viewBox,a=o.x,s=o.y,c=o.width,u=o.height,l=i.position;if(n){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:l});if(dT(i,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=i.x,y=i.xAxis.orientation,v=e.x.apply(g,{position:l});if(dT(i,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=i.segment.map((function(t){return e.apply(t,{position:l})}));return dT(i,"discard")&&pT(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(RT({x:o.scale,y:a.scale}),Of(t),Of(n),r&&2===r.length,e);if(!f)return null;var p=FT(f,2),d=p[0],h=d.x,g=d.y,y=p[1],v=y.x,m=y.y,b=NT(NT({clipPath:dT(e,"hidden")?"url(#".concat(l,")"):void 0},$n(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return i.createElement(er,{className:zn("recharts-reference-line",c)},function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement("line",UT({},t,{className:"recharts-reference-line-line"}))}(s,b),MS.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return DT({x:t,y:n},{x:r,y:i})}({x1:h,y1:g,x2:v,y2:m})))}function VT(){return VT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VT.apply(this,arguments)}function KT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KT(Object(n),!0).forEach((function(t){$T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}HT.displayName="ReferenceLine",HT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function qT(e){var t=e.x,n=e.y,r=e.r,o=e.alwaysShow,a=e.clipPathId,s=Of(t),c=Of(n);if(Gy(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=RT({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return dT(e,"discard")&&!o.isInRange(a)?null:a}(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=WT(WT({clipPath:dT(e,"hidden")?"url(#".concat(a,")"):void 0},$n(e,!0)),{},{cx:l,cy:f});return i.createElement(er,{className:zn("recharts-reference-dot",d)},qT.renderDot(p,h),MS.renderCallByParent(e,{x:l-r,y:f-r,width:2*r,height:2*r}))}function GT(){return GT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GT.apply(this,arguments)}function ZT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZT(Object(n),!0).forEach((function(t){XT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qT.displayName="ReferenceDot",qT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},qT.renderDot=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,VT({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function JT(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Gy(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Of(t),l=Of(n),f=Of(r),p=Of(o),d=e.shape;if(!(u||l||f||p||d))return null;var h=function(e,t,n,r,i){var o=i.x1,a=i.x2,s=i.y1,c=i.y2,u=i.xAxis,l=i.yAxis;if(!u||!l)return null;var f=RT({x:u.scale,y:l.scale}),p={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!dT(i,"discard")||f.isInRange(p)&&f.isInRange(d)?DT(p,d):null}(u,l,f,p,e);if(!h&&!d)return null;var g=dT(e,"hidden")?"url(#".concat(c,")"):void 0;return i.createElement(er,{className:zn("recharts-reference-area",a)},JT.renderRect(d,YT(YT({clipPath:g},$n(e,!0)),h)),MS.renderCallByParent(e,h))}function QT(e){return QT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QT(e)}function ej(){return ej=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ej.apply(this,arguments)}function tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tj(Object(n),!0).forEach((function(t){rj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ij(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aj(e,t){return aj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},aj(e,t)}function sj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uj(e);if(t){var i=uj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return cj(this,n)}}function cj(e,t){return!t||"object"!==QT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uj(e){return uj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uj(e)}JT.displayName="ReferenceArea",JT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},JT.renderRect=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Ak,GT({},t,{className:"recharts-reference-area-rect"}))};var lj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aj(e,t)}(a,w);var t,n,r,o=sj(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).layerReference=void 0,t.state={fontSize:"",letterSpacing:""},t}return t=a,n=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=ij(e,["viewBox"]),i=this.props,o=i.viewBox,a=ij(i,["viewBox"]);return!rm(n,o)||!rm(r,a)||!rm(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,i,o,a,s=this.props,c=s.x,u=s.y,l=s.width,f=s.height,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=Cf(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=u+ +!h*f)-y*v)-y*g,o=m;break;case"left":r=i=e.coordinate,o=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=i=e.coordinate,o=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(i=u+ +h*f)+y*v)+y*g,o=m}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){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 e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=nj(nj(nj({},$n(this.props)),$n(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=nj(nj({},u),{},{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f=+("left"===a&&!s||"right"===a&&s);u=nj(nj({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return i.createElement("line",ej({},u,{className:zn("recharts-cartesian-axis-line",ac(c,"className"))}))}},{key:"renderTicks",value:function(e,t,n){var r=this,o=this.props,s=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,f=o.unit,p=a.getTicks(nj(nj({},this.props),{},{ticks:e}),t,n),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=$n(this.props),y=$n(u),v=nj(nj({},g),{},{fill:"none"},$n(s)),m=p.map((function(e,t){var n=r.getTickLineCoord(e),o=n.line,m=n.tick,b=nj(nj(nj(nj({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:l});return i.createElement(er,ej({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},Gn(r.props,e,t)),s&&i.createElement("line",ej({},v,o,{className:zn("recharts-cartesian-axis-tick-line",ac(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(br(l)?l(e.value,t):e.value).concat(f||"")))}));return i.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,a=t.ticksGenerator,s=t.className;if(t.hide)return null;var c=this.props,u=c.ticks,l=ij(c,["ticks"]),f=u;return br(a)&&(f=u&&u.length>0?a(this.props):a(l)),r<=0||o<=0||!f||!f.length?null:i.createElement(er,{className:zn("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),MS.renderCallByParent(this.props))}}],r=[{key:"getTicks",value:function(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,c=e.orientation,u=e.interval,l=e.tickFormatter,f=e.unit;return i&&i.length&&r?Cf(u)||_g.isSsr?a.getNumberIntervalTicks(i,"number"==typeof u&&Cf(u)?u:0):"preserveStartEnd"===u?a.getTicksStart({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===u?a.getTicksStart({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n,r,i=e.ticks,o=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=e.unit,l=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(i||[]).slice(),m=u&&"width"===y?Nv(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?xf(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=i[b-1],_=br(o)?o(x.value,b-1):x.value,C=Nv(_,{fontSize:l,letterSpacing:f})[y]+m,O=w*(x.coordinate+w*C/2-r);v[b-1]=x=nj(nj({},x),{},{tickCoord:O>0?x.coordinate-O*w:x.coordinate}),w*(x.tickCoord-w*C/2-n)>=0&&w*(x.tickCoord+w*C/2-r)<=0&&(r=x.tickCoord-w*(C/2+c),v[b-1]=nj(nj({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],A=br(o)?o(E.value,k):E.value,T=Nv(A,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var j=w*(E.coordinate-w*T/2-n);v[k]=E=nj(nj({},E),{},{tickCoord:j<0?E.coordinate-j*w:E.coordinate})}else v[k]=E=nj(nj({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*T/2-n)>=0&&w*(E.tickCoord+w*T/2-r)<=0&&(n=E.tickCoord+w*(T/2+c),v[k]=nj(nj({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=o.x,p=o.y,d=o.width,h=o.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?Nv(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?xf(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:p,n="width"===g?f+d:p+h):(t="width"===g?f+d:p+h,n="width"===g?f:p);for(var w=m-1;w>=0;w--){var x=v[w],_=br(i)?i(x.value,m-w-1):x.value,C=Nv(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var O=b*(x.coordinate+b*C/2-n);v[w]=x=nj(nj({},x),{},{tickCoord:O>0?x.coordinate-O*b:x.coordinate})}else v[w]=x=nj(nj({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*C/2-t)>=0&&b*(x.tickCoord+b*C/2-n)<=0&&(n=x.tickCoord-b*(C/2+s),v[w]=nj(nj({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,ej({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&oj(t.prototype,n),r&&oj(t,r),a}();function fj(e){return fj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fj(e)}function pj(){return pj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pj.apply(this,arguments)}function dj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hj(Object(n),!0).forEach((function(t){yj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bj(e,t){return bj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bj(e,t)}function wj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_j(e);if(t){var i=_j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xj(this,n)}}function xj(e,t){return!t||"object"!==fj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _j(e){return _j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_j(e)}lj.displayName="CartesianAxis",lj.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 Cj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bj(e,t)}(a,m);var t,n,r,o=wj(a);function a(){return vj(this,a),o.apply(this,arguments)}return t=a,n=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,s=n.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,n){var i=gj(gj({},t.props),{},{x1:r,y1:e,x2:r+o,y2:e,key:"line-".concat(n),index:n});return a.renderLineItem(s,i)}));return i.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,s=n.vertical;if(!e||!e.length)return null;var c=e.map((function(e,n){var i=gj(gj({},t.props),{},{x1:e,y1:r,x2:e,y2:r+o,key:"line-".concat(n),index:n});return a.renderLineItem(s,i)}));return i.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,s=n.width,c=n.height,u=e.slice().sort((function(e,t){return e-t}));o!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:o+s-e;if(l<=0)return null;var f=n%t.length;return i.createElement("rect",{key:"react-".concat(n),x:Math.round(e+o-o),y:a,width:l,height:c,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return i.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,s=n.width,c=n.height,u=e.slice().sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:a+c-e;if(l<=0)return null;var f=n%t.length;return i.createElement("rect",{key:"react-".concat(n),y:Math.round(e+a-a),x:o,height:l,width:s,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return i.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,a=t.width,s=t.height;return i.createElement("rect",{x:r,y:o,width:a,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!Cf(r)||r<=0||!Cf(o)||o<=0||!Cf(t)||t!==+t||!Cf(n)||n!==+n)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!br(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!br(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),i.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],r=[{key:"renderLineItem",value:function(e,t){var n;if(i.isValidElement(e))n=i.cloneElement(e,t);else if(br(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,s=t.y2,c=t.key,u=dj(t,["x1","y1","x2","y2","key"]);n=i.createElement("line",pj({},$n(u),{x1:r,y1:o,x2:a,y2:s,fill:"none",key:c}))}return n}}],n&&mj(t.prototype,n),r&&mj(t,r),a}();function Oj(){return Oj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oj.apply(this,arguments)}function Sj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kj(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ej(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Aj(e){var t=e.offset,n=e.layout,r=e.width,o=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=Ej(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=$n(l),p=a.map((function(e,a){var l=s(e,o),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=Sj(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===n){var w=c.scale,x=d+t,_=x+r,C=x-r,O=w(h-y),S=w(h+v);m.push({x1:S,y1:_,x2:S,y2:C}),m.push({x1:O,y1:x,x2:S,y2:x}),m.push({x1:O,y1:_,x2:O,y2:C})}else if("horizontal"===n){var k=u.scale,E=p+t,A=E-r,T=E+r,j=k(h-y),M=k(h+v);m.push({x1:A,y1:M,x2:T,y2:M}),m.push({x1:E,y1:j,x2:E,y2:M}),m.push({x1:A,y1:j,x2:T,y2:j})}return i.createElement(er,Oj({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,t){return i.createElement("line",Oj({},e,{key:"line-".concat(t)}))})))}));return i.createElement(er,{className:"recharts-errorBars"},p)}function Tj(e){return Tj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tj(e)}function jj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mj(){return Mj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mj.apply(this,arguments)}function Pj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pj(Object(n),!0).forEach((function(t){Ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rj(e){return function(e){if(Array.isArray(e))return Lj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Lj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lj(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fj(e,t){return Fj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fj(e,t)}function zj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hj(e);if(t){var i=Hj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Uj(this,n)}}function Uj(e,t){return!t||"object"!==Tj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hj(e){return Hj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hj(e)}Cj.displayName="CartesianGrid",Cj.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},Aj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Aj.displayName="ErrorBar";var Vj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fj(e,t)}(a,m);var t,n,r,o=zj(a);function a(){var e;Nj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).mainCurve=void 0,e.state={isAnimationFinished:!0,totalLength:0},e.getStrokeDasharray=function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),i=Math.floor(e/r),o=e%r,s=t-e,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>o){c=[].concat(Rj(n.slice(0,u)),[o-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(Rj(a.repeat(n,i)),Rj(c),f).map((function(e){return"".concat(e,"px")})).join(", ")},e.id=kf("recharts-line-"),e.pathRef=function(t){e.mainCurve=t},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()},e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,s=lm(a,Aj.displayName);if(!s)return null;function c(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:BO(e.payload,t)}}return s.map((function(e,a){return i.cloneElement(e,{key:"bar-".concat(a),data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:c})}))}},{key:"renderDots",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,o=n.points,s=n.dataKey,c=$n(this.props),u=$n(r,!0),l=o.map((function(e,t){var n=Dj(Dj(Dj({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(r,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return i.createElement(er,Mj({className:"recharts-line-dots",key:"dots"},f),l)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,a=o.type,s=o.layout,c=o.connectNulls;o.ref;var u=jj(o,["type","layout","connectNulls","ref"]),l=Dj(Dj(Dj({},$n(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:s,connectNulls:c});return i.createElement(vk,Mj({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.strokeDasharray,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.animateNewValues,d=r.width,h=r.height,g=this.state,y=g.prevPoints,v=g.totalLength;return i.createElement(Cd,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t;if(y){var s=y.length/o.length,c=o.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],o=Tf(r.x,e.x),a=Tf(r.y,e.y);return Dj(Dj({},e),{},{x:o(i),y:a(i)})}if(p){var c=Tf(2*d,e.x),u=Tf(h/2,e.y);return Dj(Dj({},e),{},{x:c(i),y:u(i)})}return Dj(Dj({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(c,e,t)}var u,l=Tf(0,v)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=n.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!mm(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=zn("recharts-line",o),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Wf(d)?this.id:d;return i.createElement(er,{className:y},v?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(m)},i.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(),(g||n)&&this.renderDots(v,m),(!p||h)&&VS.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(Rj(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(Rj(r),Rj(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(i.isValidElement(e))n=i.cloneElement(e,t);else if(br(e))n=e(t);else{var r=zn("recharts-line-dot",e?e.className:"");n=i.createElement(Xk,Mj({},t,{className:r}))}return n}}],n&&Bj(t.prototype,n),r&&Bj(t,r),a}();function Kj(e){return Kj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kj(e)}function Wj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $j(){return $j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$j.apply(this,arguments)}function qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qj(Object(n),!0).forEach((function(t){Zj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jj(e,t){return Jj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jj(e,t)}function Qj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tM(e);if(t){var i=tM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eM(this,n)}}function eM(e,t){return!t||"object"!==Kj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tM(e){return tM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tM(e)}Vj.displayName="Line",Vj.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!_g.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1},Vj.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout;return Dj({points:c.map((function(e,t){var c=BO(e,a);return"horizontal"===l?{x:tS({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:Wf(c)?null:r.scale(c),value:c,payload:e}:{x:Wf(c)?null:n.scale(c),y:tS({axis:r,ticks:o,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)};var nM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jj(e,t)}(a,m);var t,n,r,o=Qj(a);function a(){var e;Yj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!0},e.id=kf("recharts-area-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"renderDots",value:function(e,t){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var o=this.props,s=o.dot,c=o.points,u=o.dataKey,l=$n(this.props),f=$n(s,!0),p=c.map((function(e,t){var n=Gj(Gj(Gj({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return i.createElement(er,$j({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,a=r[0].x,s=r[r.length-1].x,c=e*Math.abs(a-s),u=Sm(r.map((function(e){return e.y||0})));return Cf(n)&&"number"==typeof n?u=Math.max(n,u):n&&xo(n)&&n.length&&(u=Math.max(Sm(n.map((function(e){return e.y||0}))),u)),Cf(u)?i.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,a=r[0].y,s=r[r.length-1].y,c=e*Math.abs(a-s),u=Sm(r.map((function(e){return e.x||0})));return Cf(n)&&"number"==typeof n?u=Math.max(n,u):n&&xo(n)&&n.length&&(u=Math.max(Sm(n.map((function(e){return e.x||0}))),u)),Cf(u)?i.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,n,r){var o=this.props,a=o.layout,s=o.type,c=o.stroke,u=o.connectNulls,l=o.isRange;o.ref;var f=Wj(o,["layout","type","stroke","connectNulls","isRange","ref"]);return i.createElement(er,{clipPath:n?"url(#clipPath-".concat(r,")"):null},i.createElement(vk,$j({},$n(f,!0),{points:e,connectNulls:u,type:s,baseLine:t,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&i.createElement(vk,$j({},$n(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&i.createElement(vk,$j({},$n(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.baseLine,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return i.createElement(Cd,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var s=r.t;if(d){var c,u=d.length/o.length,l=o.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],i=Tf(r.x,e.x),o=Tf(r.y,e.y);return Gj(Gj({},e),{},{x:i(s),y:o(s)})}return e}));return c=Cf(a)&&"number"==typeof a?Tf(h,a)(s):Wf(a)||yf(a)?Tf(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],i=Tf(r.x,e.x),o=Tf(r.y,e.y);return Gj(Gj({},e),{},{x:i(s),y:o(s)})}return e})),n.renderAreaStatically(l,c,e,t)}return i.createElement(er,null,i.createElement("defs",null,i.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(s))),i.createElement(er,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(o,a,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return o&&r&&r.length&&(!s&&u>0||!mm(s,r)||!mm(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=zn("recharts-area",o),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Wf(d)?this.id:d;return i.createElement(er,{className:y},v?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(m)},i.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(n||g)&&this.renderDots(v,m),(!p||h)&&VS.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],n&&Xj(t.prototype,n),r&&Xj(t,r),a}();function rM(e){return rM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rM(e)}function iM(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oM(){return oM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oM.apply(this,arguments)}function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(n),!0).forEach((function(t){cM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fM(e,t){return fM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fM(e,t)}function pM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hM(e);if(t){var i=hM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dM(this,n)}}function dM(e,t){return!t||"object"!==rM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hM(e){return hM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hM(e)}nM.displayName="Area",nM.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nM.getBaseValue=function(e,t,n,r){var i=e.layout,o=t.props.baseValue;if(Cf(o)&&"number"==typeof o)return o;var a="horizontal"===i?r:n,s=a.scale.domain();if("number"===a.type){var c=Math.max(s[0],s[1]),u=Math.min(s[0],s[1]);return"dataMin"===o?u:"dataMax"===o||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===o?s[0]:"dataMax"===o?s[1]:s[0]},nM.getComposedData=function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=nM.getBaseValue(n,r,i,o),v=!1,m=p.map((function(e,t){var n,r=BO(e,u);g?n=l[f+t]:xo(n=r)?v=!0:n=[y,n];var p=Wf(n[1])||g&&Wf(r);return"horizontal"===h?{x:tS({axis:i,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:o.scale(n[1]),value:n,payload:e}:{x:p?null:i.scale(n[1]),y:tS({axis:o,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Wf(ac(e,"value[0]"))||Wf(ac(e,"y"))?null:o.scale(ac(e,"value[0]"))}:{x:Wf(ac(e,"value[0]"))?null:i.scale(ac(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(y):i.scale(y),Gj({points:m,baseLine:t,layout:h,isRange:v},d)},nM.renderDotItem=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,$j({},t,{className:"recharts-area-dot"}))};var gM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fM(e,t)}(a,m);var t,n,r,o=pM(a);function a(){var e;uM(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.id=kf("recharts-bar-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()},e}return t=a,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=$n(this.props);return e&&e.map((function(e,o){var s=sM(sM(sM({},r),e),{},{index:o});return i.createElement(er,oM({className:"recharts-bar-rectangle"},Gn(t.props,e,o),{key:"rectangle-".concat(o)}),a.renderRectangle(n,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,a=t.animationBegin,s=t.animationDuration,c=t.animationEasing,u=t.animationId,l=this.state.prevData;return i.createElement(Cd,{begin:a,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,a=n.map((function(e,t){var n=l&&l[t];if(n){var i=Tf(n.x,e.x),a=Tf(n.y,e.y),s=Tf(n.width,e.width),c=Tf(n.height,e.height);return sM(sM({},e),{},{x:i(o),y:a(o),width:s(o),height:c(o)})}if("horizontal"===r){var u=Tf(0,e.height)(o);return sM(sM({},e),{},{y:e.y+e.height-u,height:u})}var f=Tf(0,e.width)(o);return sM(sM({},e),{},{width:f})}));return i.createElement(er,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=$n(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=iM(t,["value","background"]);if(!i)return null;var s=sM(sM(sM(sM(sM({},o),{},{fill:"#eee"},i),n),Gn(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.data,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,s=lm(a,Aj.displayName);if(!s)return null;var c="vertical"===o?t[0].height/2:t[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:BO(e,t)}}return s.map((function(e,a){return i.cloneElement(e,{key:"error-bar-".concat(a),data:t,xAxis:n,yAxis:r,layout:o,offset:c,dataPointFormatter:u})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,s=e.left,c=e.top,u=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=zn("recharts-bar",r),y=o&&o.allowDataOverflow||a&&a.allowDataOverflow,v=Wf(d)?this.id:d;return i.createElement(er,{className:g},y?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(v)},i.createElement("rect",{x:s,y:c,width:u,height:l}))):null,i.createElement(er,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&VS.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Ak,t)}}],n&&lM(t.prototype,n),r&&lM(t,r),a}();gM.displayName="Bar",gM.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},gM.getComposedData=function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=YO(r,n);if(!d)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:o,w=u?b.scale.domain():null,x=rS({numericAxis:b}),_=lm(v,Zy.displayName),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=XO(u[l+t],w):(r=BO(e,y),xo(r)||(r=[x,r])),"horizontal"===h){if(f=nS({axis:o,ticks:s,bandSize:i,offset:d.offset,entry:e,index:t}),p=a.scale(r[1]),g=d.size,v=a.scale(r[0])-a.scale(r[1]),b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var C=xf(v||m)*(Math.abs(m)-Math.abs(v));p-=C,v+=C}}else f=o.scale(r[0]),p=nS({axis:a,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),g=o.scale(r[1])-o.scale(r[0]),v=d.size,b={x:o.x,y:p,width:o.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)&&(g+=xf(g||m)*(Math.abs(m)-Math.abs(g)));return sM(sM(sM({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[lS(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return sM({data:C,layout:h},p)};var yM=function(){return null};function vM(e){return vM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vM(e)}function mM(){return mM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mM.apply(this,arguments)}function bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bM(Object(n),!0).forEach((function(t){xM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function OM(e,t){return OM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},OM(e,t)}function SM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EM(e);if(t){var i=EM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kM(this,n)}}function kM(e,t){return!t||"object"!==vM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function EM(e){return EM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},EM(e)}yM.displayName="ZAxis",yM.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var AM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&OM(e,t)}(a,m);var t,n,r,o=SM(a);function a(){var e;_M(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0})},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1})},e.id=kf("recharts-scatter-"),e}return t=a,n=[{key:"renderSymbolsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,s=n.activeIndex,c=$n(this.props);return e.map((function(e,n){var u=wM(wM({key:"symbol-".concat(n)},c),e);return i.createElement(er,mM({className:"recharts-scatter-symbol"},Gn(t.props,e,n),{key:"symbol-".concat(n)}),a.renderSymbolItem(s===n?o:r,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.cx,e.cx),o=Tf(n.cy,e.cy),a=Tf(n.size,e.size);return wM(wM({},e),{},{cx:i(r),cy:o(r),size:a(r)})}var s=Tf(0,e.size);return wM(wM({},e),{},{size:s(r)})}));return i.createElement(er,null,e.renderSymbolsStatically(o))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.children,a=lm(o,Aj.displayName);if(!a)return null;function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:BO(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:BO(e,t)}}return a.map((function(e,o){var a=e.props.direction;return i.cloneElement(e,{key:o,data:t,xAxis:n,yAxis:r,layout:"x"===a?"vertical":"horizontal",dataPointFormatter:"x"===a?c:s})}))}},{key:"renderLine",value:function(){var e,t,n=this.props,r=n.points,o=n.line,a=n.lineType,s=n.lineJointType,c=$n(this.props),u=$n(o);if("joint"===a)e=r.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,o=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,i+=c*u,o+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*o!=n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(r),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=wM(wM(wM({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return t=i.isValidElement(o)?i.cloneElement(o,y):br(o)?o(y):i.createElement(vk,mM({},y,{type:s})),i.createElement(er,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,o=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=zn("recharts-scatter",o),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Wf(p)?this.id:p;return i.createElement(er,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(v)},i.createElement("rect",{x:c,y:u,width:l,height:f}))):null,r&&this.renderLine(),this.renderErrorBar(),i.createElement(er,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&VS.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(e,t){var n;return i.isValidElement(e)?n=i.cloneElement(e,t):br(e)?n=e(t):"string"==typeof e&&(n=i.createElement(Ql,mM({},t,{type:e}))),n}}],n&&CM(t.prototype,n),r&&CM(t,r),a}();AM.displayName="Scatter",AM.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"},AM.getComposedData=function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,l=lm(i.props.children,Zy.displayName),f=Wf(t.dataKey)?i.props.dataKey:t.dataKey,p=Wf(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:yM.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=o.map((function(e,o){var c=BO(e,f),h=BO(e,p),m=!Wf(d)&&BO(e,d)||"-",b=[{name:Wf(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Wf(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=tS({axis:t,ticks:a,bandSize:y,entry:e,index:o,dataKey:f}),x=tS({axis:n,ticks:s,bandSize:v,entry:e,index:o,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return wM(wM({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[o]&&l[o].props)}));return wM({points:m},c)};var TM=function(){return null};TM.displayName="XAxis",TM.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};var jM=function(){return null};jM.displayName="YAxis",jM.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};var MM=zc,PM=Oa,DM=Aa;var IM=function(e){return function(t,n,r){var i=Object(t);if(!PM(t)){var o=MM(n);t=DM(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}},RM=BA;var LM=Uc,NM=zc,BM=function(e){var t=RM(e),n=t%1;return t==t?n?t-n:t:0},FM=Math.max;var zM=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:BM(n);return i<0&&(i=FM(r+i,0)),LM(e,NM(t),i)},UM=IM(zM),HM=ty,VM=Un;var KM=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return VM(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),HM(e,t,{leading:r,maxWait:t,trailing:i})},WM=yr,$M=Io;var qM=function(e){return!0===e||!1===e||$M(e)&&"[object Boolean]"==WM(e)},GM=function(e,t,n,r,i){var o=lm(e,HT.displayName),a=lm(e,qT.displayName),s=o.concat(a),c=lm(e,JT.displayName),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&dT(t.props,"extendDomain")&&Cf(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var p="".concat(l,"1"),d="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&dT(t.props,"extendDomain")&&Cf(t.props[p])&&Cf(t.props[d])){var r=t.props[p],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return Cf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},ZM={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||i&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(ZM);var YM=new(0,ZM.exports);YM.setMaxListeners&&YM.setMaxListeners(10);var XM="recharts.syncMouseEvents";function JM(e){return JM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JM(e)}function QM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||uP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eP(){return eP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eP.apply(this,arguments)}function tP(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rP(e,t){return rP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rP(e,t)}function iP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sP(e);if(t){var i=sP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oP(this,n)}}function oP(e,t){return!t||"object"!==JM(t)&&"function"!=typeof t?aP(e):t}function aP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sP(e){return sP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sP(e)}function cP(e){return function(e){if(Array.isArray(e))return lP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||uP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uP(e,t){if(e){if("string"==typeof e)return lP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lP(e,t):void 0}}function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fP(Object(n),!0).forEach((function(t){dP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hP={xAxis:["bottom","top"],yAxis:["left","right"]},gP={x:0,y:0},yP=Number.isFinite?Number.isFinite:isFinite,vP="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,mP="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,bP=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(cP(e),cP(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Cf(i)&&Cf(o)?e.slice(i,o+1):[]},wP=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=bP(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,s=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=jf(void 0===s?a:s,o.dataKey,r):i=s&&s[n]||a[n];return i?[].concat(cP(e),[lS(t,i)]):e}),[])},xP=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a>1){if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,c=0;c<a;c++){var u=c>0?r[c-1].coordinate:r[a-1].coordinate,l=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,p=void 0;if(xf(l-u)!==xf(f-l)){var d=[];if(xf(f-l)===xf(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){o=r[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/2){o=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}}else o=0;return o}(o,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=wP(e,t,u,l),p=function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=r.radius;return pP(pP(pP({},r),mS(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,c=r.angle;return pP(pP(pP({},r),mS(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return gP}(n,a,u,i);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},_P=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,p=KO(u,i),d=n.reduce((function(t,n){var d=n.props,h=d.type,g=d.dataKey,y=d.allowDataOverflow,v=d.allowDuplicatedCategory,m=d.scale,b=d.ticks,w=n.props[o],x=bP(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===w})),dataStartIndex:s,dataEndIndex:c}),_=x.length;if(!t[w]){var C,O,S;if(g){if(C=FO(x,g,h),"category"===h&&p){var k=function(e){if(!xo(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(C);v&&k?(O=C,C=HA(0,_)):v||(C=uS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(cP(e),[t])}),[]))}else if("category"===h)C=v?C.filter((function(e){return""!==e&&!Wf(e)})):uS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Wf(t)?e:[].concat(cP(e),[t])}),[]);else if("number"===h){var E=function(e,t,n,r,i){var o=t.map((function(t){return HO(e,t,n,i,r)})).filter((function(e){return!Wf(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(x,r.filter((function(e){return e.props[o]===w&&!e.props.hide})),g,i,u);E&&(C=E)}!p||"number"!==h&&"auto"===m||(S=FO(x,g,"category"))}else C=p?HA(0,_):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:iS(a[w].stackGroups,s,c):VO(x,r.filter((function(e){return e.props[o]===w&&!e.props.hide})),h,u,!0);if("number"===h)C=GM(l,C,w,i,b),n.props.domain&&(C=sS(n.props.domain,C,y));else if("category"===h&&n.props.domain){var A=n.props.domain;C.every((function(e){return A.indexOf(e)>=0}))&&(C=A)}return pP(pP({},t),{},dP({},w,pP(pP({},n.props),{},{axisType:i,domain:C,categoricalDomain:S,duplicateDomain:O,originalDomain:n.props.domain,isCategorical:p,layout:u})))}return t}),{});return d},CP=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=lm(u,i),p={};return f&&f.length?p=_P(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=bP(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=KO(u,i),h=-1;return n.reduce((function(e,t){var g,y=t.props[o];return e[y]?e:(h++,d?g=HA(0,p):a&&a[y]&&a[y].hasStack?(g=iS(a[y].stackGroups,s,c),g=GM(l,g,y,i)):(g=sS(r.defaultProps.domain,VO(f,n.filter((function(e){return e.props[o]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=GM(l,g,y,i)),pP(pP({},e),{},dP({},y,pP(pP({axisType:i},r.defaultProps),{},{hide:!0,orientation:ac(hP,"".concat(i,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:d,layout:u}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},OP=function(e){var t=e.children,n=e.defaultShowTooltip,r=fm(t,oT.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Wf(n)&&n}},SP=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},kP=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,s=n.width,c=n.height,u=n.children,l=n.margin||{},f=fm(u,oT.displayName),p=fm(u,Kf.displayName),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:pP(pP({},e),{},dP({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:pP(pP({},e),{},dP({},r,ac(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=pP(pP({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||oT.defaultProps.height),p&&t&&(g=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),c=UO({children:i,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"center"===p)&&Cf(e[f])&&(u=LO(LO({},e),{},NO({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Cf(e[p])&&(u=LO(LO({},e),{},NO({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),pP(pP({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},EP=function(e){var t,n,r=e.chartName,o=e.GraphicalChild,s=e.defaultTooltipEventType,u=void 0===s?"axis":s,l=e.validateTooltipEventTypes,f=void 0===l?["axis"]:l,p=e.axisComponents,d=e.legendContent,h=e.formatAxisMap,g=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,l=e.barGap,f=e.barCategoryGap,d=e.maxBarSize,h=SP(u),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=am(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var c=r[o[a]].stackGroups,u=Object.keys(c),l=0,f=u.length;l<f;l++){var p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return am(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];i[v]||(i[v]=[]),i[v].push({item:g[0],stackList:g.slice(1),barSize:Wf(y)?t:y})}}return i}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=bP(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],C=n.props["".concat(y,"Id")],O=p.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=o&&o[a];return pP(pP({},e),{},(dP(i={},r.axisType,s),dP(i,"".concat(r.axisType,"Ticks"),$O(s)),i))}),{}),S=O[y],k=O["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Of(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(n,r[_].stackGroups),A=am(n.type).indexOf("Bar")>=0,T=cS(S,k),j=[];if(A){var M,P,D=Wf(x)?d:x,I=null!==(M=null!==(P=cS(S,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;j=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var c,u=Ef(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,f=r/s,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=o.reduce((function(e,t){var n=[].concat(DO(e),[{item:t.item,position:{offset:d.offset+d.size+u,size:l?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Ef(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=o.reduce((function(e,t,n){var r=[].concat(DO(e),[{item:t.item,position:{offset:h+(g+u)*n+(g-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return c}({barGap:l,barCategoryGap:f,bandSize:I!==T?I:T,sizeList:m[C],maxBarSize:D}),I!==T&&(j=j.map((function(e){return pP(pP({},e),{},{position:pP(pP({},e.position),{},{offset:e.position.offset-I/2})})})))}var R,L,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:pP(pP({},B(pP(pP({},O),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:T,barPosition:j,offset:i,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(R={key:n.key||"item-".concat(c)},dP(R,g,O[g]),dP(R,y,O[y]),dP(R,"animationId",o),R)),childIndex:(L=n,N=e.children,um(N).indexOf(L)),item:n})})),b},m=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!pm({props:n}))return null;var c=n.children,u=n.layout,l=n.stackOffset,f=n.data,d=n.reverseStackOrder,g=SP(u),v=g.numericAxisName,m=g.cateAxisName,b=lm(c,o),w=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Of(o)){var c=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[o]=c}else s.stackGroups[kf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return LO(LO({},e),{},NO({},a,s))}),{});return Object.keys(a).reduce((function(t,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,o){var a=s.stackGroups[o];return LO(LO({},t),{},NO({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:QO(e,a.items,i)}))}),{})),LO(LO({},t),{},NO({},o,s))}),{})}(f,b,"".concat(v,"Id"),"".concat(m,"Id"),l,d),x=p.reduce((function(e,t){var r="".concat(t.axisType,"Map");return pP(pP({},e),{},dP({},r,CP(n,pP(pP({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=kP(pP(pP({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=h(n,x[e],_,e.replace("Map",""),r)}));var C,O,S=x["".concat(m,"Map")],k=(C=Af(S),{tooltipTicks:O=$O(C,!1,!0),orderedTooltipTicks:sg(O,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:cS(C,O)}),E=y(n,pP(pP({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return pP(pP({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return n=t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rP(e,t)}(l,w);var t,n,o,s=iP(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!Wf(t.deferId)&&mP&&mP(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(pP({legendBBox:e},m({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},pP(pP({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=vP&&vP(t.applySyncEvent.bind(aP(t),r)))},t.handleBrushChange=function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return pP({dataStartIndex:n,dataEndIndex:r},m({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},t.handleMouseEnter=function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=pP(pP({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)}},t.triggeredAfterMouseMove=function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?pP(pP({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&br(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),br(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var n=function(e){var t=e&&e.type;return t&&om[t]?om[t]:null}(e),r=ac(t.props,"".concat(n));n&&br(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=pP(pP({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)}},t.handleMouseDown=function(e){var n=t.props.onMouseDown;br(n)&&n(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var n=t.props.onMouseUp;br(n)&&n(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return WO(lj.getTicks(pP(pP(pP({},lj.defaultProps),t),{},{ticks:$O(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return WO(lj.getTicks(pP(pP(pP({},lj.defaultProps),t),{},{ticks:$O(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},t.axesTicksGenerator=function(e){return $O(e,!0)},t.renderCursor=function(e){var n=t.state,i=n.isTooltipActive,o=n.activeCoordinate,s=n.activePayload,u=n.offset,l=n.activeTooltipIndex,f=t.getTooltipEventType();if(!e||!e.props.cursor||!i||!o||"ScatterChart"!==r&&"axis"!==f)return null;var p,d=t.props.layout,h=vk;if("ScatterChart"===r)p=o,h=aE;else if("BarChart"===r)p=t.getCursorRectangle(),h=Ak;else if("radial"===d){var g=t.getCursorPoints(),y=g.cx,m=g.cy,b=g.radius;p={cx:y,cy:m,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:b,outerRadius:b},h=tk}else p={points:t.getCursorPoints()},h=vk;var w=e.key||"_recharts-cursor",x=pP(pP(pP(pP({stroke:"#ccc",pointerEvents:"none"},u),p),$n(e.props.cursor)),{},{payload:s,payloadIndex:l,key:w,className:"recharts-tooltip-cursor"});return v(e.props.cursor)?c(e.props.cursor,x):a(h,x)},t.renderPolarAxis=function(e,n,r){var i=ac(e,"type.axisType"),o=ac(t.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return c(e,pP(pP({},o),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:$O(o,!0)}))},t.renderXAxis=function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)},t.renderYAxis=function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)},t.renderGrid=function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.props,s=a.width,u=a.height,l=Af(r),f=UM(i,(function(e){return xT(e.domain,yP)}))||Af(i),p=e.props||{};return c(e,{key:e.key||"grid",x:Cf(p.x)?p.x:o.left,y:Cf(p.y)?p.y:o.top,width:Cf(p.width)?p.width:o.width,height:Cf(p.height)?p.height:o.height,xAxis:l,yAxis:f,offset:o,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=t.state,s=a.radiusAxisMap,u=a.angleAxisMap,l=Af(s),f=Af(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return c(e,{polarAngles:xo(i)?i:$O(f,!0).map((function(e){return e.coordinate})),polarRadius:xo(o)?o:$O(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:r})},t.renderLegend=function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,i=n.width,o=n.height,a=t.props.margin||{},s=i-(a.left||0)-(a.right||0),u=UO({children:r,formattedGraphicalItems:e,legendWidth:s,legendContent:d});if(!u)return null;var l=u.item,f=tP(u,["item"]);return c(l,pP(pP({},f),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,n=fm(e,Rg.displayName);if(!n)return null;var r=t.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,u=r.offset;return c(n,{viewBox:pP(pP({},u),{},{x:u.left,y:u.top}),active:i,label:s,payload:i?a:[],coordinate:o})},t.renderBrush=function(e){var n=t.props,r=n.margin,i=n.data,o=t.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return c(e,{key:e.key||"_recharts-brush",onChange:qO(t.handleBrushChange,null,e.props.onChange),data:i,x:Cf(e.props.x)?e.props.x:a.left,y:Cf(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Cf(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(l)})},t.renderReferenceElement=function(e,n,r){if(!e)return null;var i=aP(t).clipPathId,o=t.state,a=o.xAxisMap,s=o.yAxisMap,u=o.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return c(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[f],yAxis:s[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},t.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],s=t.props.key,c=t.item.props,u=c.activeDot,f=pP(pP({index:i,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:zO(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(i)},$n(u)),qn(u));return a.push(l.renderActiveDot(u,f)),r?a.push(l.renderActiveDot(u,pP(pP({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(i)}))):o&&a.push(null),a},t.renderGraphicChild=function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var o=t.getTooltipEventType(),a=t.state,s=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,f=a.activeLabel,p=t.props.children,d=fm(p,Rg.displayName),h=i.props,g=h.points,y=h.isRange,v=h.baseLine,m=i.item.props,b=m.activeDot,w=!m.hide&&s&&d&&b&&l>=0,x={};"axis"!==o&&d&&"click"===d.props.trigger?x={onClick:qO(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:qO(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:qO(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var _=c(e,pP(pP({},i.props),x));if(w){var C,O;if(u.dataKey&&!u.allowDuplicatedCategory){var S="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());C=jf(g,S,f),O=y&&v&&jf(v,S,f)}else C=g[l],O=y&&v&&v[l];if(!Wf(C))return[_].concat(cP(t.renderActivePoints({item:i,activePoint:C,basePoint:O,childIndex:l,isRange:y})))}return y?[_,null,null]:[_,null]},t.renderCustomized=function(e,n,r){return c(e,pP(pP({key:"recharts-customized-".concat(r)},t.props),t.state))},t.uniqueChartId=Wf(e.id)?kf("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=KM(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=l,n=[{key:"componentDidMount",value:function(){Wf(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Wf(e.syncId)&&!Wf(this.props.syncId)&&this.addListener(),!Wf(e.syncId)&&Wf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Wf(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=fm(this.props.children,Rg.displayName);if(e&&qM(e.props.shared)){var t=e.props.shared?"axis":"item";return f.indexOf(t)>=0?t:u}return u}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,i=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),o=this.inRange(i.chartX,i.chartY);if(!o)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=Af(s).scale,l=Af(c).scale,f=u&&u.invert?u.invert(i.chartX):null,p=l&&l.invert?l.invert(i.chartY):null;return pP(pP({},i),{},{xValue:f,yValue:p})}var d=xP(this.state,this.props.data,this.props.layout,o);return d?pP(pP({},i),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,s=o.offset;if("horizontal"===i)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===i)r=t=a.y,e=s.left,n=s.left+s.width;else if(!Wf(a.cx)||!Wf(a.cy)){if("centric"!==i){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[mS(c,u,l,f),mS(c,u,l,p)],cx:c,cy:u,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=mS(d,h,g,v),b=mS(d,h,y,v);e=m.x,t=m.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=Af(o);return CS({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=fm(e,Rg.displayName),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),pP(pP({},qn(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){YM.on(XM,this.handleReceiveSyncEvent),YM.setMaxListeners&&YM._maxListeners&&YM.setMaxListeners(YM._maxListeners+1)}},{key:"removeListener",value:function(){YM.removeListener(XM,this.handleReceiveSyncEvent),YM.setMaxListeners&&YM._maxListeners&&YM.setMaxListeners(YM._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Wf(t)||YM.emit(XM,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Wf(e.dataStartIndex)&&Wf(e.dataEndIndex))if(Wf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){u=d;break}}var h=pP(pP({},f),{},{x:f.left,y:f.top}),g=Math.min(s,h.x+h.width),y=Math.min(c,h.y+h.height),v=p[u]&&p[u].value,b=wP(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?y:p[u].coordinate}:gP;this.setState(pP(pP({},e),{},{activeLabel:v,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(pP({dataStartIndex:o,dataEndIndex:a},m({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===am(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var o=this.props,a=o.width,s=o.height;return i.createElement(lj,eP({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,a=t.width;return i.createElement("defs",null,i.createElement("clipPath",{id:e},i.createElement("rect",{x:n,y:r,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QM(t,2),r=n[0],i=n[1];return pP(pP({},e),{},dP({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QM(t,2),r=n[0],i=n[1];return pP(pP({},e),{},dP({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var i=t[n],o=i.props,a=i.item,s=am(a.type);if("Bar"===s){var c=(o.data||[]).find((function(t){return Ek(e,t)}));if(c)return{graphicalItem:i,payload:c}}else if("RadialBar"===s){var u=(o.data||[]).find((function(t){return CS(e,t)}));if(u)return{graphicalItem:i,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!pm(this))return null;var t=this.props,n=t.children,r=t.className,o=t.width,a=t.height,s=t.style,c=t.compact,u=t.title,l=t.desc,f=tP(t,["children","className","width","height","style","compact","title","desc"]),p=$n(f),d={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},Customized:{handler:this.renderCustomized}};if(c)return i.createElement(Xn,eP({},p,{width:o,height:a,title:u,desc:l}),this.renderClipPath(),ym(n,d));var h=this.parseEventsOfWrapper();return i.createElement("div",eP({className:zn("recharts-wrapper",r),style:pP({position:"relative",cursor:"default",width:o,height:a},s)},h,{ref:function(t){e.container=t}}),i.createElement(Xn,eP({},p,{width:o,height:a,title:u,desc:l}),this.renderClipPath(),ym(n,d)),this.renderLegend(),this.renderTooltip())}}],n&&nP(t.prototype,n),o&&nP(t,o),l}(),t.displayName=r,t.defaultProps=pP({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g),t.getDerivedStateFromProps=function(e,t){var n=e.data,r=e.children,i=e.width,o=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(Wf(t.updateId)){var u=OP(e);return pP(pP(pP({},u),{},{updateId:0},m(pP(pP({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!rm(c,t.prevMargin)){var l=OP(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=pP(pP({},xP(t,n,a)),{},{updateId:t.updateId+1}),d=pP(pP(pP({},l),f),p);return pP(pP(pP({},d),m(pP({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!hm(r,t.prevChildren)){var h=!Wf(n)?t.updateId:t.updateId+1;return pP(pP({updateId:h},m(pP(pP({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},t.renderActiveDot=function(e,t){var n;return n=v(e)?c(e,t):br(e)?e(t):i.createElement(Xk,t),i.createElement(er,{className:"recharts-active-dot",key:t.key},n)},n};EP({chartName:"LineChart",GraphicalChild:Vj,axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT});var AP=EP({chartName:"BarChart",GraphicalChild:gM,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT}),TP=EP({chartName:"PieChart",GraphicalChild:sA,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var jP=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},MP=CT,PP=xr,DP=Object.prototype.hasOwnProperty;var IP=function(e,t,n){var r=e[t];DP.call(e,t)&&PP(r,n)&&(void 0!==n||t in e)||MP(e,t,n)},RP=IP,LP=CT;var NP=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?LP(n,s,c):RP(n,s,c)}return n},BP=NP,FP=Aa;var zP=function(e,t){return e&&BP(t,FP(t),e)};var UP=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},HP=Un,VP=ga,KP=UP,WP=Object.prototype.hasOwnProperty;var $P=function(e){if(!HP(e))return KP(e);var t=VP(e),n=[];for(var r in e)("constructor"!=r||!t&&WP.call(e,r))&&n.push(r);return n},qP=da,GP=$P,ZP=Oa;var YP=function(e){return ZP(e)?qP(e,!0):GP(e)},XP=NP,JP=YP;var QP=function(e,t){return e&&XP(t,JP(t),e)},eD={exports:{}};!function(e,t){var n=ir,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(eD,eD.exports);var tD=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},nD=NP,rD=Po;var iD=function(e,t){return nD(e,rD(e),t)},oD=wo,aD=UE,sD=Po,cD=ko,uD=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)oD(t,sD(e)),e=aD(e);return t}:cD,lD=NP,fD=uD;var pD=function(e,t){return lD(e,fD(e),t)},dD=Oo,hD=uD,gD=YP;var yD=function(e){return dD(e,gD,hD)},vD=Object.prototype.hasOwnProperty;var mD=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&vD.call(e,"index")&&(n.index=e.index,n.input=e.input),n},bD=co;var wD=function(e){var t=new e.constructor(e.byteLength);return new bD(t).set(new bD(e)),t},xD=wD;var _D=function(e,t){var n=t?xD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},CD=/\w*$/;var OD=function(e){var t=new e.constructor(e.source,CD.exec(e));return t.lastIndex=e.lastIndex,t},SD=or?or.prototype:void 0,kD=SD?SD.valueOf:void 0;var ED=wD;var AD=wD,TD=_D,jD=OD,MD=function(e){return kD?Object(kD.call(e)):{}},PD=function(e,t){var n=t?ED(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var DD=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return AD(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return TD(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return PD(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return jD(e);case"[object Symbol]":return MD(e)}},ID=Un,RD=Object.create,LD=function(){function e(){}return function(t){if(!ID(t))return{};if(RD)return RD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ND=LD,BD=UE,FD=ga;var zD=function(e){return"function"!=typeof e.constructor||FD(e)?{}:ND(BD(e))},UD=Ja,HD=Io;var VD=function(e){return HD(e)&&"[object Map]"==UD(e)},KD=Qo,WD=ea.exports,$D=WD&&WD.isMap,qD=$D?KD($D):VD,GD=Ja,ZD=Io;var YD=function(e){return ZD(e)&&"[object Set]"==GD(e)},XD=Qo,JD=ea.exports,QD=JD&&JD.isSet,eI=QD?XD(QD):YD,tI=Yi,nI=jP,rI=IP,iI=zP,oI=QP,aI=eD.exports,sI=tD,cI=iD,uI=pD,lI=Pa,fI=yD,pI=Ja,dI=mD,hI=DD,gI=zD,yI=xo,vI=Vo.exports,mI=qD,bI=Un,wI=eI,xI=Aa,_I=YP,CI={};CI["[object Arguments]"]=CI["[object Array]"]=CI["[object ArrayBuffer]"]=CI["[object DataView]"]=CI["[object Boolean]"]=CI["[object Date]"]=CI["[object Float32Array]"]=CI["[object Float64Array]"]=CI["[object Int8Array]"]=CI["[object Int16Array]"]=CI["[object Int32Array]"]=CI["[object Map]"]=CI["[object Number]"]=CI["[object Object]"]=CI["[object RegExp]"]=CI["[object Set]"]=CI["[object String]"]=CI["[object Symbol]"]=CI["[object Uint8Array]"]=CI["[object Uint8ClampedArray]"]=CI["[object Uint16Array]"]=CI["[object Uint32Array]"]=!0,CI["[object Error]"]=CI["[object Function]"]=CI["[object WeakMap]"]=!1;var OI=function e(t,n,r,i,o,a){var s,c=1&n,u=2&n,l=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!bI(t))return t;var f=yI(t);if(f){if(s=dI(t),!c)return sI(t,s)}else{var p=pI(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(vI(t))return aI(t,c);if("[object Object]"==p||"[object Arguments]"==p||d&&!o){if(s=u||d?{}:gI(t),!c)return u?uI(t,oI(s,t)):cI(t,iI(s,t))}else{if(!CI[p])return o?t:{};s=hI(t,p,c)}}a||(a=new tI);var h=a.get(t);if(h)return h;a.set(t,s),wI(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):mI(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=f?void 0:(l?u?fI:lI:u?_I:xI)(t);return nI(g||t,(function(i,o){g&&(i=t[o=i]),rI(s,o,e(i,n,r,o,t,a))})),s},SI=ic,kI=uu;var EI=function(e,t){return t.length<2?e:SI(e,kI(t,0,-1))},AI=Qs,TI=IS,jI=EI,MI=tc;var PI=function(e,t){return t=AI(t,e),null==(e=jI(e,t))||delete e[MI(TI(t))]},DI=YE;var II=dh;var RI=function(e){return(null==e?0:e.length)?II(e,1):[]},LI=RI,NI=zh,BI=Zh;var FI=zs,zI=OI,UI=PI,HI=Qs,VI=NP,KI=function(e){return DI(e)?void 0:e},WI=yD,$I=function(e){return BI(NI(e,void 0,LI),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=FI(t,(function(t){return t=HI(t,e),r||(r=t.length>1),t})),VI(e,WI(e),n),r&&(n=zI(n,7,KI));for(var i=t.length;i--;)UI(n,t[i]);return n})),qI=$I;function GI(e){return GI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GI(e)}function ZI(){return ZI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZI.apply(this,arguments)}function YI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function JI(e,t){return JI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},JI(e,t)}function QI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tR(e);if(t){var i=tR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eR(this,n)}}function eR(e,t){return!t||"object"!==GI(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tR(e){return tR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tR(e)}Math.sqrt(5),_g.isSsr,_g.isSsr,EP({chartName:"RadarChart",GraphicalChild:_A,axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EP({chartName:"ScatterChart",GraphicalChild:AM,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM},{axisType:"zAxis",AxisComp:yM}],formatAxisMap:PT}),EP({chartName:"AreaChart",GraphicalChild:nM,axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT}),EP({chartName:"RadialBarChart",GraphicalChild:IA,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EP({chartName:"ComposedChart",GraphicalChild:[Vj,nM,gM,AM],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM},{axisType:"zAxis",AxisComp:yM}],formatAxisMap:PT});var nR=function(e,t,n,r,i){var o,a=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},rR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&JI(e,t)}(a,m);var t,n,r,o=QI(a);function a(){var e;YI(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,o=t.upperWidth,a=t.lowerWidth,s=t.height,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||s!==+s||0===o&&0===a||0===s)return null;var g=zn("recharts-trapezoid",c);return h?i.createElement(Cd,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:n,y:r},to:{upperWidth:o,lowerWidth:a,height:s,x:n,y:r},duration:p,animationEasing:f,isActive:h},(function(t){var n=t.upperWidth,r=t.lowerWidth,o=t.height,a=t.x,s=t.y;return i.createElement(Cd,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},i.createElement("path",ZI({},$n(e.props,!0),{className:g,d:nR(a,s,n,r,o),ref:function(t){e.node=t}})))})):i.createElement("g",null,i.createElement("path",ZI({},$n(this.props,!0),{className:g,d:nR(n,r,o,a,s)})))}}],n&&XI(t.prototype,n),r&&XI(t,r),a}();function iR(e){return iR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iR(e)}function oR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sR(){return sR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sR.apply(this,arguments)}function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cR(Object(n),!0).forEach((function(t){lR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dR(e,t){return dR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dR(e,t)}function hR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yR(e);if(t){var i=yR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gR(this,n)}}function gR(e,t){return!t||"object"!==iR(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yR(e){return yR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yR(e)}rR.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var vR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dR(e,t)}(a,m);var t,n,r,o=hR(a);function a(){var e;fR(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var t=this,n=this.props.activeShape;return e.map((function(e,r){var o=t.isActiveIndex(r)?n:null,s=uR(uR({},e),{},{stroke:e.stroke});return i.createElement(er,sR({className:"recharts-funnel-trapezoid"},Gn(t.props,e,r),{key:"trapezoid-".concat(r)}),a.renderTrapezoidItem(o,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,n=t.trapezoids,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevTrapezoids;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.x,e.x),o=Tf(n.y,e.y),a=Tf(n.upperWidth,e.upperWidth),s=Tf(n.lowerWidth,e.lowerWidth),c=Tf(n.height,e.height);return uR(uR({},e),{},{x:i(r),y:o(r),upperWidth:a(r),lowerWidth:s(r),height:c(r)})}var l=Tf(e.x+e.upperWidth/2,e.x),f=Tf(e.y+e.height/2,e.y),p=Tf(0,e.upperWidth),d=Tf(0,e.lowerWidth),h=Tf(0,e.height);return uR(uR({},e),{},{x:l(r),y:f(r),upperWidth:p(r),lowerWidth:d(r),height:h(r)})}));return i.createElement(er,null,e.renderTrapezoidsStatically(o))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.trapezoids,r=e.className,o=e.isAnimationActive,a=this.state.isAnimationFinished;if(t||!n||!n.length)return null;var s=zn("recharts-trapezoids",r);return i.createElement(er,{className:s},this.renderTrapezoids(),(!o||a)&&VS.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):YE(e)?i.createElement(rR,sR({},t,e)):i.createElement(rR,t)}}],n&&pR(t.prototype,n),r&&pR(t,r),a}();vR.displayName="Funnel",vR.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!_g.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"},vR.getRealFunnelData=function(e){var t=e.props,n=t.data,r=t.children,i=$n(e.props),o=lm(r,Zy.displayName);return n&&n.length?n.map((function(e,t){return uR(uR(uR({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return uR(uR({},i),e.props)})):[]},vR.getRealWidthHeight=function(e,t){var n=e.props.width,r=t.width,i=t.height,o=t.left,a=t.right,s=t.top,c=t.bottom,u=i,l=r;return hf(n)?l=n:wf(n)&&(l=l*parseFloat(n)/100),{realWidth:l-o-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(i-u)/2}},vR.getComposedData=function(e){var t=e.item,n=e.offset,r=vR.getRealFunnelData(t),i=t.props,o=i.dataKey,a=i.nameKey,s=i.tooltipType,c=i.lastShapeType,u=i.reversed,l=n.left,f=n.top,p=vR.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,g=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return BO(e,o,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,i=BO(e,o,0),u=BO(e,a,t),p=i;if(t!==m-1)(n=BO(r[t+1],o,0))instanceof Array&&(n=oR(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=oR(i,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,C=p/v*h,O=n/v*h,S=[{name:u,value:p,payload:e,dataKey:o,type:s}],k={x:x+C/2,y:_+b/2};return uR(uR({x:x,y:_,width:Math.max(C,O),upperWidth:C,lowerWidth:O,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},qI(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-O)/4,y:_,width:Math.abs(C-O)/2+Math.min(C,O),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return uR(uR({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:uR(uR({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:uR(uR({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}},EP({chartName:"FunnelChart",GraphicalChild:vR,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const mR=()=>e(k,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),bR=n=>{var{width:r,height:i,data:o,dataKey:a}=n,s=T(n,["width","height","data","dataKey"]);const{scale2:c,color:u}=S();return t(wR,Object.assign({},s,{style:{border:"1px solid"}},{children:[e(mR,{}),t(AP,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:i,data:o},{children:[e(Cj,{stroke:c,strokeDasharray:"3 5",vertical:!1}),e(TM,{stroke:c,dataKey:"name",tickMargin:4}),e(jM,{stroke:c,tickMargin:4}),e(Rg,{}),e(gM,{barSize:16,dataKey:a,fill:u.brand})]}))]}))},wR=de.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})));function xR(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function _R(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function CR(e){_R(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function OR(e,t){_R(2,arguments);var n=CR(e),r=xR(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function SR(e,t){_R(2,arguments);var n=CR(e),r=xR(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function kR(e,t){if(_R(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?xR(t.years):0,r=t.months?xR(t.months):0,i=t.weeks?xR(t.weeks):0,o=t.days?xR(t.days):0,a=t.hours?xR(t.hours):0,s=t.minutes?xR(t.minutes):0,c=t.seconds?xR(t.seconds):0,u=CR(e),l=r||n?SR(u,r+12*n):u,f=o||i?OR(l,o+7*i):l,p=s+60*a,d=c+60*p,h=1e3*d,g=new Date(f.getTime()+h);return g}function ER(e,t){_R(2,arguments);var n=CR(e).getTime(),r=xR(t);return new Date(n+r)}var AR={};function TR(){return AR}function jR(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function MR(e){_R(1,arguments);var t=CR(e);return t.setHours(0,0,0,0),t}function PR(e,t){_R(2,arguments);var n=MR(e),r=MR(t),i=n.getTime()-jR(n),o=r.getTime()-jR(r);return Math.round((i-o)/864e5)}function DR(e,t){_R(2,arguments);var n=MR(e),r=MR(t);return n.getTime()===r.getTime()}function IR(e){return _R(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function RR(e){if(_R(1,arguments),!IR(e)&&"number"!=typeof e)return!1;var t=CR(e);return!isNaN(Number(t))}function LR(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function NR(e,t){_R(2,arguments);var n=CR(e),r=CR(t),i=LR(n,r),o=Math.abs(PR(n,r));n.setDate(n.getDate()-i*o);var a=Number(LR(n,r)===-i),s=i*(o-a);return 0===s?0:s}function BR(e,t){return _R(2,arguments),CR(e).getTime()-CR(t).getTime()}var FR={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function zR(e){return e?FR[e]:FR.trunc}function UR(e,t){_R(2,arguments);var n=xR(t);return ER(e,-n)}function HR(e){_R(1,arguments);var t=1,n=CR(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function VR(e){_R(1,arguments);var t=CR(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=HR(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=HR(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function KR(e){_R(1,arguments);var t=VR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=HR(n);return r}function WR(e){_R(1,arguments);var t=CR(e),n=HR(t).getTime()-KR(t).getTime();return Math.round(n/6048e5)+1}function $R(e,t){var n,r,i,o,a,s,c,u;_R(1,arguments);var l=TR(),f=xR(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=CR(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function qR(e,t){var n,r,i,o,a,s,c,u;_R(1,arguments);var l=CR(e),f=l.getUTCFullYear(),p=TR(),d=xR(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=$R(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=$R(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function GR(e,t){var n,r,i,o,a,s,c,u;_R(1,arguments);var l=TR(),f=xR(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=qR(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=$R(d,t);return h}function ZR(e,t){_R(1,arguments);var n=CR(e),r=$R(n,t).getTime()-GR(n,t).getTime();return Math.round(r/6048e5)+1}function YR(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var XR=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return YR("yy"===t?r%100:r,t.length)},JR=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):YR(n+1,2)},QR=function(e,t){return YR(e.getUTCDate(),t.length)},eL=function(e,t){return YR(e.getUTCHours()%12||12,t.length)},tL=function(e,t){return YR(e.getUTCHours(),t.length)},nL=function(e,t){return YR(e.getUTCMinutes(),t.length)},rL=function(e,t){return YR(e.getUTCSeconds(),t.length)},iL=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return YR(Math.floor(r*Math.pow(10,n-3)),t.length)},oL="midnight",aL="noon",sL="morning",cL="afternoon",uL="evening",lL="night",fL={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return XR(e,t)},Y:function(e,t,n,r){var i=qR(e,r),o=i>0?i:1-i;return"YY"===t?YR(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):YR(o,t.length)},R:function(e,t){return YR(VR(e),t.length)},u:function(e,t){return YR(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return YR(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return YR(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return JR(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return YR(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=ZR(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):YR(i,t.length)},I:function(e,t,n){var r=WR(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):YR(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):QR(e,t)},D:function(e,t,n){var r=function(e){_R(1,arguments);var t=CR(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):YR(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return YR(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return YR(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return YR(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?aL:0===i?oL:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?uL:i>=12?cL:i>=4?sL:lL,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return eL(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):tL(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):YR(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):YR(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):nL(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):rL(e,t)},S:function(e,t){return iL(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return dL(i);case"XXXX":case"XX":return hL(i);default:return hL(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return dL(i);case"xxxx":case"xx":return hL(i);default:return hL(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pL(i,":");default:return"GMT"+hL(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pL(i,":");default:return"GMT"+hL(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return YR(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return YR((r._originalDate||e).getTime(),t.length)}};function pL(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+YR(o,2)}function dL(e,t){return e%60==0?(e>0?"-":"+")+YR(Math.abs(e)/60,2):hL(e,t)}function hL(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+YR(Math.floor(i/60),2)+n+YR(i%60,2)}var gL=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},yL=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},vL={p:yL,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return gL(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",gL(i,t)).replace("{{time}}",yL(o,t))}},mL=["D","DD"],bL=["YY","YYYY"];function wL(e){return-1!==mL.indexOf(e)}function xL(e){return-1!==bL.indexOf(e)}function _L(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var CL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function OL(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var SL={date:OL({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:OL({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:OL({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function EL(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var AL={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:EL({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:EL({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:EL({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:EL({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:EL({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function TL(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?ML(c,(function(e){return e.test(s)})):jL(c,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(s.length);return{value:a,rest:l}}}function jL(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ML(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var PL,DL={ordinalNumber:(PL={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(PL.matchPattern);if(!n)return null;var r=n[0],i=e.match(PL.parsePattern);if(!i)return null;var o=PL.valueCallback?PL.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(r.length);return{value:o,rest:a}}),era:TL({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:TL({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:TL({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:TL({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:TL({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},IL={code:"en-US",formatDistance:function(e,t,n){var r,i=CL[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:SL,formatRelative:function(e,t,n,r){return kL[e]},localize:AL,match:DL,options:{weekStartsOn:0,firstWeekContainsDate:1}},RL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NL=/^'([^]*?)'?$/,BL=/''/g,FL=/[a-zA-Z]/;function zL(e,t,n){var r,i,o,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;_R(2,arguments);var x=String(t),_=TR(),C=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:_.locale)&&void 0!==r?r:IL,O=xR(null!==(o=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==o?o:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=xR(null!==(d=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=CR(e);if(!RR(k))throw new RangeError("Invalid time value");var E=jR(k),A=UR(k,E),T={firstWeekContainsDate:O,weekStartsOn:S,locale:C,_originalDate:k},j=x.match(LL).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,vL[t])(e,C.formatLong):e})).join("").match(RL).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return UL(r);var o=fL[i];if(o)return null!=n&&n.useAdditionalWeekYearTokens||!xL(r)||_L(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!wL(r)||_L(r,t,String(e)),o(A,r,C.localize,T);if(i.match(FL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return j}function UL(e){var t=e.match(NL);return t?t[1].replace(BL,"'"):e}function HL(e){_R(1,arguments);var t=CR(e),n=t.getDate();return n}function VL(e){_R(1,arguments);var t=CR(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function KL(e){_R(1,arguments);var t=CR(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function WL(e,t){_R(2,arguments);var n=CR(e),r=CR(t);return n.getTime()>r.getTime()}function $L(e,t){_R(2,arguments);var n=CR(e),r=CR(t);return n.getTime()<r.getTime()}function qL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class GL extends class{constructor(){qL(this,"priority",void 0),qL(this,"subPriority",0)}validate(e,t){return!0}}{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}function ZL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class YL{constructor(){ZL(this,"incompatibleTokens",void 0),ZL(this,"priority",void 0),ZL(this,"subPriority",void 0)}run(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new GL(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}function XL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JL=/^(1[0-2]|0?\d)/,QL=/^(3[0-1]|[0-2]?\d)/,eN=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,tN=/^(5[0-3]|[0-4]?\d)/,nN=/^(2[0-3]|[0-1]?\d)/,rN=/^(2[0-4]|[0-1]?\d)/,iN=/^(1[0-1]|0?\d)/,oN=/^(1[0-2]|0?\d)/,aN=/^[0-5]?\d/,sN=/^[0-5]?\d/,cN=/^\d/,uN=/^\d{1,2}/,lN=/^\d{1,3}/,fN=/^\d{1,4}/,pN=/^-?\d+/,dN=/^-?\d/,hN=/^-?\d{1,2}/,gN=/^-?\d{1,3}/,yN=/^-?\d{1,4}/,vN=/^([+-])(\d{2})(\d{2})?|Z/,mN=/^([+-])(\d{2})(\d{2})|Z/,bN=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,wN=/^([+-])(\d{2}):(\d{2})|Z/,xN=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function _N(e,t){return e?{value:t(e.value),rest:e.rest}:e}function CN(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ON(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function SN(e){return CN(pN,e)}function kN(e,t){switch(e){case 1:return CN(cN,t);case 2:return CN(uN,t);case 3:return CN(lN,t);case 4:return CN(fN,t);default:return CN(new RegExp("^\\d{1,"+e+"}"),t)}}function EN(e,t){switch(e){case 1:return CN(dN,t);case 2:return CN(hN,t);case 3:return CN(gN,t);case 4:return CN(yN,t);default:return CN(new RegExp("^-?\\d{1,"+e+"}"),t)}}function AN(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function TN(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function jN(e){return e%400==0||e%4==0&&e%100!=0}function MN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HN=[31,28,31,30,31,30,31,31,30,31,30,31],VN=[31,29,31,30,31,30,31,31,30,31,30,31];function KN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WN(e,t,n){var r,i,o,a,s,c,u,l;_R(2,arguments);var f=TR(),p=xR(null!==(r=null!==(i=null!==(o=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==i?i:null===(u=f.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=CR(e),h=xR(t),g=d.getUTCDay(),y=h%7,v=(y+7)%7,m=(v<p?7:0)+h-g;return d.setUTCDate(d.getUTCDate()+m),d}function $N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lB(e,t){_R(2,arguments);var n=CR(e),r=CR(t);return n.getFullYear()===r.getFullYear()}function fB(e,t){_R(2,arguments);var n=xR(t);return OR(e,-n)}function pB(e,t){_R(2,arguments);var n=CR(e),r=xR(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=VL(a);return n.setMonth(r,Math.min(o,s)),n}function dB(e,t){_R(2,arguments);var n=CR(e),r=xR(t);return n.setDate(r),n}function hB(e,t){_R(2,arguments);var n=xR(t);return SR(e,-n)}function gB(e,t){if(_R(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?xR(t.years):0,r=t.months?xR(t.months):0,i=t.weeks?xR(t.weeks):0,o=t.days?xR(t.days):0,a=t.hours?xR(t.hours):0,s=t.minutes?xR(t.minutes):0,c=t.seconds?xR(t.seconds):0,u=hB(e,r+12*n),l=fB(u,o+7*i),f=s+60*a,p=c+60*f,d=1e3*p,h=new Date(l.getTime()-d);return h}new class extends YL{constructor(){super(...arguments),XL(this,"priority",140),XL(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),MN(this,"priority",130),MN(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return _N(kN(4,e),r);case"yo":return _N(n.ordinalNumber(e,{unit:"year"}),r);default:return _N(kN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=TN(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),PN(this,"priority",130),PN(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return _N(kN(4,e),r);case"Yo":return _N(n.ordinalNumber(e,{unit:"year"}),r);default:return _N(kN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){var i=qR(e,r);if(n.isTwoDigitYear){var o=TN(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),$R(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),$R(e,r)}},new class extends YL{constructor(){super(...arguments),DN(this,"priority",130),DN(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return EN("R"===t?4:t.length,e)}set(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),HR(r)}},new class extends YL{constructor(){super(...arguments),IN(this,"priority",130),IN(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return EN("u"===t?4:t.length,e)}set(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),RN(this,"priority",120),RN(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return kN(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),LN(this,"priority",120),LN(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return kN(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),NN(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),NN(this,"priority",110)}parse(e,t,n){var r=function(e){return e-1};switch(t){case"M":return _N(CN(JL,e),r);case"MM":return _N(kN(2,e),r);case"Mo":return _N(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),BN(this,"priority",110),BN(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return e-1};switch(t){case"L":return _N(CN(JL,e),r);case"LL":return _N(kN(2,e),r);case"Lo":return _N(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),FN(this,"priority",100),FN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return CN(tN,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return $R(function(e,t,n){_R(2,arguments);var r=CR(e),i=xR(t),o=ZR(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}},new class extends YL{constructor(){super(...arguments),zN(this,"priority",100),zN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return CN(tN,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return HR(function(e,t){_R(2,arguments);var n=CR(e),r=xR(t),i=WR(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}},new class extends YL{constructor(){super(...arguments),UN(this,"priority",90),UN(this,"subPriority",1),UN(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return CN(QL,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return kN(t.length,e)}}validate(e,t){var n=jN(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=VN[r]:t>=1&&t<=HN[r]}set(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),KN(this,"priority",90),KN(this,"subpriority",1),KN(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return CN(eN,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return kN(t.length,e)}}validate(e,t){return jN(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),$N(this,"priority",90),$N(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=WN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),qN(this,"priority",90),qN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return _N(kN(t.length,e),i);case"eo":return _N(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=WN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),GN(this,"priority",90),GN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return _N(kN(t.length,e),i);case"co":return _N(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=WN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),ZN(this,"priority",90),ZN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return kN(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return _N(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return _N(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return _N(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return _N(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=function(e,t){_R(2,arguments);var n=xR(t);n%7==0&&(n-=7);var r=1,i=CR(e),o=i.getUTCDay(),a=((n%7+7)%7<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+a),i}(e,n),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),YN(this,"priority",80),YN(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(AN(n),0,0,0),e}},new class extends YL{constructor(){super(...arguments),XN(this,"priority",80),XN(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(AN(n),0,0,0),e}},new class extends YL{constructor(){super(...arguments),JN(this,"priority",80),JN(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(AN(n),0,0,0),e}},new class extends YL{constructor(){super(...arguments),QN(this,"priority",70),QN(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return CN(oN,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),eB(this,"priority",70),eB(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return CN(nN,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setUTCHours(n,0,0,0),e}},new class extends YL{constructor(){super(...arguments),tB(this,"priority",70),tB(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return CN(iN,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},new class extends YL{constructor(){super(...arguments),nB(this,"priority",70),nB(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return CN(rN,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}},new class extends YL{constructor(){super(...arguments),rB(this,"priority",60),rB(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return CN(aN,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCMinutes(n,0,0),e}},new class extends YL{constructor(){super(...arguments),iB(this,"priority",50),iB(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return CN(sN,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCSeconds(n,0),e}},new class extends YL{constructor(){super(...arguments),oB(this,"priority",30),oB(this,"incompatibleTokens",["t","T"])}parse(e,t){return _N(kN(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}set(e,t,n){return e.setUTCMilliseconds(n),e}},new class extends YL{constructor(){super(...arguments),aB(this,"priority",10),aB(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return ON(vN,e);case"XX":return ON(mN,e);case"XXXX":return ON(bN,e);case"XXXXX":return ON(xN,e);default:return ON(wN,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends YL{constructor(){super(...arguments),sB(this,"priority",10),sB(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return ON(vN,e);case"xx":return ON(mN,e);case"xxxx":return ON(bN,e);case"xxxxx":return ON(xN,e);default:return ON(wN,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends YL{constructor(){super(...arguments),cB(this,"priority",40),cB(this,"incompatibleTokens","*")}parse(e){return SN(e)}set(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}},new class extends YL{constructor(){super(...arguments),uB(this,"priority",20),uB(this,"incompatibleTokens","*")}parse(e){return SN(e)}set(e,t,n){return[new Date(n),{timestampIsSet:!0}]}};const yB=({date:n,onChange:r,preventPast:i,preventFuture:o,noShadow:a})=>{const{current:s}=f(n||new Date),[c,l]=u(s),[p,d]=u(s),[g,y]=u(),{calendar:v}=S(),m=e=>{const t=function(e,t){if(_R(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=CR(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=pB(n,t.month)),null!=t.date&&n.setDate(xR(t.date)),null!=t.hours&&n.setHours(xR(t.hours)),null!=t.minutes&&n.setMinutes(xR(t.minutes)),null!=t.seconds&&n.setSeconds(xR(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(xR(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},b=e=>{const t=dB(("prev"===e?gB:kR)(p,{months:1}),1),n=m(t);d(n)},w=(e,t,n)=>{const r="past"===n;let i;i="past"===n?KL(gB(e,{months:1})):dB("future"===n?kR(e,{months:1}):e,1);const o=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?gB:kR)(i,{days:e}),a=m(n);o[t](a)}return o},x=e=>{const t=function(e){return _R(1,arguments),CR(e).getDay()}(dB(e,1)),n=VL(e),r=42-(n+t),a=w(e,t,"past"),u=w(e,r,"future");return[...a,...w(e,n,"present"),...u].map((e=>{const t=m(s),n=i instanceof Date?m(i):t,r=o instanceof Date?m(o):t,a=m(KL(p)),u=m(dB(p,1));let l=!1;const f=$L(e,n),d=WL(e,r);(i&&f||o&&d)&&(l=!0);const h=WL(e,a)||$L(e,u),g=DR(e,s),y=DR(e,c);return{date:HL(e),fullDate:e,current:g,disabled:l,outside:h,active:y}}))};h((()=>{const e=x(p);y(e)}),[c,p]);return t(vB,Object.assign({noShadow:a},{children:[t(mB,{children:[e(bB,{children:zL(p,"MMMM Y")}),t(wB,{children:[e(xt,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>b("prev"),hoverColor:v.color.iconHover}),e(xt,{name:"chevron-right",pointer:!0,onClick:()=>b("next"),hoverColor:v.color.iconHover})]})]}),e(CB,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e(OB,{children:t[0]},t)))}),e(xB,{children:(null==g?void 0:g.length)&&g.map((({date:t,fullDate:n,disabled:i,current:o,outside:a,active:s})=>e(_B,Object.assign({disabled:i,current:o,outside:a,active:s,onClick:()=>(e=>{l(e),r(e)})(n)},{children:t}),vt())))})]}))},vB=de.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),mB=de.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),bB=de.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),wB=de.div({display:"flex"}),xB=de.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),_B=de.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:i})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:i?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),CB=de.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),OB=de.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),SB=de.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),kB=de.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),EB=de.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),AB=n=>{var{id:r,label:i,labelPosition:o,checked:a,partial:s,disabled:c,onChange:l,margin:p,marginTop:d,marginBottom:g,marginRight:y,marginLeft:v}=n,m=T(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[b,w]=u("checkbox-off"),[x,_]=u(a||!1),C=f(null),O="right"===o,S={margin:p,marginTop:d,marginBottom:g,marginRight:y,marginLeft:v};return h((()=>{w(s?"checkbox-partial":x?"checkbox":"checkbox-off")}),[x,s]),h((()=>{_("boolean"==typeof a?a:x)}),[a,x]),t(SB,Object.assign({htmlFor:r,labelRight:O,disabled:c},S,{children:[i&&e(EB,{children:i}),e(kB,Object.assign({ref:C,id:r,type:"checkbox",checked:s?!x:x,disabled:c,onChange:()=>{const e=!!s||!x;_(e),l(e),(null==C?void 0:C.current)&&(C.current.indeterminate=!!s)}},m)),e(xt,{name:b,marginLeft:i&&!O?8:0,marginRight:i&&O?8:0,pointer:!c})]}))};
|
|
200
|
+
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return i.lexer=o,a.prototype=i,i.Parser=a,new a}();e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)}}(gv);var yv={},vv={exports:{}},mv={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},bv=function(e,t,n,r){if(!mv.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!mv[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=mv[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(i*r)/r):i};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(bv);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(vv,vv.exports),Object.defineProperty(yv,"__esModule",{value:!0}),yv.flip=Ov;var wv=function(e){return e&&e.__esModule?e:{default:e}}(vv.exports);function xv(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,wv.default)(e.left,e.right,t),r=xv(n.left,t),i=xv(n.right,t);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(_v(r.right,i.right)?n=(0,wv.default)(r.left,i.left,t):_v(r.right,i.left)&&(n=(0,wv.default)(r.left,i.right,t)),r=xv(n.left,t),i=xv(n.right,t));return e.left=r,e.right=i,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return e;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return Sv(i);r.type===i.type&&Cv(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(Cv(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=xv({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?Ov(i.operator):i.operator,xv(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=xv({type:"MathExpression",operator:"-"===o?Ov(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,xv(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Cv(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=xv({type:"MathExpression",operator:o,left:r.left,right:i},t),xv(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=xv({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=xv({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),xv(e,t)}return e}(e,t);case"/":return function(e,t){if(!Cv(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return Cv(e.left.left.type)&&Cv(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,xv(e.left,t)):e;if(Cv(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(Cv(e.left.left.type)&&Cv(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Cv(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(Cv(e.right.left.type)&&Cv(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&Cv(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?xv(e.value,t):e}function _v(e,t){return e.type===t.type&&e.value===t.value}function Cv(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function Ov(e){return"+"===e?"-":"+"}function Sv(e){return Cv(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Sv(e.left),e.right=Sv(e.right)),e}yv.default=xv;var kv={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=yv,r={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function o(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,c=e.operator,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+o(a,t)+")":u+=o(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+o(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=o(s,t)):u+=o(s,t),u;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+o(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+o(e.value,t)+")":"calc("+o(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default}(kv,kv.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(hv),r=gv,i=a(yv),o=a(kv.exports);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var c=r.parser.parse(a),u=(0,i.default)(c,t);e.type="word",e.value=(0,o.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(Jy,Jy.exports);var Ev=St(Jy.exports);function Av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Av(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Av(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mv(e){return function(e){if(Array.isArray(e))return Pv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pv(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Dv={widthCache:{},cacheCount:0},Iv={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Rv=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var Lv=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((o=n,o.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(Mv(e),["-",t.toLowerCase()]):[].concat(Mv(e),[t])}),[]).join("")),":").concat((r=n,i=e[n],Rv.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},Nv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||_g.isSsr)return{width:0,height:0};var n="".concat(e),r=Lv(t),i="".concat(n,"-").concat(r);if(Dv.widthCache[i])return Dv.widthCache[i];try{var o=document.getElementById("recharts_measurement_span");o||((o=document.createElement("span")).setAttribute("id","recharts_measurement_span"),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Tv(Tv({},Iv),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=n;var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Dv.widthCache[i]=c,++Dv.cacheCount>2e3&&(Dv.cacheCount=0,Dv.widthCache={}),c}catch(e){return{width:0,height:0}}};function Bv(e){return Bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bv(e)}function Fv(){return Fv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fv.apply(this,arguments)}function zv(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vv(e,t){return Vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vv(e,t)}function Kv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$v(e);if(t){var i=$v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Wv(this,n)}}function Wv(e,t){return!t||"object"!==Bv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$v(e)}function qv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zv(Object(n),!0).forEach((function(t){Xv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jv=/[ \f\n\r\t\v\u2028\u2029]+/,Qv=function(e){try{var t=[];return Wf(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Jv)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:Nv(t,e.style).width}})),spaceWidth:e.breakAll?0:Nv(" ",e.style).width}}catch(e){return null}},em=function(e){return[{words:Wf(e)?[]:e.toString().split(Jv)}]},tm=function(e,t){if((e.width||e.scaleToFit)&&!_g.isSsr&&t){var n=Qv(e);return n?function(e,t,n,r,i){var o=Cf(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||i||s.width+a+n<r))s.words.push(o),s.width+=a+n;else{var c={words:[o],width:a};e.push(c)}return e}),[])},c=s(t);if(!o)return c;for(var u,l=function(t){var n=a.slice(0,t),i=Qv(Yv(Yv({},e),{},{children:n+"…"})).wordsWithComputedWidth,o=s(i),c=o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>r;return[c,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=qv(l(h-1),2),y=g[0],v=g[1],m=qv(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(p=h-1),!y&&m){u=v;break}d++}return u||c}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):em(e.children)}return em(e.children)},nm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vv(e,t)}(a,w);var t,n,r,o=Kv(a);function a(){var e;Uv(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={},e}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,o=e.verticalAnchor,a=e.scaleToFit,s=e.angle,c=e.lineHeight,u=e.capHeight,l=e.className,f=e.breakAll,p=zv(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),d=this.state.wordsByLines;if(!Of(p.x)||!Of(p.y))return null;var h,g=p.x+(Cf(t)?t:0),y=p.y+(Cf(n)?n:0);switch(o){case"start":h=Ev("calc(".concat(u,")"));break;case"middle":h=Ev("calc(".concat((d.length-1)/2," * -").concat(c," + (").concat(u," / 2))"));break;default:h=Ev("calc(".concat(d.length-1," * -").concat(c,")"))}var v=[];if(a){var m=d[0].width,b=this.props.width;v.push("scale(".concat((Cf(b)?b/m:1)/m,")"))}return s&&v.push("rotate(".concat(s,", ").concat(g,", ").concat(y,")")),v.length&&(p.transform=v.join(" ")),i.createElement("text",Fv({},$n(p,!0),{x:g,y:y,className:zn("recharts-text",l),textAnchor:r}),d.map((function(e,t){return i.createElement("tspan",{x:g,dy:0===t?h:c,key:t},e.words.join(f?"":" "))})))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:tm(e,n)}}return null}}],n&&Hv(t.prototype,n),r&&Hv(t,r),a}();function rm(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function im(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}nm.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var om={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},am=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},sm=null,cm=null,um=function e(t){if(t===sm&&xo(cm))return cm;var n=[];return g.forEach(t,(function(t){Wf(t)||(Tt.exports.isFragment(t)?n=n.concat(e(t.props.children)):n.push(t))})),cm=n,sm=t,n},lm=function(e,t){var n=[],r=[];return r=xo(t)?t.map((function(e){return am(e)})):[am(t)],um(e).forEach((function(e){var t=ac(e,"type.displayName")||ac(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n},fm=function(e,t){var n=lm(e,t);return n&&n[0]},pm=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Cf(n)||n<=0||!Cf(r)||r<=0)},dm=["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"],hm=function e(t,n){if(t===n)return!0;var r=g.count(t);if(r!==g.count(n))return!1;if(0===r)return!0;if(1===r)return gm(xo(t)?t[0]:t,xo(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(xo(o)||xo(a)){if(!e(o,a))return!1}else if(!gm(o,a))return!1}return!0},gm=function(e,t){if(Wf(e)&&Wf(t))return!0;if(!Wf(e)&&!Wf(t)){var n=e.props||{},r=n.children,i=im(n,["children"]),o=t.props||{},a=o.children,s=im(o,["children"]);return r&&a?rm(i,s)&&hm(r,a):!r&&!a&&rm(i,s)}return!1},ym=function(e,t){var n=[],r={};return um(e).forEach((function(e,i){if(function(e){return e&&e.type&&wf(e.type)&&dm.indexOf(e.type)>=0}(e))n.push(e);else if(e){var o=am(e.type),a=t[o]||{},s=a.handler,c=a.once;if(s&&(!c||!r[o])){var u=s(e,o,i);n.push(u),r[o]=!0}}})),n},vm=fs;var mm=function(e,t){return vm(e,t)},bm=Es;var wm=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!bm(a):n(a,s)))var s=a,c=o}return c};var xm=function(e,t){return e>t},_m=wm,Cm=xm,Om=kc;var Sm=function(e){return e&&e.length?_m(e,Om,Cm):void 0};var km=function(e,t){return e<t},Em=wm,Am=km,Tm=kc;var jm=function(e){return e&&e.length?Em(e,Tm,Am):void 0},Mm=zs,Pm=zc,Dm=_h,Im=xo;var Rm=dh,Lm=function(e,t){return(Im(e)?Mm:Dm)(e,Pm(t))};var Nm,Bm=function(e,t){return Rm(Lm(e,t),1)},Fm=!0,zm="[DecimalError] ",Um=zm+"Invalid argument: ",Hm=zm+"Exponent out of range: ",Vm=Math.floor,Km=Math.pow,Wm=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$m=1e7,qm=Vm(1286742750677284.5),Gm={};function Zm(e,t){var n,r,i,o,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),Fm?ob(t,f):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i){for(o<0?(r=c,o=-o,s=u.length):(r=u,i=a,s=c.length),o>(s=(a=Math.ceil(f/7))>s?a+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=c.length)-(o=u.length)<0&&(o=s,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/$m|0,c[o]%=$m;for(n&&(c.unshift(n),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=i,Fm?ob(t,f):t}function Ym(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Um+e)}function Xm(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=nb(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=nb(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}Gm.absoluteValue=Gm.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Gm.comparedTo=Gm.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},Gm.decimalPlaces=Gm.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},Gm.dividedBy=Gm.div=function(e){return Jm(this,new this.constructor(e))},Gm.dividedToIntegerBy=Gm.idiv=function(e){var t=this.constructor;return ob(Jm(this,new t(e),0,1),t.precision)},Gm.equals=Gm.eq=function(e){return!this.cmp(e)},Gm.exponent=function(){return eb(this)},Gm.greaterThan=Gm.gt=function(e){return this.cmp(e)>0},Gm.greaterThanOrEqualTo=Gm.gte=function(e){return this.cmp(e)>=0},Gm.isInteger=Gm.isint=function(){return this.e>this.d.length-2},Gm.isNegative=Gm.isneg=function(){return this.s<0},Gm.isPositive=Gm.ispos=function(){return this.s>0},Gm.isZero=function(){return 0===this.s},Gm.lessThan=Gm.lt=function(e){return this.cmp(e)<0},Gm.lessThanOrEqualTo=Gm.lte=function(e){return this.cmp(e)<1},Gm.logarithm=Gm.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(Nm))throw Error(zm+"NaN");if(n.s<1)throw Error(zm+(n.s?"NaN":"-Infinity"));return n.eq(Nm)?new r(0):(Fm=!1,t=Jm(rb(n,o),rb(e,o),o),Fm=!0,ob(t,i))},Gm.minus=Gm.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ab(t,e):Zm(t,(e.s=-e.s,e))},Gm.modulo=Gm.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(zm+"NaN");return n.s?(Fm=!1,t=Jm(n,e,0,1).times(e),Fm=!0,n.minus(t)):ob(new r(n),i)},Gm.naturalExponential=Gm.exp=function(){return Qm(this)},Gm.naturalLogarithm=Gm.ln=function(){return rb(this)},Gm.negated=Gm.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Gm.plus=Gm.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Zm(t,e):ab(t,(e.s=-e.s,e))},Gm.precision=Gm.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Um+e);if(t=eb(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Gm.squareRoot=Gm.sqrt=function(){var e,t,n,r,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(zm+"NaN")}for(e=eb(s),Fm=!1,0==(i=Math.sqrt(+s))||i==1/0?(((t=Xm(s.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Vm((e+1)/2)-(e<0||e%2),r=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(i.toString()),i=a=(n=c.precision)+3;;)if(r=(o=r).plus(Jm(s,o,a+2)).times(.5),Xm(o.d).slice(0,a)===(t=Xm(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(ob(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if("9999"!=t)break;a+=4}return Fm=!0,ob(r,n)},Gm.times=Gm.mul=function(e){var t,n,r,i,o,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(c=p.length)<(u=d.length)&&(o=p,p=d,d=o,a=c,c=u,u=a),o=[],r=a=c+u;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)s=o[i]+d[r]*p[i-r-1]+t,o[i--]=s%$m|0,t=s/$m|0;o[i]=(o[i]+t)%$m|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Fm?ob(e,f.precision):e},Gm.toDecimalPlaces=Gm.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Ym(e,0,1e9),void 0===t?t=r.rounding:Ym(t,0,8),ob(n,e+eb(n)+1,t))},Gm.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=sb(r,!0):(Ym(e,0,1e9),void 0===t?t=i.rounding:Ym(t,0,8),n=sb(r=ob(new i(r),e+1,t),!0,e+1)),n},Gm.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?sb(i):(Ym(e,0,1e9),void 0===t?t=o.rounding:Ym(t,0,8),n=sb((r=ob(new o(i),e+eb(i)+1,t)).abs(),!1,e+eb(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},Gm.toInteger=Gm.toint=function(){var e=this,t=e.constructor;return ob(new t(e),eb(e)+1,t.rounding)},Gm.toNumber=function(){return+this},Gm.toPower=Gm.pow=function(e){var t,n,r,i,o,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(Nm);if(!(s=new c(s)).s){if(e.s<1)throw Error(zm+"Infinity");return s}if(s.eq(Nm))return s;if(r=c.precision,e.eq(Nm))return ob(s,r);if(a=(t=e.e)>=(n=e.d.length-1),o=s.s,a){if((n=u<0?-u:u)<=9007199254740991){for(i=new c(Nm),t=Math.ceil(r/7+4),Fm=!1;n%2&&cb((i=i.times(s)).d,t),0!==(n=Vm(n/2));)cb((s=s.times(s)).d,t);return Fm=!0,e.s<0?new c(Nm).div(i):ob(i,r)}}else if(o<0)throw Error(zm+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,Fm=!1,i=e.times(rb(s,r+12)),Fm=!0,(i=Qm(i)).s=o,i},Gm.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=sb(i,(n=eb(i))<=o.toExpNeg||n>=o.toExpPos):(Ym(e,1,1e9),void 0===t?t=o.rounding:Ym(t,0,8),r=sb(i=ob(new o(i),e,t),e<=(n=eb(i))||n<=o.toExpNeg,e)),r},Gm.toSignificantDigits=Gm.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Ym(e,1,1e9),void 0===t?t=n.rounding:Ym(t,0,8)),ob(new n(this),e,t)},Gm.toString=Gm.valueOf=Gm.val=Gm.toJSON=Gm[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=eb(e),n=e.constructor;return sb(e,t<=n.toExpNeg||t>=n.toExpPos)};var Jm=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%$m|0,r=n/$m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*$m+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,O,S=r.constructor,k=r.s==i.s?1:-1,E=r.d,A=i.d;if(!r.s)return new S(r);if(!i.s)throw Error(zm+"Division by zero");for(c=r.e-i.e,C=A.length,x=E.length,h=(d=new S(k)).d=[],u=0;A[u]==(E[u]||0);)++u;if(A[u]>(E[u]||0)&&--c,(m=null==o?o=S.precision:a?o+(eb(r)-eb(i))+1:o)<0)return new S(0);if(m=m/7+2|0,u=0,1==C)for(l=0,A=A[0],m++;(u<x||l)&&m--;u++)b=l*$m+(E[u]||0),h[u]=b/A|0,l=b%A|0;else{for((l=$m/(A[0]+1)|0)>1&&(A=e(A,l),E=e(E,l),C=A.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(O=A.slice()).unshift(0),_=A[0],A[1]>=$m/2&&++_;do{l=0,(s=t(A,g,C,y))<0?(v=g[0],C!=y&&(v=v*$m+(g[1]||0)),(l=v/_|0)>1?(l>=$m&&(l=$m-1),1==(s=t(f=e(A,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?O:A,p))):(0==l&&(s=l=1),f=A.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(A,g,C,y=g.length))<1&&(l++,n(g,C<y?O:A,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),d.e=c,ob(d,a?o+eb(d)+1:o)}}();function Qm(e,t){var n,r,i,o,a,s=0,c=0,u=e.constructor,l=u.precision;if(eb(e)>16)throw Error(Hm+eb(e));if(!e.s)return new u(Nm);for(null==t?(Fm=!1,a=l):a=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(a+=Math.log(Km(2,c))/Math.LN10*2+5|0,n=r=i=new u(Nm),u.precision=a;;){if(r=ob(r.times(e),a),n=n.times(++s),Xm((o=i.plus(Jm(r,n,a))).d).slice(0,a)===Xm(i.d).slice(0,a)){for(;c--;)i=ob(i.times(i),a);return u.precision=l,null==t?(Fm=!0,ob(i,l)):i}i=o}}function eb(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function tb(e,t,n){if(t>e.LN10.sd())throw Fm=!0,n&&(e.precision=n),Error(zm+"LN10 precision limit exceeded");return ob(new e(e.LN10),t)}function nb(e){for(var t="";e--;)t+="0";return t}function rb(e,t){var n,r,i,o,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(zm+(p.s?"NaN":"-Infinity"));if(p.eq(Nm))return new h(0);if(null==t?(Fm=!1,u=g):u=t,p.eq(10))return null==t&&(Fm=!0),tb(h,u);if(u+=10,h.precision=u,r=(n=Xm(d)).charAt(0),o=eb(p),!(Math.abs(o)<15e14))return c=tb(h,u+2,g).times(o+""),p=rb(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(Fm=!0,ob(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Xm((p=p.times(e)).d)).charAt(0),f++;for(o=eb(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),s=a=p=Jm(p.minus(Nm),p.plus(Nm),u),l=ob(p.times(p),u),i=3;;){if(a=ob(a.times(l),u),Xm((c=s.plus(Jm(a,new h(i),u))).d).slice(0,u)===Xm(s.d).slice(0,u))return s=s.times(2),0!==o&&(s=s.plus(tb(h,u+2,g).times(o+""))),s=Jm(s,new h(f),u),h.precision=g,null==t?(Fm=!0,ob(s,g)):s;s=c,i+=2}}function ib(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=Vm(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Fm&&(e.e>qm||e.e<-qm))throw Error(Hm+n)}else e.s=0,e.e=0,e.d=[0];return e}function ob(e,t,n){var r,i,o,a,s,c,u,l,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=7,i=t,u=f[l=0];else{if((l=Math.ceil((r+1)/7))>=(o=f.length))return e;for(u=o=f[l],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(s=u/(o=Km(10,a-i-1))%10|0,c=t<0||void 0!==f[l+1]||u%o,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?i>0?u/Km(10,a-i):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(o=eb(e),f.length=1,t=t-o-1,f[0]=Km(10,(7-t%7)%7),e.e=Vm(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,o=1,l--):(f.length=l+1,o=Km(10,7-r),f[l]=i>0?(u/Km(10,a-i)%Km(10,i)|0)*o:0),c)for(;;){if(0==l){(f[0]+=o)==$m&&(f[0]=1,++e.e);break}if(f[l]+=o,f[l]!=$m)break;f[l--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(Fm&&(e.e>qm||e.e<-qm))throw Error(Hm+eb(e));return e}function ab(e,t){var n,r,i,o,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Fm?ob(t,d):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(i=Math.max(Math.ceil(d/7),s)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((l=(i=c.length)<(s=f.length))&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,i=f.length-s;i>0;--i)c[s++]=0;for(i=f.length;i>a;){if(c[--i]<f[i]){for(o=i;o&&0===c[--o];)c[o]=$m-1;--c[o],c[i]+=$m}c[i]-=f[i]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,Fm?ob(t,d):t):new p(0)}function sb(e,t,n){var r,i=eb(e),o=Xm(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+nb(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+nb(-i-1)+o,n&&(r=n-a)>0&&(o+=nb(r))):i>=a?(o+=nb(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+nb(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=nb(r))),e.s<0?"-"+o:o}function cb(e,t){if(e.length>t)return e.length=t,!0}function ub(e){if(!e||"object"!=typeof e)throw Error(zm+"Object expected");var t,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(Vm(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(Um+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Um+n+": "+r);this[n]=new this(r)}return this}var lb=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(Um+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):ib(t,e.toString())}if("string"!=typeof e)throw Error(Um+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Wm.test(e))throw Error(Um+e);ib(t,e)}if(o.prototype=Gm,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=e,o.config=o.set=ub,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Nm=new lb(1);var fb=lb;function pb(e){return function(e){if(Array.isArray(e))return db(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return db(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return db(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function db(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hb=function(e){return e},gb={"@@functional/placeholder":!0},yb=function(e){return e===gb},vb=function(e){return function t(){return 0===arguments.length||1===arguments.length&&yb(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},mb=function e(t,n){return 1===t?n:vb((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==gb})).length;return a>=t?n.apply(void 0,i):e(t-a,vb((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return yb(e)?t.shift():e}));return n.apply(void 0,pb(o).concat(t))})))}))},bb=function(e){return mb(e.length,e)},wb=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},xb=bb((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),_b=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Cb=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var Ob=bb((function(e,t,n){var r=+e;return r+n*(+t-r)})),Sb=bb((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),kb=bb((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),Eb={rangeStep:function(e,t,n){for(var r=new fb(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new fb(e).abs().log(10).toNumber())+1},interpolateNumber:Ob,uninterpolateNumber:Sb,uninterpolateTruncation:kb};function Ab(e){return function(e){if(Array.isArray(e))return Mb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||jb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||jb(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jb(e,t){if(e){if("string"==typeof e)return Mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mb(e,t):void 0}}function Mb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pb(e){var t=Tb(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Db(e,t,n){if(e.lte(0))return new fb(0);var r=Eb.getDigitCount(e.toNumber()),i=new fb(10).pow(r),o=e.div(i),a=1!==r?.05:.1,s=new fb(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?s:new fb(Math.ceil(s))}function Ib(e,t,n){var r=1,i=new fb(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new fb(10).pow(Eb.getDigitCount(e)-1),i=new fb(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new fb(Math.floor(e)))}else 0===e?i=new fb(Math.floor((t-1)/2)):n||(i=new fb(Math.floor(e)));var a=Math.floor((t-1)/2),s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return hb;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}}(xb((function(e){return i.add(new fb(e-a).mul(r)).toNumber()})),wb);return s(0,t)}function Rb(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new fb(0),tickMin:new fb(0),tickMax:new fb(0)};var o,a=Db(new fb(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new fb(0):(o=new fb(e).add(t).div(2)).sub(new fb(o).mod(a));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new fb(t).sub(o).div(a).toNumber()),u=s+c+1;return u>n?Rb(e,t,n,r,i+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:o.sub(new fb(s).mul(a)),tickMax:o.add(new fb(c).mul(a))})}var Lb=Cb((function(e){var t=Tb(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=Pb([n,r]),c=Tb(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(Ab(wb(0,i-1).map((function(){return 1/0})))):[].concat(Ab(wb(0,i-1).map((function(){return-1/0}))),[l]);return n>r?_b(f):f}if(u===l)return Ib(u,i,o);var p=Rb(u,l,a,o),d=p.step,h=p.tickMin,g=p.tickMax,y=Eb.rangeStep(h,g.add(new fb(.1).mul(d)),d);return n>r?_b(y):y})),Nb=Cb((function(e,t){var n=Tb(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Pb([r,i]),s=Tb(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var l=Math.max(t,2),f=Db(new fb(u).sub(c).div(l-1),o,0),p=[].concat(Ab(Eb.rangeStep(new fb(c),new fb(u).sub(new fb(.99).mul(f)),f)),[u]);return r>i?_b(p):p}));function Bb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Fb(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>Bb(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){const o=r+i>>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}function zb(e){return null===e?NaN:+e}const Ub=Fb(Bb).right;Fb(zb).center;var Hb=Math.sqrt(50),Vb=Math.sqrt(10),Kb=Math.sqrt(2);function Wb(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=$b(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}function $b(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Hb?10:o>=Vb?5:o>=Kb?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Hb?10:o>=Vb?5:o>=Kb?2:1)}function qb(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Hb?i*=10:o>=Vb?i*=5:o>=Kb&&(i*=2),t<e?-i:i}function Gb(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Zb(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Yb(e,t,n=0,r=e.length-1,i=Bb){for(;r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(o-c)/o)*(a-o/2<0?-1:1);Yb(e,t,Math.max(n,Math.floor(t-a*c/o+u)),Math.min(r,Math.floor(t+(o-a)*c/o+u)),i)}const o=e[t];let a=n,s=r;for(Xb(e,n,t),i(e[r],o)>0&&Xb(e,n,r);a<s;){for(Xb(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}0===i(e[n],o)?Xb(e,n,s):(++s,Xb(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Xb(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Jb(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return Zb(e);if(t>=1)return Gb(e);var r,i=(r-1)*t,o=Math.floor(i),a=Gb(Yb(e,o).subarray(0,o+1));return a+(Zb(e.subarray(o+1))-a)*(i-o)}}function Qb(e,t,n=zb){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function ew(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}function tw(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function nw(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const rw=Symbol("implicit");function iw(){var e=new Map,t=[],n=[],r=rw;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==rw)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return iw(t,n).unknown(r)},tw.apply(i,arguments),i}function ow(){var e,t,n=iw().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<o,p=f?a:o,d=f?o:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),t=Math.round(t));var h=ew(n).map((function(t){return p+e*t}));return i(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return ow(r(),[o,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},tw.apply(f(),arguments)}function aw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aw(t())},e}function sw(){return aw(ow.apply(null,arguments).paddingInner(1))}function cw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function lw(){}var fw=1/.7,pw="\\s*([+-]?\\d+)\\s*",dw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",hw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gw=/^#([0-9a-f]{3,8})$/,yw=new RegExp("^rgb\\("+[pw,pw,pw]+"\\)$"),vw=new RegExp("^rgb\\("+[hw,hw,hw]+"\\)$"),mw=new RegExp("^rgba\\("+[pw,pw,pw,dw]+"\\)$"),bw=new RegExp("^rgba\\("+[hw,hw,hw,dw]+"\\)$"),ww=new RegExp("^hsl\\("+[dw,hw,hw]+"\\)$"),xw=new RegExp("^hsla\\("+[dw,hw,hw,dw]+"\\)$"),_w={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 Cw(){return this.rgb().formatHex()}function Ow(){return this.rgb().formatRgb()}function Sw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?kw(t):3===n?new jw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ew(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ew(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=yw.exec(e))?new jw(t[1],t[2],t[3],1):(t=vw.exec(e))?new jw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=mw.exec(e))?Ew(t[1],t[2],t[3],t[4]):(t=bw.exec(e))?Ew(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ww.exec(e))?Iw(t[1],t[2]/100,t[3]/100,1):(t=xw.exec(e))?Iw(t[1],t[2]/100,t[3]/100,t[4]):_w.hasOwnProperty(e)?kw(_w[e]):"transparent"===e?new jw(NaN,NaN,NaN,0):null}function kw(e){return new jw(e>>16&255,e>>8&255,255&e,1)}function Ew(e,t,n,r){return r<=0&&(e=t=n=NaN),new jw(e,t,n,r)}function Aw(e){return e instanceof lw||(e=Sw(e)),e?new jw((e=e.rgb()).r,e.g,e.b,e.opacity):new jw}function Tw(e,t,n,r){return 1===arguments.length?Aw(e):new jw(e,t,n,null==r?1:r)}function jw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Mw(){return"#"+Dw(this.r)+Dw(this.g)+Dw(this.b)}function Pw(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}function Dw(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Iw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lw(e,t,n,r)}function Rw(e){if(e instanceof Lw)return new Lw(e.h,e.s,e.l,e.opacity);if(e instanceof lw||(e=Sw(e)),!e)return new Lw;if(e instanceof Lw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new Lw(a,s,c,e.opacity)}function Lw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Nw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}cw(lw,Sw,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Cw,formatHex:Cw,formatHsl:function(){return Rw(this).formatHsl()},formatRgb:Ow,toString:Ow}),cw(jw,Tw,uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new jw(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new jw(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mw,formatHex:Mw,formatRgb:Pw,toString:Pw})),cw(Lw,(function(e,t,n,r){return 1===arguments.length?Rw(e):new Lw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new Lw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Lw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new jw(Nw(e>=240?e-240:e+120,i,r),Nw(e,i,r),Nw(e<120?e+240:e-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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Bw=Math.PI/180,Fw=180/Math.PI,zw=4/29,Uw=6/29,Hw=3*Uw*Uw;function Vw(e){if(e instanceof Kw)return new Kw(e.l,e.a,e.b,e.opacity);if(e instanceof Yw)return Xw(e);e instanceof jw||(e=Aw(e));var t,n,r=Gw(e.r),i=Gw(e.g),o=Gw(e.b),a=Ww((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Ww((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Ww((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Kw(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Kw(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ww(e){return e>.008856451679035631?Math.pow(e,1/3):e/Hw+zw}function $w(e){return e>Uw?e*e*e:Hw*(e-zw)}function qw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Gw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Zw(e){if(e instanceof Yw)return new Yw(e.h,e.c,e.l,e.opacity);if(e instanceof Kw||(e=Vw(e)),0===e.a&&0===e.b)return new Yw(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Fw;return new Yw(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Yw(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Xw(e){if(isNaN(e.h))return new Kw(e.l,0,0,e.opacity);var t=e.h*Bw;return new Kw(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}cw(Kw,(function(e,t,n,r){return 1===arguments.length?Vw(e):new Kw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return new Kw(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Kw(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new jw(qw(3.1338561*(t=.96422*$w(t))-1.6168667*(e=1*$w(e))-.4906146*(n=.82521*$w(n))),qw(-.9787684*t+1.9161415*e+.033454*n),qw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),cw(Yw,(function(e,t,n,r){return 1===arguments.length?Zw(e):new Yw(e,t,n,null==r?1:r)}),uw(lw,{brighter:function(e){return new Yw(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Yw(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Xw(this).rgb()}}));var Jw=-.14861,Qw=1.78277,ex=-.29227,tx=-.90649,nx=1.97294,rx=nx*tx,ix=nx*Qw,ox=Qw*ex-tx*Jw;function ax(e){if(e instanceof cx)return new cx(e.h,e.s,e.l,e.opacity);e instanceof jw||(e=Aw(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(ox*r+rx*t-ix*n)/(ox+rx-ix),o=r-i,a=(nx*(n-i)-ex*o)/tx,s=Math.sqrt(a*a+o*o)/(nx*i*(1-i)),c=s?Math.atan2(a,o)*Fw-120:NaN;return new cx(c<0?c+360:c,s,i,e.opacity)}function sx(e,t,n,r){return 1===arguments.length?ax(e):new cx(e,t,n,null==r?1:r)}function cx(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cw(cx,sx,uw(lw,{brighter:function(e){return e=null==e?fw:Math.pow(fw,e),new cx(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new cx(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Bw,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new jw(255*(t+n*(Jw*r+Qw*i)),255*(t+n*(ex*r+tx*i)),255*(t+n*(nx*r)),this.opacity)}}));var ux=e=>()=>e;function lx(e,t){return function(n){return e+n*t}}function fx(e){return 1==(e=+e)?px:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ux(isNaN(t)?n:t)}}function px(e,t){var n=t-e;return n?lx(e,n):ux(isNaN(e)?t:e)}var dx=function e(t){var n=fx(t);function r(e,t){var r=n((e=Tw(e)).r,(t=Tw(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=px(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function hx(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function gx(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=_x(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function yx(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vx(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function mx(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=_x(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var bx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wx=new RegExp(bx.source,"g");function xx(e,t){var n,r,i,o=bx.lastIndex=wx.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=bx.exec(e))&&(r=wx.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:vx(n,r)})),o=wx.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function _x(e,t){var n,r=typeof t;return null==t||"boolean"===r?ux(t):("number"===r?vx:"string"===r?(n=Sw(t))?(t=n,dx):xx:t instanceof Sw?dx:t instanceof Date?yx:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?hx:Array.isArray(t)?gx:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?mx:vx)(e,t)}function Cx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ox(e){return((e=Math.exp(e))+1/e)/2}function Sx(e){return function t(n){function r(t,r){var i=e((t=sx(t)).h,(r=sx(r)).h),o=px(t.s,r.s),a=px(t.l,r.l),s=px(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function kx(e,t){void 0===t&&(t=e,e=_x);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function Ex(e){return+e}!function e(t,n,r){function i(e,i){var o,a,s=e[0],c=e[1],u=e[2],l=i[0],f=i[1],p=i[2],d=l-s,h=f-c,g=d*d+h*h;if(g<1e-12)a=Math.log(p/u)/t,o=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,o=function(e){var r=e*a,i=Ox(b),o=u/(n*y)*(i*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+o*d,c+o*h,u*i/Ox(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),Sx((function(e,t){var n=t-e;return n?lx(e,n>180||n<-180?n-360*Math.round(n/360):n):ux(isNaN(e)?t:e)})),Sx(px);var Ax=[0,1];function Tx(e){return e}function jx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Mx(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=jx(i,r),o=n(a,o)):(r=jx(r,i),o=n(o,a)),function(e){return o(r(e))}}function Px(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=jx(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Ub(e,t,1,r)-1;return o[n](i[n](t))}}function Dx(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ix(){var e,t,n,r,i,o,a=Ax,s=Ax,c=_x,u=Tx;function l(){var e=Math.min(a.length,s.length);return u!==Tx&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Px:Mx,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((o||(o=r(s,a.map(e),vx)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Ex),l()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),l()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=Cx,l()},f.clamp=function(e){return arguments.length?(u=!!e||Tx,l()):u!==Tx},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function Rx(){return Ix()(Tx,Tx)}function Lx(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Nx(e){return(e=Lx(Math.abs(e)))?e[1]:NaN}var Bx,Fx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zx(e){if(!(t=Fx.exec(e)))throw new Error("invalid format: "+e);var t;return new Ux({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Ux(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Hx(e,t){var n=Lx(e,t);if(!n)return e+"";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")}zx.prototype=Ux.prototype,Ux.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Vx={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Hx(100*e,t),r:Hx,s:function(e,t){var n=Lx(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Bx=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")+Lx(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Kx(e){return e}var Wx,$x,qx,Gx=Array.prototype.map,Zx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yx(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Kx:(t=Gx.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Kx:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Gx.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=zx(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):Vx[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?o:/[%p]/.test(m)?c:"",x=Vx[m],_=/[defgprs%]/.test(m);function C(e){var i,o,c,p=b,C=w;if("c"===m)C=x(e)+C,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),O&&0==+e&&"+"!==f&&(O=!1),p=(O?"("===f?f:u:"-"===f||"("===f?"":f)+p,C=("s"===m?Zx[8+Bx/3]:"")+C+(O&&"("===f?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(c=e.charCodeAt(i))||c>57){C=(46===c?a+e.slice(i+1):e.slice(i))+C,e=e.slice(0,i);break}}g&&!d&&(e=r(e,1/0));var S=p.length+e.length+C.length,k=S<h?new Array(h-S+1).join(t):"";switch(g&&d&&(e=r(k+e,k.length?h-C.length:1/0),k=""),n){case"<":e=p+e+C+k;break;case"=":e=p+k+e+C;break;case"^":e=k.slice(0,S=k.length>>1)+p+e+C+k.slice(S);break;default:e=k+p+e+C}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=zx(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Nx(t)/3))),i=Math.pow(10,-r),o=Zx[8+r/3];return function(e){return n(i*e)+o}}}}function Xx(e,t,n,r){var i,o=qb(e,t,n);switch((r=zx(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Nx(t)/3)))-Nx(Math.abs(e)))}(o,a))||(r.precision=i),qx(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Nx(t)-Nx(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-Nx(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return $x(r)}function Jx(e){var t=e.domain;return e.ticks=function(e){var n=t();return Wb(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Xx(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,c=o[a],u=o[s],l=10;for(u<c&&(i=c,c=u,u=i,i=a,a=s,s=i);l-- >0;){if((i=$b(c,u,n))===r)return o[a]=c,o[s]=u,t(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return e},e}function Qx(){var e=Rx();return e.copy=function(){return Dx(e,Qx())},tw.apply(e,arguments),Jx(e)}function e_(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function t_(e){return Math.log(e)}function n_(e){return Math.exp(e)}function r_(e){return-Math.log(-e)}function i_(e){return-Math.exp(-e)}function o_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function a_(e){return function(t){return-e(-t)}}function s_(e){var t,n,r=e(t_,n_),i=r.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?o_:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=a_(t),n=a_(n),e(r_,i_)):e(t_,n_),r}return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=function(e){var r,a=i(),s=a[0],c=a[a.length-1];(r=c<s)&&(p=s,s=c,c=p);var u,l,f,p=t(s),d=t(c),h=null==e?10:+e,g=[];if(!(o%1)&&d-p<h){if(p=Math.floor(p),d=Math.ceil(d),s>0){for(;p<=d;++p)for(l=1,u=n(p);l<o;++l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}}else for(;p<=d;++p)for(l=o-1,u=n(p);l>=1;--l)if(!((f=u*l)<s)){if(f>c)break;g.push(f)}2*g.length<h&&(g=Wb(s,c,h))}else g=Wb(p,d,Math.min(d-p,h)).map(n);return r?g.reverse():g},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=$x(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=function(){return i(e_(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function c_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function u_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l_(e){var t=1,n=e(c_(t),u_(t));return n.constant=function(n){return arguments.length?e(c_(t=+n),u_(t)):t},Jx(n)}function f_(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function p_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function d_(e){return e<0?-e*e:e*e}function h_(e){var t=e(Tx,Tx),n=1;function r(){return 1===n?e(Tx,Tx):.5===n?e(p_,d_):e(f_(n),f_(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Jx(t)}function g_(){var e=h_(Ix());return e.copy=function(){return Dx(e,g_()).exponent(e.exponent())},tw.apply(e,arguments),e}function y_(e){return Math.sign(e)*e*e}function v_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}Wx=Yx({thousands:",",grouping:[3],currency:["$",""]}),$x=Wx.format,qx=Wx.formatPrefix;var m_=new Date,b_=new Date;function w_(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return w_((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return m_.setTime(+t),b_.setTime(+r),e(m_),e(b_),Math.floor(n(m_,b_))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var x_=w_((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));x_.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?w_((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):x_:null},x_.range;var __=w_((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));__.range;var C_=w_((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}));C_.range;var O_=w_((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}));O_.range;var S_=w_((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5),(e=>e.getDate()-1));function k_(e){return w_((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}S_.range;var E_=k_(0),A_=k_(1),T_=k_(2),j_=k_(3),M_=k_(4),P_=k_(5),D_=k_(6);E_.range,A_.range,T_.range,j_.range,M_.range,P_.range,D_.range;var I_=w_((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));I_.range;var R_=w_((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));R_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?w_((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},R_.range;var L_=w_((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}));L_.range;var N_=w_((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}));N_.range;var B_=w_((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}));function F_(e){return w_((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}B_.range;var z_=F_(0),U_=F_(1),H_=F_(2),V_=F_(3),K_=F_(4),W_=F_(5),$_=F_(6);z_.range,U_.range,H_.range,V_.range,K_.range,W_.range,$_.range;var q_=w_((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));q_.range;var G_=w_((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Z_(e,t,n,r,i,o){const a=[[__,1,1e3],[__,5,5e3],[__,15,15e3],[__,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){const i=Math.abs(n-t)/r,o=Fb((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(qb(t/31536e6,n/31536e6,r));if(0===o)return x_.every(Math.max(qb(t,n,r),1));const[s,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}G_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?w_((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},G_.range;const[Y_,X_]=Z_(G_,q_,z_,B_,N_,L_),[J_,Q_]=Z_(R_,I_,E_,S_,O_,C_);function eC(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function tC(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function nC(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var rC,iC,oC,aC,sC={"-":"",_:" ",0:"0"},cC=/^\s*\d+/,uC=/^%/,lC=/[\\^$*+?|[\]().{}]/g;function fC(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function pC(e){return e.replace(lC,"\\$&")}function dC(e){return new RegExp("^(?:"+e.map(pC).join("|")+")","i")}function hC(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function gC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function yC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function mC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function wC(e,t,n){var r=cC.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _C(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function CC(e,t,n){var r=cC.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function OC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function SC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kC(e,t,n){var r=cC.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function EC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function AC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function TC(e,t,n){var r=cC.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function jC(e,t,n){var r=cC.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function MC(e,t,n){var r=cC.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function PC(e,t,n){var r=uC.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function DC(e,t,n){var r=cC.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function IC(e,t,n){var r=cC.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function RC(e,t){return fC(e.getDate(),t,2)}function LC(e,t){return fC(e.getHours(),t,2)}function NC(e,t){return fC(e.getHours()%12||12,t,2)}function BC(e,t){return fC(1+S_.count(R_(e),e),t,3)}function FC(e,t){return fC(e.getMilliseconds(),t,3)}function zC(e,t){return FC(e,t)+"000"}function UC(e,t){return fC(e.getMonth()+1,t,2)}function HC(e,t){return fC(e.getMinutes(),t,2)}function VC(e,t){return fC(e.getSeconds(),t,2)}function KC(e){var t=e.getDay();return 0===t?7:t}function WC(e,t){return fC(E_.count(R_(e)-1,e),t,2)}function $C(e){var t=e.getDay();return t>=4||0===t?M_(e):M_.ceil(e)}function qC(e,t){return e=$C(e),fC(M_.count(R_(e),e)+(4===R_(e).getDay()),t,2)}function GC(e){return e.getDay()}function ZC(e,t){return fC(A_.count(R_(e)-1,e),t,2)}function YC(e,t){return fC(e.getFullYear()%100,t,2)}function XC(e,t){return fC((e=$C(e)).getFullYear()%100,t,2)}function JC(e,t){return fC(e.getFullYear()%1e4,t,4)}function QC(e,t){var n=e.getDay();return fC((e=n>=4||0===n?M_(e):M_.ceil(e)).getFullYear()%1e4,t,4)}function eO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fC(t/60|0,"0",2)+fC(t%60,"0",2)}function tO(e,t){return fC(e.getUTCDate(),t,2)}function nO(e,t){return fC(e.getUTCHours(),t,2)}function rO(e,t){return fC(e.getUTCHours()%12||12,t,2)}function iO(e,t){return fC(1+B_.count(G_(e),e),t,3)}function oO(e,t){return fC(e.getUTCMilliseconds(),t,3)}function aO(e,t){return oO(e,t)+"000"}function sO(e,t){return fC(e.getUTCMonth()+1,t,2)}function cO(e,t){return fC(e.getUTCMinutes(),t,2)}function uO(e,t){return fC(e.getUTCSeconds(),t,2)}function lO(e){var t=e.getUTCDay();return 0===t?7:t}function fO(e,t){return fC(z_.count(G_(e)-1,e),t,2)}function pO(e){var t=e.getUTCDay();return t>=4||0===t?K_(e):K_.ceil(e)}function dO(e,t){return e=pO(e),fC(K_.count(G_(e),e)+(4===G_(e).getUTCDay()),t,2)}function hO(e){return e.getUTCDay()}function gO(e,t){return fC(U_.count(G_(e)-1,e),t,2)}function yO(e,t){return fC(e.getUTCFullYear()%100,t,2)}function vO(e,t){return fC((e=pO(e)).getUTCFullYear()%100,t,2)}function mO(e,t){return fC(e.getUTCFullYear()%1e4,t,4)}function bO(e,t){var n=e.getUTCDay();return fC((e=n>=4||0===n?K_(e):K_.ceil(e)).getUTCFullYear()%1e4,t,4)}function wO(){return"+0000"}function xO(){return"%"}function _O(e){return+e}function CO(e){return Math.floor(+e/1e3)}!function(e){rC=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=dC(i),l=hC(i),f=dC(o),p=hC(o),d=dC(a),h=hC(a),g=dC(s),y=hC(s),v=dC(c),m=hC(c),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:RC,e:RC,f:zC,g:XC,G:QC,H:LC,I:NC,j:BC,L:FC,m:UC,M:HC,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:_O,s:CO,S:VC,u:KC,U:WC,V:qC,w:GC,W:ZC,x:null,X:null,y:YC,Y:JC,Z:eO,"%":xO},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:tO,e:tO,f:aO,g:vO,G:bO,H:nO,I:rO,j:iO,L:oO,m:sO,M:cO,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:_O,s:CO,S:uO,u:lO,U:fO,V:dO,w:hO,W:gO,x:null,X:null,y:yO,Y:mO,Z:wO,"%":xO},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:SC,e:SC,f:MC,g:xC,G:wC,H:EC,I:EC,j:kC,L:jC,m:OC,M:AC,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:CC,Q:DC,s:IC,S:TC,u:yC,U:vC,V:mC,w:gC,W:bC,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:xC,Y:wC,Z:_C,"%":PC};function _(e,t){return function(n){var r,i,o,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(i=sC[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=nC(1900,void 0,1);if(O(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=tC(nC(o.y,0,1))).getUTCDay(),r=i>4||0===i?U_.ceil(r):U_(r),r=B_.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=eC(nC(o.y,0,1))).getDay(),r=i>4||0===i?A_.ceil(r):A_(r),r=S_.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?tC(nC(o.y,0,1)).getUTCDay():eC(nC(o.y,0,1)).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,tC(o)):eC(o)}}function O(e,t,n,r){for(var i,o,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in sC?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),iC=rC.format,rC.parse,oC=rC.utcFormat,aC=rC.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"]});function OO(e){return new Date(e)}function SO(e){return e instanceof Date?+e:+new Date(+e)}function kO(e,t,n,r,i,o,a,s,c,u){var l=Rx(),f=l.invert,p=l.domain,d=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?d:s(e)<e?h:a(e)<e?g:o(e)<e?y:r(e)<e?i(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,SO)):p().map(OO)},l.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:u(t)},l.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(e_(n,e)):l},l.copy=function(){return Dx(l,kO(e,t,n,r,i,o,a,s,c,u))},l}function EO(){var e,t,n,r,i,o=0,a=1,s=Tx,c=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(_x),u.rangeRound=l(Cx),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function AO(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function TO(){var e=h_(EO());return e.copy=function(){return AO(e,TO()).exponent(e.exponent())},nw.apply(e,arguments)}function jO(){var e,t,n,r,i,o,a,s=0,c=.5,u=1,l=1,f=Tx,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(l*e<l*t?r:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,f=kx(e,[n,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=o(s=+s),t=o(c=+c),n=o(u=+u),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),l=t<e?-1:1,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(_x),d.rangeRound=h(Cx),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function MO(){var e=h_(jO());return e.copy=function(){return AO(e,MO()).exponent(e.exponent())},nw.apply(e,arguments)}Date.prototype.toISOString||oC("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||aC("%Y-%m-%dT%H:%M:%S.%LZ");var PO=Object.freeze({__proto__:null,scaleBand:ow,scalePoint:sw,scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,Ex),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,Ex):[0,1],Jx(r)},scaleLinear:Qx,scaleLog:function e(){var t=s_(Ix()).domain([1,10]);return t.copy=function(){return Dx(t,e()).base(t.base())},tw.apply(t,arguments),t},scaleSymlog:function e(){var t=l_(Ix());return t.copy=function(){return Dx(t,e()).constant(t.constant())},tw.apply(t,arguments)},scaleOrdinal:iw,scaleImplicit:rw,scalePow:g_,scaleSqrt:function(){return g_.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=Rx(),r=[0,1],i=!1;function o(e){var r=v_(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(y_(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,Ex)).map(y_)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},tw.apply(o,arguments),Jx(o)},scaleQuantile:function e(){var t,n=[],r=[],i=[];function o(){var e=0,t=Math.max(1,r.length);for(i=new Array(t-1);++e<t;)i[e-1]=Qb(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Ub(i,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(Bb),o()},a.range=function(e){return arguments.length?(r=Array.from(e),o()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},tw.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,i=1,o=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[Ub(o,e,0,i)]:t}function c(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(i=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},tw.apply(Jx(s),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[Ub(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},tw.apply(o,arguments)},scaleTime:function(){return tw.apply(kO(J_,Q_,R_,I_,E_,S_,O_,C_,__,iC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return tw.apply(kO(Y_,X_,G_,q_,z_,B_,N_,L_,__,oC).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=Jx(EO()(Tx));return t.copy=function(){return AO(t,e())},nw.apply(t,arguments)},scaleSequentialLog:function e(){var t=s_(EO()).domain([1,10]);return t.copy=function(){return AO(t,e()).base(t.base())},nw.apply(t,arguments)},scaleSequentialPow:TO,scaleSequentialSqrt:function(){return TO.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=l_(EO());return t.copy=function(){return AO(t,e()).constant(t.constant())},nw.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=Tx;function r(e){if(null!=e&&!isNaN(e=+e))return n((Ub(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(Bb),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>Jb(t,r/e)))},r.copy=function(){return e(n).domain(t)},nw.apply(r,arguments)},scaleDiverging:function e(){var t=Jx(jO()(Tx));return t.copy=function(){return AO(t,e())},nw.apply(t,arguments)},scaleDivergingLog:function e(){var t=s_(jO()).domain([.1,1,10]);return t.copy=function(){return AO(t,e()).base(t.base())},nw.apply(t,arguments)},scaleDivergingPow:MO,scaleDivergingSqrt:function(){return MO.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=l_(jO());return t.copy=function(){return AO(t,e()).constant(t.constant())},nw.apply(t,arguments)},tickFormat:Xx});function DO(e){return function(e){if(Array.isArray(e))return IO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return IO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IO(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RO(Object(n),!0).forEach((function(t){NO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BO(e,t,n){return Wf(e)||Wf(t)?n:Of(t)?ac(e,t,n):br(t)?t(e):n}function FO(e,t,n,r){var i=Bm(e,(function(e){return BO(e,t)}));if("number"===n){var o=i.filter((function(e){return Cf(e)||parseFloat(e)}));return o.length?[jm(o),Sm(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!Wf(e)})):i).map((function(e){return Of(e)||e instanceof Date?e:""}))}var zO=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},UO=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=fm(n,Kf.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:zO(t),value:i||r,payload:t.props}})),LO(LO(LO({},a.props),Kf.getWithHeight(a,i)),{},{payload:t,item:a})):null},HO=function(e,t,n,r,i){var o=t.props.children,a=lm(o,"ErrorBar").filter((function(e){return function(e,t,n){return!!Wf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,i,e.props.direction)}));if(a&&a.length){var s=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=BO(t,n,0),i=xo(r)?[jm(r),Sm(r)]:[r,r],o=s.reduce((function(e,n){var r=BO(t,n,0),o=i[0]-Math.abs(xo(r)?r[0]:r),a=i[1]+Math.abs(xo(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},VO=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&HO(e,t,o,r)||FO(e,o,n,i)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},KO=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},WO=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},$O=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType?2*xf(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:i?i[e]:e,index:t,offset:c}}))},qO=function(e,t,n){var r;return br(n)?r=n:br(t)&&(r=t),br(e)||r?function(t,n,i,o){br(e)&&e(t,n,i,o),br(r)&&r(t,n,i,o)}:null},GO=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:ow(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Qx(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:sw(),realScaleType:"point"}:"category"===i?{scale:ow(),realScaleType:"band"}:{scale:Qx(),realScaleType:"linear"};if(wf(r)){var s="scale".concat(Ru(r));return{scale:(PO[s]||sw)(),realScaleType:PO[s]?s:"point"}}return br(r)?{scale:r}:{scale:sw(),realScaleType:"point"}},ZO=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},YO=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},XO=function(e,t){if(!t||2!==t.length||!Cf(t[0])||!Cf(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Cf(e[0])||e[0]<n)&&(i[0]=n),(!Cf(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},JO={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=yf(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}Fl(e,t)}},none:Fl,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}Fl(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<i;++s){for(var l=e[t[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=o,c&&(o-=u/c)}n[a-1][1]+=n[a-1][0]=o,Fl(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=yf(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},QO=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=Uu([]),t=zl,n=Fl,r=Ul;function i(i){var o,a,s=Array.from(e.apply(this,arguments),Hl),c=s.length,u=-1;for(const e of i)for(o=0,++u;o<c;++o)(s[o][u]=[0,+r(e,s[o].key,u,i)]).data=e;for(o=0,a=Ku(t(s));o<c;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Uu(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Uu(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?zl:"function"==typeof e?e:Uu(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Fl:e,i):n},i}().keys(r).value((function(e,t){return+BO(e,t,0)})).order(zl).offset(JO[n]);return i(e)},eS=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var c=e.domain();if(!c.length)return null;var u=Lb(c,i,a);return e.domain(function(e,t){return"number"===t?[jm(e),Sm(e)]:e}(u,r)),{niceTicks:u}}if(i&&"number"===r){var l=e.domain();return{niceTicks:Nb(l,i,a)}}return null},tS=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Wf(i[t.dataKey])){var s=jf(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=BO(i,Wf(a)?t.dataKey:a);return Wf(c)?null:t.scale(c)},nS=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=BO(o,t.dataKey,t.domain[a]);return Wf(s)?null:t.scale(s)-i/2+r},rS=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.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]},iS=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[jm(t.concat([e[0]]).filter(Cf)),Sm(t.concat([e[1]]).filter(Cf))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[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(e){return e===1/0||e===-1/0?0:e}))},oS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sS=function(e,t,n){if(br(e))return e(t,n);if(!xo(e))return t;var r=[];if(Cf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(oS.test(e[0])){var i=+oS.exec(e[0])[1];r[0]=t[0]-i}else br(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Cf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(aS.test(e[1])){var o=+aS.exec(e[1])[1];r[1]=t[1]+o}else br(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},cS=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=sg(t,(function(e){return e.coordinate})),o=1/0,a=1,s=i.length;a<s;a++){var c=i[a],u=i[a-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},uS=function(e,t,n){return e&&e.length?mm(e,ac(n,"type.defaultProps.domain"))?t:e:t},lS=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return LO(LO({},$n(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:zO(e),value:BO(t,r),type:s,payload:t,chartType:c})};function fS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fS(Object(n),!0).forEach((function(t){dS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yS=Math.PI/180,vS=function(e){return 180*e/Math.PI},mS=function(e,t,n,r){return{x:e+Math.cos(-yS*r)*n,y:t+Math.sin(-yS*r)*n}},bS=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},wS=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ef(e.cx,o,o/2),l=Ef(e.cy,a,a/2),f=bS(o,a,n),p=Ef(e.innerRadius,f,0),d=Ef(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var o,a=t[n],f=a.domain,h=a.reversed;if(Wf(a.range))"angleAxis"===r?o=[s,c]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var g=hS(o=a.range,2);s=g[0],c=g[1]}var y=GO(a,i),v=y.realScaleType,m=y.scale;m.domain(f).range(o),ZO(m);var b=eS(m,pS(pS({},a),{},{realScaleType:v})),w=pS(pS(pS({},a),b),{},{range:o,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return pS(pS({},e),{},dS({},n,w))}),{})},xS=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.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 s=(n-i)/a,c=Math.acos(s);return r>o&&(c=2*Math.PI-c),{radius:a,angle:vS(c),angleInRadian:c}},_S=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},CS=function(e,t){var n=e.x,r=e.y,i=xS({x:n,y:r},t),o=i.radius,a=i.angle,s=t.innerRadius,c=t.outerRadius;if(o<s||o>c)return!1;if(0===o)return!0;var u,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),f=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?pS(pS({},t),{},{radius:o,angle:_S(d,t)}):null};function OS(e){return function(e){if(Array.isArray(e))return SS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return SS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SS(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ES(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kS(Object(n),!0).forEach((function(t){AS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TS(){return TS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TS.apply(this,arguments)}var jS=function(e,t,n){var r,o,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(r=g+w*c,o=v):"insideEnd"===a?(r=y-w*c,o=!v):"end"===a&&(r=y+w*c,o=v),o=b<=0?o:!o;var x=mS(f,p,m,r),_=mS(f,p,m,r+359*(o?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),O=Wf(e.id)?kf("recharts-radial-line-"):e.id;return i.createElement("text",TS({},n,{dominantBaseline:"central",className:zn("recharts-radial-bar-label",u)}),i.createElement("defs",null,i.createElement("path",{id:O,d:C})),i.createElement("textPath",{xlinkHref:"#".concat(O)},t))};function MS(e){var t,n=e.viewBox,r=e.position,o=e.value,s=e.children,u=e.content,l=e.className,f=void 0===l?"":l,p=e.textBreakAll;if(!n||Wf(o)&&Wf(s)&&!v(u)&&!br(u))return null;if(v(u))return c(u,e);if(br(u)){if(v(t=a(u,e)))return t}else t=function(e){var t=e.value,n=e.formatter,r=Wf(e.children)?t:e.children;return br(n)?n(r):r}(e);var d=function(e){return Cf(e.cx)}(n),h=$n(e,!0);if(d&&("insideStart"===r||"insideEnd"===r||"end"===r))return jS(e,t,h);var g=d?function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,s=i.innerRadius,c=i.outerRadius,u=(i.startAngle+i.endAngle)/2;if("outside"===r){var l=mS(o,a,c+n,u),f=l.x;return{x:f,y:l.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=mS(o,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,a=o.x,s=o.y,c=o.width,u=o.height,l=u>=0?1:-1,f=l*r,p=l>0?"end":"start",d=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===i)return ES(ES({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===i)return ES(ES({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===i){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return ES(ES({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===i){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return ES(ES({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===i?ES({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===i?ES({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===i?ES({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===i?ES({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?ES({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===i?ES({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===i?ES({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===i?ES({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Un(i)&&(Cf(i.x)||_f(i.x))&&(Cf(i.y)||_f(i.y))?ES({x:a+Ef(i.x,c),y:s+Ef(i.y,u),textAnchor:"end",verticalAnchor:"end"},w):ES({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return i.createElement(nm,TS({className:zn("recharts-label",f)},h,g,{breakAll:p}),t)}MS.displayName="Label",MS.defaultProps={offset:5};var PS=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,u=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(Cf(h)&&Cf(g)){if(Cf(l)&&Cf(f))return{x:l,y:f,width:h,height:g};if(Cf(p)&&Cf(d))return{x:p,y:d,width:h,height:g}}return Cf(l)&&Cf(f)?{x:l,y:f,width:0,height:0}:Cf(t)&&Cf(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},DS=function(e,t){return e?!0===e?i.createElement(MS,{key:"label-implicit",viewBox:t}):Of(e)?i.createElement(MS,{key:"label-implicit",viewBox:t,value:e}):v(e)?e.type===MS?c(e,{key:"label-implicit",viewBox:t}):i.createElement(MS,{key:"label-implicit",content:e,viewBox:t}):br(e)?i.createElement(MS,{key:"label-implicit",content:e,viewBox:t}):Un(e)?i.createElement(MS,TS({viewBox:t},e,{key:"label-implicit"})):null:null};MS.parseViewBox=PS,MS.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=PS(e),o=lm(r,MS.displayName).map((function(e,n){return c(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return o;var a=DS(e.label,t||i);return[a].concat(OS(o))};var IS=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function RS(e){return function(e){if(Array.isArray(e))return LS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return LS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LS(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NS(){return NS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NS.apply(this,arguments)}function BS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BS(Object(n),!0).forEach((function(t){zS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function US(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var HS={valueAccessor:function(e){return xo(e.value)?IS(e.value):e.value}};function VS(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,a=e.id,s=e.textBreakAll,c=US(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?i.createElement(er,{className:"recharts-label-list"},t.map((function(e,t){var u=Wf(r)?n(e,t):BO(e&&e.payload,r),l=Wf(a)?{}:{id:"".concat(a,"-").concat(t)};return i.createElement(MS,NS({},$n(e,!0),c,l,{parentViewBox:e.parentViewBox,index:t,value:u,textBreakAll:s,viewBox:MS.parseViewBox(Wf(o)?e:FS(FS({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}function KS(e,t){return e?!0===e?i.createElement(VS,{key:"labelList-implicit",data:t}):i.isValidElement(e)||br(e)?i.createElement(VS,{key:"labelList-implicit",data:t,content:e}):Un(e)?i.createElement(VS,NS({data:t},e,{key:"labelList-implicit"})):null:null}function WS(e){return WS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WS(e)}function $S(){return $S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$S.apply(this,arguments)}function qS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZS(e,t){return ZS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZS(e,t)}function YS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JS(e);if(t){var i=JS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return XS(this,n)}}function XS(e,t){return!t||"object"!==WS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function JS(e){return JS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},JS(e)}VS.displayName="LabelList",VS.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=lm(r,VS.displayName).map((function(e,n){return c(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return i;var o=KS(e.label,t);return[o].concat(RS(i))},VS.defaultProps=HS;var QS=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/yS,f=c?i:i+o*l,p=c?i-o*l:i;return{center:mS(t,n,u,f),circleTangency:mS(t,n,r,f),lineTangency:mS(t,n,u*Math.cos(l*yS),p),theta:l}},ek=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),s=o+a,c=mS(t,n,i,o),u=mS(t,n,i,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=mS(t,n,r,o),p=mS(t,n,r,s);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},tk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZS(e,t)}(a,m);var t,n,r,o=YS(a);function a(){return qS(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(o<r||u===l)return null;var p,d=zn("recharts-sector",f),h=o-r,g=Ef(a,h,0,!0);return p=g>0&&Math.abs(u-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,l=xf(u-c),f=QS({cx:t,cy:n,radius:i,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=QS({cx:t,cy:n,radius:i,angle:u,sign:-l,cornerRadius:o,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):ek({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=QS({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,O=x.theta,S=QS({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,A=S.theta,T=s?Math.abs(c-u):Math.abs(c-u)-O-A;if(T<0&&0===o)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):ek({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:l}),i.createElement("path",$S({},$n(this.props,!0),{className:d,d:p}))}}],n&&GS(t.prototype,n),r&&GS(t,r),a}();function nk(e){return nk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nk(e)}function rk(){return rk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rk.apply(this,arguments)}function ik(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ok(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ik(Object(n),!0).forEach((function(t){ak(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ik(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ak(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uk(e,t){return uk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uk(e,t)}function lk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pk(e);if(t){var i=pk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fk(this,n)}}function fk(e,t){return!t||"object"!==nk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pk(e){return pk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pk(e)}tk.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var dk={curveBasisClosed:function(e){return new vl(e)},curveBasisOpen:function(e){return new ml(e)},curveBasis:function(e){return new yl(e)},curveLinearClosed:function(e){return new Al(e)},curveLinear:$u,curveMonotoneX:function(e){return new Dl(e)},curveMonotoneY:function(e){return new Il(e)},curveNatural:function(e){return new Ll(e)},curveStep:function(e){return new Bl(e,.5)},curveStepAfter:function(e){return new Bl(e,1)},curveStepBefore:function(e){return new Bl(e,0)}},hk=function(e){return e.x===+e.x&&e.y===+e.y},gk=function(e){return e.x},yk=function(e){return e.y},vk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uk(e,t)}(a,m);var t,n,r,o=lk(a);function a(){return sk(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,s=function(e,t){if(br(e))return e;var n="curve".concat(Ru(e));return"curveMonotone"===n&&t?dk["".concat(n).concat("vertical"===t?"Y":"X")]:dk[n]||$u}(n,o),c=a?r.filter((function(e){return hk(e)})):r;if(xo(i)){var u=a?i.filter((function(e){return hk(e)})):i,l=c.map((function(e,t){return ok(ok({},e),{},{base:u[t]})}));return(e="vertical"===o?Yu().y(yk).x1(gk).x0((function(e){return e.base.x})):Yu().x(gk).y1(yk).y0((function(e){return e.base.y}))).defined(hk).curve(s),e(l)}return(e="vertical"===o&&Cf(i)?Yu().y(yk).x1(gk).x0(i):Cf(i)?Yu().x(gk).y1(yk).y0(i):Zu().x(gk).y(yk)).defined(hk).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return i.createElement("path",rk({},$n(this.props),qn(this.props),{className:zn("recharts-curve",t),d:a,ref:o}))}}],n&&ck(t.prototype,n),r&&ck(t,r),a}();function mk(e){return mk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mk(e)}function bk(){return bk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bk.apply(this,arguments)}function wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _k(e,t){return _k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_k(e,t)}function Ck(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sk(e);if(t){var i=Sk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ok(this,n)}}function Ok(e,t){return!t||"object"!==mk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sk(e){return Sk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sk(e)}vk.defaultProps={type:"linear",points:[],connectNulls:!1};var kk=function(e,t,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),o+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),o+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),o+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},Ek=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(i,i+a),u=Math.max(i,i+a),l=Math.min(o,o+s),f=Math.max(o,o+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},Ak=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_k(e,t)}(a,m);var t,n,r,o=Ck(a);function a(){var e;wk(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,o=t.width,a=t.height,s=t.radius,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||0===o||0===a)return null;var y=zn("recharts-rectangle",c);return g?i.createElement(Cd,{canBegin:u>0,from:{width:o,height:a,x:n,y:r},to:{width:o,height:a,x:n,y:r},duration:p,animationEasing:f,isActive:g},(function(t){var n=t.width,r=t.height,o=t.x,a=t.y;return i.createElement(Cd,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},i.createElement("path",bk({},$n(e.props,!0),{className:y,d:kk(o,a,n,r,s),ref:function(t){e.node=t}})))})):i.createElement("path",bk({},$n(this.props,!0),{className:y,d:kk(n,r,o,a,s)}))}}],n&&xk(t.prototype,n),r&&xk(t,r),a}();function Tk(e){return Tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tk(e)}function jk(){return jk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jk.apply(this,arguments)}function Mk(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ik(e,t){return Ik=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ik(e,t)}function Rk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nk(e);if(t){var i=Nk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Lk(this,n)}}function Lk(e,t){return!t||"object"!==Tk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nk(e){return Nk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nk(e)}function Bk(e){return function(e){if(Array.isArray(e))return Fk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Fk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fk(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Ak.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var zk=function(e){return e&&e.x===+e.x&&e.y===+e.y},Uk=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){zk(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),zk(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(Bk(e),Bk(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},Hk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ik(e,t)}(a,m);var t,n,r,o=Rk(a);function a(){return Pk(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.points,n=e.className,r=e.baseLinePoints,o=e.connectNulls,a=Mk(e,["points","className","baseLinePoints","connectNulls"]);if(!t||!t.length)return null;var s=zn("recharts-polygon",n);if(r&&r.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=Uk(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(Uk(t.reverse(),n).slice(1))}(t,r,o);return i.createElement("g",{className:s},i.createElement("path",jk({},$n(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?i.createElement("path",jk({},$n(a,!0),{fill:"none",d:Uk(t,o)})):null,c?i.createElement("path",jk({},$n(a,!0),{fill:"none",d:Uk(r,o)})):null)}var l=Uk(t,o);return i.createElement("path",jk({},$n(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&Dk(t.prototype,n),r&&Dk(t,r),a}();function Vk(e){return Vk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vk(e)}function Kk(){return Kk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kk.apply(this,arguments)}function Wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qk(e,t){return qk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qk(e,t)}function Gk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yk(e);if(t){var i=Yk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Zk(this,n)}}function Zk(e,t){return!t||"object"!==Vk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yk(e){return Yk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yk(e)}var Xk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qk(e,t)}(a,m);var t,n,r,o=Gk(a);function a(){return Wk(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,a=zn("recharts-dot",o);return t===+t&&n===+n&&r===+r?i.createElement("circle",Kk({},$n(this.props),qn(this.props),{className:a,cx:t,cy:n,r:r})):null}}],n&&$k(t.prototype,n),r&&$k(t,r),a}();function Jk(e){return Jk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jk(e)}function Qk(){return Qk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qk.apply(this,arguments)}function eE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nE(e,t){return nE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nE(e,t)}function rE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oE(e);if(t){var i=oE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return iE(this,n)}}function iE(e,t){return!t||"object"!==Jk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oE(e){return oE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oE(e)}var aE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nE(e,t)}(a,m);var t,n,r,o=rE(a);function a(){return eE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,s=e.top,c=e.left,u=e.className;return Cf(t)&&Cf(n)&&Cf(r)&&Cf(o)&&Cf(s)&&Cf(c)?i.createElement("path",Qk({},$n(this.props,!0),{className:zn("recharts-cross",u),d:a.getPath(t,n,r,o,s,c)})):null}}],r=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],n&&tE(t.prototype,n),r&&tE(t,r),a}();aE.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var sE=wm,cE=zc,uE=km;var lE=function(e,t){return e&&e.length?sE(e,cE(t),uE):void 0},fE=wm,pE=xm,dE=zc;var hE=function(e,t){return e&&e.length?fE(e,dE(t),pE):void 0};function gE(e){return gE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gE(e)}function yE(){return yE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yE.apply(this,arguments)}function vE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vE(Object(n),!0).forEach((function(t){bE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wE(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function CE(e,t){return CE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},CE(e,t)}function OE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kE(e);if(t){var i=kE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return SE(this,n)}}function SE(e,t){return!t||"object"!==gE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kE(e){return kE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kE(e)}var EE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&CE(e,t)}(a,m);var t,n,r,o=OE(a);function a(){return xE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return mS(i,o,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,o=hE(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:lE(i,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,a=e.axisLine,s=wE(e,["cx","cy","angle","ticks","axisLine"]),c=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=mS(t,n,c[0],r),l=mS(t,n,c[1],r),f=mE(mE(mE({},$n(s)),{},{fill:"none"},$n(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return i.createElement("line",yE({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,s=t.tickFormatter,c=t.stroke,u=wE(t,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),f=$n(u),p=$n(r),d=n.map((function(t,n){var u=e.getTickValueCoord(t),d=mE(mE(mE(mE({textAnchor:l,transform:"rotate(".concat(90-o,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:n},u),{},{payload:t});return i.createElement(er,yE({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},Gn(e.props,t,n)),a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return i.createElement(er,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?i.createElement(er,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),MS.renderCallByParent(this.props,this.getViewBox())):null}}],r=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,yE({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],n&&_E(t.prototype,n),r&&_E(t,r),a}();function AE(e){return AE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AE(e)}function TE(){return TE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TE.apply(this,arguments)}function jE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ME(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jE(Object(n),!0).forEach((function(t){PE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function RE(e,t){return RE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RE(e,t)}function LE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BE(e);if(t){var i=BE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return NE(this,n)}}function NE(e,t){return!t||"object"!==AE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function BE(e){return BE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BE(e)}EE.displayName="PolarRadiusAxis",EE.axisType="radiusAxis",EE.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};var FE=Math.PI/180,zE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&RE(e,t)}(a,m);var t,n,r,o=LE(a);function a(){return DE(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.orientation,a=t.tickSize||8,s=mS(n,r,i,e.coordinate),c=mS(n,r,i+("inner"===o?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*FE);return n>1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,a=e.axisLineType,s=ME(ME({},$n(this.props)),{},{fill:"none"},$n(o));if("circle"===a)return i.createElement(Xk,TE({className:"recharts-polar-angle-axis-line"},s,{cx:t,cy:n,r:r}));var c=this.props.ticks.map((function(e){return mS(t,n,r,e.coordinate)}));return i.createElement(Hk,TE({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,s=t.tickFormatter,c=t.stroke,u=$n(this.props),l=$n(r),f=ME(ME({},u),{},{fill:"none"},$n(o)),p=n.map((function(t,n){var p=e.getTickLineCoord(t),d=ME(ME(ME({textAnchor:e.getTickTextAnchor(t)},u),{},{stroke:"none",fill:c},l),{},{index:n,payload:t,x:p.x2,y:p.y2});return i.createElement(er,TE({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},Gn(e.props,t,n)),o&&i.createElement("line",TE({className:"recharts-polar-angle-axis-tick-line"},f,p)),r&&a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return i.createElement(er,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:i.createElement(er,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],r=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,TE({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],n&&IE(t.prototype,n),r&&IE(t,r),a}();zE.displayName="PolarAngleAxis",zE.axisType="angleAxis",zE.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0};var UE=ya(Object.getPrototypeOf,Object),HE=yr,VE=UE,KE=Io,WE=Function.prototype,$E=Object.prototype,qE=WE.toString,GE=$E.hasOwnProperty,ZE=qE.call(Object);var YE=function(e){if(!KE(e)||"[object Object]"!=HE(e))return!1;var t=VE(e);if(null===t)return!0;var n=GE.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qE.call(n)==ZE};function XE(e){return XE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XE(e)}function JE(){return JE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JE.apply(this,arguments)}function QE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QE(Object(n),!0).forEach((function(t){tA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rA(e,t){return rA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rA(e,t)}function iA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aA(e);if(t){var i=aA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oA(this,n)}}function oA(e,t){return!t||"object"!==XE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function aA(e){return aA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aA(e)}var sA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rA(e,t)}(a,m);var t,n,r,o=iA(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state=void 0,t.id=kf("recharts-pie-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),br(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),br(e)&&e()},t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId},t}return t=a,n=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.label,r=t.labelLine,o=t.dataKey,s=t.valueKey,c=$n(this.props),u=$n(n),l=$n(r),f=n&&n.offsetRadius||20,p=e.map((function(e,t){var p=(e.startAngle+e.endAngle)/2,d=mS(e.cx,e.cy,e.outerRadius+f,p),h=eA(eA(eA(eA({},c),e),{},{stroke:"none"},u),{},{index:t,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=eA(eA(eA(eA({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:t,points:[mS(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=o;return Wf(o)&&Wf(s)?y="value":Wf(o)&&(y=s),i.createElement(er,{key:"label-".concat(t)},r&&a.renderLabelLineItem(r,g),a.renderLabelItem(n,h,BO(e,y)))}));return i.createElement(er,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,o=n.blendStroke,s=n.inactiveShape;return e.map((function(e,n){var c=s&&t.hasActiveIndex()?s:null,u=t.isActiveIndex(n)?r:c,l=eA(eA({},e),{},{stroke:o?e.fill:e.stroke});return i.createElement(er,JE({className:"recharts-pie-sector"},Gn(t.props,e,n),{key:"sector-".concat(n)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=[],a=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=l&&l[t],i=t>0?ac(e,"paddingAngle",0):0;if(n){var s=Tf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=eA(eA({},e),{},{startAngle:a+i,endAngle:a+s(r)+i});o.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Tf(0,u-f)(r),d=eA(eA({},e),{},{startAngle:a+i,endAngle:a+p+i});o.push(d),a=d.endAngle}})),i.createElement(er,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,a=e.cx,s=e.cy,c=e.innerRadius,u=e.outerRadius,l=e.isAnimationActive,f=this.state.isAnimationFinished;if(t||!n||!n.length||!Cf(a)||!Cf(s)||!Cf(c)||!Cf(u))return null;var p=zn("recharts-pie",r);return i.createElement(er,{className:p},this.renderSectors(),o&&this.renderLabels(n),MS.renderCallByParent(this.props,null,!1),(!l||f)&&VS.renderCallByParent(this.props,n,!1))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(vk,JE({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(i.isValidElement(e))return i.cloneElement(e,t);var r=n;return br(e)&&(r=e(t),i.isValidElement(r))?r:i.createElement(nm,JE({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):YE(e)?i.createElement(tk,JE({},t,e)):i.createElement(tk,t)}}],n&&nA(t.prototype,n),r&&nA(t,r),a}();sA.displayName="Pie",sA.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:!_g.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},sA.parseDeltaAngle=function(e,t){return xf(t-e)*Math.min(Math.abs(t-e),360)},sA.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,i=$n(e.props),o=lm(r,Zy.displayName);return n&&n.length?n.map((function(e,t){return eA(eA(eA({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return eA(eA({},i),e.props)})):[]},sA.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=bS(i,o);return{cx:r+Ef(e.props.cx,i,i/2),cy:n+Ef(e.props.cy,o,o/2),innerRadius:Ef(e.props.innerRadius,a,0),outerRadius:Ef(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}},sA.getComposedData=function(e){var t=e.item,n=e.offset,r=sA.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,s=i.endAngle,c=i.paddingAngle,u=i.dataKey,l=i.nameKey,f=i.valueKey,p=i.tooltipType,d=Math.abs(t.props.minAngle),h=sA.parseCoordinateOfPie(t,n),g=sA.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Wf(u)&&Wf(f)?(Gy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Wf(u)&&(Gy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var m,b,w=r.filter((function(e){return 0!==BO(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=BO(t,v,0);return e+(Cf(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=BO(e,v,0),i=BO(e,l,t),s=(Cf(r)?r:0)/_,u=(n=t?b.endAngle+xf(g)*c*(0!==r?1:0):a)+xf(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:i,value:r,payload:e,dataKey:v,type:p}],w=mS(h.cx,h.cy,y,f);return b=eA(eA(eA({percent:s,cornerRadius:o,name:i,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:BO(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:xf(g)*c})})));return eA(eA({},h),{},{sectors:m,data:r})};var cA={exports:{}};var uA=function(e){return e&&e.length?e[0]:void 0},lA=St(cA.exports=uA);function fA(e){return fA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fA(e)}function pA(){return pA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pA.apply(this,arguments)}function dA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dA(Object(n),!0).forEach((function(t){gA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mA(e,t){return mA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mA(e,t)}function bA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xA(e);if(t){var i=xA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return wA(this,n)}}function wA(e,t){return!t||"object"!==fA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xA(e){return xA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xA(e)}var _A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mA(e,t)}(a,m);var t,n,r,o=bA(a);function a(){var e;yA(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e.handleMouseEnter=function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)},e.handleMouseLeave=function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)},e}return t=a,n=[{key:"renderDots",value:function(e){var t=this.props,n=t.dot,r=t.dataKey,o=$n(this.props),s=$n(n),c=e.map((function(e,t){var i=hA(hA(hA({key:"dot-".concat(t),r:3},o),s),{},{dataKey:r,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(n,i)}));return i.createElement(er,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var t,n=this.props,r=n.shape,o=n.dot,a=n.isRange,s=n.baseLinePoints,c=n.connectNulls;return t=i.isValidElement(r)?i.cloneElement(r,hA(hA({},this.props),{},{points:e})):br(r)?r(hA(hA({},this.props),{},{points:e})):i.createElement(Hk,pA({},$n(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),i.createElement(er,{className:"recharts-radar-polygon"},t,o?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,i=u&&u.length/n.length,o=n.map((function(e,t){var n=u&&u[Math.floor(t*i)];if(n){var o=Tf(n.x,e.x),a=Tf(n.y,e.y);return hA(hA({},e),{},{x:o(r),y:a(r)})}var s=Tf(e.cx,e.x),c=Tf(e.cy,e.y);return hA(hA({},e),{},{x:s(r),y:c(r)})}));return e.renderPolygonStatically(o)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,i=this.state.prevPoints;return!(n&&t&&t.length)||r||i&&mm(i,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.className,r=e.points,o=e.isAnimationActive;if(t||!r||!r.length)return null;var a=this.state.isAnimationFinished,s=zn("recharts-radar",n);return i.createElement(er,{className:s},this.renderPolygon(),(!o||a)&&VS.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,pA({},t,{className:"recharts-radar-dot"}))}}],n&&vA(t.prototype,n),r&&vA(t,r),a}();function CA(e){return CA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CA(e)}function OA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OA(Object(n),!0).forEach((function(t){kA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EA(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function AA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jA(e,t){return jA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jA(e,t)}function MA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=DA(e);if(t){var i=DA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return PA(this,n)}}function PA(e,t){return!t||"object"!==CA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function DA(e){return DA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},DA(e)}_A.displayName="Radar",_A.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_A.getComposedData=function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,i=e.dataKey,o=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=BO(e,n.dataKey,r),f=BO(e,i),p=n.scale(l)+(o||0),d=xo(f)?IS(f):f,h=Wf(d)?void 0:t.scale(d);xo(f)&&f.length>=2&&(c=!0),u.push(hA(hA({},mS(a,s,h,p)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:p,payload:e}))}));var l=[];return c&&u.forEach((function(e){if(xo(e.value)){var n=lA(e.value),r=Wf(n)?void 0:t.scale(n);l.push(hA(hA({},e),{},{radius:r},mS(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}};var IA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jA(e,t)}(a,m);var t,n,r,o=MA(a);function a(){var e;AA(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return xf(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,s=n.cornerRadius,c=EA(n,["shape","activeShape","activeIndex","cornerRadius"]),u=$n(c);return e.map((function(e,n){var l=SA(SA(SA(SA({},u),{},{cornerRadius:s},e),Gn(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===o?i:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevData;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.startAngle,e.startAngle),o=Tf(n.endAngle,e.endAngle);return SA(SA({},e),{},{startAngle:i(r),endAngle:o(r)})}var a=e.endAngle,s=e.startAngle,c=Tf(s,a);return SA(SA({},e),{},{endAngle:c(r)})}));return i.createElement(er,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=$n(this.props.background);return e.map((function(e,i){e.value;var o=e.background,s=EA(e,["value","background"]);if(!o)return null;var c=SA(SA(SA(SA(SA({cornerRadius:n},s),{},{fill:"#eee"},o),r),Gn(t.props,e,i)),{},{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(o,c)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.background,a=e.isAnimationActive;if(t||!n||!n.length)return null;var s=this.state.isAnimationFinished,c=zn("recharts-area",r);return i.createElement(er,{className:c},o&&i.createElement(er,{className:"recharts-radial-bar-background"},this.renderBackground(n)),i.createElement(er,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&VS.renderCallByParent(SA(SA({},this.props),{},{clockWise:this.getDeltaAngle()<0}),n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderSectorShape",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(tk,t)}}],n&&TA(t.prototype,n),r&&TA(t,r),a}();IA.displayName="RadialBar",IA.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1},IA.getComposedData=function(e){var t=e.item,n=e.props,r=e.radiusAxis,i=e.radiusAxisTicks,o=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=YO(l,t);if(!d)return null;var h=o.cx,g=o.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?o:r,x=u?w.scale.domain():null,_=rS({numericAxis:w}),C=lm(m,Zy.displayName);return{data:s.map((function(e,s){var l,v,m,w,O,S;if(u?l=XO(u[p+s],x):(l=BO(e,c),xo(l)||(l=[_,l])),"radial"===y){v=nS({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:s}),O=o.scale(l[1]),w=o.scale(l[0]),m=v+d.size;var k=O-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))O+=xf(k||b)*(Math.abs(b)-Math.abs(k));S={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),O=(w=nS({axis:o,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=xf(E||b)*(Math.abs(b)-Math.abs(E))}return SA(SA(SA(SA({},e),S),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:O},C&&C[s]&&C[s].props),{},{tooltipPayload:[lS(t,e)],tooltipPosition:mS(h,g,(v+m)/2,(w+O)/2)})})),layout:y}};var RA=Math.ceil,LA=Math.max;var NA=Zg;var BA=function(e){return e?Infinity===(e=NA(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},FA=function(e,t,n,r){for(var i=-1,o=LA(RA((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},zA=rg,UA=BA;var HA=function(e){return function(t,n,r){return r&&"number"!=typeof r&&zA(t,n,r)&&(n=r=void 0),t=UA(t),void 0===n?(n=t,t=0):n=UA(n),r=void 0===r?t<n?1:-1:UA(r),FA(t,n,r,e)}}();function VA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VA(Object(n),!0).forEach((function(t){WA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $A=["Webkit","Moz","O","ms"];function qA(e){return qA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qA(e)}function GA(){return GA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GA.apply(this,arguments)}function ZA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZA(Object(n),!0).forEach((function(t){XA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function QA(e,t){return QA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},QA(e,t)}function eT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rT(e);if(t){var i=rT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tT(this,n)}}function tT(e,t){return!t||"object"!==qA(t)&&"function"!=typeof t?nT(e):t}function nT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rT(e){return rT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rT(e)}var iT=function(e){return e.changedTouches&&!!e.changedTouches.length},oT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&QA(e,t)}(a,m);var t,n,r,o=eT(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=iT(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(nT(t),"startX"),endX:t.handleTravellerDragStart.bind(nT(t),"endX")},t.state={},t}return t=a,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,i=this.props,o=i.gap,s=i.data.length-1,c=Math.min(t,n),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);return{startIndex:l-l%o,endIndex:f===s?s:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=BO(n[e],i,e);return br(r)?r(o,e):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,s=o.width,c=o.travellerWidth,u=o.startIndex,l=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-i,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=iT(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],c=this.props,u=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[i]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((XA(t={},i,s+y),XA(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?m%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:m%d==0)||o>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,s=e.stroke;return i.createElement("rect",{stroke:s,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,s=e.children,c=e.padding,u=g.only(s);return u?i.cloneElement(u,{x:t,y:n,width:r,height:o,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,s=n.height,c=n.traveller,u=Math.max(e,this.props.x),l=YA(YA({},$n(this.props)),{},{x:u,y:r,width:o,height:s});return i.createElement(er,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,s=n.travellerWidth,c=Math.min(e,t)+s,u=Math.max(Math.abs(t-e)-s,0);return i.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:c,y:r,width:u,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return i.createElement(er,{className:"recharts-brush-texts"},i.createElement(nm,GA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+o/2},f),this.getTextOfTick(t)),i.createElement(nm,GA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,s=e.width,c=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!t||!t.length||!Cf(o)||!Cf(a)||!Cf(s)||!Cf(c)||s<=0||c<=0)return null;var y=zn("recharts-brush",n),v=1===i.Children.count(r),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=$A.reduce((function(e,r){return KA(KA({},e),{},WA({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return i.createElement(er,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||g||u)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,s=Math.floor(n+o/2)-1;return i.createElement(i.Fragment,null,i.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),i.createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),i.createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return YA({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=sw().domain(HA(0,s)).range([i,i+o-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:i,travellerWidth:o,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],n&&JA(t.prototype,n),r&&JA(t,r),a}();oT.displayName="Brush",oT.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var aT=bh;var sT=no,cT=zc,uT=function(e,t){var n;return aT(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},lT=xo,fT=rg;var pT=function(e,t,n){var r=lT(e)?sT:uT;return n&&fT(e,t,n)&&(t=void 0),r(e,cT(t))},dT=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var hT=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},gT=bh;var yT=hT,vT=function(e,t){var n=!0;return gT(e,(function(e,r,i){return n=!!t(e,r,i)})),n},mT=zc,bT=xo,wT=rg;var xT=function(e,t,n){var r=bT(e)?yT:vT;return n&&wT(e,t,n)&&(t=void 0),r(e,mT(t))},_T=Vh;var CT=function(e,t,n){"__proto__"==t&&_T?_T(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},OT=CT,ST=vh,kT=zc;var ET=function(e,t){var n={};return t=kT(t),ST(e,(function(e,r,i){OT(n,r,t(e,r,i))})),n};function AT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function TT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TT(Object(n),!0).forEach((function(t){MT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PT=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={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},f=!!fm(c,"Bar");return u.reduce((function(o,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],O=1/0,S=g.categoricalDomain.sort();S.forEach((function(e,t){t>0&&(O=Math.min((e||0)-(S[t-1]||0),O))}));var k=O/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var A=Ef(e.barCategoryGap,k*E),T=k*E/2;c=T-A-(T-A)/E*A}}u="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(u=[u[1],u[0]]);var j=GO(g,i,f),M=j.scale,P=j.realScaleType;M.domain(v).range(u),ZO(M);var D=eS(M,jT(jT({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var I=jT(jT(jT({},g),D),{},{realScaleType:P,x:p,y:d,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return I.bandSize=cS(I,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*I.width):l[_]+=(h?-1:1)*I.height,jT(jT({},o),{},MT({},a,I))}),{})},DT=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},IT=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=void 0,this.scale=t}var t,n,r;return t=e,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}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&AT(t.prototype,n),r&&AT(t,r),e}();IT.EPS=1e-4;var RT=function(e){var t=Object.keys(e).reduce((function(t,n){return jT(jT({},t),{},MT({},n,IT.create(e[n])))}),{});return jT(jT({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return ET(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return xT(e,(function(e,n){return t[n].isInRange(e)}))}})};function LT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LT(Object(n),!0).forEach((function(t){BT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zT(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UT(){return UT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UT.apply(this,arguments)}function HT(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;Gy(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,i){var o=i.viewBox,a=o.x,s=o.y,c=o.width,u=o.height,l=i.position;if(n){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:l});if(dT(i,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=i.x,y=i.xAxis.orientation,v=e.x.apply(g,{position:l});if(dT(i,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=i.segment.map((function(t){return e.apply(t,{position:l})}));return dT(i,"discard")&&pT(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(RT({x:o.scale,y:a.scale}),Of(t),Of(n),r&&2===r.length,e);if(!f)return null;var p=FT(f,2),d=p[0],h=d.x,g=d.y,y=p[1],v=y.x,m=y.y,b=NT(NT({clipPath:dT(e,"hidden")?"url(#".concat(l,")"):void 0},$n(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return i.createElement(er,{className:zn("recharts-reference-line",c)},function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement("line",UT({},t,{className:"recharts-reference-line-line"}))}(s,b),MS.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return DT({x:t,y:n},{x:r,y:i})}({x1:h,y1:g,x2:v,y2:m})))}function VT(){return VT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VT.apply(this,arguments)}function KT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KT(Object(n),!0).forEach((function(t){$T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}HT.displayName="ReferenceLine",HT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function qT(e){var t=e.x,n=e.y,r=e.r,o=e.alwaysShow,a=e.clipPathId,s=Of(t),c=Of(n);if(Gy(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=RT({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return dT(e,"discard")&&!o.isInRange(a)?null:a}(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=WT(WT({clipPath:dT(e,"hidden")?"url(#".concat(a,")"):void 0},$n(e,!0)),{},{cx:l,cy:f});return i.createElement(er,{className:zn("recharts-reference-dot",d)},qT.renderDot(p,h),MS.renderCallByParent(e,{x:l-r,y:f-r,width:2*r,height:2*r}))}function GT(){return GT=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GT.apply(this,arguments)}function ZT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZT(Object(n),!0).forEach((function(t){XT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qT.displayName="ReferenceDot",qT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},qT.renderDot=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,VT({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function JT(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Gy(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Of(t),l=Of(n),f=Of(r),p=Of(o),d=e.shape;if(!(u||l||f||p||d))return null;var h=function(e,t,n,r,i){var o=i.x1,a=i.x2,s=i.y1,c=i.y2,u=i.xAxis,l=i.yAxis;if(!u||!l)return null;var f=RT({x:u.scale,y:l.scale}),p={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!dT(i,"discard")||f.isInRange(p)&&f.isInRange(d)?DT(p,d):null}(u,l,f,p,e);if(!h&&!d)return null;var g=dT(e,"hidden")?"url(#".concat(c,")"):void 0;return i.createElement(er,{className:zn("recharts-reference-area",a)},JT.renderRect(d,YT(YT({clipPath:g},$n(e,!0)),h)),MS.renderCallByParent(e,h))}function QT(e){return QT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QT(e)}function ej(){return ej=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ej.apply(this,arguments)}function tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tj(Object(n),!0).forEach((function(t){rj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ij(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aj(e,t){return aj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},aj(e,t)}function sj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uj(e);if(t){var i=uj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return cj(this,n)}}function cj(e,t){return!t||"object"!==QT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uj(e){return uj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uj(e)}JT.displayName="ReferenceArea",JT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},JT.renderRect=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Ak,GT({},t,{className:"recharts-reference-area-rect"}))};var lj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aj(e,t)}(a,w);var t,n,r,o=sj(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).layerReference=void 0,t.state={fontSize:"",letterSpacing:""},t}return t=a,n=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=ij(e,["viewBox"]),i=this.props,o=i.viewBox,a=ij(i,["viewBox"]);return!rm(n,o)||!rm(r,a)||!rm(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,i,o,a,s=this.props,c=s.x,u=s.y,l=s.width,f=s.height,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=Cf(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=u+ +!h*f)-y*v)-y*g,o=m;break;case"left":r=i=e.coordinate,o=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=i=e.coordinate,o=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(i=u+ +h*f)+y*v)+y*g,o=m}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){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 e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=nj(nj(nj({},$n(this.props)),$n(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=nj(nj({},u),{},{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f=+("left"===a&&!s||"right"===a&&s);u=nj(nj({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return i.createElement("line",ej({},u,{className:zn("recharts-cartesian-axis-line",ac(c,"className"))}))}},{key:"renderTicks",value:function(e,t,n){var r=this,o=this.props,s=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,f=o.unit,p=a.getTicks(nj(nj({},this.props),{},{ticks:e}),t,n),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=$n(this.props),y=$n(u),v=nj(nj({},g),{},{fill:"none"},$n(s)),m=p.map((function(e,t){var n=r.getTickLineCoord(e),o=n.line,m=n.tick,b=nj(nj(nj(nj({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:l});return i.createElement(er,ej({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},Gn(r.props,e,t)),s&&i.createElement("line",ej({},v,o,{className:zn("recharts-cartesian-axis-tick-line",ac(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(br(l)?l(e.value,t):e.value).concat(f||"")))}));return i.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,a=t.ticksGenerator,s=t.className;if(t.hide)return null;var c=this.props,u=c.ticks,l=ij(c,["ticks"]),f=u;return br(a)&&(f=u&&u.length>0?a(this.props):a(l)),r<=0||o<=0||!f||!f.length?null:i.createElement(er,{className:zn("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),MS.renderCallByParent(this.props))}}],r=[{key:"getTicks",value:function(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,c=e.orientation,u=e.interval,l=e.tickFormatter,f=e.unit;return i&&i.length&&r?Cf(u)||_g.isSsr?a.getNumberIntervalTicks(i,"number"==typeof u&&Cf(u)?u:0):"preserveStartEnd"===u?a.getTicksStart({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===u?a.getTicksStart({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n,r,i=e.ticks,o=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=e.unit,l=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(i||[]).slice(),m=u&&"width"===y?Nv(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?xf(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=i[b-1],_=br(o)?o(x.value,b-1):x.value,C=Nv(_,{fontSize:l,letterSpacing:f})[y]+m,O=w*(x.coordinate+w*C/2-r);v[b-1]=x=nj(nj({},x),{},{tickCoord:O>0?x.coordinate-O*w:x.coordinate}),w*(x.tickCoord-w*C/2-n)>=0&&w*(x.tickCoord+w*C/2-r)<=0&&(r=x.tickCoord-w*(C/2+c),v[b-1]=nj(nj({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],A=br(o)?o(E.value,k):E.value,T=Nv(A,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var j=w*(E.coordinate-w*T/2-n);v[k]=E=nj(nj({},E),{},{tickCoord:j<0?E.coordinate-j*w:E.coordinate})}else v[k]=E=nj(nj({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*T/2-n)>=0&&w*(E.tickCoord+w*T/2-r)<=0&&(n=E.tickCoord+w*(T/2+c),v[k]=nj(nj({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=o.x,p=o.y,d=o.width,h=o.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?Nv(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?xf(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:p,n="width"===g?f+d:p+h):(t="width"===g?f+d:p+h,n="width"===g?f:p);for(var w=m-1;w>=0;w--){var x=v[w],_=br(i)?i(x.value,m-w-1):x.value,C=Nv(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var O=b*(x.coordinate+b*C/2-n);v[w]=x=nj(nj({},x),{},{tickCoord:O>0?x.coordinate-O*b:x.coordinate})}else v[w]=x=nj(nj({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*C/2-t)>=0&&b*(x.tickCoord+b*C/2-n)<=0&&(n=x.tickCoord-b*(C/2+s),v[w]=nj(nj({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(nm,ej({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&oj(t.prototype,n),r&&oj(t,r),a}();function fj(e){return fj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fj(e)}function pj(){return pj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pj.apply(this,arguments)}function dj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hj(Object(n),!0).forEach((function(t){yj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bj(e,t){return bj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bj(e,t)}function wj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_j(e);if(t){var i=_j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xj(this,n)}}function xj(e,t){return!t||"object"!==fj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _j(e){return _j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_j(e)}lj.displayName="CartesianAxis",lj.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 Cj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bj(e,t)}(a,m);var t,n,r,o=wj(a);function a(){return vj(this,a),o.apply(this,arguments)}return t=a,n=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,s=n.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,n){var i=gj(gj({},t.props),{},{x1:r,y1:e,x2:r+o,y2:e,key:"line-".concat(n),index:n});return a.renderLineItem(s,i)}));return i.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,s=n.vertical;if(!e||!e.length)return null;var c=e.map((function(e,n){var i=gj(gj({},t.props),{},{x1:e,y1:r,x2:e,y2:r+o,key:"line-".concat(n),index:n});return a.renderLineItem(s,i)}));return i.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,s=n.width,c=n.height,u=e.slice().sort((function(e,t){return e-t}));o!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:o+s-e;if(l<=0)return null;var f=n%t.length;return i.createElement("rect",{key:"react-".concat(n),x:Math.round(e+o-o),y:a,width:l,height:c,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return i.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,a=n.y,s=n.width,c=n.height,u=e.slice().sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:a+c-e;if(l<=0)return null;var f=n%t.length;return i.createElement("rect",{key:"react-".concat(n),y:Math.round(e+a-a),x:o,height:l,width:s,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return i.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,a=t.width,s=t.height;return i.createElement("rect",{x:r,y:o,width:a,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!Cf(r)||r<=0||!Cf(o)||o<=0||!Cf(t)||t!==+t||!Cf(n)||n!==+n)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!br(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!br(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),i.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],r=[{key:"renderLineItem",value:function(e,t){var n;if(i.isValidElement(e))n=i.cloneElement(e,t);else if(br(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,s=t.y2,c=t.key,u=dj(t,["x1","y1","x2","y2","key"]);n=i.createElement("line",pj({},$n(u),{x1:r,y1:o,x2:a,y2:s,fill:"none",key:c}))}return n}}],n&&mj(t.prototype,n),r&&mj(t,r),a}();function Oj(){return Oj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oj.apply(this,arguments)}function Sj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kj(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ej(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Aj(e){var t=e.offset,n=e.layout,r=e.width,o=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=Ej(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=$n(l),p=a.map((function(e,a){var l=s(e,o),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=Sj(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===n){var w=c.scale,x=d+t,_=x+r,C=x-r,O=w(h-y),S=w(h+v);m.push({x1:S,y1:_,x2:S,y2:C}),m.push({x1:O,y1:x,x2:S,y2:x}),m.push({x1:O,y1:_,x2:O,y2:C})}else if("horizontal"===n){var k=u.scale,E=p+t,A=E-r,T=E+r,j=k(h-y),M=k(h+v);m.push({x1:A,y1:M,x2:T,y2:M}),m.push({x1:E,y1:j,x2:E,y2:M}),m.push({x1:A,y1:j,x2:T,y2:j})}return i.createElement(er,Oj({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,t){return i.createElement("line",Oj({},e,{key:"line-".concat(t)}))})))}));return i.createElement(er,{className:"recharts-errorBars"},p)}function Tj(e){return Tj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tj(e)}function jj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mj(){return Mj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mj.apply(this,arguments)}function Pj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pj(Object(n),!0).forEach((function(t){Ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rj(e){return function(e){if(Array.isArray(e))return Lj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Lj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lj(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fj(e,t){return Fj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fj(e,t)}function zj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hj(e);if(t){var i=Hj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Uj(this,n)}}function Uj(e,t){return!t||"object"!==Tj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hj(e){return Hj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hj(e)}Cj.displayName="CartesianGrid",Cj.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},Aj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Aj.displayName="ErrorBar";var Vj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fj(e,t)}(a,m);var t,n,r,o=zj(a);function a(){var e;Nj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).mainCurve=void 0,e.state={isAnimationFinished:!0,totalLength:0},e.getStrokeDasharray=function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),i=Math.floor(e/r),o=e%r,s=t-e,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>o){c=[].concat(Rj(n.slice(0,u)),[o-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(Rj(a.repeat(n,i)),Rj(c),f).map((function(e){return"".concat(e,"px")})).join(", ")},e.id=kf("recharts-line-"),e.pathRef=function(t){e.mainCurve=t},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()},e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,s=lm(a,Aj.displayName);if(!s)return null;function c(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:BO(e.payload,t)}}return s.map((function(e,a){return i.cloneElement(e,{key:"bar-".concat(a),data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:c})}))}},{key:"renderDots",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,o=n.points,s=n.dataKey,c=$n(this.props),u=$n(r,!0),l=o.map((function(e,t){var n=Dj(Dj(Dj({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(r,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return i.createElement(er,Mj({className:"recharts-line-dots",key:"dots"},f),l)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,a=o.type,s=o.layout,c=o.connectNulls;o.ref;var u=jj(o,["type","layout","connectNulls","ref"]),l=Dj(Dj(Dj({},$n(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:s,connectNulls:c});return i.createElement(vk,Mj({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.strokeDasharray,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.animateNewValues,d=r.width,h=r.height,g=this.state,y=g.prevPoints,v=g.totalLength;return i.createElement(Cd,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t;if(y){var s=y.length/o.length,c=o.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],o=Tf(r.x,e.x),a=Tf(r.y,e.y);return Dj(Dj({},e),{},{x:o(i),y:a(i)})}if(p){var c=Tf(2*d,e.x),u=Tf(h/2,e.y);return Dj(Dj({},e),{},{x:c(i),y:u(i)})}return Dj(Dj({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(c,e,t)}var u,l=Tf(0,v)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=n.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!mm(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=zn("recharts-line",o),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Wf(d)?this.id:d;return i.createElement(er,{className:y},v?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(m)},i.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(),(g||n)&&this.renderDots(v,m),(!p||h)&&VS.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(Rj(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(Rj(r),Rj(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(i.isValidElement(e))n=i.cloneElement(e,t);else if(br(e))n=e(t);else{var r=zn("recharts-line-dot",e?e.className:"");n=i.createElement(Xk,Mj({},t,{className:r}))}return n}}],n&&Bj(t.prototype,n),r&&Bj(t,r),a}();function Kj(e){return Kj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kj(e)}function Wj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $j(){return $j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$j.apply(this,arguments)}function qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qj(Object(n),!0).forEach((function(t){Zj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jj(e,t){return Jj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jj(e,t)}function Qj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tM(e);if(t){var i=tM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eM(this,n)}}function eM(e,t){return!t||"object"!==Kj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tM(e){return tM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tM(e)}Vj.displayName="Line",Vj.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!_g.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1},Vj.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout;return Dj({points:c.map((function(e,t){var c=BO(e,a);return"horizontal"===l?{x:tS({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:Wf(c)?null:r.scale(c),value:c,payload:e}:{x:Wf(c)?null:n.scale(c),y:tS({axis:r,ticks:o,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)};var nM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jj(e,t)}(a,m);var t,n,r,o=Qj(a);function a(){var e;Yj(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!0},e.id=kf("recharts-area-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"renderDots",value:function(e,t){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var o=this.props,s=o.dot,c=o.points,u=o.dataKey,l=$n(this.props),f=$n(s,!0),p=c.map((function(e,t){var n=Gj(Gj(Gj({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return i.createElement(er,$j({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,a=r[0].x,s=r[r.length-1].x,c=e*Math.abs(a-s),u=Sm(r.map((function(e){return e.y||0})));return Cf(n)&&"number"==typeof n?u=Math.max(n,u):n&&xo(n)&&n.length&&(u=Math.max(Sm(n.map((function(e){return e.y||0}))),u)),Cf(u)?i.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,a=r[0].y,s=r[r.length-1].y,c=e*Math.abs(a-s),u=Sm(r.map((function(e){return e.x||0})));return Cf(n)&&"number"==typeof n?u=Math.max(n,u):n&&xo(n)&&n.length&&(u=Math.max(Sm(n.map((function(e){return e.x||0}))),u)),Cf(u)?i.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,n,r){var o=this.props,a=o.layout,s=o.type,c=o.stroke,u=o.connectNulls,l=o.isRange;o.ref;var f=Wj(o,["layout","type","stroke","connectNulls","isRange","ref"]);return i.createElement(er,{clipPath:n?"url(#clipPath-".concat(r,")"):null},i.createElement(vk,$j({},$n(f,!0),{points:e,connectNulls:u,type:s,baseLine:t,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&i.createElement(vk,$j({},$n(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&i.createElement(vk,$j({},$n(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.baseLine,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return i.createElement(Cd,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var s=r.t;if(d){var c,u=d.length/o.length,l=o.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],i=Tf(r.x,e.x),o=Tf(r.y,e.y);return Gj(Gj({},e),{},{x:i(s),y:o(s)})}return e}));return c=Cf(a)&&"number"==typeof a?Tf(h,a)(s):Wf(a)||yf(a)?Tf(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],i=Tf(r.x,e.x),o=Tf(r.y,e.y);return Gj(Gj({},e),{},{x:i(s),y:o(s)})}return e})),n.renderAreaStatically(l,c,e,t)}return i.createElement(er,null,i.createElement("defs",null,i.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(s))),i.createElement(er,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(o,a,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return o&&r&&r.length&&(!s&&u>0||!mm(s,r)||!mm(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=zn("recharts-area",o),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Wf(d)?this.id:d;return i.createElement(er,{className:y},v?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(m)},i.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(n||g)&&this.renderDots(v,m),(!p||h)&&VS.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],n&&Xj(t.prototype,n),r&&Xj(t,r),a}();function rM(e){return rM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rM(e)}function iM(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oM(){return oM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oM.apply(this,arguments)}function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(n),!0).forEach((function(t){cM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fM(e,t){return fM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fM(e,t)}function pM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hM(e);if(t){var i=hM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dM(this,n)}}function dM(e,t){return!t||"object"!==rM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hM(e){return hM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hM(e)}nM.displayName="Area",nM.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nM.getBaseValue=function(e,t,n,r){var i=e.layout,o=t.props.baseValue;if(Cf(o)&&"number"==typeof o)return o;var a="horizontal"===i?r:n,s=a.scale.domain();if("number"===a.type){var c=Math.max(s[0],s[1]),u=Math.min(s[0],s[1]);return"dataMin"===o?u:"dataMax"===o||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===o?s[0]:"dataMax"===o?s[1]:s[0]},nM.getComposedData=function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=nM.getBaseValue(n,r,i,o),v=!1,m=p.map((function(e,t){var n,r=BO(e,u);g?n=l[f+t]:xo(n=r)?v=!0:n=[y,n];var p=Wf(n[1])||g&&Wf(r);return"horizontal"===h?{x:tS({axis:i,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:o.scale(n[1]),value:n,payload:e}:{x:p?null:i.scale(n[1]),y:tS({axis:o,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Wf(ac(e,"value[0]"))||Wf(ac(e,"y"))?null:o.scale(ac(e,"value[0]"))}:{x:Wf(ac(e,"value[0]"))?null:i.scale(ac(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(y):i.scale(y),Gj({points:m,baseLine:t,layout:h,isRange:v},d)},nM.renderDotItem=function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Xk,$j({},t,{className:"recharts-area-dot"}))};var gM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fM(e,t)}(a,m);var t,n,r,o=pM(a);function a(){var e;uM(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.id=kf("recharts-bar-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()},e}return t=a,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=$n(this.props);return e&&e.map((function(e,o){var s=sM(sM(sM({},r),e),{},{index:o});return i.createElement(er,oM({className:"recharts-bar-rectangle"},Gn(t.props,e,o),{key:"rectangle-".concat(o)}),a.renderRectangle(n,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,a=t.animationBegin,s=t.animationDuration,c=t.animationEasing,u=t.animationId,l=this.state.prevData;return i.createElement(Cd,{begin:a,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,a=n.map((function(e,t){var n=l&&l[t];if(n){var i=Tf(n.x,e.x),a=Tf(n.y,e.y),s=Tf(n.width,e.width),c=Tf(n.height,e.height);return sM(sM({},e),{},{x:i(o),y:a(o),width:s(o),height:c(o)})}if("horizontal"===r){var u=Tf(0,e.height)(o);return sM(sM({},e),{},{y:e.y+e.height-u,height:u})}var f=Tf(0,e.width)(o);return sM(sM({},e),{},{width:f})}));return i.createElement(er,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=$n(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=iM(t,["value","background"]);if(!i)return null;var s=sM(sM(sM(sM(sM({},o),{},{fill:"#eee"},i),n),Gn(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.data,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,s=lm(a,Aj.displayName);if(!s)return null;var c="vertical"===o?t[0].height/2:t[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:BO(e,t)}}return s.map((function(e,a){return i.cloneElement(e,{key:"error-bar-".concat(a),data:t,xAxis:n,yAxis:r,layout:o,offset:c,dataPointFormatter:u})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,s=e.left,c=e.top,u=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=zn("recharts-bar",r),y=o&&o.allowDataOverflow||a&&a.allowDataOverflow,v=Wf(d)?this.id:d;return i.createElement(er,{className:g},y?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(v)},i.createElement("rect",{x:s,y:c,width:u,height:l}))):null,i.createElement(er,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&VS.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):i.createElement(Ak,t)}}],n&&lM(t.prototype,n),r&&lM(t,r),a}();gM.displayName="Bar",gM.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},gM.getComposedData=function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=YO(r,n);if(!d)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:o,w=u?b.scale.domain():null,x=rS({numericAxis:b}),_=lm(v,Zy.displayName),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=XO(u[l+t],w):(r=BO(e,y),xo(r)||(r=[x,r])),"horizontal"===h){if(f=nS({axis:o,ticks:s,bandSize:i,offset:d.offset,entry:e,index:t}),p=a.scale(r[1]),g=d.size,v=a.scale(r[0])-a.scale(r[1]),b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var C=xf(v||m)*(Math.abs(m)-Math.abs(v));p-=C,v+=C}}else f=o.scale(r[0]),p=nS({axis:a,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),g=o.scale(r[1])-o.scale(r[0]),v=d.size,b={x:o.x,y:p,width:o.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)&&(g+=xf(g||m)*(Math.abs(m)-Math.abs(g)));return sM(sM(sM({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[lS(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return sM({data:C,layout:h},p)};var yM=function(){return null};function vM(e){return vM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vM(e)}function mM(){return mM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mM.apply(this,arguments)}function bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bM(Object(n),!0).forEach((function(t){xM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function OM(e,t){return OM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},OM(e,t)}function SM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=EM(e);if(t){var i=EM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kM(this,n)}}function kM(e,t){return!t||"object"!==vM(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function EM(e){return EM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},EM(e)}yM.displayName="ZAxis",yM.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var AM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&OM(e,t)}(a,m);var t,n,r,o=SM(a);function a(){var e;_M(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0})},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1})},e.id=kf("recharts-scatter-"),e}return t=a,n=[{key:"renderSymbolsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,s=n.activeIndex,c=$n(this.props);return e.map((function(e,n){var u=wM(wM({key:"symbol-".concat(n)},c),e);return i.createElement(er,mM({className:"recharts-scatter-symbol"},Gn(t.props,e,n),{key:"symbol-".concat(n)}),a.renderSymbolItem(s===n?o:r,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.cx,e.cx),o=Tf(n.cy,e.cy),a=Tf(n.size,e.size);return wM(wM({},e),{},{cx:i(r),cy:o(r),size:a(r)})}var s=Tf(0,e.size);return wM(wM({},e),{},{size:s(r)})}));return i.createElement(er,null,e.renderSymbolsStatically(o))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.children,a=lm(o,Aj.displayName);if(!a)return null;function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:BO(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:BO(e,t)}}return a.map((function(e,o){var a=e.props.direction;return i.cloneElement(e,{key:o,data:t,xAxis:n,yAxis:r,layout:"x"===a?"vertical":"horizontal",dataPointFormatter:"x"===a?c:s})}))}},{key:"renderLine",value:function(){var e,t,n=this.props,r=n.points,o=n.line,a=n.lineType,s=n.lineJointType,c=$n(this.props),u=$n(o);if("joint"===a)e=r.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,o=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,i+=c*u,o+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*o!=n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(r),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=wM(wM(wM({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return t=i.isValidElement(o)?i.cloneElement(o,y):br(o)?o(y):i.createElement(vk,mM({},y,{type:s})),i.createElement(er,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,o=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=zn("recharts-scatter",o),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Wf(p)?this.id:p;return i.createElement(er,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(v)},i.createElement("rect",{x:c,y:u,width:l,height:f}))):null,r&&this.renderLine(),this.renderErrorBar(),i.createElement(er,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&VS.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(e,t){var n;return i.isValidElement(e)?n=i.cloneElement(e,t):br(e)?n=e(t):"string"==typeof e&&(n=i.createElement(Ql,mM({},t,{type:e}))),n}}],n&&CM(t.prototype,n),r&&CM(t,r),a}();AM.displayName="Scatter",AM.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!_g.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"},AM.getComposedData=function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,l=lm(i.props.children,Zy.displayName),f=Wf(t.dataKey)?i.props.dataKey:t.dataKey,p=Wf(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:yM.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=o.map((function(e,o){var c=BO(e,f),h=BO(e,p),m=!Wf(d)&&BO(e,d)||"-",b=[{name:Wf(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Wf(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=tS({axis:t,ticks:a,bandSize:y,entry:e,index:o,dataKey:f}),x=tS({axis:n,ticks:s,bandSize:v,entry:e,index:o,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return wM(wM({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[o]&&l[o].props)}));return wM({points:m},c)};var TM=function(){return null};TM.displayName="XAxis",TM.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};var jM=function(){return null};jM.displayName="YAxis",jM.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};var MM=zc,PM=Oa,DM=Aa;var IM=function(e){return function(t,n,r){var i=Object(t);if(!PM(t)){var o=MM(n);t=DM(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}},RM=BA;var LM=Uc,NM=zc,BM=function(e){var t=RM(e),n=t%1;return t==t?n?t-n:t:0},FM=Math.max;var zM=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:BM(n);return i<0&&(i=FM(r+i,0)),LM(e,NM(t),i)},UM=IM(zM),HM=ty,VM=Un;var KM=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return VM(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),HM(e,t,{leading:r,maxWait:t,trailing:i})},WM=yr,$M=Io;var qM=function(e){return!0===e||!1===e||$M(e)&&"[object Boolean]"==WM(e)},GM=function(e,t,n,r,i){var o=lm(e,HT.displayName),a=lm(e,qT.displayName),s=o.concat(a),c=lm(e,JT.displayName),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&dT(t.props,"extendDomain")&&Cf(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var p="".concat(l,"1"),d="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&dT(t.props,"extendDomain")&&Cf(t.props[p])&&Cf(t.props[d])){var r=t.props[p],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return Cf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},ZM={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||i&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(ZM);var YM=new(0,ZM.exports);YM.setMaxListeners&&YM.setMaxListeners(10);var XM="recharts.syncMouseEvents";function JM(e){return JM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JM(e)}function QM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||uP(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eP(){return eP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eP.apply(this,arguments)}function tP(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rP(e,t){return rP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rP(e,t)}function iP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sP(e);if(t){var i=sP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return oP(this,n)}}function oP(e,t){return!t||"object"!==JM(t)&&"function"!=typeof t?aP(e):t}function aP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sP(e){return sP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sP(e)}function cP(e){return function(e){if(Array.isArray(e))return lP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||uP(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uP(e,t){if(e){if("string"==typeof e)return lP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lP(e,t):void 0}}function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fP(Object(n),!0).forEach((function(t){dP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hP={xAxis:["bottom","top"],yAxis:["left","right"]},gP={x:0,y:0},yP=Number.isFinite?Number.isFinite:isFinite,vP="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,mP="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,bP=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(cP(e),cP(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Cf(i)&&Cf(o)?e.slice(i,o+1):[]},wP=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=bP(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,s=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=jf(void 0===s?a:s,o.dataKey,r):i=s&&s[n]||a[n];return i?[].concat(cP(e),[lS(t,i)]):e}),[])},xP=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a>1){if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,c=0;c<a;c++){var u=c>0?r[c-1].coordinate:r[a-1].coordinate,l=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,p=void 0;if(xf(l-u)!==xf(f-l)){var d=[];if(xf(f-l)===xf(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){o=r[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/2){o=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}}else o=0;return o}(o,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=wP(e,t,u,l),p=function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=r.radius;return pP(pP(pP({},r),mS(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,c=r.angle;return pP(pP(pP({},r),mS(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return gP}(n,a,u,i);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},_P=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,p=KO(u,i),d=n.reduce((function(t,n){var d=n.props,h=d.type,g=d.dataKey,y=d.allowDataOverflow,v=d.allowDuplicatedCategory,m=d.scale,b=d.ticks,w=n.props[o],x=bP(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===w})),dataStartIndex:s,dataEndIndex:c}),_=x.length;if(!t[w]){var C,O,S;if(g){if(C=FO(x,g,h),"category"===h&&p){var k=function(e){if(!xo(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(C);v&&k?(O=C,C=HA(0,_)):v||(C=uS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(cP(e),[t])}),[]))}else if("category"===h)C=v?C.filter((function(e){return""!==e&&!Wf(e)})):uS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Wf(t)?e:[].concat(cP(e),[t])}),[]);else if("number"===h){var E=function(e,t,n,r,i){var o=t.map((function(t){return HO(e,t,n,i,r)})).filter((function(e){return!Wf(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(x,r.filter((function(e){return e.props[o]===w&&!e.props.hide})),g,i,u);E&&(C=E)}!p||"number"!==h&&"auto"===m||(S=FO(x,g,"category"))}else C=p?HA(0,_):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:iS(a[w].stackGroups,s,c):VO(x,r.filter((function(e){return e.props[o]===w&&!e.props.hide})),h,u,!0);if("number"===h)C=GM(l,C,w,i,b),n.props.domain&&(C=sS(n.props.domain,C,y));else if("category"===h&&n.props.domain){var A=n.props.domain;C.every((function(e){return A.indexOf(e)>=0}))&&(C=A)}return pP(pP({},t),{},dP({},w,pP(pP({},n.props),{},{axisType:i,domain:C,categoricalDomain:S,duplicateDomain:O,originalDomain:n.props.domain,isCategorical:p,layout:u})))}return t}),{});return d},CP=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=lm(u,i),p={};return f&&f.length?p=_P(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=bP(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=KO(u,i),h=-1;return n.reduce((function(e,t){var g,y=t.props[o];return e[y]?e:(h++,d?g=HA(0,p):a&&a[y]&&a[y].hasStack?(g=iS(a[y].stackGroups,s,c),g=GM(l,g,y,i)):(g=sS(r.defaultProps.domain,VO(f,n.filter((function(e){return e.props[o]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=GM(l,g,y,i)),pP(pP({},e),{},dP({},y,pP(pP({axisType:i},r.defaultProps),{},{hide:!0,orientation:ac(hP,"".concat(i,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:d,layout:u}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},OP=function(e){var t=e.children,n=e.defaultShowTooltip,r=fm(t,oT.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Wf(n)&&n}},SP=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},kP=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,s=n.width,c=n.height,u=n.children,l=n.margin||{},f=fm(u,oT.displayName),p=fm(u,Kf.displayName),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:pP(pP({},e),{},dP({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:pP(pP({},e),{},dP({},r,ac(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=pP(pP({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||oT.defaultProps.height),p&&t&&(g=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),c=UO({children:i,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"center"===p)&&Cf(e[f])&&(u=LO(LO({},e),{},NO({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Cf(e[p])&&(u=LO(LO({},e),{},NO({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),pP(pP({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},EP=function(e){var t,n,r=e.chartName,o=e.GraphicalChild,s=e.defaultTooltipEventType,u=void 0===s?"axis":s,l=e.validateTooltipEventTypes,f=void 0===l?["axis"]:l,p=e.axisComponents,d=e.legendContent,h=e.formatAxisMap,g=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,l=e.barGap,f=e.barCategoryGap,d=e.maxBarSize,h=SP(u),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=am(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var c=r[o[a]].stackGroups,u=Object.keys(c),l=0,f=u.length;l<f;l++){var p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return am(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];i[v]||(i[v]=[]),i[v].push({item:g[0],stackList:g.slice(1),barSize:Wf(y)?t:y})}}return i}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=bP(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],C=n.props["".concat(y,"Id")],O=p.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=o&&o[a];return pP(pP({},e),{},(dP(i={},r.axisType,s),dP(i,"".concat(r.axisType,"Ticks"),$O(s)),i))}),{}),S=O[y],k=O["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Of(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(n,r[_].stackGroups),A=am(n.type).indexOf("Bar")>=0,T=cS(S,k),j=[];if(A){var M,P,D=Wf(x)?d:x,I=null!==(M=null!==(P=cS(S,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;j=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var c,u=Ef(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,f=r/s,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=o.reduce((function(e,t){var n=[].concat(DO(e),[{item:t.item,position:{offset:d.offset+d.size+u,size:l?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Ef(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=o.reduce((function(e,t,n){var r=[].concat(DO(e),[{item:t.item,position:{offset:h+(g+u)*n+(g-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return c}({barGap:l,barCategoryGap:f,bandSize:I!==T?I:T,sizeList:m[C],maxBarSize:D}),I!==T&&(j=j.map((function(e){return pP(pP({},e),{},{position:pP(pP({},e.position),{},{offset:e.position.offset-I/2})})})))}var R,L,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:pP(pP({},B(pP(pP({},O),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:T,barPosition:j,offset:i,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(R={key:n.key||"item-".concat(c)},dP(R,g,O[g]),dP(R,y,O[y]),dP(R,"animationId",o),R)),childIndex:(L=n,N=e.children,um(N).indexOf(L)),item:n})})),b},m=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!pm({props:n}))return null;var c=n.children,u=n.layout,l=n.stackOffset,f=n.data,d=n.reverseStackOrder,g=SP(u),v=g.numericAxisName,m=g.cateAxisName,b=lm(c,o),w=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Of(o)){var c=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[o]=c}else s.stackGroups[kf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return LO(LO({},e),{},NO({},a,s))}),{});return Object.keys(a).reduce((function(t,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,o){var a=s.stackGroups[o];return LO(LO({},t),{},NO({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:QO(e,a.items,i)}))}),{})),LO(LO({},t),{},NO({},o,s))}),{})}(f,b,"".concat(v,"Id"),"".concat(m,"Id"),l,d),x=p.reduce((function(e,t){var r="".concat(t.axisType,"Map");return pP(pP({},e),{},dP({},r,CP(n,pP(pP({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=kP(pP(pP({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=h(n,x[e],_,e.replace("Map",""),r)}));var C,O,S=x["".concat(m,"Map")],k=(C=Af(S),{tooltipTicks:O=$O(C,!1,!0),orderedTooltipTicks:sg(O,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:cS(C,O)}),E=y(n,pP(pP({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return pP(pP({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return n=t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rP(e,t)}(l,w);var t,n,o,s=iP(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!Wf(t.deferId)&&mP&&mP(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(pP({legendBBox:e},m({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},pP(pP({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=vP&&vP(t.applySyncEvent.bind(aP(t),r)))},t.handleBrushChange=function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return pP({dataStartIndex:n,dataEndIndex:r},m({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},t.handleMouseEnter=function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=pP(pP({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)}},t.triggeredAfterMouseMove=function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?pP(pP({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&br(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),br(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var n=function(e){var t=e&&e.type;return t&&om[t]?om[t]:null}(e),r=ac(t.props,"".concat(n));n&&br(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=pP(pP({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),br(n)&&n(i,e)}},t.handleMouseDown=function(e){var n=t.props.onMouseDown;br(n)&&n(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var n=t.props.onMouseUp;br(n)&&n(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return WO(lj.getTicks(pP(pP(pP({},lj.defaultProps),t),{},{ticks:$O(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return WO(lj.getTicks(pP(pP(pP({},lj.defaultProps),t),{},{ticks:$O(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},t.axesTicksGenerator=function(e){return $O(e,!0)},t.renderCursor=function(e){var n=t.state,i=n.isTooltipActive,o=n.activeCoordinate,s=n.activePayload,u=n.offset,l=n.activeTooltipIndex,f=t.getTooltipEventType();if(!e||!e.props.cursor||!i||!o||"ScatterChart"!==r&&"axis"!==f)return null;var p,d=t.props.layout,h=vk;if("ScatterChart"===r)p=o,h=aE;else if("BarChart"===r)p=t.getCursorRectangle(),h=Ak;else if("radial"===d){var g=t.getCursorPoints(),y=g.cx,m=g.cy,b=g.radius;p={cx:y,cy:m,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:b,outerRadius:b},h=tk}else p={points:t.getCursorPoints()},h=vk;var w=e.key||"_recharts-cursor",x=pP(pP(pP(pP({stroke:"#ccc",pointerEvents:"none"},u),p),$n(e.props.cursor)),{},{payload:s,payloadIndex:l,key:w,className:"recharts-tooltip-cursor"});return v(e.props.cursor)?c(e.props.cursor,x):a(h,x)},t.renderPolarAxis=function(e,n,r){var i=ac(e,"type.axisType"),o=ac(t.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return c(e,pP(pP({},o),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:$O(o,!0)}))},t.renderXAxis=function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)},t.renderYAxis=function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)},t.renderGrid=function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.props,s=a.width,u=a.height,l=Af(r),f=UM(i,(function(e){return xT(e.domain,yP)}))||Af(i),p=e.props||{};return c(e,{key:e.key||"grid",x:Cf(p.x)?p.x:o.left,y:Cf(p.y)?p.y:o.top,width:Cf(p.width)?p.width:o.width,height:Cf(p.height)?p.height:o.height,xAxis:l,yAxis:f,offset:o,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=t.state,s=a.radiusAxisMap,u=a.angleAxisMap,l=Af(s),f=Af(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return c(e,{polarAngles:xo(i)?i:$O(f,!0).map((function(e){return e.coordinate})),polarRadius:xo(o)?o:$O(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:r})},t.renderLegend=function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,i=n.width,o=n.height,a=t.props.margin||{},s=i-(a.left||0)-(a.right||0),u=UO({children:r,formattedGraphicalItems:e,legendWidth:s,legendContent:d});if(!u)return null;var l=u.item,f=tP(u,["item"]);return c(l,pP(pP({},f),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,n=fm(e,Rg.displayName);if(!n)return null;var r=t.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,u=r.offset;return c(n,{viewBox:pP(pP({},u),{},{x:u.left,y:u.top}),active:i,label:s,payload:i?a:[],coordinate:o})},t.renderBrush=function(e){var n=t.props,r=n.margin,i=n.data,o=t.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return c(e,{key:e.key||"_recharts-brush",onChange:qO(t.handleBrushChange,null,e.props.onChange),data:i,x:Cf(e.props.x)?e.props.x:a.left,y:Cf(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Cf(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(l)})},t.renderReferenceElement=function(e,n,r){if(!e)return null;var i=aP(t).clipPathId,o=t.state,a=o.xAxisMap,s=o.yAxisMap,u=o.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return c(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[f],yAxis:s[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},t.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],s=t.props.key,c=t.item.props,u=c.activeDot,f=pP(pP({index:i,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:zO(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(i)},$n(u)),qn(u));return a.push(l.renderActiveDot(u,f)),r?a.push(l.renderActiveDot(u,pP(pP({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(i)}))):o&&a.push(null),a},t.renderGraphicChild=function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var o=t.getTooltipEventType(),a=t.state,s=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,f=a.activeLabel,p=t.props.children,d=fm(p,Rg.displayName),h=i.props,g=h.points,y=h.isRange,v=h.baseLine,m=i.item.props,b=m.activeDot,w=!m.hide&&s&&d&&b&&l>=0,x={};"axis"!==o&&d&&"click"===d.props.trigger?x={onClick:qO(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:qO(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:qO(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var _=c(e,pP(pP({},i.props),x));if(w){var C,O;if(u.dataKey&&!u.allowDuplicatedCategory){var S="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());C=jf(g,S,f),O=y&&v&&jf(v,S,f)}else C=g[l],O=y&&v&&v[l];if(!Wf(C))return[_].concat(cP(t.renderActivePoints({item:i,activePoint:C,basePoint:O,childIndex:l,isRange:y})))}return y?[_,null,null]:[_,null]},t.renderCustomized=function(e,n,r){return c(e,pP(pP({key:"recharts-customized-".concat(r)},t.props),t.state))},t.uniqueChartId=Wf(e.id)?kf("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=KM(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=l,n=[{key:"componentDidMount",value:function(){Wf(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Wf(e.syncId)&&!Wf(this.props.syncId)&&this.addListener(),!Wf(e.syncId)&&Wf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Wf(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=fm(this.props.children,Rg.displayName);if(e&&qM(e.props.shared)){var t=e.props.shared?"axis":"item";return f.indexOf(t)>=0?t:u}return u}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,i=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),o=this.inRange(i.chartX,i.chartY);if(!o)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=Af(s).scale,l=Af(c).scale,f=u&&u.invert?u.invert(i.chartX):null,p=l&&l.invert?l.invert(i.chartY):null;return pP(pP({},i),{},{xValue:f,yValue:p})}var d=xP(this.state,this.props.data,this.props.layout,o);return d?pP(pP({},i),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,s=o.offset;if("horizontal"===i)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===i)r=t=a.y,e=s.left,n=s.left+s.width;else if(!Wf(a.cx)||!Wf(a.cy)){if("centric"!==i){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[mS(c,u,l,f),mS(c,u,l,p)],cx:c,cy:u,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=mS(d,h,g,v),b=mS(d,h,y,v);e=m.x,t=m.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=Af(o);return CS({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=fm(e,Rg.displayName),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),pP(pP({},qn(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){YM.on(XM,this.handleReceiveSyncEvent),YM.setMaxListeners&&YM._maxListeners&&YM.setMaxListeners(YM._maxListeners+1)}},{key:"removeListener",value:function(){YM.removeListener(XM,this.handleReceiveSyncEvent),YM.setMaxListeners&&YM._maxListeners&&YM.setMaxListeners(YM._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Wf(t)||YM.emit(XM,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Wf(e.dataStartIndex)&&Wf(e.dataEndIndex))if(Wf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){u=d;break}}var h=pP(pP({},f),{},{x:f.left,y:f.top}),g=Math.min(s,h.x+h.width),y=Math.min(c,h.y+h.height),v=p[u]&&p[u].value,b=wP(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?y:p[u].coordinate}:gP;this.setState(pP(pP({},e),{},{activeLabel:v,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(pP({dataStartIndex:o,dataEndIndex:a},m({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===am(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var o=this.props,a=o.width,s=o.height;return i.createElement(lj,eP({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,a=t.width;return i.createElement("defs",null,i.createElement("clipPath",{id:e},i.createElement("rect",{x:n,y:r,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QM(t,2),r=n[0],i=n[1];return pP(pP({},e),{},dP({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=QM(t,2),r=n[0],i=n[1];return pP(pP({},e),{},dP({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var i=t[n],o=i.props,a=i.item,s=am(a.type);if("Bar"===s){var c=(o.data||[]).find((function(t){return Ek(e,t)}));if(c)return{graphicalItem:i,payload:c}}else if("RadialBar"===s){var u=(o.data||[]).find((function(t){return CS(e,t)}));if(u)return{graphicalItem:i,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!pm(this))return null;var t=this.props,n=t.children,r=t.className,o=t.width,a=t.height,s=t.style,c=t.compact,u=t.title,l=t.desc,f=tP(t,["children","className","width","height","style","compact","title","desc"]),p=$n(f),d={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},Customized:{handler:this.renderCustomized}};if(c)return i.createElement(Xn,eP({},p,{width:o,height:a,title:u,desc:l}),this.renderClipPath(),ym(n,d));var h=this.parseEventsOfWrapper();return i.createElement("div",eP({className:zn("recharts-wrapper",r),style:pP({position:"relative",cursor:"default",width:o,height:a},s)},h,{ref:function(t){e.container=t}}),i.createElement(Xn,eP({},p,{width:o,height:a,title:u,desc:l}),this.renderClipPath(),ym(n,d)),this.renderLegend(),this.renderTooltip())}}],n&&nP(t.prototype,n),o&&nP(t,o),l}(),t.displayName=r,t.defaultProps=pP({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g),t.getDerivedStateFromProps=function(e,t){var n=e.data,r=e.children,i=e.width,o=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(Wf(t.updateId)){var u=OP(e);return pP(pP(pP({},u),{},{updateId:0},m(pP(pP({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!rm(c,t.prevMargin)){var l=OP(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=pP(pP({},xP(t,n,a)),{},{updateId:t.updateId+1}),d=pP(pP(pP({},l),f),p);return pP(pP(pP({},d),m(pP({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!hm(r,t.prevChildren)){var h=!Wf(n)?t.updateId:t.updateId+1;return pP(pP({updateId:h},m(pP(pP({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},t.renderActiveDot=function(e,t){var n;return n=v(e)?c(e,t):br(e)?e(t):i.createElement(Xk,t),i.createElement(er,{className:"recharts-active-dot",key:t.key},n)},n};EP({chartName:"LineChart",GraphicalChild:Vj,axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT});var AP=EP({chartName:"BarChart",GraphicalChild:gM,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT}),TP=EP({chartName:"PieChart",GraphicalChild:sA,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var jP=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},MP=CT,PP=xr,DP=Object.prototype.hasOwnProperty;var IP=function(e,t,n){var r=e[t];DP.call(e,t)&&PP(r,n)&&(void 0!==n||t in e)||MP(e,t,n)},RP=IP,LP=CT;var NP=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?LP(n,s,c):RP(n,s,c)}return n},BP=NP,FP=Aa;var zP=function(e,t){return e&&BP(t,FP(t),e)};var UP=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},HP=Un,VP=ga,KP=UP,WP=Object.prototype.hasOwnProperty;var $P=function(e){if(!HP(e))return KP(e);var t=VP(e),n=[];for(var r in e)("constructor"!=r||!t&&WP.call(e,r))&&n.push(r);return n},qP=da,GP=$P,ZP=Oa;var YP=function(e){return ZP(e)?qP(e,!0):GP(e)},XP=NP,JP=YP;var QP=function(e,t){return e&&XP(t,JP(t),e)},eD={exports:{}};!function(e,t){var n=ir,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(eD,eD.exports);var tD=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},nD=NP,rD=Po;var iD=function(e,t){return nD(e,rD(e),t)},oD=wo,aD=UE,sD=Po,cD=ko,uD=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)oD(t,sD(e)),e=aD(e);return t}:cD,lD=NP,fD=uD;var pD=function(e,t){return lD(e,fD(e),t)},dD=Oo,hD=uD,gD=YP;var yD=function(e){return dD(e,gD,hD)},vD=Object.prototype.hasOwnProperty;var mD=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&vD.call(e,"index")&&(n.index=e.index,n.input=e.input),n},bD=co;var wD=function(e){var t=new e.constructor(e.byteLength);return new bD(t).set(new bD(e)),t},xD=wD;var _D=function(e,t){var n=t?xD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},CD=/\w*$/;var OD=function(e){var t=new e.constructor(e.source,CD.exec(e));return t.lastIndex=e.lastIndex,t},SD=or?or.prototype:void 0,kD=SD?SD.valueOf:void 0;var ED=wD;var AD=wD,TD=_D,jD=OD,MD=function(e){return kD?Object(kD.call(e)):{}},PD=function(e,t){var n=t?ED(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var DD=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return AD(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return TD(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return PD(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return jD(e);case"[object Symbol]":return MD(e)}},ID=Un,RD=Object.create,LD=function(){function e(){}return function(t){if(!ID(t))return{};if(RD)return RD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ND=LD,BD=UE,FD=ga;var zD=function(e){return"function"!=typeof e.constructor||FD(e)?{}:ND(BD(e))},UD=Ja,HD=Io;var VD=function(e){return HD(e)&&"[object Map]"==UD(e)},KD=Qo,WD=ea.exports,$D=WD&&WD.isMap,qD=$D?KD($D):VD,GD=Ja,ZD=Io;var YD=function(e){return ZD(e)&&"[object Set]"==GD(e)},XD=Qo,JD=ea.exports,QD=JD&&JD.isSet,eI=QD?XD(QD):YD,tI=Yi,nI=jP,rI=IP,iI=zP,oI=QP,aI=eD.exports,sI=tD,cI=iD,uI=pD,lI=Pa,fI=yD,pI=Ja,dI=mD,hI=DD,gI=zD,yI=xo,vI=Vo.exports,mI=qD,bI=Un,wI=eI,xI=Aa,_I=YP,CI={};CI["[object Arguments]"]=CI["[object Array]"]=CI["[object ArrayBuffer]"]=CI["[object DataView]"]=CI["[object Boolean]"]=CI["[object Date]"]=CI["[object Float32Array]"]=CI["[object Float64Array]"]=CI["[object Int8Array]"]=CI["[object Int16Array]"]=CI["[object Int32Array]"]=CI["[object Map]"]=CI["[object Number]"]=CI["[object Object]"]=CI["[object RegExp]"]=CI["[object Set]"]=CI["[object String]"]=CI["[object Symbol]"]=CI["[object Uint8Array]"]=CI["[object Uint8ClampedArray]"]=CI["[object Uint16Array]"]=CI["[object Uint32Array]"]=!0,CI["[object Error]"]=CI["[object Function]"]=CI["[object WeakMap]"]=!1;var OI=function e(t,n,r,i,o,a){var s,c=1&n,u=2&n,l=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!bI(t))return t;var f=yI(t);if(f){if(s=dI(t),!c)return sI(t,s)}else{var p=pI(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(vI(t))return aI(t,c);if("[object Object]"==p||"[object Arguments]"==p||d&&!o){if(s=u||d?{}:gI(t),!c)return u?uI(t,oI(s,t)):cI(t,iI(s,t))}else{if(!CI[p])return o?t:{};s=hI(t,p,c)}}a||(a=new tI);var h=a.get(t);if(h)return h;a.set(t,s),wI(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):mI(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=f?void 0:(l?u?fI:lI:u?_I:xI)(t);return nI(g||t,(function(i,o){g&&(i=t[o=i]),rI(s,o,e(i,n,r,o,t,a))})),s},SI=ic,kI=uu;var EI=function(e,t){return t.length<2?e:SI(e,kI(t,0,-1))},AI=Qs,TI=IS,jI=EI,MI=tc;var PI=function(e,t){return t=AI(t,e),null==(e=jI(e,t))||delete e[MI(TI(t))]},DI=YE;var II=dh;var RI=function(e){return(null==e?0:e.length)?II(e,1):[]},LI=RI,NI=zh,BI=Zh;var FI=zs,zI=OI,UI=PI,HI=Qs,VI=NP,KI=function(e){return DI(e)?void 0:e},WI=yD,$I=function(e){return BI(NI(e,void 0,LI),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=FI(t,(function(t){return t=HI(t,e),r||(r=t.length>1),t})),VI(e,WI(e),n),r&&(n=zI(n,7,KI));for(var i=t.length;i--;)UI(n,t[i]);return n})),qI=$I;function GI(e){return GI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GI(e)}function ZI(){return ZI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZI.apply(this,arguments)}function YI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function JI(e,t){return JI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},JI(e,t)}function QI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tR(e);if(t){var i=tR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eR(this,n)}}function eR(e,t){return!t||"object"!==GI(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tR(e){return tR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tR(e)}Math.sqrt(5),_g.isSsr,_g.isSsr,EP({chartName:"RadarChart",GraphicalChild:_A,axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EP({chartName:"ScatterChart",GraphicalChild:AM,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM},{axisType:"zAxis",AxisComp:yM}],formatAxisMap:PT}),EP({chartName:"AreaChart",GraphicalChild:nM,axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM}],formatAxisMap:PT}),EP({chartName:"RadialBarChart",GraphicalChild:IA,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:zE},{axisType:"radiusAxis",AxisComp:EE}],formatAxisMap:wS,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),EP({chartName:"ComposedChart",GraphicalChild:[Vj,nM,gM,AM],axisComponents:[{axisType:"xAxis",AxisComp:TM},{axisType:"yAxis",AxisComp:jM},{axisType:"zAxis",AxisComp:yM}],formatAxisMap:PT});var nR=function(e,t,n,r,i){var o,a=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},rR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&JI(e,t)}(a,m);var t,n,r,o=QI(a);function a(){var e;YI(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={totalLength:-1},e.node=void 0,e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,o=t.upperWidth,a=t.lowerWidth,s=t.height,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||a!==+a||s!==+s||0===o&&0===a||0===s)return null;var g=zn("recharts-trapezoid",c);return h?i.createElement(Cd,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:n,y:r},to:{upperWidth:o,lowerWidth:a,height:s,x:n,y:r},duration:p,animationEasing:f,isActive:h},(function(t){var n=t.upperWidth,r=t.lowerWidth,o=t.height,a=t.x,s=t.y;return i.createElement(Cd,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},i.createElement("path",ZI({},$n(e.props,!0),{className:g,d:nR(a,s,n,r,o),ref:function(t){e.node=t}})))})):i.createElement("g",null,i.createElement("path",ZI({},$n(this.props,!0),{className:g,d:nR(n,r,o,a,s)})))}}],n&&XI(t.prototype,n),r&&XI(t,r),a}();function iR(e){return iR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iR(e)}function oR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sR(){return sR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sR.apply(this,arguments)}function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cR(Object(n),!0).forEach((function(t){lR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dR(e,t){return dR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dR(e,t)}function hR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yR(e);if(t){var i=yR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gR(this,n)}}function gR(e,t){return!t||"object"!==iR(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yR(e){return yR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yR(e)}rR.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var vR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dR(e,t)}(a,m);var t,n,r,o=hR(a);function a(){var e;fR(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),br(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),br(t)&&t()},e}return t=a,n=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var t=this,n=this.props.activeShape;return e.map((function(e,r){var o=t.isActiveIndex(r)?n:null,s=uR(uR({},e),{},{stroke:e.stroke});return i.createElement(er,sR({className:"recharts-funnel-trapezoid"},Gn(t.props,e,r),{key:"trapezoid-".concat(r)}),a.renderTrapezoidItem(o,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,n=t.trapezoids,r=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevTrapezoids;return i.createElement(Cd,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=u&&u[t];if(n){var i=Tf(n.x,e.x),o=Tf(n.y,e.y),a=Tf(n.upperWidth,e.upperWidth),s=Tf(n.lowerWidth,e.lowerWidth),c=Tf(n.height,e.height);return uR(uR({},e),{},{x:i(r),y:o(r),upperWidth:a(r),lowerWidth:s(r),height:c(r)})}var l=Tf(e.x+e.upperWidth/2,e.x),f=Tf(e.y+e.height/2,e.y),p=Tf(0,e.upperWidth),d=Tf(0,e.lowerWidth),h=Tf(0,e.height);return uR(uR({},e),{},{x:l(r),y:f(r),upperWidth:p(r),lowerWidth:d(r),height:h(r)})}));return i.createElement(er,null,e.renderTrapezoidsStatically(o))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&mm(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.trapezoids,r=e.className,o=e.isAnimationActive,a=this.state.isAnimationFinished;if(t||!n||!n.length)return null;var s=zn("recharts-trapezoids",r);return i.createElement(er,{className:s},this.renderTrapezoids(),(!o||a)&&VS.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):br(e)?e(t):YE(e)?i.createElement(rR,sR({},t,e)):i.createElement(rR,t)}}],n&&pR(t.prototype,n),r&&pR(t,r),a}();vR.displayName="Funnel",vR.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!_g.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"},vR.getRealFunnelData=function(e){var t=e.props,n=t.data,r=t.children,i=$n(e.props),o=lm(r,Zy.displayName);return n&&n.length?n.map((function(e,t){return uR(uR(uR({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return uR(uR({},i),e.props)})):[]},vR.getRealWidthHeight=function(e,t){var n=e.props.width,r=t.width,i=t.height,o=t.left,a=t.right,s=t.top,c=t.bottom,u=i,l=r;return hf(n)?l=n:wf(n)&&(l=l*parseFloat(n)/100),{realWidth:l-o-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(i-u)/2}},vR.getComposedData=function(e){var t=e.item,n=e.offset,r=vR.getRealFunnelData(t),i=t.props,o=i.dataKey,a=i.nameKey,s=i.tooltipType,c=i.lastShapeType,u=i.reversed,l=n.left,f=n.top,p=vR.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,g=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return BO(e,o,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,i=BO(e,o,0),u=BO(e,a,t),p=i;if(t!==m-1)(n=BO(r[t+1],o,0))instanceof Array&&(n=oR(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=oR(i,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,C=p/v*h,O=n/v*h,S=[{name:u,value:p,payload:e,dataKey:o,type:s}],k={x:x+C/2,y:_+b/2};return uR(uR({x:x,y:_,width:Math.max(C,O),upperWidth:C,lowerWidth:O,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},qI(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-O)/4,y:_,width:Math.abs(C-O)/2+Math.min(C,O),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return uR(uR({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:uR(uR({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:uR(uR({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}},EP({chartName:"FunnelChart",GraphicalChild:vR,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const mR=()=>e(k,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),bR=n=>{var{width:r,height:i,data:o,dataKey:a}=n,s=T(n,["width","height","data","dataKey"]);const{scale2:c,color:u}=S();return t(wR,Object.assign({},s,{children:[e(mR,{}),t(AP,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:i,data:o},{children:[e(Cj,{stroke:c,strokeDasharray:"3 5",vertical:!1}),e(TM,{stroke:c,dataKey:"name",tickMargin:4}),e(jM,{stroke:c,tickMargin:4}),e(Rg,{}),e(gM,{barSize:16,dataKey:a,fill:u.brand})]}))]}))},wR=de.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})));function xR(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function _R(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function CR(e){_R(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function OR(e,t){_R(2,arguments);var n=CR(e),r=xR(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function SR(e,t){_R(2,arguments);var n=CR(e),r=xR(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function kR(e,t){if(_R(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?xR(t.years):0,r=t.months?xR(t.months):0,i=t.weeks?xR(t.weeks):0,o=t.days?xR(t.days):0,a=t.hours?xR(t.hours):0,s=t.minutes?xR(t.minutes):0,c=t.seconds?xR(t.seconds):0,u=CR(e),l=r||n?SR(u,r+12*n):u,f=o||i?OR(l,o+7*i):l,p=s+60*a,d=c+60*p,h=1e3*d,g=new Date(f.getTime()+h);return g}function ER(e,t){_R(2,arguments);var n=CR(e).getTime(),r=xR(t);return new Date(n+r)}var AR={};function TR(){return AR}function jR(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function MR(e){_R(1,arguments);var t=CR(e);return t.setHours(0,0,0,0),t}function PR(e,t){_R(2,arguments);var n=MR(e),r=MR(t),i=n.getTime()-jR(n),o=r.getTime()-jR(r);return Math.round((i-o)/864e5)}function DR(e,t){_R(2,arguments);var n=MR(e),r=MR(t);return n.getTime()===r.getTime()}function IR(e){return _R(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function RR(e){if(_R(1,arguments),!IR(e)&&"number"!=typeof e)return!1;var t=CR(e);return!isNaN(Number(t))}function LR(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function NR(e,t){_R(2,arguments);var n=CR(e),r=CR(t),i=LR(n,r),o=Math.abs(PR(n,r));n.setDate(n.getDate()-i*o);var a=Number(LR(n,r)===-i),s=i*(o-a);return 0===s?0:s}function BR(e,t){return _R(2,arguments),CR(e).getTime()-CR(t).getTime()}var FR={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function zR(e){return e?FR[e]:FR.trunc}function UR(e,t){_R(2,arguments);var n=xR(t);return ER(e,-n)}function HR(e){_R(1,arguments);var t=1,n=CR(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function VR(e){_R(1,arguments);var t=CR(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=HR(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=HR(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function KR(e){_R(1,arguments);var t=VR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=HR(n);return r}function WR(e){_R(1,arguments);var t=CR(e),n=HR(t).getTime()-KR(t).getTime();return Math.round(n/6048e5)+1}function $R(e,t){var n,r,i,o,a,s,c,u;_R(1,arguments);var l=TR(),f=xR(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=CR(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function qR(e,t){var n,r,i,o,a,s,c,u;_R(1,arguments);var l=CR(e),f=l.getUTCFullYear(),p=TR(),d=xR(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=$R(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=$R(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function GR(e,t){var n,r,i,o,a,s,c,u;_R(1,arguments);var l=TR(),f=xR(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=qR(e,t),d=new Date(0);d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0);var h=$R(d,t);return h}function ZR(e,t){_R(1,arguments);var n=CR(e),r=$R(n,t).getTime()-GR(n,t).getTime();return Math.round(r/6048e5)+1}function YR(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var XR=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return YR("yy"===t?r%100:r,t.length)},JR=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):YR(n+1,2)},QR=function(e,t){return YR(e.getUTCDate(),t.length)},eL=function(e,t){return YR(e.getUTCHours()%12||12,t.length)},tL=function(e,t){return YR(e.getUTCHours(),t.length)},nL=function(e,t){return YR(e.getUTCMinutes(),t.length)},rL=function(e,t){return YR(e.getUTCSeconds(),t.length)},iL=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return YR(Math.floor(r*Math.pow(10,n-3)),t.length)},oL="midnight",aL="noon",sL="morning",cL="afternoon",uL="evening",lL="night",fL={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return XR(e,t)},Y:function(e,t,n,r){var i=qR(e,r),o=i>0?i:1-i;return"YY"===t?YR(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):YR(o,t.length)},R:function(e,t){return YR(VR(e),t.length)},u:function(e,t){return YR(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return YR(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return YR(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return JR(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return YR(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=ZR(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):YR(i,t.length)},I:function(e,t,n){var r=WR(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):YR(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):QR(e,t)},D:function(e,t,n){var r=function(e){_R(1,arguments);var t=CR(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):YR(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return YR(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return YR(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return YR(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?aL:0===i?oL:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?uL:i>=12?cL:i>=4?sL:lL,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return eL(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):tL(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):YR(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):YR(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):nL(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):rL(e,t)},S:function(e,t){return iL(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return dL(i);case"XXXX":case"XX":return hL(i);default:return hL(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return dL(i);case"xxxx":case"xx":return hL(i);default:return hL(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pL(i,":");default:return"GMT"+hL(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pL(i,":");default:return"GMT"+hL(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return YR(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return YR((r._originalDate||e).getTime(),t.length)}};function pL(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+YR(o,2)}function dL(e,t){return e%60==0?(e>0?"-":"+")+YR(Math.abs(e)/60,2):hL(e,t)}function hL(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+YR(Math.floor(i/60),2)+n+YR(i%60,2)}var gL=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},yL=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},vL={p:yL,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return gL(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",gL(i,t)).replace("{{time}}",yL(o,t))}},mL=["D","DD"],bL=["YY","YYYY"];function wL(e){return-1!==mL.indexOf(e)}function xL(e){return-1!==bL.indexOf(e)}function _L(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var CL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function OL(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var SL={date:OL({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:OL({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:OL({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function EL(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var AL={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:EL({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:EL({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:EL({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:EL({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:EL({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function TL(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?ML(c,(function(e){return e.test(s)})):jL(c,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(s.length);return{value:a,rest:l}}}function jL(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ML(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var PL,DL={ordinalNumber:(PL={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(PL.matchPattern);if(!n)return null;var r=n[0],i=e.match(PL.parsePattern);if(!i)return null;var o=PL.valueCallback?PL.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(r.length);return{value:o,rest:a}}),era:TL({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:TL({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:TL({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:TL({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:TL({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},IL={code:"en-US",formatDistance:function(e,t,n){var r,i=CL[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:SL,formatRelative:function(e,t,n,r){return kL[e]},localize:AL,match:DL,options:{weekStartsOn:0,firstWeekContainsDate:1}},RL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NL=/^'([^]*?)'?$/,BL=/''/g,FL=/[a-zA-Z]/;function zL(e,t,n){var r,i,o,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;_R(2,arguments);var x=String(t),_=TR(),C=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:_.locale)&&void 0!==r?r:IL,O=xR(null!==(o=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==o?o:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=xR(null!==(d=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=CR(e);if(!RR(k))throw new RangeError("Invalid time value");var E=jR(k),A=UR(k,E),T={firstWeekContainsDate:O,weekStartsOn:S,locale:C,_originalDate:k},j=x.match(LL).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,vL[t])(e,C.formatLong):e})).join("").match(RL).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return UL(r);var o=fL[i];if(o)return null!=n&&n.useAdditionalWeekYearTokens||!xL(r)||_L(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!wL(r)||_L(r,t,String(e)),o(A,r,C.localize,T);if(i.match(FL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return j}function UL(e){var t=e.match(NL);return t?t[1].replace(BL,"'"):e}function HL(e){_R(1,arguments);var t=CR(e),n=t.getDate();return n}function VL(e){_R(1,arguments);var t=CR(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function KL(e){_R(1,arguments);var t=CR(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function WL(e,t){_R(2,arguments);var n=CR(e),r=CR(t);return n.getTime()>r.getTime()}function $L(e,t){_R(2,arguments);var n=CR(e),r=CR(t);return n.getTime()<r.getTime()}function qL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class GL extends class{constructor(){qL(this,"priority",void 0),qL(this,"subPriority",0)}validate(e,t){return!0}}{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}function ZL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class YL{constructor(){ZL(this,"incompatibleTokens",void 0),ZL(this,"priority",void 0),ZL(this,"subPriority",void 0)}run(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new GL(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}function XL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JL=/^(1[0-2]|0?\d)/,QL=/^(3[0-1]|[0-2]?\d)/,eN=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,tN=/^(5[0-3]|[0-4]?\d)/,nN=/^(2[0-3]|[0-1]?\d)/,rN=/^(2[0-4]|[0-1]?\d)/,iN=/^(1[0-1]|0?\d)/,oN=/^(1[0-2]|0?\d)/,aN=/^[0-5]?\d/,sN=/^[0-5]?\d/,cN=/^\d/,uN=/^\d{1,2}/,lN=/^\d{1,3}/,fN=/^\d{1,4}/,pN=/^-?\d+/,dN=/^-?\d/,hN=/^-?\d{1,2}/,gN=/^-?\d{1,3}/,yN=/^-?\d{1,4}/,vN=/^([+-])(\d{2})(\d{2})?|Z/,mN=/^([+-])(\d{2})(\d{2})|Z/,bN=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,wN=/^([+-])(\d{2}):(\d{2})|Z/,xN=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function _N(e,t){return e?{value:t(e.value),rest:e.rest}:e}function CN(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ON(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function SN(e){return CN(pN,e)}function kN(e,t){switch(e){case 1:return CN(cN,t);case 2:return CN(uN,t);case 3:return CN(lN,t);case 4:return CN(fN,t);default:return CN(new RegExp("^\\d{1,"+e+"}"),t)}}function EN(e,t){switch(e){case 1:return CN(dN,t);case 2:return CN(hN,t);case 3:return CN(gN,t);case 4:return CN(yN,t);default:return CN(new RegExp("^-?\\d{1,"+e+"}"),t)}}function AN(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function TN(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function jN(e){return e%400==0||e%4==0&&e%100!=0}function MN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HN=[31,28,31,30,31,30,31,31,30,31,30,31],VN=[31,29,31,30,31,30,31,31,30,31,30,31];function KN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WN(e,t,n){var r,i,o,a,s,c,u,l;_R(2,arguments);var f=TR(),p=xR(null!==(r=null!==(i=null!==(o=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==i?i:null===(u=f.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=CR(e),h=xR(t),g=d.getUTCDay(),y=h%7,v=(y+7)%7,m=(v<p?7:0)+h-g;return d.setUTCDate(d.getUTCDate()+m),d}function $N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lB(e,t){_R(2,arguments);var n=CR(e),r=CR(t);return n.getFullYear()===r.getFullYear()}function fB(e,t){_R(2,arguments);var n=xR(t);return OR(e,-n)}function pB(e,t){_R(2,arguments);var n=CR(e),r=xR(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=VL(a);return n.setMonth(r,Math.min(o,s)),n}function dB(e,t){_R(2,arguments);var n=CR(e),r=xR(t);return n.setDate(r),n}function hB(e,t){_R(2,arguments);var n=xR(t);return SR(e,-n)}function gB(e,t){if(_R(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?xR(t.years):0,r=t.months?xR(t.months):0,i=t.weeks?xR(t.weeks):0,o=t.days?xR(t.days):0,a=t.hours?xR(t.hours):0,s=t.minutes?xR(t.minutes):0,c=t.seconds?xR(t.seconds):0,u=hB(e,r+12*n),l=fB(u,o+7*i),f=s+60*a,p=c+60*f,d=1e3*p,h=new Date(l.getTime()-d);return h}new class extends YL{constructor(){super(...arguments),XL(this,"priority",140),XL(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),MN(this,"priority",130),MN(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return _N(kN(4,e),r);case"yo":return _N(n.ordinalNumber(e,{unit:"year"}),r);default:return _N(kN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=TN(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),PN(this,"priority",130),PN(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return _N(kN(4,e),r);case"Yo":return _N(n.ordinalNumber(e,{unit:"year"}),r);default:return _N(kN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){var i=qR(e,r);if(n.isTwoDigitYear){var o=TN(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),$R(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),$R(e,r)}},new class extends YL{constructor(){super(...arguments),DN(this,"priority",130),DN(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return EN("R"===t?4:t.length,e)}set(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),HR(r)}},new class extends YL{constructor(){super(...arguments),IN(this,"priority",130),IN(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return EN("u"===t?4:t.length,e)}set(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),RN(this,"priority",120),RN(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return kN(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),LN(this,"priority",120),LN(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return kN(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),NN(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),NN(this,"priority",110)}parse(e,t,n){var r=function(e){return e-1};switch(t){case"M":return _N(CN(JL,e),r);case"MM":return _N(kN(2,e),r);case"Mo":return _N(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),BN(this,"priority",110),BN(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return e-1};switch(t){case"L":return _N(CN(JL,e),r);case"LL":return _N(kN(2,e),r);case"Lo":return _N(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),FN(this,"priority",100),FN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return CN(tN,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return $R(function(e,t,n){_R(2,arguments);var r=CR(e),i=xR(t),o=ZR(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}},new class extends YL{constructor(){super(...arguments),zN(this,"priority",100),zN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return CN(tN,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return HR(function(e,t){_R(2,arguments);var n=CR(e),r=xR(t),i=WR(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}},new class extends YL{constructor(){super(...arguments),UN(this,"priority",90),UN(this,"subPriority",1),UN(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return CN(QL,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return kN(t.length,e)}}validate(e,t){var n=jN(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=VN[r]:t>=1&&t<=HN[r]}set(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),KN(this,"priority",90),KN(this,"subpriority",1),KN(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return CN(eN,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return kN(t.length,e)}}validate(e,t){return jN(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),$N(this,"priority",90),$N(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=WN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),qN(this,"priority",90),qN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return _N(kN(t.length,e),i);case"eo":return _N(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=WN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),GN(this,"priority",90),GN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return _N(kN(t.length,e),i);case"co":return _N(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=WN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),ZN(this,"priority",90),ZN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return kN(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return _N(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return _N(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return _N(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return _N(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=function(e,t){_R(2,arguments);var n=xR(t);n%7==0&&(n-=7);var r=1,i=CR(e),o=i.getUTCDay(),a=((n%7+7)%7<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+a),i}(e,n),e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),YN(this,"priority",80),YN(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(AN(n),0,0,0),e}},new class extends YL{constructor(){super(...arguments),XN(this,"priority",80),XN(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(AN(n),0,0,0),e}},new class extends YL{constructor(){super(...arguments),JN(this,"priority",80),JN(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(AN(n),0,0,0),e}},new class extends YL{constructor(){super(...arguments),QN(this,"priority",70),QN(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return CN(oN,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},new class extends YL{constructor(){super(...arguments),eB(this,"priority",70),eB(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return CN(nN,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setUTCHours(n,0,0,0),e}},new class extends YL{constructor(){super(...arguments),tB(this,"priority",70),tB(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return CN(iN,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},new class extends YL{constructor(){super(...arguments),nB(this,"priority",70),nB(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return CN(rN,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return kN(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}},new class extends YL{constructor(){super(...arguments),rB(this,"priority",60),rB(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return CN(aN,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCMinutes(n,0,0),e}},new class extends YL{constructor(){super(...arguments),iB(this,"priority",50),iB(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return CN(sN,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return kN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCSeconds(n,0),e}},new class extends YL{constructor(){super(...arguments),oB(this,"priority",30),oB(this,"incompatibleTokens",["t","T"])}parse(e,t){return _N(kN(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}set(e,t,n){return e.setUTCMilliseconds(n),e}},new class extends YL{constructor(){super(...arguments),aB(this,"priority",10),aB(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return ON(vN,e);case"XX":return ON(mN,e);case"XXXX":return ON(bN,e);case"XXXXX":return ON(xN,e);default:return ON(wN,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends YL{constructor(){super(...arguments),sB(this,"priority",10),sB(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return ON(vN,e);case"xx":return ON(mN,e);case"xxxx":return ON(bN,e);case"xxxxx":return ON(xN,e);default:return ON(wN,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends YL{constructor(){super(...arguments),cB(this,"priority",40),cB(this,"incompatibleTokens","*")}parse(e){return SN(e)}set(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}},new class extends YL{constructor(){super(...arguments),uB(this,"priority",20),uB(this,"incompatibleTokens","*")}parse(e){return SN(e)}set(e,t,n){return[new Date(n),{timestampIsSet:!0}]}};const yB=({date:n,onChange:r,preventPast:i,preventFuture:o,noShadow:a})=>{const{current:s}=f(n||new Date),[c,l]=u(s),[p,d]=u(s),[g,y]=u(),{calendar:v}=S(),m=e=>{const t=function(e,t){if(_R(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=CR(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=pB(n,t.month)),null!=t.date&&n.setDate(xR(t.date)),null!=t.hours&&n.setHours(xR(t.hours)),null!=t.minutes&&n.setMinutes(xR(t.minutes)),null!=t.seconds&&n.setSeconds(xR(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(xR(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},b=e=>{const t=dB(("prev"===e?gB:kR)(p,{months:1}),1),n=m(t);d(n)},w=(e,t,n)=>{const r="past"===n;let i;i="past"===n?KL(gB(e,{months:1})):dB("future"===n?kR(e,{months:1}):e,1);const o=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?gB:kR)(i,{days:e}),a=m(n);o[t](a)}return o},x=e=>{const t=function(e){return _R(1,arguments),CR(e).getDay()}(dB(e,1)),n=VL(e),r=42-(n+t),a=w(e,t,"past"),u=w(e,r,"future");return[...a,...w(e,n,"present"),...u].map((e=>{const t=m(s),n=i instanceof Date?m(i):t,r=o instanceof Date?m(o):t,a=m(KL(p)),u=m(dB(p,1));let l=!1;const f=$L(e,n),d=WL(e,r);(i&&f||o&&d)&&(l=!0);const h=WL(e,a)||$L(e,u),g=DR(e,s),y=DR(e,c);return{date:HL(e),fullDate:e,current:g,disabled:l,outside:h,active:y}}))};h((()=>{const e=x(p);y(e)}),[c,p]);return t(vB,Object.assign({noShadow:a},{children:[t(mB,{children:[e(bB,{children:zL(p,"MMMM Y")}),t(wB,{children:[e(xt,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>b("prev"),hoverColor:v.color.iconHover}),e(xt,{name:"chevron-right",pointer:!0,onClick:()=>b("next"),hoverColor:v.color.iconHover})]})]}),e(CB,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e(OB,{children:t[0]},t)))}),e(xB,{children:(null==g?void 0:g.length)&&g.map((({date:t,fullDate:n,disabled:i,current:o,outside:a,active:s})=>e(_B,Object.assign({disabled:i,current:o,outside:a,active:s,onClick:()=>(e=>{l(e),r(e)})(n)},{children:t}),vt())))})]}))},vB=de.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),mB=de.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),bB=de.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),wB=de.div({display:"flex"}),xB=de.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),_B=de.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:i})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:i?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),CB=de.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),OB=de.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),SB=de.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:i}))),kB=de.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),EB=de.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),AB=n=>{var{id:r,label:i,labelPosition:o,checked:a,partial:s,disabled:c,onChange:l,margin:p,marginTop:d,marginBottom:g,marginRight:y,marginLeft:v}=n,m=T(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[b,w]=u("checkbox-off"),[x,_]=u(a||!1),C=f(null),O="right"===o,S={margin:p,marginTop:d,marginBottom:g,marginRight:y,marginLeft:v};return h((()=>{w(s?"checkbox-partial":x?"checkbox":"checkbox-off")}),[x,s]),h((()=>{_("boolean"==typeof a?a:x)}),[a,x]),t(SB,Object.assign({htmlFor:r,labelRight:O,disabled:c},S,{children:[i&&e(EB,{children:i}),e(kB,Object.assign({ref:C,id:r,type:"checkbox",checked:s?!x:x,disabled:c,onChange:()=>{const e=!!s||!x;_(e),l(e),(null==C?void 0:C.current)&&(C.current.indeterminate=!!s)}},m)),e(xt,{name:b,marginLeft:i&&!O?8:0,marginRight:i&&O?8:0,pointer:!c})]}))};
|
|
201
201
|
/**
|
|
202
202
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
203
203
|
*
|