403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.138.122.210
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/dist/vendors/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/dist/vendors/recharts.min.js
"use strict";(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[4387],{86108:(e,t,r)=>{r.d(t,{u:()=>F});var n=r(18446),o=r.n(n),i=r(7654),a=r.n(i),c=r(6162),u=r.n(c),l=r(23560),s=r.n(l),f=r(27361),p=r.n(f),d=r(14293),y=r.n(d),h=r(1469),v=r.n(h),b=r(99196),m=r.n(b),g=r(94184),O=r.n(g),x=r(57621),w=r(49413),j=r(93061),S=r(48710),P=r(2763),A=r(47523),k=r(69055),E=r(73634),T=r(52017),M=["layout","type","stroke","connectNulls","isRange","ref"];function C(e){return C="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},C(e)}function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I.apply(this,arguments)}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W(n.key),n)}}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function z(e,t,r){return(t=W(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===C(t)?t:String(t)}var F=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(f,e);var t,r,n,i,c,l=(i=f,c=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}}(),function(){var e,t=_(i);if(c){var r=_(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return N(e)}(this,e)});function f(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return z(N(e=l.call.apply(l,[this].concat(r))),"state",{isAnimationFinished:!0}),z(N(e),"id",(0,k.EL)("recharts-area-")),z(N(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),s()(t)&&t()})),z(N(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),s()(t)&&t()})),e}return t=f,n=[{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}}],(r=[{key:"renderDots",value:function(e,t){var r=this.props.isAnimationActive,n=this.state.isAnimationFinished;if(r&&!n)return null;var o=this.props,i=o.dot,a=o.points,c=o.dataKey,u=(0,T.L6)(this.props),l=(0,T.L6)(i,!0),s=a.map((function(e,t){var r=R(R(R({key:"dot-".concat(t),r:3},u),l),{},{dataKey:c,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return f.renderDotItem(i,r)})),p={clipPath:e?"url(#clipPath-".concat(t,")"):null};return m().createElement(S.m,I({className:"recharts-area-dots"},p),s)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,o=t.strokeWidth,i=n[0].x,a=n[n.length-1].x,c=e*Math.abs(i-a),l=u()(n.map((function(e){return e.y||0})));return(0,k.hj)(r)&&"number"==typeof r?l=Math.max(r,l):r&&v()(r)&&r.length&&(l=Math.max(u()(r.map((function(e){return e.y||0}))),l)),(0,k.hj)(l)?m().createElement("rect",{x:i<a?i:i-c,y:0,width:c,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,r=t.baseLine,n=t.points,o=t.strokeWidth,i=n[0].y,a=n[n.length-1].y,c=e*Math.abs(i-a),l=u()(n.map((function(e){return e.x||0})));return(0,k.hj)(r)&&"number"==typeof r?l=Math.max(r,l):r&&v()(r)&&r.length&&(l=Math.max(u()(r.map((function(e){return e.x||0}))),l)),(0,k.hj)(l)?m().createElement("rect",{x:0,y:i<a?i:i-c,width:l+(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,r,n){var o=this.props,i=o.layout,a=o.type,c=o.stroke,u=o.connectNulls,l=o.isRange,s=(o.ref,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(o,M));return m().createElement(S.m,{clipPath:r?"url(#clipPath-".concat(n,")"):null},m().createElement(w.H,I({},(0,T.L6)(s,!0),{points:e,connectNulls:u,type:a,baseLine:t,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==c&&m().createElement(w.H,I({},(0,T.L6)(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&m().createElement(w.H,I({},(0,T.L6)(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var r=this,n=this.props,o=n.points,i=n.baseLine,c=n.isAnimationActive,u=n.animationBegin,l=n.animationDuration,s=n.animationEasing,f=n.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return m().createElement(x.ZP,{begin:u,duration:l,isActive:c,easing:s,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var c=n.t;if(d){var u,l=d.length/o.length,s=o.map((function(e,t){var r=Math.floor(t*l);if(d[r]){var n=d[r],o=(0,k.k4)(n.x,e.x),i=(0,k.k4)(n.y,e.y);return R(R({},e),{},{x:o(c),y:i(c)})}return e}));return u=(0,k.hj)(i)&&"number"==typeof i?(0,k.k4)(h,i)(c):y()(i)||a()(i)?(0,k.k4)(h,0)(c):i.map((function(e,t){var r=Math.floor(t*l);if(h[r]){var n=h[r],o=(0,k.k4)(n.x,e.x),i=(0,k.k4)(n.y,e.y);return R(R({},e),{},{x:o(c),y:i(c)})}return e})),r.renderAreaStatically(s,u,e,t)}return m().createElement(S.m,null,m().createElement("defs",null,m().createElement("clipPath",{id:"animationClipPath-".concat(t)},r.renderClipRect(c))),m().createElement(S.m,{clipPath:"url(#animationClipPath-".concat(t,")")},r.renderAreaStatically(o,i,e,t)))}))}},{key:"renderArea",value:function(e,t){var r=this.props,n=r.points,i=r.baseLine,a=r.isAnimationActive,c=this.state,u=c.prevPoints,l=c.prevBaseLine,s=c.totalLength;return a&&n&&n.length&&(!u&&s>0||!o()(u,n)||!o()(l,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(n,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.dot,n=e.points,o=e.className,i=e.top,a=e.left,c=e.xAxis,u=e.yAxis,l=e.width,s=e.height,f=e.isAnimationActive,p=e.id;if(t||!n||!n.length)return null;var d=this.state.isAnimationFinished,h=1===n.length,v=O()("recharts-area",o),b=c&&c.allowDataOverflow||u&&u.allowDataOverflow,g=y()(p)?this.id:p;return m().createElement(S.m,{className:v},b?m().createElement("defs",null,m().createElement("clipPath",{id:"clipPath-".concat(g)},m().createElement("rect",{x:a,y:i,width:l,height:Math.floor(s)}))):null,h?null:this.renderArea(b,g),(r||h)&&this.renderDots(b,g),(!f||d)&&P.e.renderCallByParent(this.props,n))}}])&&B(t.prototype,r),n&&B(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(b.PureComponent);z(F,"displayName","Area"),z(F,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!A.x.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),z(F,"getBaseValue",(function(e,t,r,n){var o=e.layout,i=e.baseValue,a=t.props.baseValue,c=null!=a?a:i;if((0,k.hj)(c)&&"number"==typeof c)return c;var u="horizontal"===o?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),z(F,"getComposedData",(function(e){var t,r=e.props,n=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,u=e.bandSize,l=e.dataKey,s=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,b=r.layout,m=s&&s.length,g=F.getBaseValue(r,n,o,i),O=!1,x=d.map((function(e,t){var r,n=(0,E.F$)(e,l);m?r=s[f+t]:(r=n,v()(r)?O=!0:r=[g,r]);var p=y()(r[1])||m&&y()(n);return"horizontal"===b?{x:(0,E.Hv)({axis:o,ticks:a,bandSize:u,entry:e,index:t}),y:p?null:i.scale(r[1]),value:r,payload:e}:{x:p?null:o.scale(r[1]),y:(0,E.Hv)({axis:i,ticks:c,bandSize:u,entry:e,index:t}),value:r,payload:e}}));return t=m||O?x.map((function(e){return"horizontal"===b?{x:e.x,y:y()(p()(e,"value[0]"))||y()(p()(e,"y"))?null:i.scale(p()(e,"value[0]"))}:{x:y()(p()(e,"value[0]"))?null:o.scale(p()(e,"value[0]")),y:e.y}})):"horizontal"===b?i.scale(g):o.scale(g),R({points:x,baseLine:t,layout:b,isRange:O},h)})),z(F,"renderDotItem",(function(e,t){return m().isValidElement(e)?m().cloneElement(e,t):s()(e)?e(t):m().createElement(j.o,I({},t,{className:"recharts-area-dot"}))}))},86641:(e,t,r)=>{r.d(t,{W:()=>s});var n=r(99196),o=r.n(n),i=r(48710),a=r(52017),c=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){var t=e.offset,r=e.layout,n=e.width,s=e.dataKey,f=e.data,p=e.dataPointFormatter,d=e.xAxis,y=e.yAxis,h=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,c),v=(0,a.L6)(h),b=f.map((function(e,a){var c=p(e,s),f=c.x,h=c.y,b=c.value,m=c.errorVal;if(!m)return null;var g,O,x=[];if(Array.isArray(m)){var w=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(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.")}()}(m,2);g=w[0],O=w[1]}else g=O=m;if("vertical"===r){var j=d.scale,S=h+t,P=S+n,A=S-n,k=j(b-g),E=j(b+O);x.push({x1:E,y1:P,x2:E,y2:A}),x.push({x1:k,y1:S,x2:E,y2:S}),x.push({x1:k,y1:P,x2:k,y2:A})}else if("horizontal"===r){var T=y.scale,M=f+t,C=M-n,I=M+n,D=T(b-g),R=T(b+O);x.push({x1:C,y1:R,x2:I,y2:R}),x.push({x1:M,y1:D,x2:M,y2:R}),x.push({x1:C,y1:D,x2:I,y2:D})}return o().createElement(i.m,u({className:"recharts-errorBar",key:"bar-".concat(a)},v),x.map((function(e,t){return o().createElement("line",u({},e,{key:"line-".concat(t)}))})))}));return o().createElement(i.m,{className:"recharts-errorBars"},b)}s.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},s.displayName="ErrorBar"},3023:(e,t,r)=>{r.d(t,{K:()=>n});var n=function(){return null};n.displayName="XAxis",n.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},75358:(e,t,r)=>{r.d(t,{B:()=>n});var n=function(){return null};n.displayName="YAxis",n.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},46888:(e,t,r)=>{r.d(t,{T:()=>u});var n=r(24472),o=r(86108),i=r(3023),a=r(75358),c=r(76721),u=(0,n.z)({chartName:"AreaChart",GraphicalChild:o.u,axisComponents:[{axisType:"xAxis",AxisComp:i.K},{axisType:"yAxis",AxisComp:a.B}],formatAxisMap:c.t9})},30666:(e,t,r)=>{r.d(t,{B:()=>D});var n=r(24472),o=r(81189),i=r(23560),a=r.n(i),c=r(22762),u=r.n(c),l=r(84753),s=r.n(l),f=r(99196),p=r.n(f),d=r(88169),y=r(25048),h=r(48710),v=r(40048),b=r(79896),m=r(52017),g=["cx","cy","angle","ticks","axisLine"],O=["ticks","tick","angle","tickFormatter","stroke"];function x(e){return x="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},x(e)}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M(n.key),n)}}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function T(e,t,r){return(t=M(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===x(t)?t:String(t)}var C=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(l,e);var t,r,n,o,i,c=(o=l,i=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}}(),function(){var e,t=E(o);if(i){var r=E(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.apply(this,arguments)}return t=l,n=[{key:"renderTickItem",value:function(e,t,r){return p().isValidElement(e)?p().cloneElement(e,t):a()(e)?e(t):p().createElement(d.x,w({},t,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],(r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return(0,v.op)(o,i,t,n)}},{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,r=e.cy,n=e.angle,o=e.ticks,i=s()(o,(function(e){return e.coordinate||0}));return{cx:t,cy:r,startAngle:n,endAngle:n,innerRadius:u()(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.angle,o=e.ticks,i=e.axisLine,a=P(e,g),c=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=(0,v.op)(t,r,c[0],n),l=(0,v.op)(t,r,c[1],n),s=S(S(S({},(0,m.L6)(a)),{},{fill:"none"},(0,m.L6)(i)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return p().createElement("line",w({className:"recharts-polar-radius-axis-line"},s))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,n=t.tick,o=t.angle,i=t.tickFormatter,a=t.stroke,c=P(t,O),u=this.getTickTextAnchor(),s=(0,m.L6)(c),f=(0,m.L6)(n),d=r.map((function(t,r){var c=e.getTickValueCoord(t),d=S(S(S(S({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(c.x,", ").concat(c.y,")")},s),{},{stroke:"none",fill:a},f),{},{index:r},c),{},{payload:t});return p().createElement(h.m,w({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},(0,b.bw)(e.props,t,r)),l.renderTickItem(n,d,i?i(t.value,r):t.value))}));return p().createElement(h.m,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.axisLine,n=e.tick;return t&&t.length?p().createElement(h.m,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),n&&this.renderTicks(),y._.renderCallByParent(this.props,this.getViewBox())):null}}])&&A(t.prototype,r),n&&A(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(f.PureComponent);T(C,"displayName","PolarRadiusAxis"),T(C,"axisType","radiusAxis"),T(C,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var I=r(91096),D=(0,n.z)({chartName:"RadialBarChart",GraphicalChild:I.G,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:o.I},{axisType:"radiusAxis",AxisComp:C}],formatAxisMap:v.t9,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}})},24472:(e,t,r)=>{r.d(t,{z:()=>Wt});var n=r(711),o=r.n(n),i=r(13311),a=r.n(i),c=r(23560),u=r.n(c),l=r(23493),s=r.n(l),f=r(89734),p=r.n(f),d=r(27361),y=r.n(d),h=r(96026),v=r.n(h),b=r(14293),m=r.n(b),g=r(51584),O=r.n(g),x=r(1469),w=r.n(x),j=r(99196),S=r.n(j),P=r(94184),A=r.n(P),k=r(20514),E=r(48710),T=r(99307),M=r(11542),C=r(49413),I=r(69055),D=r(52017);function R(e){return R="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},R(e)}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(this,arguments)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z(n.key),n)}}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function z(e){var t=function(e,t){if("object"!==R(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===R(t)?t:String(t)}var W,F,G,H=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(c,e);var t,r,n,o,i,a=(o=c,i=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}}(),function(){var e,t=_(o);if(i){var r=_(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,n=[{key:"getPath",value:function(e,t,r,n,o,i){return"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r)}}],(r=[{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.top,a=e.left,u=e.className;return(0,I.hj)(t)&&(0,I.hj)(r)&&(0,I.hj)(n)&&(0,I.hj)(o)&&(0,I.hj)(i)&&(0,I.hj)(a)?S().createElement("path",B({},(0,D.L6)(this.props,!0),{className:A()("recharts-cross",u),d:c.getPath(t,r,n,o,i,a)})):null}}])&&L(t.prototype,r),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(j.PureComponent);W=H,G={x:0,y:0,top:0,left:0,width:0,height:0},(F=z(F="defaultProps"))in W?Object.defineProperty(W,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):W[F]=G;var U=r(45108),X=r(93061),Z=r(13481),K=r(30791),V=r(41209),Y=r(88169),q=r(25048),$=r(47523),J=r(79896),Q=["viewBox"],ee=["viewBox"],te=["ticks"];function re(e){return re="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},re(e)}function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ne.apply(this,arguments)}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fe(n.key),n)}}function ue(e,t){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ue(e,t)}function le(e){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},le(e)}function se(e,t,r){return(t=fe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fe(e){var t=function(e,t){if("object"!==re(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===re(t)?t:String(t)}var pe=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(c,e);var t,r,n,o,i,a=(o=c,i=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}}(),function(){var e,t=le(o);if(i){var r=le(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).state={fontSize:"",letterSpacing:""},t}return t=c,n=[{key:"getTicks",value:function(e,t,r){var n=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,u=e.orientation,l=e.interval,s=e.tickFormatter,f=e.unit;return o&&o.length&&n?(0,I.hj)(l)||$.x.isSsr?c.getNumberIntervalTicks(o,"number"==typeof l&&(0,I.hj)(l)?l:0):"preserveStartEnd"===l?c.getTicksStart({ticks:o,tickFormatter:s,viewBox:i,orientation:u,minTickGap:a,unit:f,fontSize:t,letterSpacing:r},!0):"preserveStart"===l?c.getTicksStart({ticks:o,tickFormatter:s,viewBox:i,orientation:u,minTickGap:a,unit:f,fontSize:t,letterSpacing:r}):c.getTicksEnd({ticks:o,tickFormatter:s,viewBox:i,orientation:u,minTickGap:a,unit:f,fontSize:t,letterSpacing:r}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,r){return r%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var r,n,o=e.ticks,i=e.tickFormatter,a=e.viewBox,c=e.orientation,l=e.minTickGap,s=e.unit,f=e.fontSize,p=e.letterSpacing,d=a.x,y=a.y,h=a.width,v=a.height,b="top"===c||"bottom"===c?"width":"height",m=(o||[]).slice(),g=s&&"width"===b?(0,V.xE)(s,{fontSize:f,letterSpacing:p})[b]:0,O=m.length,x=O>=2?(0,I.uY)(m[1].coordinate-m[0].coordinate):1;if(1===x?(r="width"===b?d:y,n="width"===b?d+h:y+v):(r="width"===b?d+h:y+v,n="width"===b?d:y),t){var w=o[O-1],j=u()(i)?i(w.value,O-1):w.value,S=(0,V.xE)(j,{fontSize:f,letterSpacing:p})[b]+g,P=x*(w.coordinate+x*S/2-n);m[O-1]=w=ie(ie({},w),{},{tickCoord:P>0?w.coordinate-P*x:w.coordinate}),x*(w.tickCoord-x*S/2-r)>=0&&x*(w.tickCoord+x*S/2-n)<=0&&(n=w.tickCoord-x*(S/2+l),m[O-1]=ie(ie({},w),{},{isShow:!0}))}for(var A=t?O-1:O,k=0;k<A;k++){var E=m[k],T=u()(i)?i(E.value,k):E.value,M=(0,V.xE)(T,{fontSize:f,letterSpacing:p})[b]+g;if(0===k){var C=x*(E.coordinate-x*M/2-r);m[k]=E=ie(ie({},E),{},{tickCoord:C<0?E.coordinate-C*x:E.coordinate})}else m[k]=E=ie(ie({},E),{},{tickCoord:E.coordinate});x*(E.tickCoord-x*M/2-r)>=0&&x*(E.tickCoord+x*M/2-n)<=0&&(r=E.tickCoord+x*(M/2+l),m[k]=ie(ie({},E),{},{isShow:!0}))}return m.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,r,n=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,c=e.minTickGap,l=e.unit,s=e.fontSize,f=e.letterSpacing,p=i.x,d=i.y,y=i.width,h=i.height,v="top"===a||"bottom"===a?"width":"height",b=l&&"width"===v?(0,V.xE)(l,{fontSize:s,letterSpacing:f})[v]:0,m=(n||[]).slice(),g=m.length,O=g>=2?(0,I.uY)(m[1].coordinate-m[0].coordinate):1;1===O?(t="width"===v?p:d,r="width"===v?p+y:d+h):(t="width"===v?p+y:d+h,r="width"===v?p:d);for(var x=g-1;x>=0;x--){var w=m[x],j=u()(o)?o(w.value,g-x-1):w.value,S=(0,V.xE)(j,{fontSize:s,letterSpacing:f})[v]+b;if(x===g-1){var P=O*(w.coordinate+O*S/2-r);m[x]=w=ie(ie({},w),{},{tickCoord:P>0?w.coordinate-P*O:w.coordinate})}else m[x]=w=ie(ie({},w),{},{tickCoord:w.coordinate});O*(w.tickCoord-O*S/2-t)>=0&&O*(w.tickCoord+O*S/2-r)<=0&&(r=w.tickCoord-O*(S/2+c),m[x]=ie(ie({},w),{},{isShow:!0}))}return m.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,r){return S().isValidElement(e)?S().cloneElement(e,t):u()(e)?e(t):S().createElement(Y.x,ne({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var r=e.viewBox,n=ae(e,Q),o=this.props,i=o.viewBox,a=ae(o,ee);return!(0,K.w)(r,i)||!(0,K.w)(n,a)||!(0,K.w)(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,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,y=c.mirror,h=c.tickMargin,v=y?-1:1,b=e.tickSize||d,m=(0,I.hj)(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=r=e.coordinate,a=(n=(o=l+ +!y*f)-v*b)-v*h,i=m;break;case"left":n=o=e.coordinate,i=(t=(r=u+ +!y*s)-v*b)-v*h,a=m;break;case"right":n=o=e.coordinate,i=(t=(r=u+ +y*s)+v*b)+v*h,a=m;break;default:t=r=e.coordinate,a=(n=(o=l+ +y*f)+v*b)+v*h,i=m}return{line:{x1:t,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,r=t.orientation,n=t.mirror;switch(r){case"left":e=n?"start":"end";break;case"right":e=n?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,r=e.mirror,n="end";switch(t){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.orientation,a=e.mirror,c=e.axisLine,u=ie(ie(ie({},(0,D.L6)(this.props)),(0,D.L6)(c)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);u=ie(ie({},u),{},{x1:t,y1:r+l*o,x2:t+n,y2:r+l*o})}else{var s=+("left"===i&&!a||"right"===i&&a);u=ie(ie({},u),{},{x1:t+s*n,y1:r,x2:t+s*n,y2:r+o})}return S().createElement("line",ne({},u,{className:A()("recharts-cartesian-axis-line",y()(c,"className"))}))}},{key:"renderTicks",value:function(e,t,r){var n=this,o=this.props,i=o.tickLine,a=o.stroke,l=o.tick,s=o.tickFormatter,f=o.unit,p=c.getTicks(ie(ie({},this.props),{},{ticks:e}),t,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),v=(0,D.L6)(this.props),b=(0,D.L6)(l),m=ie(ie({},v),{},{fill:"none"},(0,D.L6)(i)),g=p.map((function(e,t){var r=n.getTickLineCoord(e),o=r.line,g=r.tick,O=ie(ie(ie(ie({textAnchor:d,verticalAnchor:h},v),{},{stroke:"none",fill:a},b),g),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:s});return S().createElement(E.m,ne({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},(0,J.bw)(n.props,e,t)),i&&S().createElement("line",ne({},m,o,{className:A()("recharts-cartesian-axis-tick-line",y()(i,"className"))})),l&&c.renderTickItem(l,O,"".concat(u()(s)?s(e.value,t):e.value).concat(f||"")))}));return S().createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var e=this,t=this.props,r=t.axisLine,n=t.width,o=t.height,i=t.ticksGenerator,a=t.className;if(t.hide)return null;var c=this.props,l=c.ticks,s=ae(c,te),f=l;return u()(i)&&(f=l&&l.length>0?i(this.props):i(s)),n<=0||o<=0||!f||!f.length?null:S().createElement(E.m,{className:A()("recharts-cartesian-axis",a),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),q._.renderCallByParent(this.props))}}])&&ce(t.prototype,r),n&&ce(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(j.Component);se(pe,"displayName","CartesianAxis"),se(pe,"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 de=r(30996),ye=r(73634);function he(e){return he="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},he(e)}function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function me(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==he(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==he(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===he(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ge=["Webkit","Moz","O","ms"];function Oe(e){return Oe="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},Oe(e)}function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xe.apply(this,arguments)}function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){Ee(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Te(n.key),n)}}function Pe(e,t){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pe(e,t)}function Ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ke(e)}function Ee(e,t,r){return(t=Te(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Te(e){var t=function(e,t){if("object"!==Oe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Oe(t)?t:String(t)}var Me=function(e){return e.changedTouches&&!!e.changedTouches.length},Ce=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pe(e,t)}(c,e);var t,r,n,o,i,a=(o=c,i=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}}(),function(){var e,t=ke(o);if(i){var r=ke(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ae(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),Ee(Ae(t=a.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),Ee(Ae(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),Ee(Ae(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),Ee(Ae(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),Ee(Ae(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),Ee(Ae(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),Ee(Ae(t),"handleSlideDragStart",(function(e){var r=Me(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(Ae(t),"startX"),endX:t.handleTravellerDragStart.bind(Ae(t),"endX")},t.state={},t}return t=c,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,n=this.state.scaleValues,o=this.props,i=o.gap,a=o.data.length-1,u=Math.min(t,r),l=Math.max(t,r),s=c.getIndexInRange(n,u),f=c.getIndexInRange(n,l);return{startIndex:s-s%i,endIndex:f===a?a:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,o=t.dataKey,i=(0,ye.F$)(r[e],o,e);return u()(n)?n(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,o=t.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=e.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var d=this.getIndex({startX:n+p,endX:o+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=Me(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,r=this.state,n=r.brushMoveStartX,o=r.movingTravellerId,i=r.endX,a=r.startX,c=this.state[o],u=this.props,l=u.x,s=u.width,f=u.travellerWidth,p=u.onChange,d=u.gap,y=u.data,h={startX:this.state.startX,endX:this.state.endX},v=e.pageX-n;v>0?v=Math.min(v,l+s-f-c):v<0&&(v=Math.max(v,l-c)),h[o]=c+v;var b=this.getIndex(h),m=b.startIndex,g=b.endIndex;this.setState((Ee(t={},o,c+v),Ee(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=y.length-1,("startX"===o&&(i>a?m%d==0:g%d==0)||i<a&&g===e||"endX"===o&&(i>a?g%d==0:m%d==0)||i>a&&g===e)&&p(b))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.fill,a=e.stroke;return S().createElement("rect",{stroke:a,fill:i,x:t,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,i=e.data,a=e.children,c=e.padding,u=j.Children.only(a);return u?S().cloneElement(u,{x:t,y:r,width:n,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,t){var r=this.props,n=r.y,o=r.travellerWidth,i=r.height,a=r.traveller,u=Math.max(e,this.props.x),l=je(je({},(0,D.L6)(this.props)),{},{x:u,y:n,width:o,height:i});return S().createElement(E.m,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},c.renderTraveller(a,l))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,c=Math.min(e,t)+a,u=Math.max(Math.abs(t-e)-a,0);return S().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:c,y:n,width:u,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return S().createElement(E.m,{className:"recharts-brush-texts"},S().createElement(Y.x,xe({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+o/2},s),this.getTextOfTick(t)),S().createElement(Y.x,xe({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+i+5,y:n+o/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,o=e.x,i=e.y,a=e.width,c=e.height,u=e.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,d=l.isSlideMoving,y=l.isTravellerMoving;if(!t||!t.length||!(0,I.hj)(o)||!(0,I.hj)(i)||!(0,I.hj)(a)||!(0,I.hj)(c)||a<=0||c<=0)return null;var h=A()("recharts-brush",r),v=1===S().Children.count(n),b=function(e,t){var r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),n=ge.reduce((function(e,n){return be(be({},e),{},me({},n+r,t))}),{});return n[e]=t,n}("userSelect","none");return S().createElement(E.m,{className:h,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||y||u)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=e.stroke,a=Math.floor(r+o/2)-1;return S().createElement(S().Fragment,null,S().createElement("rect",{x:t,y:r,width:n,height:o,fill:i,stroke:"none"}),S().createElement("line",{x1:t+1,y1:a,x2:t+n-1,y2:a,fill:"none",stroke:"#fff"}),S().createElement("line",{x1:t+1,y1:a+2,x2:t+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return S().isValidElement(e)?S().cloneElement(e,t):u()(e)?e(t):c.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,c=e.startIndex,u=e.endIndex;if(r!==t.prevData||a!==t.prevUpdateId)return je({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(e){var t=e.data,r=e.startIndex,n=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var c=t.length,u=(0,de.x)().domain(v()(0,c)).range([o,o+i-a]),l=u.domain().map((function(e){return u(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+n-i]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=0,n=e.length-1;n-r>1;){var o=Math.floor((r+n)/2);e[o]>t?n=o:r=o}return t>=e[n]?n:r}}],r&&Se(t.prototype,r),n&&Se(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(j.PureComponent);Ee(Ce,"displayName","Brush"),Ee(Ce,"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 Ie=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t},De=r(76721),Re=r(6213);function Be(e){return Be="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},Be(e)}function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Le.apply(this,arguments)}function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){ze(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ze(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Be(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Be(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function We(e){var t=e.x,r=e.y,n=e.r,o=e.alwaysShow,i=e.clipPathId,a=(0,I.P2)(t),c=(0,I.P2)(r);if((0,Re.Z)(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!c)return null;var u=function(e){var t=e.x,r=e.y,n=e.xAxis,o=e.yAxis,i=(0,De.Ky)({x:n.scale,y:o.scale}),a=i.apply({x:t,y:r},{bandAware:!0});return Ie(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!u)return null;var l=u.x,s=u.y,f=e.shape,p=e.className,d=_e(_e({clipPath:Ie(e,"hidden")?"url(#".concat(i,")"):void 0},(0,D.L6)(e,!0)),{},{cx:l,cy:s});return S().createElement(E.m,{className:A()("recharts-reference-dot",p)},We.renderDot(f,d),q._.renderCallByParent(e,{x:l-n,y:s-n,width:2*n,height:2*n}))}We.displayName="ReferenceDot",We.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},We.renderDot=function(e,t){return S().isValidElement(e)?S().cloneElement(e,t):u()(e)?e(t):S().createElement(X.o,Le({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};var Fe=r(59704),Ge=r.n(Fe);function He(e){return He="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},He(e)}var Ue=["isFront","ifOverflow","xAxisId","yAxisId","position","fill","fillOpacity","stroke","strokeWidth"];function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(r),!0).forEach((function(t){Ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ve(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==He(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===He(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ye.apply(this,arguments)}function qe(e){var t=e.isFront,r=void 0!==t&&t,n=e.ifOverflow,o=void 0===n?"discard":n,i=e.xAxisId,a=void 0===i?0:i,c=e.yAxisId,l=void 0===c?0:c,s=e.position,f=void 0===s?"middle":s,p=e.fill,d=void 0===p?"none":p,y=e.fillOpacity,h=void 0===y?1:y,v=e.stroke,b=void 0===v?"#ccc":v,m=e.strokeWidth,g=Ke({isFront:r,ifOverflow:o,xAxisId:a,yAxisId:l,fill:d,stroke:b,fillOpacity:h,strokeWidth:void 0===m?1:m,position:f},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ue)),O=g.x,x=g.y,w=g.segment,j=g.xAxis,P=g.yAxis,k=g.shape,T=g.className,M=g.alwaysShow,C=g.clipPathId;(0,Re.Z)(void 0===M,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var R=function(e,t,r,n,o){var i=o.viewBox,a=i.x,c=i.y,u=i.width,l=i.height,s=o.position;if(r){var f=o.y,p=o.yAxis.orientation,d=e.y.apply(f,{position:s});if(Ie(o,"discard")&&!e.y.isInRange(d))return null;var y=[{x:a+u,y:d},{x:a,y:d}];return"left"===p?y.reverse():y}if(t){var h=o.x,v=o.xAxis.orientation,b=e.x.apply(h,{position:s});if(Ie(o,"discard")&&!e.x.isInRange(b))return null;var m=[{x:b,y:c+l},{x:b,y:c}];return"top"===v?m.reverse():m}if(n){var g=o.segment.map((function(t){return e.apply(t,{position:s})}));return Ie(o,"discard")&&Ge()(g,(function(t){return!e.isInRange(t)}))?null:g}return null}((0,De.Ky)({x:j.scale,y:P.scale}),(0,I.P2)(O),(0,I.P2)(x),w&&2===w.length,g);if(!R)return null;var B,L,N=(L=2,function(e){if(Array.isArray(e))return e}(B=R)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(B,L)||function(e,t){if(e){if("string"==typeof e)return Xe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xe(e,t):void 0}}(B,L)||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.")}()),_=N[0],z=_.x,W=_.y,F=N[1],G=F.x,H=F.y,U=Ke(Ke({clipPath:Ie(g,"hidden")?"url(#".concat(C,")"):void 0},(0,D.L6)(g,!0)),{},{x1:z,y1:W,x2:G,y2:H});return S().createElement(E.m,{className:A()("recharts-reference-line",T)},function(e,t){return S().isValidElement(e)?S().cloneElement(e,t):u()(e)?e(t):S().createElement("line",Ye({},t,{className:"recharts-reference-line-line"}))}(k,U),q._.renderCallByParent(g,(0,De._b)({x1:z,y1:W,x2:G,y2:H})))}function $e(e){return $e="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},$e(e)}qe.displayName="ReferenceLine";var Je=["isFront","ifOverflow","xAxisId","yAxisId","r","fill","fillOpacity","stroke","strokeWidth"];function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qe.apply(this,arguments)}function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach((function(t){rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==$e(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==$e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$e(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nt(e){var t=e.isFront,r=void 0!==t&&t,n=e.ifOverflow,o=void 0===n?"discard":n,i=e.xAxisId,a=void 0===i?0:i,c=e.yAxisId,u=void 0===c?0:c,l=e.r,s=void 0===l?10:l,f=e.fill,p=void 0===f?"#ccc":f,d=e.fillOpacity,y=void 0===d?.5:d,h=e.stroke,v=void 0===h?"none":h,b=e.strokeWidth,m=tt({isFront:r,ifOverflow:o,xAxisId:a,yAxisId:u,r:s,fill:p,fillOpacity:y,stroke:v,strokeWidth:void 0===b?1:b},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Je)),g=m.x1,O=m.x2,x=m.y1,w=m.y2,j=m.className,P=m.alwaysShow,k=m.clipPathId;(0,Re.Z)(void 0===P,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var T=(0,I.P2)(g),M=(0,I.P2)(O),C=(0,I.P2)(x),R=(0,I.P2)(w),B=m.shape;if(!(T||M||C||R||B))return null;var L=function(e,t,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=(0,De.Ky)({x:l.scale,y:s.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!Ie(o,"discard")||f.isInRange(p)&&f.isInRange(d)?(0,De.O1)(p,d):null}(T,M,C,R,m);if(!L&&!B)return null;var N=Ie(m,"hidden")?"url(#".concat(k,")"):void 0;return S().createElement(E.m,{className:A()("recharts-reference-area",j)},nt.renderRect(B,tt(tt({clipPath:N},(0,D.L6)(m,!0)),L)),q._.renderCallByParent(m,L))}function ot(e){return function(e){if(Array.isArray(e))return it(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return it(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?it(e,t):void 0}}(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 it(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}nt.displayName="ReferenceArea",nt.renderRect=function(e,t){return S().isValidElement(e)?S().cloneElement(e,t):u()(e)?e(t):S().createElement(Z.A,Qe({},t,{className:"recharts-reference-area-rect"}))};var at=function(e,t,r,n,o){var i=(0,D.NN)(e,qe),a=(0,D.NN)(e,We),c=[].concat(ot(i),ot(a)),u=(0,D.NN)(e,nt),l="".concat(n,"Id"),s=n[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[l]===r&&Ie(t.props,"extendDomain")&&(0,I.hj)(t.props[s])){var n=t.props[s];return[Math.min(e[0],n),Math.max(e[1],n)]}return e}),f)),u.length){var p="".concat(s,"1"),d="".concat(s,"2");f=u.reduce((function(e,t){if(t.props[l]===r&&Ie(t.props,"extendDomain")&&(0,I.hj)(t.props[p])&&(0,I.hj)(t.props[d])){var n=t.props[p],o=t.props[d];return[Math.min(e[0],n,o),Math.max(e[1],n,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return(0,I.hj)(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},ct=r(40048),ut=r(26729),lt=new(r.n(ut)());lt.setMaxListeners&&lt.setMaxListeners(10);var st="recharts.syncMouseEvents",ft=["item"],pt=["children","className","width","height","style","compact","title","desc"];function dt(e){return dt="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},dt(e)}function yt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||wt(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 ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(this,arguments)}function vt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function bt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kt(n.key),n)}}function mt(e,t){return mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mt(e,t)}function gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ot(e)}function xt(e){return function(e){if(Array.isArray(e))return jt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wt(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 wt(e,t){if(e){if("string"==typeof e)return jt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(e,t):void 0}}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?St(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function At(e,t,r){return(t=kt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kt(e){var t=function(e,t){if("object"!==dt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===dt(t)?t:String(t)}var Et={xAxis:["bottom","top"],yAxis:["left","right"]},Tt={x:0,y:0},Mt=Number.isFinite?Number.isFinite:isFinite,Ct="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,It="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,Dt=function(e,t,r){var n=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(n||[]).reduce((function(e,t){var r=t.props.data;return r&&r.length?[].concat(xt(e),xt(r)):e}),[]);return a&&a.length>0?a:r&&r.props&&r.props.data&&r.props.data.length>0?r.props.data:e&&e.length&&(0,I.hj)(o)&&(0,I.hj)(i)?e.slice(o,i+1):[]};function Rt(e){return"number"===e?[0,"auto"]:void 0}var Bt=function(e,t,r,n){var o=e.graphicalItems,i=e.tooltipAxis,a=Dt(t,e);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,c=t.props.data;if(i.dataKey&&!i.allowDuplicatedCategory){var u=void 0===c?a:c;o=(0,I.Ap)(u,i.dataKey,n)}else o=c&&c[r]||a[r];return o?[].concat(xt(e),[(0,ye.Qo)(t,o)]):e}),[])},Lt=function(e,t,r,n){var o=n||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,r),a=e.orderedTooltipTicks,c=e.tooltipAxis,u=e.tooltipTicks,l=(0,ye.VO)(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=Bt(e,t,l,s),p=function(e,t,r,n){var o=t.find((function(e){return e&&e.index===r}));if(o){if("horizontal"===e)return{x:o.coordinate,y:n.y};if("vertical"===e)return{x:n.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=n.radius;return Pt(Pt(Pt({},n),(0,ct.op)(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return Pt(Pt(Pt({},n),(0,ct.op)(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return Tt}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},Nt=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,l=e.children,s="".concat(n,"Id"),f=(0,D.NN)(l,o),p={};return f&&f.length?p=function(e,t){var r=t.axes,n=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,l=e.layout,s=e.children,f=e.stackOffset,p=(0,ye.NA)(l,o);return r.reduce((function(t,r){var d=r.props,y=d.type,h=d.dataKey,b=d.allowDataOverflow,g=d.allowDuplicatedCategory,O=d.scale,x=d.ticks,w=r.props[i];if(t[w])return t;var j,S,P,A=Dt(e.data,{graphicalItems:n.filter((function(e){return e.props[i]===w})),dataStartIndex:c,dataEndIndex:u}),k=A.length;if(function(e,t,r){if("number"===r&&!0===t&&Array.isArray(e)){var n=null==e?void 0:e[0],o=null==e?void 0:e[1];if(n&&o&&(0,I.hj)(n)&&(0,I.hj)(o))return!0}return!1}(r.props.domain,b,y)&&(j=(0,ye.LG)(r.props.domain,null,b)),!j||0===j.length){var E,T=null!==(E=r.props.domain)&&void 0!==E?E:Rt(y);if(h){if(j=(0,ye.gF)(A,h,y),"category"===y&&p){var M=(0,I.bv)(j);g&&M?(S=j,j=v()(0,k)):g||(j=(0,ye.ko)(T,j,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(xt(e),[t])}),[]))}else if("category"===y)j=g?j.filter((function(e){return""!==e&&!m()(e)})):(0,ye.ko)(T,j,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||m()(t)?e:[].concat(xt(e),[t])}),[]);else if("number"===y){var C=(0,ye.ZI)(A,n.filter((function(e){return e.props[i]===w&&!e.props.hide})),h,o,l);C&&(j=C)}!p||"number"!==y&&"auto"===O||(P=(0,ye.gF)(A,h,"category"))}else j=p?v()(0,k):a&&a[w]&&a[w].hasStack&&"number"===y?"expand"===f?[0,1]:(0,ye.EB)(a[w].stackGroups,c,u):(0,ye.s6)(A,n.filter((function(e){return e.props[i]===w&&!e.props.hide})),y,l,!0);if("number"===y)j=at(s,j,w,o,x),T&&(j=(0,ye.LG)(T,j,b));else if("category"===y&&T){var D=T;j.every((function(e){return D.indexOf(e)>=0}))&&(j=D)}}return Pt(Pt({},t),{},At({},w,Pt(Pt({},r.props),{},{axisType:o,domain:j,categoricalDomain:P,duplicateDomain:S,originalDomain:r.props.domain,isCategorical:p,layout:l})))}),{})}(e,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(e,t){var r=t.graphicalItems,n=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,l=e.layout,s=e.children,f=Dt(e.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=(0,ye.NA)(l,o),h=-1;return r.reduce((function(e,t){var b,m=t.props[i],g=Rt("number");return e[m]?e:(h++,d?b=v()(0,p):a&&a[m]&&a[m].hasStack?(b=(0,ye.EB)(a[m].stackGroups,c,u),b=at(s,b,m,o)):(b=(0,ye.LG)(g,(0,ye.s6)(f,r.filter((function(e){return e.props[i]===m&&!e.props.hide})),"number",l),n.defaultProps.allowDataOverflow),b=at(s,b,m,o)),Pt(Pt({},e),{},At({},m,Pt(Pt({axisType:o},n.defaultProps),{},{hide:!0,orientation:y()(Et,"".concat(o,".").concat(h%2),null),domain:b,originalDomain:g,isCategorical:d,layout:l}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},_t=function(e){var t,r,n=e.children,o=e.defaultShowTooltip,i=(0,D.sP)(n,Ce);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null==i||null===(r=i.props)||void 0===r?void 0:r.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!m()(o)&&o}},zt=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"}},Wt=function(e){var t,r=e.chartName,n=e.GraphicalChild,i=e.defaultTooltipEventType,c=void 0===i?"axis":i,l=e.validateTooltipEventTypes,f=void 0===l?["axis"]:l,d=e.axisComponents,h=e.legendContent,v=e.formatAxisMap,b=e.defaultProps,g=function(e,t){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!(0,D.TT)({props:o}))return null;var u=o.children,l=o.layout,s=o.stackOffset,f=o.data,h=o.reverseStackOrder,b=zt(l),g=b.numericAxisName,O=b.cateAxisName,x=(0,D.NN)(u,n),w=(0,ye.wh)(f,x,"".concat(g,"Id"),"".concat(O,"Id"),s,h),j=d.reduce((function(e,t){var r="".concat(t.axisType,"Map");return Pt(Pt({},e),{},At({},r,Nt(o,Pt(Pt({},t),{},{graphicalItems:x,stackGroups:t.axisType===g&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),S=function(e,t){var r=e.props,n=e.graphicalItems,o=e.xAxisMap,i=void 0===o?{}:o,a=e.yAxisMap,c=void 0===a?{}:a,u=r.width,l=r.height,s=r.children,f=r.margin||{},p=(0,D.sP)(s,Ce),d=(0,D.sP)(s,M.D),h=Object.keys(c).reduce((function(e,t){var r=c[t],n=r.orientation;return r.mirror||r.hide?e:Pt(Pt({},e),{},At({},n,e[n]+r.width))}),{left:f.left||0,right:f.right||0}),v=Object.keys(i).reduce((function(e,t){var r=i[t],n=r.orientation;return r.mirror||r.hide?e:Pt(Pt({},e),{},At({},n,y()(e,"".concat(n))+r.height))}),{top:f.top||0,bottom:f.bottom||0}),b=Pt(Pt({},v),h),m=b.bottom;return p&&(b.bottom+=p.props.height||Ce.defaultProps.height),d&&t&&(b=(0,ye.By)(b,n,r,t)),Pt(Pt({brushBottom:m},b),{},{width:u-b.left-b.right,height:l-b.top-b.bottom})}(Pt(Pt({},j),{},{props:o,graphicalItems:x}),null==t?void 0:t.legendBBox);Object.keys(j).forEach((function(e){j[e]=v(o,j[e],S,e.replace("Map",""),r)}));var P,A,k,E=(P=j["".concat(O,"Map")],A=(0,I.Kt)(P),{tooltipTicks:k=(0,ye.uY)(A,!1,!0),orderedTooltipTicks:p()(k,(function(e){return e.coordinate})),tooltipAxis:A,tooltipAxisBandSize:(0,ye.zT)(A,k)}),T=function(e,t){var r=t.graphicalItems,n=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,c=t.dataEndIndex,u=e.barSize,l=e.layout,s=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,y=zt(l),h=y.numericAxisName,v=y.cateAxisName,b=function(e){return!(!e||!e.length)&&e.some((function(e){var t=(0,D.Gf)(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(r),g=b&&(0,ye.pt)({barSize:u,stackGroups:n}),O=[];return r.forEach((function(r,u){var y=Dt(e.data,{dataStartIndex:a,dataEndIndex:c},r),b=r.props,x=b.dataKey,w=b.maxBarSize,j=r.props["".concat(h,"Id")],S=r.props["".concat(v,"Id")],P=d.reduce((function(e,n){var o,i=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],c=i&&i[a];return Pt(Pt({},e),{},(At(o={},n.axisType,c),At(o,"".concat(n.axisType,"Ticks"),(0,ye.uY)(c)),o))}),{}),A=P[v],k=P["".concat(v,"Ticks")],E=n&&n[j]&&n[j].hasStack&&(0,ye.O3)(r,n[j].stackGroups),T=(0,D.Gf)(r.type).indexOf("Bar")>=0,M=(0,ye.zT)(A,k),C=[];if(T){var I,R,B=m()(w)?p:w,L=null!==(I=null!==(R=(0,ye.zT)(A,k,!0))&&void 0!==R?R:B)&&void 0!==I?I:0;C=(0,ye.qz)({barGap:s,barCategoryGap:f,bandSize:L!==M?L:M,sizeList:g[S],maxBarSize:B}),L!==M&&(C=C.map((function(e){return Pt(Pt({},e),{},{position:Pt(Pt({},e.position),{},{offset:e.position.offset-L/2})})})))}var N,_=r&&r.type&&r.type.getComposedData;_&&O.push({props:Pt(Pt({},_(Pt(Pt({},P),{},{displayedData:y,props:e,dataKey:x,item:r,bandSize:M,barPosition:C,offset:o,stackedData:E,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},(N={key:r.key||"item-".concat(u)},At(N,h,P[h]),At(N,v,P[v]),At(N,"animationId",i),N)),childIndex:(0,D.$R)(r,e.children),item:r})})),O}(o,Pt(Pt({},j),{},{dataStartIndex:i,dataEndIndex:a,updateId:c,graphicalItems:x,stackGroups:w,offset:S}));return Pt(Pt({formattedGraphicalItems:T,graphicalItems:x,offset:S,stackGroups:w},E),j)};return 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mt(e,t)}(d,e);var t,n,i,l,p=(i=d,l=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}}(),function(){var e,t=Ot(i);if(l){var r=Ot(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===dt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gt(e)}(this,e)});function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),At(gt(t=p.call(this,e)),"clearDeferId",(function(){!m()(t.deferId)&&It&&It(t.deferId),t.deferId=null})),At(gt(t),"handleLegendBBoxUpdate",(function(e){if(e){var r=t.state,n=r.dataStartIndex,o=r.dataEndIndex,i=r.updateId;t.setState(Pt({legendBBox:e},g({props:t.props,dataStartIndex:n,dataEndIndex:o,updateId:i},Pt(Pt({},t.state),{},{legendBBox:e}))))}})),At(gt(t),"handleReceiveSyncEvent",(function(e,r,n){t.props.syncId===e&&r!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=Ct&&Ct(t.applySyncEvent.bind(gt(t),n)))})),At(gt(t),"handleBrushChange",(function(e){var r=e.startIndex,n=e.endIndex;if(r!==t.state.dataStartIndex||n!==t.state.dataEndIndex){var o=t.state.updateId;t.setState((function(){return Pt({dataStartIndex:r,dataEndIndex:n},g({props:t.props,dataStartIndex:r,dataEndIndex:n,updateId:o},t.state))})),t.triggerSyncEvent({dataStartIndex:r,dataEndIndex:n})}})),At(gt(t),"handleMouseEnter",(function(e){var r=t.props.onMouseEnter,n=t.getMouseInfo(e);if(n){var o=Pt(Pt({},n),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),u()(r)&&r(o,e)}})),At(gt(t),"triggeredAfterMouseMove",(function(e){var r=t.props.onMouseMove,n=t.getMouseInfo(e),o=n?Pt(Pt({},n),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(o),t.triggerSyncEvent(o),u()(r)&&r(o,e)})),At(gt(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),At(gt(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),At(gt(t),"handleMouseMove",(function(e){e&&u()(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),At(gt(t),"handleMouseLeave",(function(e){var r=t.props.onMouseLeave,n={isTooltipActive:!1};t.setState(n),t.triggerSyncEvent(n),u()(r)&&r(n,e),t.cancelThrottledTriggerAfterMouseMove()})),At(gt(t),"handleOuterEvent",(function(e){var r=(0,D.Bh)(e),n=y()(t.props,"".concat(r));r&&u()(n)&&n(/.*touch.*/i.test(r)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),At(gt(t),"handleClick",(function(e){var r=t.props.onClick,n=t.getMouseInfo(e);if(n){var o=Pt(Pt({},n),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),u()(r)&&r(o,e)}})),At(gt(t),"handleMouseDown",(function(e){var r=t.props.onMouseDown;u()(r)&&r(t.getMouseInfo(e),e)})),At(gt(t),"handleMouseUp",(function(e){var r=t.props.onMouseUp;u()(r)&&r(t.getMouseInfo(e),e)})),At(gt(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),At(gt(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),At(gt(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),At(gt(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,r=e.width,n=e.height,o=e.offset;return(0,ye.Rf)(pe.getTicks(Pt(Pt(Pt({},pe.defaultProps),t),{},{ticks:(0,ye.uY)(t,!0),viewBox:{x:0,y:0,width:r,height:n}})),o.left,o.left+o.width)})),At(gt(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,r=e.width,n=e.height,o=e.offset;return(0,ye.Rf)(pe.getTicks(Pt(Pt(Pt({},pe.defaultProps),t),{},{ticks:(0,ye.uY)(t,!0),viewBox:{x:0,y:0,width:r,height:n}})),o.top,o.top+o.height)})),At(gt(t),"axesTicksGenerator",(function(e){return(0,ye.uY)(e,!0)})),At(gt(t),"renderCursor",(function(e){var n=t.state,o=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,c=n.offset,u=n.activeTooltipIndex,l=t.getTooltipEventType();if(!e||!e.props.cursor||!o||!i||"ScatterChart"!==r&&"axis"!==l)return null;var s,f=t.props.layout,p=C.H;if("ScatterChart"===r)s=i,p=H;else if("BarChart"===r)s=t.getCursorRectangle(),p=Z.A;else if("radial"===f){var d=t.getCursorPoints(),y=d.cx,h=d.cy,v=d.radius;s={cx:y,cy:h,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:v,outerRadius:v},p=U.L}else s={points:t.getCursorPoints()},p=C.H;var b=e.key||"_recharts-cursor",m=Pt(Pt(Pt(Pt({stroke:"#ccc",pointerEvents:"none"},c),s),(0,D.L6)(e.props.cursor)),{},{payload:a,payloadIndex:u,key:b,className:"recharts-tooltip-cursor"});return(0,j.isValidElement)(e.props.cursor)?(0,j.cloneElement)(e.props.cursor,m):(0,j.createElement)(p,m)})),At(gt(t),"renderPolarAxis",(function(e,r,n){var o=y()(e,"type.axisType"),i=y()(t.state,"".concat(o,"Map")),a=i&&i[e.props["".concat(o,"Id")]];return(0,j.cloneElement)(e,Pt(Pt({},a),{},{className:o,key:e.key||"".concat(r,"-").concat(n),ticks:(0,ye.uY)(a,!0)}))})),At(gt(t),"renderXAxis",(function(e,r,n){var o=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(o,e,r,n)})),At(gt(t),"renderYAxis",(function(e,r,n){var o=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(o,e,r,n)})),At(gt(t),"renderGrid",(function(e){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,c=r.offset,u=t.props,l=u.width,s=u.height,f=(0,I.Kt)(n),p=a()(i,(function(e){return o()(e.domain,Mt)}))||(0,I.Kt)(i),d=e.props||{};return(0,j.cloneElement)(e,{key:e.key||"grid",x:(0,I.hj)(d.x)?d.x:c.left,y:(0,I.hj)(d.y)?d.y:c.top,width:(0,I.hj)(d.width)?d.width:c.width,height:(0,I.hj)(d.height)?d.height:c.height,xAxis:f,yAxis:p,offset:c,chartWidth:l,chartHeight:s,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})})),At(gt(t),"renderPolarGrid",(function(e){var r=e.props,n=r.radialLines,o=r.polarAngles,i=r.polarRadius,a=t.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=(0,I.Kt)(c),s=(0,I.Kt)(u),f=s.cx,p=s.cy,d=s.innerRadius,y=s.outerRadius;return(0,j.cloneElement)(e,{polarAngles:w()(o)?o:(0,ye.uY)(s,!0).map((function(e){return e.coordinate})),polarRadius:w()(i)?i:(0,ye.uY)(l,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:y,key:e.key||"polar-grid",radialLines:n})})),At(gt(t),"renderLegend",(function(){var e=t.state.formattedGraphicalItems,r=t.props,n=r.children,o=r.width,i=r.height,a=t.props.margin||{},c=o-(a.left||0)-(a.right||0),u=(0,ye.zp)({children:n,formattedGraphicalItems:e,legendWidth:c,legendContent:h});if(!u)return null;var l=u.item,s=vt(u,ft);return(0,j.cloneElement)(l,Pt(Pt({},s),{},{chartWidth:o,chartHeight:i,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),At(gt(t),"renderTooltip",(function(){var e=t.props.children,r=(0,D.sP)(e,T.u);if(!r)return null;var n=t.state,o=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,c=n.activeLabel,u=n.offset;return(0,j.cloneElement)(r,{viewBox:Pt(Pt({},u),{},{x:u.left,y:u.top}),active:o,label:c,payload:o?a:[],coordinate:i})})),At(gt(t),"renderBrush",(function(e){var r=t.props,n=r.margin,o=r.data,i=t.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,l=i.updateId;return(0,j.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:(0,ye.DO)(t.handleBrushChange,null,e.props.onChange),data:o,x:(0,I.hj)(e.props.x)?e.props.x:a.left,y:(0,I.hj)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:(0,I.hj)(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),At(gt(t),"renderReferenceElement",(function(e,r,n){if(!e)return null;var o=gt(t).clipPathId,i=t.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,l=e.props,s=l.xAxisId,f=l.yAxisId;return(0,j.cloneElement)(e,{key:e.key||"".concat(r,"-").concat(n),xAxis:a[null!=s?s:0],yAxis:c[null!=f?f:0],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:o})})),At(gt(t),"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,n=e.basePoint,o=e.childIndex,i=e.isRange,a=[],c=t.props.key,u=t.item.props,l=u.activeDot,s=Pt(Pt({index:o,dataKey:u.dataKey,cx:r.x,cy:r.y,r:4,fill:(0,ye.fk)(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(c,"-activePoint-").concat(o)},(0,D.L6)(l)),(0,J.Ym)(l));return a.push(d.renderActiveDot(l,s)),n?a.push(d.renderActiveDot(l,Pt(Pt({},s),{},{cx:n.x,cy:n.y,key:"".concat(c,"-basePoint-").concat(o)}))):i&&a.push(null),a})),At(gt(t),"renderGraphicChild",(function(e,r,n){var o=t.filterFormatItem(e,r,n);if(!o)return null;var i=t.getTooltipEventType(),a=t.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=t.props.children,p=(0,D.sP)(f,T.u),d=o.props,y=d.points,h=d.isRange,v=d.baseLine,b=o.item.props,g=b.activeDot,O=!b.hide&&c&&p&&g&&l>=0,x={};"axis"!==i&&p&&"click"===p.props.trigger?x={onClick:(0,ye.DO)(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==i&&(x={onMouseLeave:(0,ye.DO)(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:(0,ye.DO)(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var w=(0,j.cloneElement)(e,Pt(Pt({},o.props),x));if(O){var S,P;if(u.dataKey&&!u.allowDuplicatedCategory){var A="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());S=(0,I.Ap)(y,A,s),P=h&&v&&(0,I.Ap)(v,A,s)}else S=y[l],P=h&&v&&v[l];if(!m()(S))return[w].concat(xt(t.renderActivePoints({item:o,activePoint:S,basePoint:P,childIndex:l,isRange:h})))}return h?[w,null,null]:[w,null]})),At(gt(t),"renderCustomized",(function(e,r,n){return(0,j.cloneElement)(e,Pt(Pt({key:"recharts-customized-".concat(n)},t.props),t.state))})),t.uniqueChartId=m()(e.id)?(0,I.EL)("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=s()(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=d,(n=[{key:"componentDidMount",value:function(){m()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){m()(e.syncId)&&!m()(this.props.syncId)&&this.addListener(),!m()(e.syncId)&&m()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),m()(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=(0,D.sP)(this.props.children,T.u);if(e&&O()(e.props.shared)){var t=e.props.shared?"axis":"item";return f.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=(0,V.os)(this.container),r=(0,V.IR)(e,t),n=this.inRange(r.chartX,r.chartY);if(!n)return null;var o=this.state,i=o.xAxisMap,a=o.yAxisMap;if("axis"!==this.getTooltipEventType()&&i&&a){var c=(0,I.Kt)(i).scale,u=(0,I.Kt)(a).scale,l=c&&c.invert?c.invert(r.chartX):null,s=u&&u.invert?u.invert(r.chartY):null;return Pt(Pt({},r),{},{xValue:l,yValue:s})}var f=Lt(this.state,this.props.data,this.props.layout,n);return f?Pt(Pt({},r),f):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,r=t.activeCoordinate,n=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?r.x-i:n.left+.5,y:"horizontal"===e?n.top+.5:r.y-i,width:"horizontal"===e?o:n.width-1,height:"horizontal"===e?n.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,r,n,o=this.props.layout,i=this.state,a=i.activeCoordinate,c=i.offset;if("horizontal"===o)r=e=a.x,t=c.top,n=c.top+c.height;else if("vertical"===o)n=t=a.y,e=c.left,r=c.left+c.width;else if(!m()(a.cx)||!m()(a.cy)){if("centric"!==o){var u=a.cx,l=a.cy,s=a.radius,f=a.startAngle,p=a.endAngle;return{points:[(0,ct.op)(u,l,s,f),(0,ct.op)(u,l,s,p)],cx:u,cy:l,radius:s,startAngle:f,endAngle:p}}var d=a.cx,y=a.cy,h=a.innerRadius,v=a.outerRadius,b=a.angle,g=(0,ct.op)(d,y,h,b),O=(0,ct.op)(d,y,v,b);e=g.x,t=g.y,r=O.x,n=O.y}return[{x:e,y:t},{x:r,y:n}]}},{key:"inRange",value:function(e,t){var r=this.props.layout;if("horizontal"===r||"vertical"===r){var n=this.state.offset;return e>=n.left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var c=(0,I.Kt)(i);return(0,ct.z3)({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=(0,D.sP)(e,T.u),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),Pt(Pt({},(0,J.Ym)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){lt.on(st,this.handleReceiveSyncEvent),lt.setMaxListeners&&lt._maxListeners&&lt.setMaxListeners(lt._maxListeners+1)}},{key:"removeListener",value:function(){lt.removeListener(st,this.handleReceiveSyncEvent),lt.setMaxListeners&&lt._maxListeners&&lt.setMaxListeners(lt._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;m()(t)||lt.emit(st,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,r=t.layout,n=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(m()(e.dataStartIndex)&&m()(e.dataEndIndex))if(m()(e.activeTooltipIndex))this.setState(e);else{var c=e.chartX,u=e.chartY,l=e.activeTooltipIndex,s=this.state,f=s.offset,p=s.tooltipTicks;if(!f)return;if("function"==typeof n)l=n(p,e);else if("value"===n){l=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){l=d;break}}var y=Pt(Pt({},f),{},{x:f.left,y:f.top}),h=Math.min(c,y.x+y.width),v=Math.min(u,y.y+y.height),b=p[l]&&p[l].value,O=Bt(this.state,this.props.data,l),x=p[l]?{x:"horizontal"===r?p[l].coordinate:h,y:"horizontal"===r?v:p[l].coordinate}:Tt;this.setState(Pt(Pt({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:O,activeTooltipIndex:l}))}else this.setState(Pt({dataStartIndex:i,dataEndIndex:a},g({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===e||a.props.key===e.key||t===(0,D.Gf)(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,r,n){var o=this.props,i=o.width,a=o.height;return S().createElement(pe,ht({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(r,"-").concat(n),viewBox:{x:0,y:0,width:i,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,n=t.top,o=t.height,i=t.width;return S().createElement("defs",null,S().createElement("clipPath",{id:e},S().createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=yt(t,2),n=r[0],o=r[1];return Pt(Pt({},e),{},At({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=yt(t,2),n=r[0],o=r[1];return Pt(Pt({},e),{},At({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,r;return null===(t=this.state.xAxisMap)||void 0===t||null===(r=t[e])||void 0===r?void 0:r.scale}},{key:"getYScaleByAxisId",value:function(e){var t,r;return null===(t=this.state.yAxisMap)||void 0===t||null===(r=t[e])||void 0===r?void 0:r.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var r=0,n=t.length;r<n;r++){var o=t[r],i=o.props,a=o.item,c=(0,D.Gf)(a.type);if("Bar"===c){var u=(i.data||[]).find((function(t){return(0,Z.X)(e,t)}));if(u)return{graphicalItem:o,payload:u}}else if("RadialBar"===c){var l=(i.data||[]).find((function(t){return(0,ct.z3)(e,t)}));if(l)return{graphicalItem:o,payload:l}}}return null}},{key:"render",value:function(){var e=this;if(!(0,D.TT)(this))return null;var t=this.props,r=t.children,n=t.className,o=t.width,i=t.height,a=t.style,c=t.compact,u=t.title,l=t.desc,s=vt(t,pt),f=(0,D.L6)(s),p={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(c)return S().createElement(k.T,ht({},f,{width:o,height:i,title:u,desc:l}),this.renderClipPath(),(0,D.eu)(r,p));var d=this.parseEventsOfWrapper();return S().createElement("div",ht({className:A()("recharts-wrapper",n),style:Pt({position:"relative",cursor:"default",width:o,height:i},a)},d,{ref:function(t){e.container=t},role:"region"}),S().createElement(k.T,ht({},f,{width:o,height:i,title:u,desc:l}),this.renderClipPath(),(0,D.eu)(r,p)),this.renderLegend(),this.renderTooltip())}}])&&bt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(j.Component),At(t,"displayName",r),At(t,"defaultProps",Pt({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},b)),At(t,"getDerivedStateFromProps",(function(e,t){var r=e.data,n=e.children,o=e.width,i=e.height,a=e.layout,c=e.stackOffset,u=e.margin;if(m()(t.updateId)){var l=_t(e);return Pt(Pt(Pt({},l),{},{updateId:0},g(Pt(Pt({props:e},l),{},{updateId:0}),t)),{},{prevData:r,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:c,prevMargin:u,prevChildren:n})}if(r!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||c!==t.prevStackOffset||!(0,K.w)(u,t.prevMargin)){var s=_t(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=Pt(Pt({},Lt(t,r,a)),{},{updateId:t.updateId+1}),d=Pt(Pt(Pt({},s),f),p);return Pt(Pt(Pt({},d),g(Pt({props:e},d),t)),{},{prevData:r,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:c,prevMargin:u,prevChildren:n})}if(!(0,D.rL)(n,t.prevChildren)){var y=m()(r)?t.updateId+1:t.updateId;return Pt(Pt({updateId:y},g(Pt(Pt({props:e},t),{},{updateId:y}),t)),{},{prevChildren:n})}return null})),At(t,"renderActiveDot",(function(e,t){var r;return r=(0,j.isValidElement)(e)?(0,j.cloneElement)(e,t):u()(e)?e(t):S().createElement(X.o,t),S().createElement(E.m,{className:"recharts-active-dot",key:t.key},r)})),t}},43815:(e,t,r)=>{r.d(t,{b:()=>n});var n=function(e){return null};n.displayName="Cell"},25048:(e,t,r)=>{r.d(t,{_:()=>E});var n=r(13218),o=r.n(n),i=r(23560),a=r.n(i),c=r(14293),u=r.n(c),l=r(99196),s=r.n(l),f=r(94184),p=r.n(f),d=r(88169),y=r(52017),h=r(69055),v=r(40048);function b(e){return b="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},b(e)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}var j=function(e){var t=e.value,r=e.formatter,n=u()(e.children)?t:e.children;return a()(r)?r(n):n},S=function(e,t,r){var n,o,i=e.position,a=e.viewBox,c=e.offset,l=e.className,f=a,d=f.cx,y=f.cy,b=f.innerRadius,m=f.outerRadius,g=f.startAngle,O=f.endAngle,x=f.clockWise,j=(b+m)/2,S=function(e,t){return(0,h.uY)(t-e)*Math.min(Math.abs(t-e),360)}(g,O),P=S>=0?1:-1;"insideStart"===i?(n=g+P*c,o=x):"insideEnd"===i?(n=O-P*c,o=!x):"end"===i&&(n=O+P*c,o=x),o=S<=0?o:!o;var A=(0,v.op)(d,y,j,n),k=(0,v.op)(d,y,j,n+359*(o?1:-1)),E="M".concat(A.x,",").concat(A.y,"\n    A").concat(j,",").concat(j,",0,1,").concat(o?0:1,",\n    ").concat(k.x,",").concat(k.y),T=u()(e.id)?(0,h.EL)("recharts-radial-line-"):e.id;return s().createElement("text",w({},r,{dominantBaseline:"central",className:p()("recharts-radial-bar-label",l)}),s().createElement("defs",null,s().createElement("path",{id:T,d:E})),s().createElement("textPath",{xlinkHref:"#".concat(T)},t))},P=function(e){var t=e.viewBox,r=e.offset,n=e.position,o=t,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=(0,v.op)(i,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=(c+u)/2,d=(0,v.op)(i,a,p,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},A=function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,i=e.position,a=t,c=a.x,u=a.y,l=a.width,s=a.height,f=s>=0?1:-1,p=f*n,d=f>0?"end":"start",y=f>0?"start":"end",v=l>=0?1:-1,b=v*n,m=v>0?"end":"start",g=v>0?"start":"end";if("top"===i)return O(O({},{x:c+l/2,y:u-f*n,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(u-r.y,0),width:l}:{});if("bottom"===i)return O(O({},{x:c+l/2,y:u+s+p,textAnchor:"middle",verticalAnchor:y}),r?{height:Math.max(r.y+r.height-(u+s),0),width:l}:{});if("left"===i){var x={x:c-b,y:u+s/2,textAnchor:m,verticalAnchor:"middle"};return O(O({},x),r?{width:Math.max(x.x-r.x,0),height:s}:{})}if("right"===i){var w={x:c+l+b,y:u+s/2,textAnchor:g,verticalAnchor:"middle"};return O(O({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:s}:{})}var j=r?{width:l,height:s}:{};return"insideLeft"===i?O({x:c+b,y:u+s/2,textAnchor:g,verticalAnchor:"middle"},j):"insideRight"===i?O({x:c+l-b,y:u+s/2,textAnchor:m,verticalAnchor:"middle"},j):"insideTop"===i?O({x:c+l/2,y:u+p,textAnchor:"middle",verticalAnchor:y},j):"insideBottom"===i?O({x:c+l/2,y:u+s-p,textAnchor:"middle",verticalAnchor:d},j):"insideTopLeft"===i?O({x:c+b,y:u+p,textAnchor:g,verticalAnchor:y},j):"insideTopRight"===i?O({x:c+l-b,y:u+p,textAnchor:m,verticalAnchor:y},j):"insideBottomLeft"===i?O({x:c+b,y:u+s-p,textAnchor:g,verticalAnchor:d},j):"insideBottomRight"===i?O({x:c+l-b,y:u+s-p,textAnchor:m,verticalAnchor:d},j):o()(i)&&((0,h.hj)(i.x)||(0,h.hU)(i.x))&&((0,h.hj)(i.y)||(0,h.hU)(i.y))?O({x:c+(0,h.h1)(i.x,l),y:u+(0,h.h1)(i.y,s),textAnchor:"end",verticalAnchor:"end"},j):O({x:c+l/2,y:u+s/2,textAnchor:"middle",verticalAnchor:"middle"},j)},k=function(e){return"cx"in e&&(0,h.hj)(e.cx)};function E(e){var t,r=e.viewBox,n=e.position,o=e.value,i=e.children,c=e.content,f=e.className,h=void 0===f?"":f,v=e.textBreakAll;if(!r||u()(o)&&u()(i)&&!(0,l.isValidElement)(c)&&!a()(c))return null;if((0,l.isValidElement)(c))return(0,l.cloneElement)(c,e);if(a()(c)){if(t=(0,l.createElement)(c,e),(0,l.isValidElement)(t))return t}else t=j(e);var b=k(r),m=(0,y.L6)(e,!0);if(b&&("insideStart"===n||"insideEnd"===n||"end"===n))return S(e,t,m);var g=b?P(e):A(e);return s().createElement(d.x,w({className:p()("recharts-label",h)},m,g,{breakAll:v}),t)}E.displayName="Label",E.defaultProps={offset:5};var T=function(e){var t=e.cx,r=e.cy,n=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,c=e.radius,u=e.innerRadius,l=e.outerRadius,s=e.x,f=e.y,p=e.top,d=e.left,y=e.width,v=e.height,b=e.clockWise,m=e.labelViewBox;if(m)return m;if((0,h.hj)(y)&&(0,h.hj)(v)){if((0,h.hj)(s)&&(0,h.hj)(f))return{x:s,y:f,width:y,height:v};if((0,h.hj)(p)&&(0,h.hj)(d))return{x:p,y:d,width:y,height:v}}return(0,h.hj)(s)&&(0,h.hj)(f)?{x:s,y:f,width:0,height:0}:(0,h.hj)(t)&&(0,h.hj)(r)?{cx:t,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:b}:e.viewBox?e.viewBox:{}};E.parseViewBox=T,E.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=T(e),c=(0,y.NN)(n,E).map((function(e,r){return(0,l.cloneElement)(e,{viewBox:t||i,key:"label-".concat(r)})}));if(!r)return c;var u,f=function(e,t){return e?!0===e?s().createElement(E,{key:"label-implicit",viewBox:t}):(0,h.P2)(e)?s().createElement(E,{key:"label-implicit",viewBox:t,value:e}):(0,l.isValidElement)(e)?e.type===E?(0,l.cloneElement)(e,{key:"label-implicit",viewBox:t}):s().createElement(E,{key:"label-implicit",content:e,viewBox:t}):a()(e)?s().createElement(E,{key:"label-implicit",content:e,viewBox:t}):o()(e)?s().createElement(E,w({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||i);return[f].concat(function(e){if(Array.isArray(e))return m(e)}(u=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}(u)||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.")}())}},2763:(e,t,r)=>{r.d(t,{e:()=>k});var n=r(13218),o=r.n(n),i=r(23560),a=r.n(i),c=r(14293),u=r.n(c),l=r(10928),s=r.n(l),f=r(1469),p=r.n(f),d=r(99196),y=r.n(d),h=r(25048),v=r(48710),b=r(52017),m=r(73634);function g(e){return g="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},g(e)}var O=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A={valueAccessor:function(e){return p()(e.value)?s()(e.value):e.value}};function k(e){var t=e.data,r=e.valueAccessor,n=e.dataKey,o=e.clockWise,i=e.id,a=e.textBreakAll,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,O);return t&&t.length?y().createElement(v.m,{className:"recharts-label-list"},t.map((function(e,t){var l=u()(n)?r(e,t):(0,m.F$)(e&&e.payload,n),s=u()(i)?{}:{id:"".concat(i,"-").concat(t)};return y().createElement(h._,w({},(0,b.L6)(e,!0),c,s,{parentViewBox:e.parentViewBox,index:t,value:l,textBreakAll:a,viewBox:h._.parseViewBox(u()(o)?e:S(S({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}k.displayName="LabelList",k.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n,i=e.children,c=(0,b.NN)(i,k).map((function(e,r){return(0,d.cloneElement)(e,{data:t,key:"labelList-".concat(r)})}));return r?[function(e,t){return e?!0===e?y().createElement(k,{key:"labelList-implicit",data:t}):y().isValidElement(e)||a()(e)?y().createElement(k,{key:"labelList-implicit",data:t,content:e}):o()(e)?y().createElement(k,w({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(function(e){if(Array.isArray(e))return x(e)}(n=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}(n)||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.")}()):c},k.defaultProps=A},11542:(e,t,r)=>{r.d(t,{D:()=>ne});var n=r(23560),o=r.n(n),i=r(45578),a=r.n(i),c=r(99196),u=r.n(c),l=r(94184),s=r.n(l),f=r(20514),p=r(11700),d=r.n(p),y=r(98811),h=r(52170),v=r(15841),b=r(70783),m=r(78960),g=r(36658),O=r(38161),x=r(73777),w=r(52017);function j(e){return j="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},j(e)}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S.apply(this,arguments)}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function E(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(e){var t=function(e,t){if("object"!==j(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===j(t)?t:String(t)}var M={symbolCircle:y.Z,symbolCross:h.Z,symbolDiamond:v.Z,symbolSquare:b.Z,symbolStar:m.Z,symbolTriangle:g.Z,symbolWye:O.Z},C=Math.PI/180,I=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(a,e);var t,r,n,o,i=(n=a,o=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}}(),function(){var e,t=k(n);if(o){var r=k(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"getPath",value:function(){var e=this.props,t=e.size,r=e.sizeType,n=e.type,o=function(e){var t="symbol".concat(d()(e));return M[t]||y.Z}(n),i=(0,x.ZP)().type(o).size(function(e,t,r){if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*C;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(t,r,n));return i()}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.cx,n=e.cy,o=e.size,i=(0,w.L6)(this.props,!0);return r===+r&&n===+n&&o===+o?u().createElement("path",S({},i,{className:s()("recharts-symbols",t),transform:"translate(".concat(r,", ").concat(n,")"),d:this.getPath()})):null}}])&&P(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.PureComponent);E(I,"defaultProps",{type:"circle",size:64,sizeType:"area"}),E(I,"registerSymbol",(function(e,t){M["symbol".concat(d()(e))]=t}));var D=r(79896);function R(e){return R="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},R(e)}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(this,arguments)}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,F(n.key),n)}}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function W(e,t,r){return(t=F(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F(e){var t=function(e,t){if("object"!==R(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===R(t)?t:String(t)}var G=32,H=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(a,e);var t,r,n,o,i=(n=a,o=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}}(),function(){var e,t=z(n);if(o){var r=z(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,r=16,n=G/6,o=G/3,i=e.inactive?t:e.color;if("plainline"===e.type)return u().createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:G,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return u().createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(r,"h").concat(o,"\n            A").concat(n,",").concat(n,",0,1,1,").concat(2*o,",").concat(r,"\n            H").concat(G,"M").concat(2*o,",").concat(r,"\n            A").concat(n,",").concat(n,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return u().createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(G,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(u().isValidElement(e.legendIcon)){var a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return delete a.legendIcon,u().cloneElement(e.legendIcon,a)}return u().createElement(I,{fill:i,cx:r,cy:r,size:G,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,r=t.payload,n=t.iconSize,o=t.layout,i=t.formatter,a=t.inactiveColor,c={x:0,y:0,width:G,height:G},l={display:"horizontal"===o?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(t,r){var o,d=t.formatter||i,y=s()((W(o={"recharts-legend-item":!0},"legend-item-".concat(r),!0),W(o,"inactive",t.inactive),o));if("none"===t.type)return null;var h=t.inactive?a:t.color;return u().createElement("li",B({className:y,style:l,key:"legend-item-".concat(r)},(0,D.bw)(e.props,t,r)),u().createElement(f.T,{width:n,height:n,viewBox:c,style:p},e.renderIcon(t)),u().createElement("span",{className:"recharts-legend-item-text",style:{color:h}},d?d(t.value,t,r):t.value))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,n=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return u().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&N(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.PureComponent);W(H,"displayName","Legend"),W(H,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var U=r(69055);function X(e){return X="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},X(e)}var Z=["ref"];function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach((function(t){Q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ee(n.key),n)}}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}function Q(e,t,r){return(t=ee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ee(e){var t=function(e,t){if("object"!==X(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==X(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===X(t)?t:String(t)}function te(e){return e.value}function re(e,t){return!0===e?a()(t,te):o()(e)?a()(t,e):t}var ne=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(l,e);var t,r,n,i,a,c=(i=l,a=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}}(),function(){var e,t=J(i);if(a){var r=J(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $(e)}(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Q($(e=c.call.apply(c,[this].concat(r))),"state",{boxWidth:-1,boxHeight:-1}),e}return t=l,n=[{key:"getWithHeight",value:function(e,t){var r=e.props.layout;return"vertical"===r&&(0,U.hj)(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight;return t>=0&&r>=0?{width:t,height:r}:null}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===a?{top:((l||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),V(V({},t),r)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight,n=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-r)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){n&&n(o)}))}else-1===t&&-1===r||this.setState({boxWidth:-1,boxHeight:-1},(function(){n&&n(null)}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,n=t.width,i=t.height,a=t.wrapperStyle,c=t.payloadUniqBy,l=t.payload,s=V(V({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return u().createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(u().isValidElement(e))return u().cloneElement(e,t);if(o()(e))return u().createElement(e,t);t.ref;var r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Z);return u().createElement(H,r)}(r,V(V({},this.props),{},{payload:re(c,l)})))}}])&&Y(t.prototype,r),n&&Y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(c.PureComponent);Q(ne,"displayName","Legend"),Q(ne,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},89390:(e,t,r)=>{r.d(t,{h:()=>q});var n=r(94184),o=r.n(n),i=r(99196),a=r.n(i),c=r(91850),u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},u(e,t)};var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},f="object"==typeof l&&l&&l.Object===Object&&l,p="object"==typeof self&&self&&self.Object===Object&&self,d=f||p||Function("return this")(),y=d,h=/\s/,v=/^\s+/,b=d.Symbol,m=b,g=Object.prototype,O=g.hasOwnProperty,x=g.toString,w=m?m.toStringTag:void 0,j=Object.prototype.toString,S=function(e){var t=O.call(e,w),r=e[w];try{e[w]=void 0;var n=!0}catch(e){}var o=x.call(e);return n&&(t?e[w]=r:delete e[w]),o},P=b?b.toStringTag:void 0,A=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":P&&P in Object(e)?S(e):function(e){return j.call(e)}(e)},k=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&h.test(e.charAt(t)););return t}(e)+1).replace(v,""):e},E=s,T=/^[-+]0x[0-9a-f]+$/i,M=/^0b[01]+$/i,C=/^0o[0-7]+$/i,I=parseInt,D=s,R=function(){return y.Date.now()},B=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==A(e)}(e))return NaN;if(E(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=E(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=k(e);var r=M.test(e);return r||C.test(e)?I(e.slice(2),r?2:8):T.test(e)?NaN:+e},L=Math.max,N=Math.min,_=function(e,t,r){var n,o,i,a,c,u,l=0,s=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var r=n,i=o;return n=o=void 0,l=t,a=e.apply(i,r)}function y(e){var r=e-u;return void 0===u||r>=t||r<0||f&&e-l>=i}function h(){var e=R();if(y(e))return v(e);c=setTimeout(h,function(e){var r=t-(e-u);return f?N(r,i-(e-l)):r}(e))}function v(e){return c=void 0,p&&n?d(e):(n=o=void 0,a)}function b(){var e=R(),r=y(e);if(n=arguments,o=this,u=e,r){if(void 0===c)return function(e){return l=e,c=setTimeout(h,t),s?d(e):a}(u);if(f)return clearTimeout(c),c=setTimeout(h,t),d(u)}return void 0===c&&(c=setTimeout(h,t)),a}return t=B(t)||0,D(r)&&(s=!!r.leading,i=(f="maxWait"in r)?L(B(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),b.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=o=c=void 0},b.flush=function(){return void 0===c?a:v(R())},b},z=_,W=s,F=function(e,t,r,n){switch(t){case"debounce":return _(e,r,n);case"throttle":return function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return W(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),z(e,t,{leading:n,maxWait:t,trailing:o})}(e,r,n);default:return e}},G=function(e){return"function"==typeof e},H=function(){return"undefined"==typeof window},U=function(e){return e instanceof Element||e instanceof HTMLDocument},X=function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!H()){t&&t.current&&(r.targetRef.current=t.current);var o=r.getElement();o&&(r.observableElement&&r.observableElement===o||(r.observableElement=o,r.resizeObserver.observe(o,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(H())return null;if(t)return document.querySelector(t);if(n&&U(n))return n;if(r.targetRef&&U(r.targetRef.current))return r.targetRef.current;var o=(0,c.findDOMNode)(r);if(!o)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,o=void 0===n||n,i=t.handleHeight,a=void 0===i||i,c=t.onResize;if(o||a){var u=function(e,t,r,n){return function(o){var i=o.width,a=o.height;t((function(t){return t.width===i&&t.height===a||t.width===i&&!n||t.height===a&&!r?t:(e&&G(e)&&e(i,a),{width:i,height:a})}))}}(c,r.setState.bind(r),o,a);e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,o=t.height;!r.skipOnMount&&!H()&&u({width:n,height:o}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,n=e.children;return G(t)?"renderProp":G(n)?"childFunction":(0,i.isValidElement)(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=t.skipOnMount,o=t.refreshMode,a=t.refreshRate,u=void 0===a?1e3:a,l=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=(0,i.createRef)(),r.observableElement=null,H()||(r.resizeHandler=F(r.createResizeHandler,o,u,l),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){H()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,n=t.children,o=t.nodeType,a=void 0===o?"div":o,c=this.state,u={width:c.width,height:c.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(u);case"childFunction":return(e=n)(u);case"child":if((e=n).type&&"string"==typeof e.type){var l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(u,["targetRef"]);return(0,i.cloneElement)(e,l)}return(0,i.cloneElement)(e,u);case"childArray":return(e=n).map((function(e){return!!e&&(0,i.cloneElement)(e,u)}));default:return i.createElement(a,null)}},t}(i.PureComponent);H()?i.useEffect:i.useLayoutEffect;var Z=r(69055),K=r(6213);function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},V.apply(this,arguments)}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var q=(0,i.forwardRef)((function(e,t){var r,n,c=e.aspect,u=e.width,l=void 0===u?"100%":u,s=e.height,f=void 0===s?"100%":s,p=e.minWidth,d=e.minHeight,y=e.maxHeight,h=e.children,v=e.debounce,b=void 0===v?0:v,m=e.id,g=e.className,O=(r=(0,i.useState)({containerWidth:-1,containerHeight:-1}),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(r,n)||function(e,t){if(e){if("string"==typeof e)return Y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(e,t):void 0}}(r,n)||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.")}()),x=O[0],w=O[1],j=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,(function(){return j}),[j]);var S=(0,i.useCallback)((function(){return j.current?{containerWidth:j.current.clientWidth,containerHeight:j.current.clientHeight}:null}),[]),P=(0,i.useCallback)((function(){var e=S();if(e){var t=e.containerWidth,r=e.containerHeight;w((function(e){var n=e.containerWidth,o=e.containerHeight;return t!==n||r!==o?{containerWidth:t,containerHeight:r}:e}))}}),[S]),A=(0,i.useMemo)((function(){var e=x.containerWidth,t=x.containerHeight;if(e<0||t<0)return null;(0,K.Z)((0,Z.hU)(l)||(0,Z.hU)(f),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",l,f),(0,K.Z)(!c||c>0,"The aspect(%s) must be greater than zero.",c);var r=(0,Z.hU)(l)?e:l,n=(0,Z.hU)(f)?t:f;return c&&c>0&&(r?n=r/c:n&&(r=n*c),y&&n>y&&(n=y)),(0,K.Z)(r>0||n>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",r,n,l,f,p,d,c),(0,i.cloneElement)(h,{width:r,height:n})}),[c,h,f,y,d,p,x,l]);(0,i.useEffect)((function(){var e=S();e&&w(e)}),[S]);var k={width:l,height:f,minWidth:p,minHeight:d,maxHeight:y};return a().createElement(X,{handleWidth:!0,handleHeight:!0,onResize:P,targetRef:j,refreshMode:b>0?"debounce":void 0,refreshRate:b},a().createElement("div",V({},null!=m?{id:"".concat(m)}:{},{className:o()("recharts-responsive-container",g),style:k,ref:j}),A))}))},88169:(e,t,r)=>{r.d(t,{x:()=>I});var n=r(14293),o=r.n(n),i=r(99196),a=r.n(i),c=r(84275),u=r.n(c),l=r(94184),s=r.n(l),f=r(69055),p=r(47523),d=r(52017),y=r(41209),h=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function v(e){return v="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},v(e)}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(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 j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}var E=/[ \f\n\r\t\v\u2028\u2029]+/,T=function(e){try{var t=[];return o()(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(E)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:(0,y.xE)(t,e.style).width}})),spaceWidth:e.breakAll?0:(0,y.xE)(" ",e.style).width}}catch(e){return null}},M=function(e){return[{words:o()(e)?[]:e.toString().split(E)}]},C=function(e,t){if((e.width||e.scaleToFit)&&!p.x.isSsr&&t){var r=T(e);return r?function(e,t,r,n,o){var i=(0,f.hj)(e.maxLines),a=e.children,c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,c=e[e.length-1];if(c&&(null==n||o||c.width+a+r<n))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};e.push(u)}return e}),[])},u=c(t);if(!i)return u;for(var l,s=function(t){var r=a.slice(0,t),o=T(P(P({},e),{},{children:r+"…"})).wordsWithComputedWidth,i=c(o),u=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>n;return[u,i]},p=0,d=a.length-1,y=0;p<=d&&y<=a.length-1;){var h=Math.floor((p+d)/2),v=w(s(h-1),2),b=v[0],m=v[1],g=w(s(h),1)[0];if(b||g||(p=h+1),b&&g&&(d=h-1),!b&&g){l=m;break}y++}return l||u}(e,r.wordsWithComputedWidth,r.spaceWidth,e.width,e.scaleToFit):M(e.children)}return M(e.children)},I=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(l,e);var t,r,n,o,i,c=(o=l,i=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}}(),function(){var e,t=x(o);if(i){var r=x(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return A(O(e=c.call.apply(c,[this].concat(r))),"state",{}),e}return t=l,n=[{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 r=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:C(e,r)}}return null}}],(r=[{key:"render",value:function(){var e=this.props,t=e.dx,r=e.dy,n=e.textAnchor,o=e.verticalAnchor,i=e.scaleToFit,c=e.angle,p=e.lineHeight,y=e.capHeight,v=e.className,m=e.breakAll,g=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,h),O=this.state.wordsByLines;if(!(0,f.P2)(g.x)||!(0,f.P2)(g.y))return null;var x,w=g.x+((0,f.hj)(t)?t:0),j=g.y+((0,f.hj)(r)?r:0);switch(o){case"start":x=u()("calc(".concat(y,")"));break;case"middle":x=u()("calc(".concat((O.length-1)/2," * -").concat(p," + (").concat(y," / 2))"));break;default:x=u()("calc(".concat(O.length-1," * -").concat(p,")"))}var S=[];if(i){var P=O[0].width,A=this.props.width;S.push("scale(".concat(((0,f.hj)(A)?A/P:1)/P,")"))}return c&&S.push("rotate(".concat(c,", ").concat(w,", ").concat(j,")")),S.length&&(g.transform=S.join(" ")),a().createElement("text",b({},(0,d.L6)(g,!0),{x:w,y:j,className:s()("recharts-text",v),textAnchor:n,fill:g.fill.includes("url")?l.defaultProps.fill:g.fill}),O.map((function(e,t){return a().createElement("tspan",{x:w,dy:0===t?x:p,key:t},e.words.join(m?"":" "))})))}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.Component);A(I,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"})},99307:(e,t,r)=>{r.d(t,{u:()=>G});var n=r(14293),o=r.n(n),i=r(23560),a=r.n(i),c=r(45578),u=r.n(c),l=r(99196),s=r.n(l),f=r(57621),p=r(94184),d=r.n(p),y=r(89734),h=r.n(y),v=r(1469),b=r.n(v),m=r(69055);function g(e){return g="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},g(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function A(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}function E(e){return b()(e)&&(0,m.P2)(e[0])&&(0,m.P2)(e[1])?e.join(" ~ "):e}var 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(c,e);var t,r,n,i,a=(n=c,i=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}}(),function(){var e,t=P(n);if(i){var r=P(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,(r=[{key:"renderContent",value:function(){var e=this.props,t=e.payload,r=e.separator,n=e.formatter,o=e.itemStyle,i=e.itemSorter;if(t&&t.length){var a=(i?h()(t,i):t).map((function(e,i){if("none"===e.type)return null;var a=w({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},o),c=e.formatter||n||E,u=e.value,l=e.name;if(c&&null!=u&&null!=l){var f=c(u,l,e,i,t);if(Array.isArray(f)){var p=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,t):void 0}}(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.")}()}(f,2);u=p[0],l=p[1]}else u=f}return s().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(i),style:a},(0,m.P2)(l)?s().createElement("span",{className:"recharts-tooltip-item-name"},l):null,(0,m.P2)(l)?s().createElement("span",{className:"recharts-tooltip-item-separator"},r):null,s().createElement("span",{className:"recharts-tooltip-item-value"},u),s().createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return s().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},a)}return null}},{key:"render",value:function(){var e=this.props,t=e.wrapperClassName,r=e.contentStyle,n=e.labelClassName,i=e.labelStyle,a=e.label,c=e.labelFormatter,u=e.payload,l=w({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),f=w({margin:0},i),p=!o()(a),y=p?a:"",h=d()("recharts-default-tooltip",t),v=d()("recharts-tooltip-label",n);return p&&c&&null!=u&&(y=c(a,u)),s().createElement("div",{className:h,style:l},s().createElement("p",{className:v,style:f},s().isValidElement(y)?y:"".concat(y)),this.renderContent())}}])&&j(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(l.PureComponent);A(T,"displayName","DefaultTooltipContent"),A(T,"defaultProps",{separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}});var M=r(47523);function C(e){return C="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},C(e)}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z(n.key),n)}}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function _(e,t,r){return(t=z(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===C(t)?t:String(t)}var W="recharts-tooltip-wrapper";function F(e){return e.dataKey}var G=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(l,e);var t,r,n,i,c=(n=l,i=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}}(),function(){var e,t=N(n);if(i){var r=N(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(L(e=c.call.apply(c,[this].concat(r))),"state",{boxWidth:-1,boxHeight:-1,dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),_(L(e),"getTranslate",(function(t){var r=t.key,n=t.tooltipDimension,o=t.viewBoxDimension,i=e.props,a=i.allowEscapeViewBox,c=i.reverseDirection,u=i.coordinate,l=i.offset,s=i.position,f=i.viewBox;if(s&&(0,m.hj)(s[r]))return s[r];var p=u[r]-n-l,d=u[r]+l;return a[r]?c[r]?p:d:c[r]?p<f[r]?Math.max(d,f[r]):Math.max(p,f[r]):d+n>f[r]+o?Math.max(p,f[r]):Math.max(d,f[r])})),e}return t=l,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight;if(e.dismissed?(this.wrapperNode.blur(),this.props.coordinate.x===this.state.dismissedAtCoordinate.x&&this.props.coordinate.y===this.state.dismissedAtCoordinate.y||this.setState({dismissed:!1})):this.wrapperNode.focus({preventScroll:!0}),this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-t)>1||Math.abs(n.height-r)>1)&&this.setState({boxWidth:n.width,boxHeight:n.height})}else-1===t&&-1===r||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,r,n=this,i=this.props,c=i.payload,l=i.isAnimationActive,p=i.animationDuration,y=i.animationEasing,h=i.filterNull,v=function(e,t){return!0===e?u()(t,F):a()(e)?u()(t,e):t}(i.payloadUniqBy,h&&c&&c.length?c.filter((function(e){return!o()(e.value)})):c),b=v&&v.length,g=this.props,O=g.content,x=g.viewBox,w=g.coordinate,j=g.position,S=g.active,P=g.wrapperStyle,A=D({pointerEvents:"none",visibility:!this.state.dismissed&&S&&b?"visible":"hidden",position:"absolute",top:0,left:0},P);if(j&&(0,m.hj)(j.x)&&(0,m.hj)(j.y))t=j.x,r=j.y;else{var k=this.state,E=k.boxWidth,M=k.boxHeight;E>0&&M>0&&w?(t=this.getTranslate({key:"x",tooltipDimension:E,viewBoxDimension:x.width}),r=this.getTranslate({key:"y",tooltipDimension:M,viewBoxDimension:x.height})):A.visibility="hidden"}A=D(D({},(0,f.bO)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")})),A),l&&S&&(A=D(D({},(0,f.bO)({transition:"transform ".concat(p,"ms ").concat(y)})),A));var C=d()(W,(_(e={},"".concat(W,"-right"),(0,m.hj)(t)&&w&&(0,m.hj)(w.x)&&t>=w.x),_(e,"".concat(W,"-left"),(0,m.hj)(t)&&w&&(0,m.hj)(w.x)&&t<w.x),_(e,"".concat(W,"-bottom"),(0,m.hj)(r)&&w&&(0,m.hj)(w.y)&&r>=w.y),_(e,"".concat(W,"-top"),(0,m.hj)(r)&&w&&(0,m.hj)(w.y)&&r<w.y),e));return s().createElement("div",{tabIndex:-1,role:"dialog",onKeyDown:function(e){"Escape"===e.key&&n.setState({dismissed:!0,dismissedAtCoordinate:D(D({},n.state.dismissedAtCoordinate),{},{x:n.props.coordinate.x,y:n.props.coordinate.y})})},className:C,style:A,ref:function(e){n.wrapperNode=e}},function(e,t){return s().isValidElement(e)?s().cloneElement(e,t):a()(e)?s().createElement(e,t):s().createElement(T,t)}(O,D(D({},this.props),{},{payload:v})))}}])&&R(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(l.PureComponent);_(G,"displayName","Tooltip"),_(G,"defaultProps",{active:!1,allowEscapeViewBox:{x:!1,y:!1},reverseDirection:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!M.x.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1})},48710:(e,t,r)=>{r.d(t,{m:()=>s});var n=r(99196),o=r.n(n),i=r(94184),a=r.n(i),c=r(52017),u=["children","className"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}var s=o().forwardRef((function(e,t){var r=e.children,n=e.className,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,u),s=a()("recharts-layer",n);return o().createElement("g",l({className:s},(0,c.L6)(i,!0),{ref:t}),r)}))},20514:(e,t,r)=>{r.d(t,{T:()=>s});var n=r(99196),o=r.n(n),i=r(94184),a=r.n(i),c=r(52017),u=["children","width","height","viewBox","className","style"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function s(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,s=e.className,f=e.style,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,u),d=i||{width:r,height:n,x:0,y:0},y=a()("recharts-surface",s);return o().createElement("svg",l({},(0,c.L6)(p,!0,"svg"),{className:y,width:r,height:n,style:f,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),o().createElement("title",null,e.title),o().createElement("desc",null,e.desc),t)}},81189:(e,t,r)=>{r.d(t,{I:()=>N});var n=r(23560),o=r.n(n),i=r(99196),a=r.n(i),c=r(48710),u=r(93061),l=r(94184),s=r.n(l),f=r(52017);function p(e){return p="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},p(e)}var d=["points","className","baseLinePoints","connectNulls"];function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===p(o)?o:String(o)),n)}var o}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O=function(e){return e&&e.x===+e.x&&e.y===+e.y},x=function(e,t){var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){O(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),O(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(r=[r.reduce((function(e,t){return[].concat(m(e),m(t))}),[])]);var n=r.map((function(e){return e.reduce((function(e,t,r){return"".concat(e).concat(0===r?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},w=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(c,e);var t,r,n,o,i=(n=c,o=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}}(),function(){var e,t=b(n);if(o){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.points,r=e.className,n=e.baseLinePoints,o=e.connectNulls,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,d);if(!t||!t.length)return null;var c=s()("recharts-polygon",r);if(n&&n.length){var u=i.stroke&&"none"!==i.stroke,l=function(e,t,r){var n=x(e,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(x(t.reverse(),r).slice(1))}(t,n,o);return a().createElement("g",{className:c},a().createElement("path",y({},(0,f.L6)(i,!0),{fill:"Z"===l.slice(-1)?i.fill:"none",stroke:"none",d:l})),u?a().createElement("path",y({},(0,f.L6)(i,!0),{fill:"none",d:x(t,o)})):null,u?a().createElement("path",y({},(0,f.L6)(i,!0),{fill:"none",d:x(n,o)})):null)}var p=x(t,o);return a().createElement("path",y({},(0,f.L6)(i,!0),{fill:"Z"===p.slice(-1)?i.fill:"none",className:c,d:p}))}}])&&h(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.PureComponent),j=r(88169),S=r(79896),P=r(40048);function A(e){return A="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},A(e)}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k.apply(this,arguments)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,R(n.key),n)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function D(e,t,r){return(t=R(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(e){var t=function(e,t){if("object"!==A(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===A(t)?t:String(t)}var B=Math.PI/180,L=1e-5,N=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(p,e);var t,r,n,i,l,s=(i=p,l=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}}(),function(){var e,t=I(i);if(l){var r=I(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),s.apply(this,arguments)}return t=p,n=[{key:"renderTickItem",value:function(e,t,r){return a().isValidElement(e)?a().cloneElement(e,t):o()(e)?e(t):a().createElement(j.x,k({},t,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],(r=[{key:"getTickLineCoord",value:function(e){var t=this.props,r=t.cx,n=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,c=(0,P.op)(r,n,o,e.coordinate),u=(0,P.op)(r,n,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,r=Math.cos(-e.coordinate*B);return r>L?"outer"===t?"start":"end":r<-L?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.radius,o=e.axisLine,i=e.axisLineType,c=T(T({},(0,f.L6)(this.props)),{},{fill:"none"},(0,f.L6)(o));if("circle"===i)return a().createElement(u.o,k({className:"recharts-polar-angle-axis-line"},c,{cx:t,cy:r,r:n}));var l=this.props.ticks.map((function(e){return(0,P.op)(t,r,n,e.coordinate)}));return a().createElement(w,k({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,n=t.tick,o=t.tickLine,i=t.tickFormatter,u=t.stroke,l=(0,f.L6)(this.props),s=(0,f.L6)(n),d=T(T({},l),{},{fill:"none"},(0,f.L6)(o)),y=r.map((function(t,r){var f=e.getTickLineCoord(t),y=T(T(T({textAnchor:e.getTickTextAnchor(t)},l),{},{stroke:"none",fill:u},s),{},{index:r,payload:t,x:f.x2,y:f.y2});return a().createElement(c.m,k({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},(0,S.bw)(e.props,t,r)),o&&a().createElement("line",k({className:"recharts-polar-angle-axis-tick-line"},d,f)),n&&p.renderTickItem(n,y,i?i(t.value,r):t.value))}));return a().createElement(c.m,{className:"recharts-polar-angle-axis-ticks"},y)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.radius,n=e.axisLine;return r<=0||!t||!t.length?null:a().createElement(c.m,{className:"recharts-polar-angle-axis"},n&&this.renderAxisLine(),this.renderTicks())}}])&&M(t.prototype,r),n&&M(t,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(i.PureComponent);D(N,"displayName","PolarAngleAxis"),D(N,"axisType","angleAxis"),D(N,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0})},91096:(e,t,r)=>{r.d(t,{G:()=>L});var n=r(18446),o=r.n(n),i=r(23560),a=r.n(i),c=r(1469),u=r.n(c),l=r(99196),s=r.n(l),f=r(94184),p=r.n(f),d=r(57621),y=r(45108),h=r(48710),v=r(52017),b=r(47523),m=r(2763),g=r(43815),O=r(69055),x=r(73634),w=r(79896),j=r(40048),S=["shape","activeShape","activeIndex","cornerRadius"],P=["value","background"];function A(e){return A="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},A(e)}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){R(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B(n.key),n)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function R(e,t,r){return(t=B(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e){var t=function(e,t){if("object"!==A(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===A(t)?t:String(t)}var L=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(l,e);var t,r,n,i,c,u=(i=l,c=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}}(),function(){var e,t=D(i);if(c){var r=D(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return R(I(e=u.call.apply(u,[this].concat(r))),"state",{isAnimationFinished:!1}),R(I(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),a()(t)&&t()})),R(I(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),a()(t)&&t()})),e}return t=l,n=[{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 s().isValidElement(e)?s().cloneElement(e,t):a()(e)?e(t):s().createElement(y.L,t)}}],(r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,r=e.endAngle;return(0,O.uY)(r-t)*Math.min(Math.abs(r-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,r=this.props,n=r.shape,o=r.activeShape,i=r.activeIndex,a=r.cornerRadius,c=T(r,S),u=(0,v.L6)(c);return e.map((function(e,r){var s=E(E(E(E({},u),{},{cornerRadius:a},e),(0,w.bw)(t.props,e,r)),{},{key:"sector-".concat(r),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return l.renderSectorShape(r===i?o:n,s)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,c=t.animationId,u=this.state.prevData;return s().createElement(d.ZP,{begin:o,duration:i,isActive:n,easing:a,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var n=t.t,o=r.map((function(e,t){var r=u&&u[t];if(r){var o=(0,O.k4)(r.startAngle,e.startAngle),i=(0,O.k4)(r.endAngle,e.endAngle);return E(E({},e),{},{startAngle:o(n),endAngle:i(n)})}var a=e.endAngle,c=e.startAngle,l=(0,O.k4)(c,a);return E(E({},e),{},{endAngle:l(n)})}));return s().createElement(h.m,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&o()(n,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,r=this.props.cornerRadius,n=(0,v.L6)(this.props.background);return e.map((function(e,o){e.value;var i=e.background,a=T(e,P);if(!i)return null;var c=E(E(E(E(E({cornerRadius:r},a),{},{fill:"#eee"},i),n),(0,w.bw)(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return l.renderSectorShape(i,c)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,o=e.background,i=e.isAnimationActive;if(t||!r||!r.length)return null;var a=this.state.isAnimationFinished,c=p()("recharts-area",n);return s().createElement(h.m,{className:c},o&&s().createElement(h.m,{className:"recharts-radial-bar-background"},this.renderBackground(r)),s().createElement(h.m,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!i||a)&&m.e.renderCallByParent(E({},this.props),r))}}])&&M(t.prototype,r),n&&M(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(l.PureComponent);R(L,"displayName","RadialBar"),R(L,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!b.x.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),R(L,"getComposedData",(function(e){var t=e.item,r=e.props,n=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,c=e.displayedData,l=e.dataKey,s=e.stackedData,f=e.barPosition,p=e.bandSize,d=e.dataStartIndex,y=(0,x.Bu)(f,t);if(!y)return null;var h=i.cx,b=i.cy,m=r.layout,w=t.props,S=w.children,P=w.minPointSize,A="radial"===m?i:n,k=s?A.scale.domain():null,T=(0,x.Yj)({numericAxis:A}),M=(0,v.NN)(S,g.b);return{data:c.map((function(e,c){var f,v,g,w,S,A;if(s?f=(0,x.Vv)(s[d+c],k):(f=(0,x.F$)(e,l),u()(f)||(f=[T,f])),"radial"===m){v=(0,x.Fy)({axis:n,ticks:o,bandSize:p,offset:y.offset,entry:e,index:c}),S=i.scale(f[1]),w=i.scale(f[0]),g=v+y.size;var C=S-w;Math.abs(P)>0&&Math.abs(C)<Math.abs(P)&&(S+=(0,O.uY)(C||P)*(Math.abs(P)-Math.abs(C))),A={background:{cx:h,cy:b,innerRadius:v,outerRadius:g,startAngle:r.startAngle,endAngle:r.endAngle}}}else{v=n.scale(f[0]),g=n.scale(f[1]),S=(w=(0,x.Fy)({axis:i,ticks:a,bandSize:p,offset:y.offset,entry:e,index:c}))+y.size;var I=g-v;Math.abs(P)>0&&Math.abs(I)<Math.abs(P)&&(g+=(0,O.uY)(I||P)*(Math.abs(P)-Math.abs(I)))}return E(E(E(E({},e),A),{},{payload:e,value:s?f:f[1],cx:h,cy:b,innerRadius:v,outerRadius:g,startAngle:w,endAngle:S},M&&M[c]&&M[c].props),{},{tooltipPayload:[(0,x.Qo)(t,e)],tooltipPosition:(0,j.op)(h,b,(v+g)/2,(w+S)/2)})})),layout:m}}))},49413:(e,t,r)=>{r.d(t,{H:()=>z});var n=r(1469),o=r.n(n),i=r(11700),a=r.n(i),c=r(23560),u=r.n(c),l=r(99196),s=r.n(l),f=r(20243),p=r(29282),d=r(18990),y=r(94474),h=r(85925),v=r(69786),b=r(67185),m=r(14643),g=r(43419),O=r(47281),x=r(94184),w=r.n(x),j=r(79896),S=r(52017),P=r(69055);function A(e){return A="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},A(e)}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k.apply(this,arguments)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,R(n.key),n)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function D(e,t,r){return(t=R(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(e){var t=function(e,t){if("object"!==A(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===A(t)?t:String(t)}var B={curveBasisClosed:f.Z,curveBasisOpen:p.Z,curveBasis:d.ZP,curveLinearClosed:y.Z,curveLinear:h.Z,curveMonotoneX:v.Z,curveMonotoneY:v.s,curveNatural:b.Z,curveStep:m.ZP,curveStepAfter:m.cD,curveStepBefore:m.RN},L=function(e){return e.x===+e.x&&e.y===+e.y},N=function(e){return e.x},_=function(e){return e.y},z=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(l,e);var t,r,n,i,c=(n=l,i=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}}(),function(){var e,t=I(n);if(i){var r=I(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.apply(this,arguments)}return t=l,(r=[{key:"getPath",value:function(){var e,t=this.props,r=t.type,n=t.points,i=t.baseLine,c=t.layout,l=t.connectNulls,s=function(e,t){if(u()(e))return e;var r="curve".concat(a()(e));return"curveMonotone"===r&&t?B["".concat(r).concat("vertical"===t?"Y":"X")]:B[r]||h.Z}(r,c),f=l?n.filter((function(e){return L(e)})):n;if(o()(i)){var p=l?i.filter((function(e){return L(e)})):i,d=f.map((function(e,t){return T(T({},e),{},{base:p[t]})}));return(e="vertical"===c?(0,g.Z)().y(_).x1(N).x0((function(e){return e.base.x})):(0,g.Z)().x(N).y1(_).y0((function(e){return e.base.y}))).defined(L).curve(s),e(d)}return(e="vertical"===c&&(0,P.hj)(i)?(0,g.Z)().y(_).x1(N).x0(i):(0,P.hj)(i)?(0,g.Z)().x(N).y1(_).y0(i):(0,O.Z)().x(N).y(_)).defined(L).curve(s),e(f)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.points,n=e.path,o=e.pathRef;if(!(r&&r.length||n))return null;var i=r&&r.length?this.getPath():n;return s().createElement("path",k({},(0,S.L6)(this.props),(0,j.Ym)(this.props),{className:w()("recharts-curve",t),d:i,ref:o}))}}])&&M(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(l.PureComponent);D(z,"defaultProps",{type:"linear",points:[],connectNulls:!1})},93061:(e,t,r)=>{r.d(t,{o:()=>y});var n=r(99196),o=r.n(n),i=r(94184),a=r.n(i),c=r(79896),u=r(52017);function l(e){return l="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},l(e)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===l(o)?o:String(o)),n)}var o}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var y=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(h,e);var t,r,n,i,y=(n=h,i=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}}(),function(){var e,t=d(n);if(i){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),y.apply(this,arguments)}return t=h,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.r,i=e.className,l=a()("recharts-dot",i);return t===+t&&r===+r&&n===+n?o().createElement("circle",s({},(0,u.L6)(this.props),(0,c.Ym)(this.props),{className:l,cx:t,cy:r,r:n})):null}}])&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.PureComponent)},13481:(e,t,r)=>{r.d(t,{A:()=>g,X:()=>m});var n=r(99196),o=r.n(n),i=r(94184),a=r.n(i),c=r(57621),u=r(52017);function l(e){return l="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},l(e)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function h(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}var b=function(e,t,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(e+u*s[0],",").concat(t)),i+="L ".concat(e+r-u*s[1],",").concat(t),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n        ").concat(e+r,",").concat(t+c*s[1])),i+="L ".concat(e+r,",").concat(t+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n        ").concat(e+r-u*s[2],",").concat(t+n)),i+="L ".concat(e+u*s[3],",").concat(t+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n        ").concat(e,",").concat(t+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+c*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+u*p,",").concat(t,"\n            L ").concat(e+r-u*p,",").concat(t,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+r,",").concat(t+c*p,"\n            L ").concat(e+r,",").concat(t+n-c*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+r-u*p,",").concat(t+n,"\n            L ").concat(e+u*p,",").concat(t+n,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+n-c*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},m=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,o=t.x,i=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},g=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(m,e);var t,r,n,i,v=(n=m,i=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}}(),function(){var e,t=y(n);if(i){var r=y(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function m(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(d(e=v.call.apply(v,[this].concat(r))),"state",{totalLength:-1}),e}return t=m,(r=[{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,r=t.x,n=t.y,i=t.width,l=t.height,f=t.radius,p=t.className,d=this.state.totalLength,y=this.props,h=y.animationEasing,v=y.animationDuration,m=y.animationBegin,g=y.isAnimationActive,O=y.isUpdateAnimationActive;if(r!==+r||n!==+n||i!==+i||l!==+l||0===i||0===l)return null;var x=a()("recharts-rectangle",p);return O?o().createElement(c.ZP,{canBegin:d>0,from:{width:i,height:l,x:r,y:n},to:{width:i,height:l,x:r,y:n},duration:v,animationEasing:h,isActive:O},(function(t){var r=t.width,n=t.height,i=t.x,a=t.y;return o().createElement(c.ZP,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,isActive:g,easing:h},o().createElement("path",s({},(0,u.L6)(e.props,!0),{className:x,d:b(i,a,r,n,f),ref:function(t){e.node=t}})))})):o().createElement("path",s({},(0,u.L6)(this.props,!0),{className:x,d:b(r,n,i,l,f)}))}}])&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(n.PureComponent);h(g,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"})},45108:(e,t,r)=>{r.d(t,{L:()=>x});var n=r(99196),o=r.n(n),i=r(94184),a=r.n(i),c=r(52017),u=r(40048),l=r(69055);function s(e){return s="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},s(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function h(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}var v,b,m,g=function(e){var t=e.cx,r=e.cy,n=e.radius,o=e.angle,i=e.sign,a=e.isExternal,c=e.cornerRadius,l=e.cornerIsExternal,s=c*(a?1:-1)+n,f=Math.asin(c/s)/u.Wk,p=l?o:o+i*f,d=l?o-i*f:o;return{center:(0,u.op)(t,r,s,p),circleTangency:(0,u.op)(t,r,n,p),lineTangency:(0,u.op)(t,r,s*Math.cos(f*u.Wk),d),theta:f}},O=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return(0,l.uY)(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),c=i+a,s=(0,u.op)(t,r,o,i),f=(0,u.op)(t,r,o,c),p="M ".concat(s.x,",").concat(s.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n    ").concat(f.x,",").concat(f.y,"\n  ");if(n>0){var d=(0,u.op)(t,r,n,i),y=(0,u.op)(t,r,n,c);p+="L ".concat(y.x,",").concat(y.y,"\n            A ").concat(n,",").concat(n,",0,\n            ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n            ").concat(d.x,",").concat(d.y," Z")}else p+="L ".concat(t,",").concat(r," Z");return p},x=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(h,e);var t,r,n,i,u=(n=h,i=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}}(),function(){var e,t=y(n);if(i){var r=y(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),u.apply(this,arguments)}return t=h,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.innerRadius,i=e.outerRadius,u=e.cornerRadius,s=e.forceCornerRadius,p=e.cornerIsExternal,d=e.startAngle,y=e.endAngle,h=e.className;if(i<n||d===y)return null;var v,b=a()("recharts-sector",h),m=i-n,x=(0,l.h1)(u,m,0,!0);return v=x>0&&Math.abs(d-y)<360?function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,s=e.endAngle,f=(0,l.uY)(s-u),p=g({cx:t,cy:r,radius:o,angle:u,sign:f,cornerRadius:i,cornerIsExternal:c}),d=p.circleTangency,y=p.lineTangency,h=p.theta,v=g({cx:t,cy:r,radius:o,angle:s,sign:-f,cornerRadius:i,cornerIsExternal:c}),b=v.circleTangency,m=v.lineTangency,x=v.theta,w=c?Math.abs(u-s):Math.abs(u-s)-h-x;if(w<0)return a?"M ".concat(y.x,",").concat(y.y,"\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n      "):O({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:s});var j="M ".concat(y.x,",").concat(y.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(d.x,",").concat(d.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.y,"\n  ");if(n>0){var S=g({cx:t,cy:r,radius:n,angle:u,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),P=S.circleTangency,A=S.lineTangency,k=S.theta,E=g({cx:t,cy:r,radius:n,angle:s,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),T=E.circleTangency,M=E.lineTangency,C=E.theta,I=c?Math.abs(u-s):Math.abs(u-s)-k-C;if(I<0&&0===i)return"".concat(j,"L").concat(t,",").concat(r,"Z");j+="L".concat(M.x,",").concat(M.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,"\n      A").concat(n,",").concat(n,",0,").concat(+(I>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else j+="L".concat(t,",").concat(r,"Z");return j}({cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:Math.min(x,m/2),forceCornerRadius:s,cornerIsExternal:p,startAngle:d,endAngle:y}):O({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:d,endAngle:y}),o().createElement("path",f({},(0,c.L6)(this.props,!0),{className:b,d:v,role:"img"}))}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.PureComponent);v=x,m={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},(b=h(b="defaultProps"))in v?Object.defineProperty(v,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[b]=m},76721:(e,t,r)=>{r.d(t,{Ky:()=>J,t9:()=>V,_b:()=>q,O1:()=>Y});var n=r(711),o=r.n(n),i=r(66604),a=r.n(i),c=r(73634),u=r(52017),l=r(69055),s=r(14293),f=r.n(s),p=r(18446),d=r.n(p),y=r(23560),h=r.n(y),v=r(1469),b=r.n(v),m=r(99196),g=r.n(m),O=r(94184),x=r.n(O),w=r(57621),j=r(13481),S=r(48710),P=r(86641),A=r(43815),k=r(2763),E=r(47523),T=r(79896),M=["value","background"];function C(e){return C="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},C(e)}function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I.apply(this,arguments)}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W(n.key),n)}}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function z(e,t,r){return(t=W(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===C(t)?t:String(t)}var F=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(s,e);var t,r,n,o,i,a=(o=s,i=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}}(),function(){var e,t=_(o);if(i){var r=_(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return N(e)}(this,e)});function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return z(N(e=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),z(N(e),"id",(0,l.EL)("recharts-bar-")),z(N(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),z(N(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return t=s,n=[{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 g().isValidElement(e)?g().cloneElement(e,t):h()(e)?e(t):g().createElement(j.A,t)}}],(r=[{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props.shape,n=(0,u.L6)(this.props);return e&&e.map((function(e,o){var i=R(R(R({},n),e),{},{index:o});return g().createElement(S.m,I({className:"recharts-bar-rectangle"},(0,T.bw)(t.props,e,o),{key:"rectangle-".concat(o),role:"img"}),s.renderRectangle(r,i))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.layout,o=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,c=t.animationEasing,u=t.animationId,s=this.state.prevData;return g().createElement(w.ZP,{begin:i,duration:a,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,i=r.map((function(e,t){var r=s&&s[t];if(r){var i=(0,l.k4)(r.x,e.x),a=(0,l.k4)(r.y,e.y),c=(0,l.k4)(r.width,e.width),u=(0,l.k4)(r.height,e.height);return R(R({},e),{},{x:i(o),y:a(o),width:c(o),height:u(o)})}if("horizontal"===n){var f=(0,l.k4)(0,e.height)(o);return R(R({},e),{},{y:e.y+e.height-f,height:f})}var p=(0,l.k4)(0,e.width)(o);return R(R({},e),{},{width:p})}));return g().createElement(S.m,null,e.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&d()(n,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,r=(0,u.L6)(this.props.background);return t.map((function(t,n){t.value;var o=t.background,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,M);if(!o)return null;var a=R(R(R(R(R({},i),{},{fill:"#eee"},o),r),(0,T.bw)(e.props,t,n)),{},{index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return s.renderRectangle(e.props.background,a)}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,l=r.children,s=(0,u.NN)(l,P.W);if(!s)return null;var f="vertical"===a?n[0].height/2:n[0].width/2;function p(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:(0,c.F$)(e,t)}}var d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return g().createElement(S.m,d,s.map((function(e,t){return g().cloneElement(e,{key:"error-bar-".concat(t),data:n,xAxis:o,yAxis:i,layout:a,offset:f,dataPointFormatter:p})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,o=e.xAxis,i=e.yAxis,a=e.left,c=e.top,u=e.width,l=e.height,s=e.isAnimationActive,p=e.background,d=e.id;if(t||!r||!r.length)return null;var y=this.state.isAnimationFinished,h=x()("recharts-bar",n),v=o&&o.allowDataOverflow||i&&i.allowDataOverflow,b=f()(d)?this.id:d;return g().createElement(S.m,{className:h},v?g().createElement("defs",null,g().createElement("clipPath",{id:"clipPath-".concat(b)},g().createElement("rect",{x:a,y:c,width:u,height:l}))):null,g().createElement(S.m,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(b,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,b),(!s||y)&&k.e.renderCallByParent(this.props,r))}}])&&B(t.prototype,r),n&&B(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(m.PureComponent);function G(e){return G="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},G(e)}function H(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){Z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(e,t,r){return(t=K(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e){var t=function(e,t){if("object"!==G(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===G(t)?t:String(t)}z(F,"displayName","Bar"),z(F,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!E.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),z(F,"getComposedData",(function(e){var t=e.props,r=e.item,n=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,f=e.yAxisTicks,p=e.stackedData,d=e.dataStartIndex,y=e.displayedData,h=e.offset,v=(0,c.Bu)(n,r);if(!v)return null;var m=t.layout,g=r.props,O=g.dataKey,x=g.children,w=g.minPointSize,j="horizontal"===m?a:i,S=p?j.scale.domain():null,P=(0,c.Yj)({numericAxis:j}),k=(0,u.NN)(x,A.b),E=y.map((function(e,t){var n,u,y,h,g,x;if(p?n=(0,c.Vv)(p[d+t],S):(n=(0,c.F$)(e,O),b()(n)||(n=[P,n])),"horizontal"===m){var j,A=[a.scale(n[0]),a.scale(n[1])],E=A[0],T=A[1];u=(0,c.Fy)({axis:i,ticks:s,bandSize:o,offset:v.offset,entry:e,index:t}),y=null!==(j=null!=T?T:E)&&void 0!==j?j:void 0,h=v.size;var M=E-T;if(g=Number.isNaN(M)?0:M,x={x:u,y:a.y,width:h,height:a.height},Math.abs(w)>0&&Math.abs(g)<Math.abs(w)){var C=(0,l.uY)(g||w)*(Math.abs(w)-Math.abs(g));y-=C,g+=C}}else{var I=[i.scale(n[0]),i.scale(n[1])],D=I[0],B=I[1];u=D,y=(0,c.Fy)({axis:a,ticks:f,bandSize:o,offset:v.offset,entry:e,index:t}),h=B-D,g=v.size,x={x:i.x,y,width:i.width,height:g},Math.abs(w)>0&&Math.abs(h)<Math.abs(w)&&(h+=(0,l.uY)(h||w)*(Math.abs(w)-Math.abs(h)))}return R(R(R({},e),{},{x:u,y,width:h,height:g,value:p?n:n[1],payload:e,background:x},k&&k[t]&&k[t].props),{},{tooltipPayload:[(0,c.Qo)(r,e)],tooltipPosition:{x:u+h/2,y:y+g/2}})}));return R({data:E,layout:m},h)}));var V=function(e,t,r,n,o){var i=e.width,a=e.height,s=e.layout,f=e.children,p=Object.keys(t),d={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},y=!!(0,u.sP)(f,F);return p.reduce((function(i,a){var u,f,p,h,v,b=t[a],m=b.orientation,g=b.domain,O=b.padding,x=void 0===O?{}:O,w=b.mirror,j=b.reversed,S="".concat(m).concat(w?"Mirror":"");if("number"===b.type&&("gap"===b.padding||"no-gap"===b.padding)){var P=g[1]-g[0],A=1/0,k=b.categoricalDomain.sort();k.forEach((function(e,t){t>0&&(A=Math.min((e||0)-(k[t-1]||0),A))}));var E=A/P,T="vertical"===b.layout?r.height:r.width;if("gap"===b.padding&&(u=E*T/2),"no-gap"===b.padding){var M=(0,l.h1)(e.barCategoryGap,E*T),C=E*T/2;u=C-M-(C-M)/T*M}}f="xAxis"===n?[r.left+(x.left||0)+(u||0),r.left+r.width-(x.right||0)-(u||0)]:"yAxis"===n?"horizontal"===s?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(u||0),r.top+r.height-(x.bottom||0)-(u||0)]:b.range,j&&(f=[f[1],f[0]]);var I=(0,c.Hq)(b,o,y),D=I.scale,R=I.realScaleType;D.domain(g).range(f),(0,c.zF)(D);var B=(0,c.g$)(D,X(X({},b),{},{realScaleType:R}));"xAxis"===n?(v="top"===m&&!w||"bottom"===m&&w,p=r.left,h=d[S]-v*b.height):"yAxis"===n&&(v="left"===m&&!w||"right"===m&&w,p=d[S]-v*b.width,h=r.top);var L=X(X(X({},b),B),{},{realScaleType:R,x:p,y:h,scale:D,width:"xAxis"===n?r.width:b.width,height:"yAxis"===n?r.height:b.height});return L.bandSize=(0,c.zT)(L,B),b.hide||"xAxis"!==n?b.hide||(d[S]+=(v?-1:1)*L.width):d[S]+=(v?-1:1)*L.height,X(X({},i),{},Z({},a,L))}),{})},Y=function(e,t){var r=e.x,n=e.y,o=t.x,i=t.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},q=function(e){var t=e.x1,r=e.y1,n=e.x2,o=e.y2;return Y({x:t,y:r},{x:n,y:o})},$=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=t}var t,r,n;return t=e,r=[{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]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(r){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(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}],n=[{key:"create",value:function(t){return new e(t)}}],r&&H(t.prototype,r),n&&H(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Z($,"EPS",1e-4);var J=function(e){var t=Object.keys(e).reduce((function(t,r){return X(X({},t),{},Z({},r,$.create(e[r])))}),{});return X(X({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return a()(e,(function(e,r){return t[r].apply(e,{bandAware:n,position:o})}))},isInRange:function(e){return o()(e,(function(e,r){return t[r].isInRange(e)}))}})}},73634:(e,t,r)=>{r.d(t,{Bu:()=>fe,By:()=>ee,DO:()=>ce,EB:()=>xe,F$:()=>K,Fy:()=>me,Hq:()=>ue,Hv:()=>be,LG:()=>Se,NA:()=>oe,O3:()=>Oe,Qo:()=>ke,Rf:()=>ie,VO:()=>Y,Vv:()=>pe,Yj:()=>ge,ZI:()=>re,fk:()=>q,g$:()=>ve,gF:()=>V,ko:()=>Ae,pt:()=>J,qz:()=>Q,s6:()=>ne,uY:()=>ae,wh:()=>he,zF:()=>se,zT:()=>Pe,zp:()=>$});var n=r(18446),o=r.n(n),i=r(89734),a=r.n(i),c=r(7654),u=r.n(c),l=r(11700),s=r.n(l),f=r(47037),p=r.n(f),d=r(1469),y=r.n(d),h=r(6162),v=r.n(h),b=r(53632),m=r.n(b),g=r(94654),O=r.n(g),x=r(23560),w=r.n(x),j=r(27361),S=r.n(j),P=r(14293),A=r.n(P),k=r(30996),E=r(85036),T=r(32058),M=r(27927),C=r(54038),I=r(65062),D=r(60246),R=r(32693),B=r(73334),L=r(63145),N=r(86641),_=r(11542),z=r(69055),W=r(52017);function F(e){return F="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},F(e)}function G(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return H(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(e,t):void 0}}(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 H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){Z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==F(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===F(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e,t,r){return A()(e)||A()(t)?r:(0,z.P2)(t)?S()(e,t,r):w()(t)?t(e):r}function V(e,t,r,n){var o=O()(e,(function(e){return K(e,t)}));if("number"===r){var i=o.filter((function(e){return(0,z.hj)(e)||parseFloat(e)}));return i.length?[m()(i),v()(i)]:[1/0,-1/0]}return(n?o.filter((function(e){return!A()(e)})):o).map((function(e){return(0,z.P2)(e)||e instanceof Date?e:""}))}var Y=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if((0,z.uY)(s-l)!==(0,z.uY)(f-s)){var d=[];if((0,z.uY)(f-s)===(0,z.uY)(c[1]-c[0])){p=f;var y=s+c[1]-c[0];d[0]=Math.min(y,(y+l)/2),d[1]=Math.max(y,(y+l)/2)}else{p=l;var h=f+c[1]-c[0];d[0]=Math.min(s,(h+s)/2),d[1]=Math.max(s,(h+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){i=n[u].index;break}}else{var b=Math.min(l,f),m=Math.max(l,f);if(e>(b+s)/2&&e<=(m+s)/2){i=n[u].index;break}}}else for(var g=0;g<a;g++)if(0===g&&e<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&e>(r[g].coordinate+r[g-1].coordinate)/2&&e<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&e>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i},q=function(e){var t,r=e.type.displayName,n=e.props,o=n.stroke,i=n.fill;switch(r){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},$=function(e){var t,r=e.children,n=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=(0,W.sP)(r,_.D);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(n||[]).reduce((function(e,t){var r=t.item,n=t.props,o=n.sectors||n.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(n||[]).map((function(e){var t=e.item,r=t.props,n=r.dataKey,o=r.name,i=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||i||"square",color:q(t),value:o||n,payload:t.props}})),X(X(X({},a.props),_.D.getWithHeight(a,o)),{},{payload:t,item:a})):null},J=function(e){var t=e.barSize,r=e.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var o={},i=Object.keys(n),a=0,c=i.length;a<c;a++)for(var u=n[i[a]].stackGroups,l=Object.keys(u),s=0,f=l.length;s<f;s++){var p=u[l[s]],d=p.items,y=p.cateAxisId,h=d.filter((function(e){return(0,W.Gf)(e.type).indexOf("Bar")>=0}));if(h&&h.length){var v=h[0].props.barSize,b=h[0].props[y];o[b]||(o[b]=[]),o[b].push({item:h[0],stackList:h.slice(1),barSize:A()(v)?t:v})}}return o},Q=function(e){var t=e.barGap,r=e.barCategoryGap,n=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,c=i.length;if(c<1)return null;var u,l=(0,z.h1)(t,n,0,!0);if(i[0].barSize===+i[0].barSize){var s=!1,f=n/c,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(c-1)*l)>=n&&(p-=(c-1)*l,l=0),p>=n&&f>0&&(s=!0,p=c*(f*=.9));var d={offset:((n-p)/2>>0)-l,size:0};u=i.reduce((function(e,t){var r=[].concat(G(e),[{item:t.item,position:{offset:d.offset+d.size+l,size:s?f:t.barSize}}]);return d=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:d})})),r}),[])}else{var y=(0,z.h1)(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var h=(n-2*y-(c-1)*l)/c;h>1&&(h>>=0);var v=a===+a?Math.min(h,a):h;u=i.reduce((function(e,t,r){var n=[].concat(G(e),[{item:t.item,position:{offset:y+(h+l)*r+(h-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:n[n.length-1].position})})),n}),[])}return u},ee=function(e,t,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=$({children:o,legendWidth:c}),l=e;if(u){var s=n||{},f=u.align,p=u.verticalAlign,d=u.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&(0,z.hj)(e[f])&&(l=X(X({},e),{},Z({},f,l[f]+(s.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&(0,z.hj)(e[p])&&(l=X(X({},e),{},Z({},p,l[p]+(s.height||0))))}return l},te=function(e,t,r,n,o){var i=t.props.children,a=(0,W.NN)(i,N.W).filter((function(e){return function(e,t,r){return!!A()(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===r?"xAxis"===t:"y"!==r||"yAxis"===t)}(n,o,e.props.direction)}));if(a&&a.length){var c=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var n=K(t,r,0),o=y()(n)?[m()(n),v()(n)]:[n,n],i=c.reduce((function(e,r){var n=K(t,r,0),i=o[0]-Math.abs(y()(n)?n[0]:n),a=o[1]+Math.abs(y()(n)?n[1]:n);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},re=function(e,t,r,n,o){var i=t.map((function(t){return te(e,t,r,o,n)})).filter((function(e){return!A()(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null},ne=function(e,t,r,n,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===r&&i&&te(e,t,i,n)||V(e,i,r,o)}));if("number"===r)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var r=0,n=t.length;r<n;r++)a[t[r]]||(a[t[r]]=!0,e.push(t[r]));return e}),[])},oe=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},ie=function(e,t,r){var n,o,i=e.map((function(e){return e.coordinate===t&&(n=!0),e.coordinate===r&&(o=!0),e.coordinate}));return n||i.push(t),o||i.push(r),i},ae=function(e,t,r){if(!e)return null;var n=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,c="scaleBand"===e.realScaleType?n.bandwidth()/2:2,u=(t||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===e.axisType?2*(0,z.uY)(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:n(t)+u,value:e,offset:u}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:n(e)+u,value:e,index:t,offset:u}})):n.ticks&&!r?n.ticks(e.tickCount).map((function(e){return{coordinate:n(e)+u,value:e,offset:u}})):n.domain().map((function(e,t){return{coordinate:n(e)+u,value:o?o[e]:e,index:t,offset:u}}))},ce=function(e,t,r){var n;return w()(r)?n=r:w()(t)&&(n=t),w()(e)||n?function(t,r,o,i){w()(e)&&e(t,r,o,i),w()(n)&&n(t,r,o,i)}:null},ue=function(e,t,r){var n=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:k.Z(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:E.Z(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:k.x(),realScaleType:"point"}:"category"===o?{scale:k.Z(),realScaleType:"band"}:{scale:E.Z(),realScaleType:"linear"};if(p()(n)){var c="scale".concat(s()(n));return{scale:(T[c]||k.x)(),realScaleType:T[c]?c:"point"}}return w()(n)?{scale:n}:{scale:k.x(),realScaleType:"point"}},le=1e-4,se=function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),o=Math.min(n[0],n[1])-le,i=Math.max(n[0],n[1])+le,a=e(t[0]),c=e(t[r-1]);(a<o||a>i||c<o||c>i)&&e.domain([t[0],t[r-1]])}},fe=function(e,t){if(!e)return null;for(var r=0,n=e.length;r<n;r++)if(e[r].item===t)return e[r].position;return null},pe=function(e,t){if(!t||2!==t.length||!(0,z.hj)(t[0])||!(0,z.hj)(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!(0,z.hj)(e[0])||e[0]<r)&&(o[0]=r),(!(0,z.hj)(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},de={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0,a=0;a<t;++a){var c=u()(e[a][r][1])?e[a][r][0]:e[a][r][1];c>=0?(e[a][r][0]=o,e[a][r][1]=o+c,o=e[a][r][1]):(e[a][r][0]=i,e[a][r][1]=i+c,i=e[a][r][1])}},expand:M.Z,none:C.Z,silhouette:I.Z,wiggle:D.Z,positive:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0;i<t;++i){var a=u()(e[i][r][1])?e[i][r][0]:e[i][r][1];a>=0?(e[i][r][0]=o,e[i][r][1]=o+a,o=e[i][r][1]):(e[i][r][0]=0,e[i][r][1]=0)}}},ye=function(e,t,r){var n=t.map((function(e){return e.props.dataKey}));return(0,R.Z)().keys(n).value((function(e,t){return+K(e,t,0)})).order(B.Z).offset(de[r])(e)},he=function(e,t,r,n,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[r],c=e[a]||{hasStack:!1,stackGroups:{}};if((0,z.P2)(i)){var u=c.stackGroups[i]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(t),c.hasStack=!0,c.stackGroups[i]=u}else c.stackGroups[(0,z.EL)("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[t]};return X(X({},e),{},Z({},a,c))}),{});return Object.keys(a).reduce((function(t,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(t,i){var a=c.stackGroups[i];return X(X({},t),{},Z({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:ye(e,a.items,o)}))}),{})),X(X({},t),{},Z({},i,c))}),{})},ve=function(e,t){var r=t.realScaleType,n=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,c=r||t.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=e.domain();if(!u.length)return null;var l=(0,L.Zj)(u,o,a);return e.domain([m()(l),v()(l)]),{niceTicks:l}}if(o&&"number"===n){var s=e.domain();return{niceTicks:(0,L.wZ)(s,o,a)}}return null},be=function(e){var t=e.axis,r=e.ticks,n=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!A()(o[t.dataKey])){var c=(0,z.Ap)(r,"value",o[t.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=K(o,A()(a)?t.dataKey:a);return A()(u)?null:t.scale(u)},me=function(e){var t=e.axis,r=e.ticks,n=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var c=K(i,t.dataKey,t.domain[a]);return A()(c)?null:t.scale(c)-o/2+n},ge=function(e){var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},Oe=function(e,t){var r=e.props.stackId;if((0,z.P2)(r)){var n=t[r];if(n&&n.items.length){for(var o=-1,i=0,a=n.items.length;i<a;i++)if(n.items[i]===e){o=i;break}return o>=0?n.stackedData[o]:null}}return null},xe=function(e,t,r){return Object.keys(e).reduce((function(n,o){var i=e[o].stackedData.reduce((function(e,n){var o=n.slice(t,r+1).reduce((function(e,t){return[m()(t.concat([e[0]]).filter(z.hj)),v()(t.concat([e[1]]).filter(z.hj))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},we=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,je=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Se=function(e,t,r){if(w()(e))return e(t,r);if(!y()(e))return t;var n=[];if((0,z.hj)(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(we.test(e[0])){var o=+we.exec(e[0])[1];n[0]=t[0]-o}else w()(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if((0,z.hj)(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(je.test(e[1])){var i=+je.exec(e[1])[1];n[1]=t[1]+i}else w()(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},Pe=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=a()(t,(function(e){return e.coordinate})),i=1/0,c=1,u=o.length;c<u;c++){var l=o[c],s=o[c-1];i=Math.min((l.coordinate||0)-(s.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},Ae=function(e,t,r){return e&&e.length?o()(e,S()(r,"type.defaultProps.domain"))?t:e:t},ke=function(e,t){var r=e.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType;return X(X({},(0,W.L6)(e)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:q(e),value:K(t,n),type:c,payload:t,chartType:u})}},41209:(e,t,r)=>{r.d(t,{IR:()=>v,os:()=>h,xE:()=>y});var n=r(47523);function o(e){return o="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},o(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s={widthCache:{},cacheCount:0},f={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},p=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],d="recharts_measurement_span",y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||n.x.isSsr)return{width:0,height:0};var r="".concat(e),o=function(e){return Object.keys(e).reduce((function(t,r){return"".concat(t).concat((i=r,i.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(u(e),["-",t.toLowerCase()]):[].concat(u(e),[t])}),[]).join("")),":").concat((n=r,o=e[r],p.indexOf(n)>=0&&o===+o?"".concat(o,"px"):o),";");var n,o,i}),"")}(t),i="".concat(r,"-").concat(o);if(s.widthCache[i])return s.widthCache[i];try{var c=document.getElementById(d);c||((c=document.createElement("span")).setAttribute("id",d),c.setAttribute("aria-hidden","true"),document.body.appendChild(c));var l=a(a({},f),t);Object.keys(l).map((function(e){return c.style[e]=l[e],e})),c.textContent=r;var y=c.getBoundingClientRect(),h={width:y.width,height:y.height};return s.widthCache[i]=h,++s.cacheCount>2e3&&(s.cacheCount=0,s.widthCache={}),h}catch(e){return{width:0,height:0}}},h=function(e){var t=e.ownerDocument.documentElement,r={top:0,left:0};return void 0!==e.getBoundingClientRect&&(r=e.getBoundingClientRect()),{top:r.top+window.pageYOffset-t.clientTop,left:r.left+window.pageXOffset-t.clientLeft}},v=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},69055:(e,t,r)=>{r.d(t,{Ap:()=>j,EL:()=>m,Kt:()=>O,P2:()=>v,bv:()=>x,h1:()=>g,hU:()=>y,hj:()=>h,k4:()=>w,uY:()=>d});var n=r(27361),o=r.n(n),i=r(1469),a=r.n(i),c=r(7654),u=r.n(c),l=r(81763),s=r.n(l),f=r(47037),p=r.n(f),d=function(e){return 0===e?0:e>0?1:-1},y=function(e){return p()(e)&&e.indexOf("%")===e.length-1},h=function(e){return s()(e)&&!u()(e)},v=function(e){return h(e)||p()(e)},b=0,m=function(e){var t=++b;return"".concat(e||"").concat(t)},g=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!h(e)&&!p()(e))return n;if(y(e)){var i=e.indexOf("%");r=t*parseFloat(e.slice(0,i))/100}else r=+e;return u()(r)&&(r=n),o&&r>t&&(r=t),r},O=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},x=function(e){if(!a()(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[e[n]])return!0;r[e[n]]=!0}return!1},w=function(e,t){return h(e)&&h(t)?function(r){return e+r*(t-e)}:function(){return t}};function j(e,t,r){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):o()(e,t))===r})):null}},47523:(e,t,r)=>{r.d(t,{x:()=>n});var n={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return n[e]},set:function(e,t){if("string"==typeof e)n[e]=t;else{var r=Object.keys(e);r&&r.length&&r.forEach((function(t){n[t]=e[t]}))}}}},6213:(e,t,r)=>{r.d(t,{Z:()=>n});var n=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]}},40048:(e,t,r)=>{r.d(t,{Wk:()=>p,op:()=>y,t9:()=>h,z3:()=>b});var n=r(14293),o=r.n(n),i=r(69055),a=r(73634);function c(e){return c="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},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var p=Math.PI/180,d=function(e){return 180*e/Math.PI},y=function(e,t,r,n){return{x:e+Math.cos(-p*n)*r,y:t+Math.sin(-p*n)*r}},h=function(e,t,r,n,c){var u=e.width,p=e.height,d=e.startAngle,y=e.endAngle,h=(0,i.h1)(e.cx,u,u/2),v=(0,i.h1)(e.cy,p,p/2),b=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2}(u,p,r),m=(0,i.h1)(e.innerRadius,b,0),g=(0,i.h1)(e.outerRadius,b,.8*b);return Object.keys(t).reduce((function(e,r){var i,u,p,b=t[r],O=b.domain,x=b.reversed;if(o()(b.range))"angleAxis"===n?i=[d,y]:"radiusAxis"===n&&(i=[m,g]),x&&(i=[i[1],i[0]]);else{var w=(u=i=b.range,p=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(u,p)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(u,p)||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.")}());d=w[0],y=w[1]}var j=(0,a.Hq)(b,c),S=j.realScaleType,P=j.scale;P.domain(O).range(i),(0,a.zF)(P);var A=(0,a.g$)(P,l(l({},b),{},{realScaleType:S})),k=l(l(l({},b),A),{},{range:i,radius:g,realScaleType:S,scale:P,cx:h,cy:v,innerRadius:m,outerRadius:g,startAngle:d,endAngle:y});return l(l({},e),{},s({},r,k))}),{})},v=function(e,t){var r=t.startAngle,n=t.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return e+360*Math.min(o,i)},b=function(e,t){var r=function(e,t){var r,n,o,i,a,c,u=e.x,l=e.y,s=t.cx,f=t.cy,p=(o=(r={x:u,y:l}).x,i=r.y,a=(n={x:s,y:f}).x,c=n.y,Math.sqrt(Math.pow(o-a,2)+Math.pow(i-c,2)));if(p<=0)return{radius:p};var y=(u-s)/p,h=Math.acos(y);return l>f&&(h=2*Math.PI-h),{radius:p,angle:d(h),angleInRadian:h}}({x:e.x,y:e.y},t),n=r.radius,o=r.angle,i=t.innerRadius,a=t.outerRadius;if(n<i||n>a)return!1;if(0===n)return!0;var c,u=function(e){var t=e.startAngle,r=e.endAngle,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-360*i,endAngle:r-360*i}}(t),s=u.startAngle,f=u.endAngle,p=o;if(s<=f){for(;p>f;)p-=360;for(;p<s;)p+=360;c=p>=s&&p<=f}else{for(;p>s;)p-=360;for(;p<f;)p+=360;c=p>=f&&p<=s}return c?l(l({},t),{},{radius:n,angle:v(p,t)}):null}},52017:(e,t,r)=>{r.d(t,{$R:()=>N,Bh:()=>L,Gf:()=>S,L6:()=>I,NN:()=>E,TT:()=>M,eu:()=>B,rL:()=>D,sP:()=>T});var n=r(13218),o=r.n(n),i=r(23560),a=r.n(i),c=r(47037),u=r.n(c),l=r(27361),s=r.n(l),f=r(14293),p=r.n(f),d=r(1469),y=r.n(d),h=r(99196),v=r(59864),b=r(69055),m=r(30791),g=r(79896),O=["children"],x=["children"];function w(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var j={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},S=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},P=null,A=null,k=function e(t){if(t===P&&y()(A))return A;var r=[];return h.Children.forEach(t,(function(t){p()(t)||((0,v.isFragment)(t)?r=r.concat(e(t.props.children)):r.push(t))})),A=r,P=t,r};function E(e,t){var r=[],n=[];return n=y()(t)?t.map((function(e){return S(e)})):[S(t)],k(e).forEach((function(e){var t=s()(e,"type.displayName")||s()(e,"type.name");-1!==n.indexOf(t)&&r.push(e)})),r}function T(e,t){var r=E(e,t);return r&&r[0]}var M=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!(!(0,b.hj)(r)||r<=0||!(0,b.hj)(n)||n<=0)},C=["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"],I=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,h.isValidElement)(e)&&(n=e.props),!o()(n))return null;var i={};return Object.keys(n).forEach((function(e){var o;(function(e,t,r,n){var o,i=null!==(o=null===g.ry||void 0===g.ry?void 0:g.ry[n])&&void 0!==o?o:[];return!a()(e)&&(n&&i.includes(t)||g.Yh.includes(t))||r&&g.nv.includes(t)})(null===(o=n)||void 0===o?void 0:o[e],e,t,r)&&(i[e]=n[e])})),i},D=function e(t,r){if(t===r)return!0;var n=h.Children.count(t);if(n!==h.Children.count(r))return!1;if(0===n)return!0;if(1===n)return R(y()(t)?t[0]:t,y()(r)?r[0]:r);for(var o=0;o<n;o++){var i=t[o],a=r[o];if(y()(i)||y()(a)){if(!e(i,a))return!1}else if(!R(i,a))return!1}return!0},R=function(e,t){if(p()(e)&&p()(t))return!0;if(!p()(e)&&!p()(t)){var r=e.props||{},n=r.children,o=w(r,O),i=t.props||{},a=i.children,c=w(i,x);return n&&a?(0,m.w)(o,c)&&D(n,a):!n&&!a&&(0,m.w)(o,c)}return!1},B=function(e,t){var r=[],n={};return k(e).forEach((function(e,o){if(function(e){return e&&e.type&&u()(e.type)&&C.indexOf(e.type)>=0}(e))r.push(e);else if(e){var i=S(e.type),a=t[i]||{},c=a.handler,l=a.once;if(c&&(!l||!n[i])){var s=c(e,i,o);r.push(s),n[i]=!0}}})),r},L=function(e){var t=e&&e.type;return t&&j[t]?j[t]:null},N=function(e,t){return k(t).indexOf(e)}},30791:(e,t,r)=>{function n(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}r.d(t,{w:()=>n})},79896:(e,t,r)=>{r.d(t,{Yh:()=>c,Ym:()=>f,bw:()=>p,nv:()=>s,ry:()=>l});var n=r(13218),o=r.n(n),i=r(99196);function a(e){return a="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},a(e)}var c=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],u=["points","pathLength"],l={svg:["viewBox","children"],polygon:u,polyline:u},s=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,i.isValidElement)(e)&&(r=e.props),!o()(r))return null;var n={};return Object.keys(r).forEach((function(e){s.includes(e)&&(n[e]=t||function(t){return r[e](r,t)})})),n},p=function(e,t,r){if(!o()(e)||"object"!==a(e))return null;var n=null;return Object.keys(e).forEach((function(o){var i=e[o];s.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(e,t,r){return function(n){return e(t,r,n),null}}(i,t,r))})),n}},57621:(e,t,r)=>{r.d(t,{ZP:()=>se,bO:()=>O});var n=r(99196),o=r.n(n),i=r(45697),a=r.n(i),c=r(58367);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>t?(e(o),r=-1):requestAnimationFrame(n)}))}function l(e){return l="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},l(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(){var e=function(){return null},t=!1,r=function r(n){if(!t){if(Array.isArray(n)){if(!n.length)return;var o=function(e){if(Array.isArray(e))return e}(c=n)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(c)||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.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void u(r.bind(null,a),i):(r(i),void u(r.bind(null,a)))}"object"===l(n)&&e(n),"function"==typeof n&&n()}var c};return{stop:function(){t=!0},start:function(e){t=!1,r(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=["Webkit","Moz","O","ms"],v=["-webkit-","-moz-","-o-","-ms-"],b=["transform","transformOrigin","transition"],m=function(e){return e},g=function(e,t){return Object.keys(t).reduce((function(r,n){return d(d({},r),{},y({},n,e(n,t[n])))}),{})},O=function(e){return Object.keys(e).reduce((function(e,t){return d(d({},e),function(e,t){if(-1===b.indexOf(e))return y({},e,t);var r="transition"===e,n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),o=t;return h.reduce((function(e,i,a){return r&&(o=t.replace(/(transform|transform-origin)/gim,"".concat(v[a],"$1"))),d(d({},e),{},y({},i+n,o))}),{})}(t,e[t]))}),e)},x=function(e,t,r){return e.map((function(e){return"".concat((n=e,n.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(r);var n})).join(",")};function w(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var S=1e-4,P=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},A=function(e,t){return e.map((function(e,r){return e*Math.pow(t,r)})).reduce((function(e,t){return e+t}))},k=function(e,t){return function(r){var n=P(e,t);return A(n,r)}},E=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,i=t[0],a=t[1],c=t[2],u=t[3];if(1===t.length)switch(t[0]){case"linear":i=0,a=0,c=1,u=1;break;case"ease":i=.25,a=.1,c=.25,u=1;break;case"ease-in":i=.42,a=0,c=1,u=1;break;case"ease-out":i=.42,a=0,c=.58,u=1;break;case"ease-in-out":i=0,a=0,c=.58,u=1;break;default:var l=t[0].split("(");if("cubic-bezier"===l[0]&&4===l[1].split(")")[0].split(",").length){var s=(n=l[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),o=4,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(n,o)||w(n,o)||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.")}());i=s[0],a=s[1],c=s[2],u=s[3]}}[i,c,a,u].every((function(e){return"number"==typeof e&&e>=0&&e<=1}));var f,p,d=k(i,c),y=k(a,u),h=(f=i,p=c,function(e){var t=P(f,p),r=[].concat(function(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||w(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.")}()}(t.map((function(e,t){return e*t})).slice(1)),[0]);return A(r,e)}),v=function(e){for(var t,r=e>1?1:e,n=r,o=0;o<8;++o){var i=d(n)-r,a=h(n);if(Math.abs(i-r)<S||a<S)return y(n);n=(t=n-i/a)>1?1:t<0?0:t}return y(n)};return v.isStepper=!1,v};function T(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||D(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 M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var B=function(e,t,r){return e+(t-e)*r},L=function(e){return e.from!==e.to},N=function e(t,r,n){var o=g((function(e,r){if(L(r)){var n=(a=t(r.from,r.to,r.velocity),c=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(a,c)||D(a,c)||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.")}()),o=n[0],i=n[1];return C(C({},r),{},{from:o,velocity:i})}var a,c;return r}),r);return n<1?g((function(e,t){return L(t)?C(C({},t),{},{velocity:B(t.velocity,o[e].velocity,n),from:B(t.from,o[e].from,n)}):t}),r):e(t,o,n-1)};function _(e){return _="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},_(e)}function z(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return W(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?W(e,t):void 0}}(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 W(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){H(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function X(e,t){return X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},X(e,t)}function Z(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?K(e):t}function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}var Y=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&&X(e,t)}(l,e);var t,r,i,a,u=(i=l,a=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}}(),function(){var e,t=V(i);if(a){var r=V(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Z(this,e)});function l(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var n=(r=u.call(this,e,t)).props,o=n.isActive,i=n.attributeName,a=n.from,c=n.to,s=n.steps,f=n.children;if(r.handleStyleChange=r.handleStyleChange.bind(K(r)),r.changeStyle=r.changeStyle.bind(K(r)),!o)return r.state={style:{}},"function"==typeof f&&(r.state={style:c}),Z(r);if(s&&s.length)r.state={style:s[0].style};else if(a){if("function"==typeof f)return r.state={style:a},Z(r);r.state={style:i?H({},i,a):a}}else r.state={style:{}};return r}return t=l,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,r=e.canBegin;this.mounted=!0,t&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isActive,n=t.canBegin,o=t.attributeName,i=t.shouldReAnimate;if(n)if(r){if(!((0,c.deepEqual)(e.to,this.props.to)&&e.canBegin&&e.isActive)){var a=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=a||i?this.props.from:e.to;if(this.state&&this.state.style){var l={style:o?H({},o,u):u};(o&&this.state.style[o]!==u||!o&&this.state.style!==u)&&this.setState(l)}this.runAnimation(G(G({},this.props),{},{from:u,begin:0}))}}else{var s={style:o?H({},o,this.props.to):this.props.to};this.state&&this.state.style&&(o&&this.state.style[o]!==this.props.to||!o&&this.state.style!==this.props.to)&&this.setState(s)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,r=e.from,n=e.to,o=e.duration,i=e.easing,a=e.begin,c=e.onAnimationEnd,u=e.onAnimationStart,l=function(e,t,r,n,o){var i,a,c,u,l=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),s=l.reduce((function(r,n){return C(C({},r),{},I({},n,[e[n],t[n]]))}),{}),f=l.reduce((function(r,n){return C(C({},r),{},I({},n,{from:e[n],velocity:0,to:t[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=N(r,f,i),o(C(C(C({},e),t),g((function(e,t){return t.from}),f))),c=n,Object.values(f).filter(L).length&&(p=requestAnimationFrame(d))}:function(i){u||(u=i);var a=(i-u)/n,c=g((function(e,t){return B.apply(void 0,T(t).concat([r(a)]))}),s);if(o(C(C(C({},e),t),c)),a<1)p=requestAnimationFrame(d);else{var l=g((function(e,t){return B.apply(void 0,T(t).concat([r(1)]))}),s);o(C(C(C({},e),t),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}}(r,n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return E(n);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,o=void 0===n?8:n,i=e.dt,a=void 0===i?17:i,c=function(e,t,n){var i=n+(-(e-t)*r-n*o)*a/1e3,c=n*a/1e3+e;return Math.abs(c-t)<S&&Math.abs(i)<S?[t,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return E(n)}return"function"==typeof n?n:null}(i),o,this.changeStyle);this.manager.start([u,a,function(){t.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(e){var t=this,r=e.steps,n=e.begin,o=e.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(z(r.reduce((function(e,n,o){if(0===o)return e;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(z(e),[t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:c}),i]);var d=x(p,i,c),y=G(G(G({},f.style),u),{},{transition:d});return[].concat(z(e),[y,i,s]).filter(m)}),[a,Math.max(u,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=f());var t=e.begin,r=e.duration,n=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,c=e.onAnimationEnd,u=e.steps,l=e.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(e);else{var p=n?H({},n,o):o,d=x(Object.keys(p),r,i);s.start([a,t,G(G({},p),{},{transition:d}),r,c])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),i=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),a=n.Children.count(t),c=O(this.state.style);if("function"==typeof t)return t(c);if(!r||0===a)return t;var u=function(e){var t=e.props,r=t.style,o=void 0===r?{}:r,a=t.className;return(0,n.cloneElement)(e,G(G({},i),{},{style:G(G({},o),c),className:a}))};return 1===a?u(n.Children.only(t)):o().createElement("div",null,n.Children.map(t,(function(e){return u(e)})))}}])&&U(t.prototype,r),l}(n.PureComponent);Y.displayName="Animate",Y.propTypes={from:a().oneOfType([a().object,a().string]),to:a().oneOfType([a().object,a().string]),attributeName:a().string,duration:a().number,begin:a().number,easing:a().oneOfType([a().string,a().func]),steps:a().arrayOf(a().shape({duration:a().number.isRequired,style:a().object.isRequired,easing:a().oneOfType([a().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),a().func]),properties:a().arrayOf("string"),onAnimationEnd:a().func})),children:a().oneOfType([a().node,a().func]),isActive:a().bool,canBegin:a().bool,onAnimationEnd:a().func,shouldReAnimate:a().bool,onAnimationStart:a().func,onAnimationReStart:a().func},Y.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};const q=Y;var $=r(64317);function J(e){return J="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},J(e)}function Q(){return Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.apply(this,arguments)}function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oe(e,t){return oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oe(e,t)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}void 0===Number.isFinite&&(Number.isFinite=function(e){return"number"==typeof e&&isFinite(e)});var ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,r=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)}),0):Number.isFinite(r)?r:0},ce=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&&oe(e,t)}(u,e);var t,r,i,a,c=(i=u,a=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}}(),function(){var e,t=ie(i);if(a){var r=ie(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==J(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}(this,e)});function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=c.call.apply(c,[this].concat(r))).state={isActive:!1},e.handleEnter=function(t,r){var n=e.props,o=n.appearOptions,i=n.enterOptions;e.handleStyleActive(r?o:i)},e.handleExit=function(){e.handleStyleActive(e.props.leaveOptions)},e}return t=u,(r=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(te(te({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,r=e.enterOptions,n=e.leaveOptions;return ae(t)+ae(r)+ae(n)}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,i=(t.appearOptions,t.enterOptions,t.leaveOptions,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["children","appearOptions","enterOptions","leaveOptions"]));return o().createElement($.Transition,Q({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return o().createElement(q,e.state,n.Children.only(r))}))}}])&&ne(t.prototype,r),u}(n.Component);ce.propTypes={appearOptions:a().object,enterOptions:a().object,leaveOptions:a().object,children:a().element};const ue=ce;function le(e){var t=e.component,r=e.children,i=e.appear,a=e.enter,c=e.leave;return o().createElement($.TransitionGroup,{component:t},n.Children.map(r,(function(e,t){return o().createElement(ue,{appearOptions:i,enterOptions:a,leaveOptions:c,key:"child-".concat(t)},e)})))}le.propTypes={appear:a().object,enter:a().object,leave:a().object,children:a().oneOfType([a().array,a().element]),component:a().any},le.defaultProps={component:"span"};const se=q}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit