vendor: 10,982 bytes, line 1
1import{c as t}from"./vendor-utils.BlEnRQrd.js";import{d as e,e as r,r as n,R as o}from"./vendor-react.BBoGJFYM.js";var i=Array.isArray,a="object"==typeof e&&e&&e.Object===Object&&e,c=a,u="object"==typeof self&&self&&self.Object===Object&&self,l=c||u||Function("return this")(),s=l.Symbol,f=s,p=Object.prototype,h=p.hasOwnProperty,y=p.toString,d=f?f.toStringTag:void 0;var v=function(t){var e=h.call(t,d),r=t[d];try{t[d]=void 0;var n=!0}catch(i){}var o=y.call(t);return n&&(e?t[d]=r:delete t[d]),o},m=Object.prototype.toString;var b=v,g=function(t){return m.call(t)},w=s?s.toStringTag:void 0;var x=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":w&&w in Object(t)?b(t):g(t)};var O=function(t){return null!=t&&"object"==typeof t},j=x,S=O;var P=function(t){return"symbol"==typeof t||S(t)&&"[object Symbol]"==j(t)},A=i,E=P,k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/;var T=function(t,e){if(A(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!E(t))||(M.test(t)||!k.test(t)||null!=e&&t in Object(e))};var _=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const C=r(_);var D=x,I=_;var N=function(t){if(!I(t))return!1;var e=D(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const B=r(N);var R,L=l["__core-js_shared__"],z=(R=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"";var F=function(t){return!!z&&z in t},U=Function.prototype.toString;var $=function(t){if(null!=t){try{return U.call(t)}catch(e){}try{return t+""}catch(e){}}return""},W=N,q=F,V=_,X=$,H=/^\[object .+?Constructor\]$/,K=Function.prototype,G=Object.prototype,Y=K.toString,Z=G.hasOwnProperty,J=RegExp("^"+Y.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Q=function(t){return!(!V(t)||q(t))&&(W(t)?J:H).test(X(t))},tt=function(t,e){return null==t?void 0:t[e]};var et=function(t,e){var r=tt(t,e);return Q(r)?r:void 0},rt=et(Object,"create"),nt=rt;var ot=function(){this.__data__=nt?nt(null):{},this.size=0};var it=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},at=rt,ct=Object.prototype.hasOwnProperty;var ut=function(t){var e=this.__data__;if(at){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ct.call(e,t)?e[t]:void 0},lt=rt,st=Object.prototype.hasOwnProperty;var ft=rt;var pt=ot,ht=it,yt=ut,dt=function(t){var e=this.__data__;return lt?void 0!==e[t]:st.call(e,t)},vt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ft&&void 0===e?"__lodash_hash_undefined__":e,this};function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}mt.prototype.clear=pt,mt.prototype.delete=ht,mt.prototype.get=yt,mt.prototype.has=dt,mt.prototype.set=vt;var bt=mt;var gt=function(){this.__data__=[],this.size=0};var wt=function(t,e){return t===e||t!=t&&e!=e},xt=wt;var Ot=function(t,e){for(var r=t.length;r--;)if(xt(t[r][0],e))return r;return-1},jt=Ot,St=Array.prototype.splice;var Pt=Ot;var At=Ot;var Et=Ot;var kt=gt,Mt=function(t){var e=this.__data__,r=jt(e,t);return!(r<0)&&(r==e.length-1?e.pop():St.call(e,r,1),--this.size,!0)},Tt=function(t){var e=this.__data__,r=Pt(e,t);return r<0?void 0:e[r][1]},_t=function(t){return At(this.__data__,t)>-1},Ct=function(t,e){var r=this.__data__,n=Et(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Dt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Dt.prototype.clear=kt,Dt.prototype.delete=Mt,Dt.prototype.get=Tt,Dt.prototype.has=_t,Dt.prototype.set=Ct;var It=Dt,Nt=et(l,"Map"),Bt=bt,Rt=It,Lt=Nt;var zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ft=function(t,e){var r=t.__data__;return zt(e)?r["string"==typeof e?"string":"hash"]:r.map},Ut=Ft;var $t=Ft;var Wt=Ft;var qt=Ft;var Vt=function(){this.size=0,this.__data__={hash:new Bt,map:new(Lt||Rt),string:new Bt}},Xt=function(t){var e=Ut(this,t).delete(t);return this.size-=e?1:0,e},Ht=function(t){return $t(this,t).get(t)},Kt=function(t){return Wt(this,t).has(t)},Gt=function(t,e){var r=qt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Yt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Yt.prototype.clear=Vt,Yt.prototype.delete=Xt,Yt.prototype.get=Ht,Yt.prototype.has=Kt,Yt.prototype.set=Gt;var Zt=Yt,Jt=Zt;function Qt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Qt.Cache||Jt),r}Qt.Cache=Jt;var te=Qt;const ee=r(te);var re=te;var ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/\\(\\)?/g,ie=function(t){var e=re(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ne,function(t,r,n,o){e.push(n?o.replace(oe,"$1"):r||t)}),e});var ae=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},ce=ae,ue=i,le=P,se=s?s.prototype:void 0,fe=se?se.toString:void 0;var pe=function t(e){if("string"==typeof e)return e;if(ue(e))return ce(e,t)+"";if(le(e))return fe?fe.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},he=pe;var ye=function(t){return null==t?"":he(t)},de=i,ve=T,me=ie,be=ye;var ge=function(t,e){return de(t)?t:ve(t,e)?[t]:me(be(t))},we=P;var xe=function(t){if("string"==typeof t||we(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Oe=ge,je=xe;var Se=function(t,e){for(var r=0,n=(e=Oe(e,t)).length;null!=t&&r<n;)t=t[je(e[r++])];return r&&r==n?t:void 0},Pe=Se;var Ae=function(t,e,r){var n=null==t?void 0:Pe(t,e);return void 0===n?r:n};const Ee=r(Ae);const ke=r(function(t){return null==t});var Me=x,Te=i,_e=O;const Ce=r(function(t){return"string"==typeof t||!Te(t)&&_e(t)&&"[object String]"==Me(t)});var De,Ie={exports:{}},Ne={},Be=Symbol.for("react.element"),Re=Symbol.for("react.portal"),Le=Symbol.for("react.fragment"),ze=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),Ue=Symbol.for("react.provider"),$e=Symbol.for("react.context"),We=Symbol.for("react.server_context"),qe=Symbol.for("react.forward_ref"),Ve=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),He=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen");function Ye(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case Be:switch(t=t.type){case Le:case Fe:case ze:case Ve:case Xe:return t;default:switch(t=t&&t.$$typeof){case We:case $e:case qe:case Ke:case He:case Ue:return t;default:return e}}case Re:return e}}}De=Symbol.for("react.module.reference"),Ne.ContextConsumer=$e,Ne.ContextProvider=Ue,Ne.Element=Be,Ne.ForwardRef=qe,Ne.Fragment=Le,Ne.Lazy=Ke,Ne.Memo=He,Ne.Portal=Re,Ne.Profiler=Fe,Ne.StrictMode=ze,Ne.Suspense=Ve,Ne.SuspenseList=Xe,Ne.isAsyncMode=function(){return!1},Ne.isConcurrentMode=function(){return!1},Ne.isContextConsumer=function(t){return Ye(t)===$e},Ne.isContextProvider=function(t){return Ye(t)===Ue},Ne.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===Be},Ne.isForwardRef=function(t){return Ye(t)===qe},Ne.isFragment=function(t){return Ye(t)===Le},Ne.isLazy=function(t){return Ye(t)===Ke},Ne.isMemo=function(t){return Ye(t)===He},Ne.isPortal=function(t){return Ye(t)===Re},Ne.isProfiler=function(t){return Ye(t)===Fe},Ne.isStrictMode=function(t){return Ye(t)===ze},Ne.isSuspense=function(t){return Ye(t)===Ve},Ne.isSuspenseList=function(t){return Ye(t)===Xe},Ne.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===Le||t===Fe||t===ze||t===Ve||t===Xe||t===Ge||"object"==typeof t&&null!==t&&(t.$$typeof===Ke||t.$$typeof===He||t.$$typeof===Ue||t.$$typeof===$e||t.$$typeof===qe||t.$$typeof===De||void 0!==t.getModuleId)},Ne.typeOf=Ye,Ie.exports=Ne;var Ze=Ie.exports,Je=x,Qe=O;var tr=function(t){return"number"==typeof t||Qe(t)&&"[object Number]"==Je(t)};const er=r(tr);var rr=tr;const nr=r(function(t){return rr(t)&&t!=+t});var or=function(t){return 0===t?0:t>0?1:-1},ir=function(t){return Ce(t)&&t.indexOf("%")===t.length-1},ar=function(t){return er(t)&&!nr(t)},cr=function(t){return ar(t)||Ce(t)},ur=0,lr=function(t){var e=++ur;return"".concat(t||"").concat(e)},sr=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!ar(t)&&!Ce(t))return n;if(ir(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return nr(r)&&(r=n),o&&r>e&&(r=e),r},fr=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},pr=function(t,e){return ar(t)&&ar(e)?function(r){return t+r*(e-t)}:function(){return e}};function hr(t,e,r){return t&&t.length?t.find(function(t){return t&&("function"==typeof e?e(t):Ee(t,e))===r}):null}var yr=function(t,e){return ar(t)&&ar(e)?t-e:Ce(t)&&Ce(e)?t.localeCompare(e):t instanceof Date&&e instanceof Date?t.getTime()-e.getTime():String(t).localeCompare(String(e))};function dr(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function vr(t){return(vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var mr=["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","colorRen
1dering","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"],br=["points","pathLength"],gr={svg:["viewBox","children"],polygon:br,polyline:br},wr=["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","onDrag
1Capture","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"],xr=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(n.isValidElement(t)&&(r=t.props),!C(r))return null;var o={};return Object.keys(r).forEach(function(t){wr.includes(t)&&(o[t]=e||function(e){return r[t](r,e)})}),o},Or=function(t,e,r){if(!C(t)||"object"!==vr(t))return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];wr.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))}),n},jr=["children"],Sr=["children"];function Pr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ar(t){return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Er={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},kr=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Mr=null,Tr=null,_r=function t(e){if(e===Mr&&Array.isArray(Tr))return Tr;var r=[];return n.Children.forEach(e,function(e){ke(e)||(Ze.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))}),Tr=r,Mr=e,r};function Cr(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return kr(t)}):[kr(e)],_r(t).forEach(function(t){var e=Ee(t,"type.displayName")||Ee(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function Dr(t,e){var r=Cr(t,e);return r&&r[0]}var Ir=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!ar(r)||r<=0||!ar(n)||n<=0)},Nr=["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"],Br=function(t){return t&&"object"===Ar(t)&&"clipDot"in t},Rr=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var o=t;if(n.isValidElement(t)&&(o=t.props),!C(o))return null;var i={};
vendor: 5,111 bytes, line 1
1return Object.keys(o).forEach(function(t){var n;(function(t,e,r,n){var o,i=null!==(o=null==gr?void 0:gr[n])&&void 0!==o?o:[];return e.startsWith("data-")||!B(t)&&(n&&i.includes(e)||mr.includes(e))||r&&wr.includes(e)})(null===(n=o)||void 0===n?void 0:n[t],t,e,r)&&(i[t]=o[t])}),i},Lr=function t(e,r){if(e===r)return!0;var o=n.Children.count(e);if(o!==n.Children.count(r))return!1;if(0===o)return!0;if(1===o)return zr(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<o;i++){var a=e[i],c=r[i];if(Array.isArray(a)||Array.isArray(c)){if(!t(a,c))return!1}else if(!zr(a,c))return!1}return!0},zr=function(t,e){if(ke(t)&&ke(e))return!0;if(!ke(t)&&!ke(e)){var r=t.props||{},n=r.children,o=Pr(r,jr),i=e.props||{},a=i.children,c=Pr(i,Sr);return n&&a?dr(o,c)&&Lr(n,a):!n&&!a&&dr(o,c)}return!1},Fr=function(t,e){var r=[],n={};return _r(t).forEach(function(t,o){if(function(t){return t&&t.type&&Ce(t.type)&&Nr.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=kr(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}}),r},Ur=["children","width","height","viewBox","className","style","title","desc"];function $r(){return $r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$r.apply(this,arguments)}function Wr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function qr(e){var r=e.children,n=e.width,i=e.height,a=e.viewBox,c=e.className,u=e.style,l=e.title,s=e.desc,f=Wr(e,Ur),p=a||{width:n,height:i,x:0,y:0},h=t("recharts-surface",c);return o.createElement("svg",$r({},Rr(f,!0,"svg"),{className:h,width:n,height:i,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),o.createElement("title",null,l),o.createElement("desc",null,s),r)}var Vr=["children","className"];function Xr(){return Xr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xr.apply(this,arguments)}function Hr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Kr=o.forwardRef(function(e,r){var n=e.children,i=e.className,a=Hr(e,Vr),c=t("recharts-layer",i);return o.createElement("g",Xr({className:c},Rr(a,!0),{ref:r}),n)}),Gr=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]};var Yr=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i};var Zr=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Yr(t,e,r)},Jr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Qr=function(t){return Jr.test(t)};var tn=function(t){return t.split("")},en="\\ud800-\\udfff",rn="["+en+"]",nn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",on="\\ud83c[\\udffb-\\udfff]",an="[^"+en+"]",cn="(?:\\ud83c[\\udde6-\\uddff]){2}",un="[\\ud800-\\udbff][\\udc00-\\udfff]",ln="(?:"+nn+"|"+on+")"+"?",sn="[\\ufe0e\\ufe0f]?",fn=sn+ln+("(?:\\u200d(?:"+[an,cn,un].join("|")+")"+sn+ln+")*"),pn="(?:"+[an+nn+"?",nn,cn,un,rn].join("|")+")",hn=RegExp(on+"(?="+on+")|"+pn+fn,"g");var yn=tn,dn=Qr,vn=function(t){return t.match(hn)||[]};var mn=Zr,bn=Qr,gn=function(t){return dn(t)?vn(t):yn(t)},wn=ye;const xn=r(function(t){return function(e){e=wn(e);var r=bn(e)?gn(e):void 0,n=r?r[0]:e.charAt(0),o=r?mn(r,1).join(""):e.slice(1);return n[t]()+o}}("toUpperCase"));function On(t){return function(){return t}}const jn=Math.cos,Sn=Math.sin,Pn=Math.sqrt,An=Math.PI,En=2*An,kn=Math.PI,Mn=2*kn,Tn=1e-6,_n=Mn-Tn;function Cn(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class Dn{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Cn:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Cn;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n}
1,${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Tn)if(Math.abs(s*c-u*l)>Tn&&o){let p=r-i,h=n-a,y=c*c+u*u,d=p*p+h*h,v=Math.sqrt(y),m=Math.sqrt(f),b=o*Math.tan((kn-Math.acos((y+f-d)/(2*v*m)))/2),g=b/m,w=b/v;Math.abs(g-1)>Tn&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+w*c},${this._y1=e+w*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Tn||Math.abs(this._y1-l)>Tn)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Mn+Mn),f>_n?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>Tn&&this._append`A${r},${r},0,${+(f>=kn)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function In(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new Dn(e)}function Nn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Bn(t){this._context=t}function Rn(t){return new Bn(t)}function Ln(t){return t[0]}function zn(t){return t[1]}function Fn(t,e){var r=On(!0),n=null,o=Rn,i=null,a=In(c);function c(c){var u,l,s,f=(c=Nn(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?Ln:On(t),e="function"==typeof e?e:void 0===e?zn:On(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:On(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:On(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:On(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function Un(t,e,r){var n=null,o=On(!0),i=null,a=Rn,c=null,u=In(l);function l(l){var s,f,p,h,y,d=(l=Nn(l)).length,v=!1,m=new Array(d),b=new Array(d);for(null==i&&(c=a(y=u())),s=0;s<=d;
vendor: 31,406 bytes, line 1
1++s){if(!(s<d&&o(h=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],b[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),c.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(y)return c=null,y+""||null}function s(){return Fn().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Ln:On(+t),e="function"==typeof e?e:On(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?zn:On(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:On(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:On(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:On(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:On(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:On(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:On(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:On(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}Bn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class $n{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}const Wn={draw(t,e){const r=Pn(e/An);t.moveTo(r,0),t.arc(0,0,r,0,En)}},qn={draw(t,e){const r=Pn(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Vn=Pn(1/3),Xn=2*Vn,Hn={draw(t,e){const r=Pn(e/Xn),n=r*Vn;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Kn={draw(t,e){const r=Pn(e),n=-r/2;t.rect(n,n,r,r)}},Gn=Sn(An/10)/Sn(7*An/10),Yn=Sn(En/10)*Gn,Zn=-jn(En/10)*Gn,Jn={draw(t,e){const r=Pn(.8908130915292852*e),n=Yn*r,o=Zn*r;t.moveTo(0,-r),t.lineTo(n,o);for(let i=1;i<5;++i){const e=En*i/5,a=jn(e),c=Sn(e);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}},Qn=Pn(3),to={draw(t,e){const r=-Pn(e/(3*Qn));t.moveTo(0,2*r),t.lineTo(-Qn*r,-r),t.lineTo(Qn*r,-r),t.closePath()}},eo=-.5,ro=Pn(3)/2,no=1/Pn(12),oo=3*(no/2+1),io={draw(t,e){const r=Pn(e/oo),n=r/2,o=r*no,i=n,a=r*no+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(eo*n-ro*o,ro*n+eo*o),t.lineTo(eo*i-ro*a,ro*i+eo*a),t.lineTo(eo*c-ro*u,ro*c+eo*u),t.lineTo(eo*n+ro*o,eo*o-ro*n),t.lineTo(eo*i+ro*a,eo*a-ro*i),t.lineTo(eo*c+ro*u,eo*u-ro*c),t.closePath()}};function ao(){}function co(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function uo(t){this._context=t}function lo(t){this._context=t}function so(t){this._context=t}function fo(t){this._context=t}function po(t){return t<0?-1:1}function ho(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(po(i)+po(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function yo(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function vo(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function mo(t){this._context=t}function bo(t){this._context=new go(t)}function go(t){this._context=t}function wo(t){this._context=t}function xo(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Oo(t,e){this._context=t,this._t=e}function jo(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function So(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Po(t,e){return t[e]}function Ao(t){const e=[];return e.key=t,e}function Eo(t){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}uo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:co(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:co(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},lo.prototype={areaStart:ao,areaEnd:ao,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:co(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},so.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:co(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},fo.prototype={areaStart:ao,areaEnd:ao,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},mo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vo(this,this._t0,yo(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,vo(this,yo(this,r=ho(this,t,e)),r);break;default:vo(this,this._t0,r=ho(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(bo.prototype=Object.create(mo.prototype)).point=function(t,e){mo.prototype.point.call(this,e,t)},go.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},wo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=xo(t),o=xo(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Oo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var ko=["type","size","sizeType"];function Mo(){return Mo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mo.apply(this,arguments)}function To(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function _o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?To(Object(r),!0).forEach(function(e){Co(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Co(t,e,r){var n;return n=function(t,e){if("object"!=Eo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Eo(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Do(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Io={symbolCircle:Wn,symbolCross:qn,symbolDiamond:Hn,symbolSquare:Kn,symbolStar:Jn,symbolTriangle:to,symbolWye:io},No=Math.PI/180,Bo=function(e){var r,n,i=e.type,a=void 0===i?"circle":i,c=e.size,u=void 0===c?64:c,l=e.sizeType,s=void 0===l?"area":l,f=_o(_o({},Do(e,ko)),{},{type:a,size:u,sizeType:s}),p=f.className,h=f.cx,y=f.cy,d=Rr(f,!0);return h===+h&&y===+y&&u===+u?o.createElement("path",Mo({},d,{className:t("recharts-symbols",p),transform:"translate(".concat(h,", ").concat(y,")"),d:(r=function(t){var e="symbol".concat(xn(t));return Io[e]||Wn}(a),n=function(t,e){let r=null,n=In(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:On(t||Wn),e="function"==typeof e?e:On(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:On(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:On(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(r).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*No;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(u,s,a)),n())})):null};function Ro(t){return(Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lo(){return Lo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lo.apply(this,arguments)}function zo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Fo(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Xo(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Uo(t,e,r){return e=Wo(e),function(t,e){if(e&&("object"===Ro(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$o()?Reflect.construct(e,r||[],Wo(t).constructor):e.apply(t,r))}function $o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($o=function(){return!!t})()}function Wo(t){return(Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qo(t,e){return(qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Vo(t,e,r){return(e=Xo(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xo(t){var e=function(t,e){if("object"!=Ro(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ro(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ro(e)?e:e+""}Bo.registerSymbol=function(t,e){Io["symbol".concat(xn(t))]=e};var Ho=32,Ko=function(){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Uo(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qo(t,e)}(e,n.PureComponent),Fo(e,[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=Ho/6,i=Ho/3,a=t.inactive?e:t.color;if("plainline"===t.type)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:Ho,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Ho,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return o.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Ho,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(t.legendIcon)){var c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(r),!0).forEach(function(e){Vo(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t);return delete c.legendIcon,o.cloneElement(t.legendIcon,c)}return o.createElement(Bo,{fill:a,cx:r,cy:r,size:Ho,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var e=this,r=this.props,n=r.payload,i=r.iconSize,a=r.layout,c=r.formatter,u=r.inactiveColor,l={x:0,y:0,width:Ho,height:Ho},s={display:"horizontal"===a?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map(function(r,n){var a=r.formatter||c,p=t(Vo(Vo({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",r.inactive));if("none"===r.type)return null;var h=B(r.value)?null:r.value;Gr(!B(r.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var y=r.inactive?u:r.color;return o.createElement("li",Lo({className:p,style:s,key:"legend-item-".concat(n)},Or(e.props,r,n)),o.createElement(qr,{width:i,height:i,viewBox:l,style:f},e.renderIcon(r)),o.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},a?a(h,r,n):h))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}])}();Vo(Ko,"displayName","Legend"),Vo(Ko,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Go=It;var Yo=It,Zo=Nt,Jo=Zt;var Qo=It,ti=function(){this.__data__=new Go,this.size=0},ei=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},ri=function(t){return this.__data__.get(t)},ni=function(t){return this.__data__.has(t)},oi=function(t,e){var r=this.__data__;if(r instanceof Yo){var n=r.__data__;if(!Zo||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Jo(n)}return r.set(t,e),this.size=r.size,this};function ii(t){var e=this.__data__=new Qo(t);this.size=e.size}ii.prototype.clear=ti,ii.prototype.delete=ei,ii.prototype.get=ri,ii.prototype.has=ni,ii.prototype.set=oi;var ai=ii;var ci=Zt,ui=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},li=function(t){return this.__data__.has(t)};function si(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ci;++e<r;)this.add(t[e])}si.prototype.add=si.prototype.push=ui,si.prototype.has=li;var fi=si;var pi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var hi=function(t,e){return t.has(e)},yi=fi,di=pi,vi=hi;var mi=function(t,e,r,n,o,i){var a=1&r,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=i.get(t),s=i.get(e);if(l&&s)return l==e&&s==t;var f=-1,p=!0,h=2&r?new yi:void 0;for(i.set(t,e),i.set(e,t);++f<c;){var y=t[f],d=e[f];if(n)var v=a?n(d,y,f,e,t,i):n(y,d,f,t,e,i);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!di(e,function(t,e){if(!vi(h,e)&&(y===t||o(y,t,r,n,i)))return h.push(e)})){p=!1;break}}else if(y!==d&&!o(y,d,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p};var bi=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r},gi=l.Uint8Array,wi=wt,xi=mi,Oi=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r},ji=bi,Si=s?s.prototype:void 0,Pi=Si?Si.valueOf:void 0;var Ai=function(t,e,r,n,o,i,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new gi(t),new gi(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return wi(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=Oi;case"[object Set]":var u=1&n;if(c||(c=ji),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=xi(c(t),c(e),n,o,i,a);return a.delete(t),s;case"[object Symbol]":if(Pi)return Pi.call(t)==Pi.call(e)}return!1};var Ei=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},ki=Ei,Mi=i;var Ti=function(t,e,r){var n=e(t);return Mi(t)?n:ki(n,r(t))};var _i=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i},Ci=function(){return[]},Di=Object.prototype.propertyIsEnumerable,Ii=Object.getOwnPropertySymbols,Ni=Ii?function(t){return null==t?[]:(t=Object(t),_i(Ii(t),function(e){return Di.call(t,e)}))}:Ci;var Bi=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Ri=x,Li=O;var zi,Fi,Ui,$i,Wi,qi,Vi,Xi,Hi=function(t){return Li(t)&&"[object Arguments]"==Ri(t)},Ki=O,Gi=Object.prototype,Yi=Gi.hasOwnProperty,Zi=Gi.propertyIsEnumerable,Ji=Hi(function(){return arguments}())?Hi:function(t){return Ki(t)&&Yi.call(t,"callee")&&!Zi.call(t,"callee")},Qi={exports:{}};zi=Qi,Ui=l,$i=function(){return!1},Wi=(Fi=Qi.exports)&&!Fi.nodeType&&Fi,qi=Wi&&zi&&!zi.nodeType&&zi,Vi=qi&&qi.exports===Wi?Ui.Buffer:void 0,Xi=(Vi?Vi.isBuffer:void 0)||$i,zi.exports=Xi;var ta=Qi.exports,ea=/^(?:0|[1-9]\d*)$/;var ra=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&ea.test(t))&&t>-1&&t%1==0&&t<e};var na=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},oa=x,ia=na,aa=O,ca={};ca["[object Float32Array]"]=ca["[object Float64Array]"]=ca["[object Int8Array]"]=ca["[object Int16Array]"]=ca["[object Int32Array]"]=ca["[object Uint8Array]"]=ca["[object Uint8ClampedArray]"]=ca["[object Uint16Array]"]=ca["[object Uint32Array]"]=!0,ca["[object Arguments]"]=ca["[object Array]"]=ca["[object ArrayBuffer]"]=ca["[object Boolean]"]=ca["[object DataView]"]=ca["[object Date]"]=ca["[object Error]"]=ca["[object Function]"]=ca["[object Map]"]=ca["[object Number]"]=ca["[object Object]"]=ca["[object RegExp]"]=ca["[object Set]"]=ca["[object String]"]=ca["[object WeakMap]"]=!1;var ua=function(t){return aa(t)&&ia(t.length)&&!!ca[oa(t)]};var la=function(t){return function(e){return t(e)}},sa={exports:{}};!function(t,e){var r=a,n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,c=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(e){}}();t.exports=c}(sa,sa.exports);var fa=sa.exports,pa=ua,ha=la,ya=fa&&fa.isTypedArray,da=ya?ha(ya):pa,va=Bi,ma=Ji,ba=i,ga=ta,wa=ra,xa=da,Oa=Object.prototype.hasOwnProperty;var ja=function(t,e){var r=ba(t),n=!r&&ma(t),o=!r&&!n&&ga(t),i=!r&&!n&&!o&&xa(t),a=r||n||o||i,c=a?va(t.length,String):[],u=c.length;for(var l in t)!e&&!Oa.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||wa(l,u))||c.push(l);return c},Sa=Object.prototype;var Pa=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Sa)};var Aa=function(t,e){return function(r){return t(e(r))}},Ea=Aa(Object.keys,Object),ka=Pa,Ma=Ea,Ta=Object.prototype.hasOwnProperty;var _a=N,Ca=na;var Da=function(t){return null!=t&&Ca(t.length)&&!_a(t)},Ia=ja,Na=function(t){if(!ka(t))return Ma(t);var e=[];for(var r in Object(t))Ta.call(t,r)&&"constructor"!=r&&e.push(r);return e},Ba=Da;var Ra=function(t){return Ba(t)?Ia(t):Na(t)},La=Ti,za=Ni,Fa=Ra;var Ua=function(t){return La(t,Fa,za)},$a=Object.prototype.hasOwnProperty;var Wa=function(t,e,r,n,o,i){var a=1&r,c=Ua(t),u=c.length;if(u!=Ua(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:$a.call(e,s)))return!1}var f=i.get(t),p=i.get(e);if(f&&p)return f==e&&p==t;var h=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<u;){var d=t[s=c[l]],v=e[s];if(n)var m=a?n(v,d,s,e,t,i):n(d,v,s,t,e,i);if(!(void 0===m?d===v||o(d,v,r,n,i):m)){h=!1;break}y||(y="constructor"==s)}if(h&&!y){var b=t.constructor,g=e.constructor;b==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(h=!1)}return i.delete(t),i.delete(e),h},qa=et(l,"DataView"),Va=et(l,"Promise"),Xa=et(l,"Set"),Ha=qa,Ka=Nt,Ga=Va,Ya=Xa,Za=et(l,"WeakMap"),Ja=x,Qa=$,tc="[object Map]",ec="[object Promise]",rc="[object Set]",nc="[object WeakMap]",oc="[object DataView]",ic=Qa(Ha),ac=Qa(Ka),cc=Qa(Ga),uc=Qa(Ya),lc=Qa(Za),sc=Ja;(Ha&&sc(new Ha(new ArrayBuffer(1)))!=oc||Ka&&sc(new Ka)!=tc||Ga&&sc(Ga.resolve())!=ec||Ya&&sc(new Ya)!=rc||Za&&sc(new Za)!=nc)&&(sc=function(t){var e=Ja(t),r="[object Object]"==e?t.constructor:void 0,n=r?Qa(r):"";if(n)switch(n){case ic:return oc;case ac:return tc;case cc:return ec;case uc:return rc;case lc:return nc}return e});var fc=ai,pc=mi,hc=Ai,yc=Wa,dc=sc,vc=i,mc=ta,bc=da,gc="[object Arguments]",wc="[object Array]",xc="[object Object]",Oc=Object.prototype.hasOwnProperty;var jc=function(t,e,r,n,o,i){var a=vc(t),c=vc(e),u=a?wc:dc(t),l=c?wc:dc(e),s=(u=u==gc?xc:u)==xc,f=(l=l==gc?xc:l)==xc,p=u==l;if(p&&mc(t)){if(!mc(e))return!1;a=!0,s=!1}if(p&&!s)return i||(i=new fc),a||bc(t)?pc(t,e,r,n,o,i):hc(t,e,u,r,n,o,i);if(!(1&r)){var h=s&&Oc.call(t,"__wrapped__"),y=f&&Oc.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,v=y?e.value():e;return i||(i=new fc),o(d,v,r,n,i)}}return!!p&&(i||(i=new fc),yc(t,e,r,n,o,i))},Sc=O;var Pc=function t(e,r,n,o,i){return e===r||(null==e||null==r||!Sc(e)&&!Sc(r)?e!=e&&r!=r:jc(e,r,n,o,t,i))},Ac=ai,Ec=Pc;var kc=_;var Mc=function(t){return t==t&&!kc(t)},Tc=Mc,_c=Ra;var Cc=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Dc=function(t,e,r,n){var o=r.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var c=r[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=r[o])[0],l=t[u],s=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Ac;if(n)var p=n(l,s,u,t,e,f);if(!(void 0===p?Ec(s,l,3,n,f):p))return!1}}return!0},Ic=function(t){for(var e=_c(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,Tc(o)]}return e},Nc=Cc;var Bc=ge,Rc=Ji,Lc=i,zc=ra,Fc=na,Uc=xe;var $c=function(t,e){return null!=t&&e in Object(t)},Wc=function(t,e,r){for(var n=-1,o=(e=Bc(e,t)).length,i=!1;++n<o;){var a=Uc(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Fc(o)&&zc(a,o)&&(Lc(t)||Rc(t))};var qc=Pc,Vc=Ae,Xc=function(t,e){return null!=t&&Wc(t,e,$c)},Hc=T,Kc=Mc,Gc=Cc,Yc=xe;var Zc=function(t){return t};var Jc=Se;var Qc=function(t){return function(e){return null==e?void 0:e[t]}},tu=function(t){return function(e){return Jc(e,t)}},eu=T,ru=xe;var nu=function(t){var e=Ic(t);return 1==e.length&&e[0][2]?Nc(e[0][0],e[0][1]):function(r){return r===t||Dc(r,t,e)}},ou=function(t,e){return Hc(t)&&Kc(e)?Gc(Yc(t),e):function(r){var n=Vc(r,t);return void 0===n&&n===e?Xc(r,t):qc(e,n,3)}},iu=Zc,au=i,cu=function(t){return eu(t)?Qc(ru(t)):tu(t)};var uu=function(t){return"function"==typeof t?t:null==t?iu:"object"==typeof t?au(t)?ou(t[0],t[1]):nu(t):cu(t)};var lu=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1};var su=lu,fu=function(t){return t!=t},pu=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1};var hu=function(t,e,r){return e==e?pu(t,e,r):su(t,fu,r)};var yu=function(t,e){return!!(null==t?0:t.length)&&hu(t,e,0)>-1};var du=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1};var vu=Xa,mu=function(){},bu=vu&&1/bi(new vu([,-0]))[1]==1/0?function(t){return new vu(t)}:mu,gu=fi,wu=yu,xu=du,Ou=hi,ju=bu,Su=bi;var Pu=uu,Au=function(t,e,r){var n=-1,o=wu,i=t.length,a=!0,c=[],u=c;if(r)a=!1,o=xu;else if(i>=200){var l=e?null:ju(t);if(l)return Su(l);a=!1,o=Ou,u=new gu}else u=e?[]:c;t:for(;++n<i;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),c.push(s)}else o(u,f,r)||(u!==c&&u.push(f),c.push(s))}return c};const Eu=r(function(t,e){return t&&t.length?Au(t,Pu(e)):[]});function ku(t,e,r){return!0===e?Eu(t,r):B(e)?Eu(t,e):t}function Mu(t){return(Mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Tu=["ref"];function _u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Cu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_u(Object(r),!0).forEach(function(e){Lu(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Du(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zu(n.key),n)}}function Iu(t,e,r){return e=Bu(e),function(t,e){if(e&&("object"===Mu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Nu()?Reflect.construct(e,r||[],Bu(t).constructor):e.apply(t,r))}function Nu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Nu=function(){return!!t})()}function Bu(t){return(Bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ru(t,e){return(Ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Lu(t,e,r){return(e=zu(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zu(t){var e=function(t,e){if("object"!=Mu(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Mu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
vendor: 4,501 bytes, line 1
1(t,"string");return"symbol"==Mu(e)?e:e+""}function Fu(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Uu(t){return t.value}var $u=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Lu(e=Iu(this,t,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ru(t,e)}(t,n.PureComponent),e=t,i=[{key:"getWithHeight",value:function(t,e){var r=Cu(Cu({},this.defaultProps),t.props).layout;return"vertical"===r&&ar(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Cu({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Cu(Cu({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,i=e.height,a=e.wrapperStyle,c=e.payloadUniqBy,u=e.payload,l=Cu(Cu({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return o.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(o.isValidElement(t))return o.cloneElement(t,e);if("function"==typeof t)return o.createElement(t,e);e.ref;var r=Fu(e,Tu);return o.createElement(Ko,r)}(r,Cu(Cu({},this.props),{},{payload:ku(u,c,Uu)})))}}])&&Du(e.prototype,r),i&&Du(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i}();Lu($u,"displayName","Legend"),Lu($u,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Wu=Ji,qu=i,Vu=s?s.isConcatSpreadable:void 0;var Xu=Ei,Hu=function(t){return qu(t)||Wu(t)||!!(Vu&&t&&t[Vu])};var Ku=function t(e,r,n,o,i){var a=-1,c=e.length;for(n||(n=Hu),i||(i=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,o,i):Xu(i,u):o||(i[i.length]=u)}return i};var Gu=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}(),Yu=Ra;var Zu=function(t,e){return t&&Gu(t,e,Yu)},Ju=Da;var Qu=function(t,e){return function(r,n){if(null==r)return r;if(!Ju(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=Object(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}(Zu),tl=Qu,el=Da;var rl=function(t,e){var r=-1,n=el(t)?Array(t.length):[];return tl(t,function(t,o,i){n[++r]=e(t,o,i)}),n};var nl=P;var ol=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=t==t,i=nl(t),a=void 0!==e,c=null===e,u=e==e,l=nl(e);if(!c&&!l&&!i&&t>e||i&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!o)return 1;
vendor: 30,301 bytes, line 1
1if(!n&&!i&&!l&&t<e||l&&r&&o&&!n&&!i||c&&r&&o||!a&&o||!u)return-1}return 0};var il=ae,al=Se,cl=uu,ul=rl,ll=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},sl=la,fl=function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,c=r.length;++n<a;){var u=ol(o[n],i[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},pl=Zc,hl=i;var yl=function(t,e,r){e=e.length?il(e,function(t){return hl(t)?function(e){return al(e,1===t.length?t[0]:t)}:t}):[pl];var n=-1;e=il(e,sl(cl));var o=ul(t,function(t,r,o){return{criteria:il(e,function(e){return e(t)}),index:++n,value:t}});return ll(o,function(t,e){return fl(t,e,r)})};var dl=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},vl=Math.max;var ml=function(t,e,r){return e=vl(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=vl(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(a),dl(t,this,c)}};var bl=function(t){return function(){return t}},gl=et,wl=function(){try{var t=gl(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),xl=bl,Ol=wl,jl=Ol?function(t,e){return Ol(t,"toString",{configurable:!0,enumerable:!1,value:xl(e),writable:!0})}:Zc,Sl=Date.now;var Pl=function(t){var e=0,r=0;return function(){var n=Sl(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(jl),Al=Zc,El=ml,kl=Pl;var Ml=wt,Tl=Da,_l=ra,Cl=_;var Dl=function(t,e,r){if(!Cl(r))return!1;var n=typeof e;return!!("number"==n?Tl(r)&&_l(e,r.length):"string"==n&&e in r)&&Ml(r[e],t)},Il=Ku,Nl=yl,Bl=Dl;const Rl=r(function(t,e){return kl(El(t,e,Al),t+"")}(function(t,e){if(null==t)return[];var r=e.length;return r>1&&Bl(t,e[0],e[1])?e=[]:r>2&&Bl(e[0],e[1],e[2])&&(e=[e[0]]),Nl(t,Il(e,1),[])}));function Ll(t){return(Ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zl(){return zl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zl.apply(this,arguments)}function Fl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ul(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ul(t,e)}(t,e)||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 Ul(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Wl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$l(Object(r),!0).forEach(function(e){ql(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ql(t,e,r){var n;return n=function(t,e){if("object"!=Ll(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ll(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ll(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vl(t){return Array.isArray(t)&&cr(t[0])&&cr(t[1])?t.join(" ~ "):t}var Xl=function(e){var r=e.separator,n=void 0===r?" : ":r,i=e.contentStyle,a=void 0===i?{}:i,c=e.itemStyle,u=void 0===c?{}:c,l=e.labelStyle,s=void 0===l?{}:l,f=e.payload,p=e.formatter,h=e.itemSorter,y=e.wrapperClassName,d=e.labelClassName,v=e.label,m=e.labelFormatter,b=e.accessibilityLayer,g=void 0!==b&&b,w=Wl({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),x=Wl({margin:0},s),O=!ke(v),j=O?v:"",S=t("recharts-default-tooltip",y),P=t("recharts-tooltip-label",d);O&&m&&null!=f&&(j=m(v,f));var A=g?{role:"status","aria-live":"assertive"}:{};return o.createElement("div",zl({className:S,style:w},A),o.createElement("p",{className:P,style:x},o.isValidElement(j)?j:"".concat(j)),function(){if(f&&f.length){var t=(h?Rl(f,h):f).map(function(t,e){if("none"===t.type)return null;var r=Wl({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},u),i=t.formatter||p||Vl,a=t.value,c=t.name,l=a,s=c;if(i&&null!=l&&null!=s){var h=i(a,c,t,e,f);if(Array.isArray(h)){var y=Fl(h,2);l=y[0],s=y[1]}else l=h}return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:r},cr(s)?o.createElement("span",{className:"recharts-tooltip-item-name"},s):null,cr(s)?o.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,o.createElement("span",{className:"recharts-tooltip-item-value"},l),o.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Hl(t){return(Hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kl(t,e,r){var n;return n=function(t,e){if("object"!=Hl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Hl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Hl(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Gl="recharts-tooltip-wrapper",Yl={visibility:"hidden"};function Zl(e){var r=e.coordinate,n=e.translateX,o=e.translateY;return t(Gl,Kl(Kl(Kl(Kl({},"".concat(Gl,"-right"),ar(n)&&r&&ar(r.x)&&n>=r.x),"".concat(Gl,"-left"),ar(n)&&r&&ar(r.x)&&n<r.x),"".concat(Gl,"-bottom"),ar(o)&&r&&ar(r.y)&&o>=r.y),"".concat(Gl,"-top"),ar(o)&&r&&ar(r.y)&&o<r.y))}function Jl(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&ar(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function Ql(t){return(Ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ts(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function es(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ts(Object(r),!0).forEach(function(e){cs(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ts(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function rs(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,us(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ns(t,e,r){return e=is(e),function(t,e){if(e&&("object"===Ql(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,os()?Reflect.construct(e,r||[],is(t).constructor):e.apply(t,r))}function os(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(os=function(){return!!t})()}function is(t){return(is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function as(t,e){return(as=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function cs(t,e,r){return(e=us(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function us(t){var e=function(t,e){if("object"!=Ql(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ql(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ql(e)?e:e+""}var ls=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return cs(e=ns(this,t,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),cs(e,"handleKeyDown",function(t){var r,n,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&as(t,e)}(t,n.PureComponent),rs(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,c=e.children,u=e.coordinate,l=e.hasPayload,s=e.isAnimationActive,f=e.offset,p=e.position,h=e.reverseDirection,y=e.useTranslate3d,d=e.viewBox,v=e.wrapperStyle,m=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=Jl({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=Jl({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):Yl,cssClasses:Zl({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:d}),b=m.cssClasses,g=m.cssProperties,w=es(es({transition:s&&r?"transform ".concat(i,"ms ").concat(a):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return o.createElement("div",{tabIndex:-1,className:b,style:w,ref:function(e){t.wrapperNode=e}},c)}}])}(),ss={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return ss[t]},set:function(t,e){if("string"==typeof t)ss[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){ss[e]=t[e]})}}};function fs(t){return(fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ps(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function hs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ps(Object(r),!0).forEach(function(e){gs(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ps(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ys(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ws(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ds(t,e,r){return e=ms(e),function(t,e){if(e&&("object"===fs(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,vs()?Reflect.construct(e,r||[],ms(t).constructor):e.apply(t,r))}function vs(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vs=function(){return!!t})()}function ms(t){return(ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function bs(t,e){return(bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function gs(t,e,r){return(e=ws(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ws(t){var e=function(t,e){if("object"!=fs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fs(e)?e:e+""}function xs(t){return t.dataKey}var Os=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ds(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bs(t,e)}(t,n.PureComponent),ys(t,[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,c=e.content,u=e.coordinate,l=e.filterNull,s=e.isAnimationActive,f=e.offset,p=e.payload,h=e.payloadUniqBy,y=e.position,d=e.reverseDirection,v=e.useTranslate3d,m=e.viewBox,b=e.wrapperStyle,g=null!=p?p:[];l&&g.length&&(g=ku(p.filter(function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)}),h,xs));var w=g.length>0;return o.createElement(ls,{allowEscapeViewBox:n,animationDuration:i,animationEasing:a,isAnimationActive:s,active:r,coordinate:u,hasPayload:w,offset:f,position:y,reverseDirection:d,useTranslate3d:v,viewBox:m,wrapperStyle:b},function(t,e){return o.isValidElement(t)?o.cloneElement(t,e):"function"==typeof t?o.createElement(t,e):o.createElement(Xl,e)}(c,hs(hs({},this.props),{},{payload:g})))}}])}();gs(Os,"displayName","Tooltip"),gs(Os,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ss.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var js=l,Ss=/\s/;var Ps=function(t){for(var e=t.length;e--&&Ss.test(t.charAt(e)););return e},As=/^\s+/;var Es=function(t){return t?t.slice(0,Ps(t)+1).replace(As,""):t},ks=_,Ms=P,Ts=/^[-+]0x[0-9a-f]+$/i,_s=/^0b[01]+$/i,Cs=/^0o[0-7]+$/i,Ds=parseInt;var Is=function(t){if("number"==typeof t)return t;if(Ms(t))return NaN;if(ks(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ks(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Es(t);var r=_s.test(t);return r||Cs.test(t)?Ds(t.slice(2),r?2:8):Ts.test(t)?NaN:+t},Ns=_,Bs=function(){return js.Date.now()},Rs=Is,Ls=Math.max,zs=Math.min;var Fs=function(t,e,r){var n,o,i,a,c,u,l=0,s=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var r=n,i=o;return n=o=void 0,l=e,a=t.apply(i,r)}function y(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=i}function d(){var t=Bs();if(y(t))return v(t);c=setTimeout(d,function(t){var r=e-(t-u);return f?zs(r,i-(t-l)):r}(t))}function v(t){return c=void 0,p&&n?h(t):(n=o=void 0,a)}function m(){var t=Bs(),r=y(t);if(n=arguments,o=this,u=t,r){if(void 0===c)return function(t){return l=t,c=setTimeout(d,e),s?h(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(d,e),h(u)}return void 0===c&&(c=setTimeout(d,e)),a}return e=Rs(e)||0,Ns(r)&&(s=!!r.leading,i=(f="maxWait"in r)?Ls(Rs(r.maxWait)||0,e):i,p="trailing"in r?!!r.trailing:p),m.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=o=c=void 0},m.flush=function(){return void 0===c?a:v(Bs())},m},Us=_;const $s=r(function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Us(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Fs(t,e,{leading:n,maxWait:e,trailing:o})});function Ws(t){return(Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Vs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qs(Object(r),!0).forEach(function(e){Xs(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qs(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Xs(t,e,r){var n;return n=function(t,e){if("object"!=Ws(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ws(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ws(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hs(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ks(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ks(t,e)}(t,e)||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 Ks(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Gs=n.forwardRef(function(e,r){var i=e.aspect,a=e.initialDimension,c=void 0===a?{width:-1,height:-1}:a,u=e.width,l=void 0===u?"100%":u,s=e.height,f=void 0===s?"100%":s,p=e.minWidth,h=void 0===p?0:p,y=e.minHeight,d=e.maxHeight,v=e.children,m=e.debounce,b=void 0===m?0:m,g=e.id,w=e.className,x=e.onResize,O=e.style,j=void 0===O?{}:O,S=n.useRef(null),P=n.useRef();P.current=x,n.useImperativeHandle(r,function(){return Object.defineProperty(S.current,"current",{get:function(){return S.current},configurable:!0})});var A=Hs(n.useState({containerWidth:c.width,containerHeight:c.height}),2),E=A[0],k=A[1],M=n.useCallback(function(t,e){k(function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}})},[]);n.useEffect(function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;M(n,o),null===(e=P.current)||void 0===e||e.call(P,n,o)};b>0&&(t=$s(t,b,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=S.current.getBoundingClientRect(),n=r.width,o=r.height;return M(n,o),e.observe(S.current),function(){e.disconnect()}},[M,b]);var T=n.useMemo(function(){var t=E.containerWidth,e=E.containerHeight;if(t<0||e<0)return null;Gr(ir(l)||ir(f),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",l,f),Gr(!i||i>0,"The aspect(%s) must be greater than zero.",i);var r=ir(l)?t:l,a=ir(f)?e:f;i&&i>0&&(r?a=r/i:a&&(r=a*i),d&&a>d&&(a=d)),Gr(r>0||a>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,a,l,f,h,y,i);var c=!Array.isArray(v)&&kr(v.type).endsWith("Chart");return o.Children.map(v,function(t){return o.isValidElement(t)?n.cloneElement(t,Vs({width:r,height:a},c?{style:Vs({height:"100%",width:"100%",maxHeight:a,maxWidth:r},t.props.style)}:{})):t})},[i,v,f,d,y,h,E,l]);return o.createElement("div",{id:g?"".concat(g):void 0,className:t("recharts-responsive-container",w),style:Vs(Vs({},j),{},{width:l,height:f,minWidth:h,minHeight:y,maxHeight:d}),ref:S},T)}),Ys=function(t){return null};function Zs(t){return(Zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Js(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Qs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Js(Object(r),!0).forEach(function(e){tf(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Js(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tf(t,e,r){var n;return n=function(t,e){if("object"!=Zs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Zs(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Ys.displayName="Cell";var ef={widthCache:{},cacheCount:0},rf={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},nf="recharts_measurement_span";var of=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||ss.isSsr)return{width:0,height:0};var r,n=(r=Qs({},e),Object.keys(r).forEach(function(t){r[t]||delete r[t]}),r),o=JSON.stringify({text:t,copyStyle:n});if(ef.widthCache[o])return ef.widthCache[o];try{var i=document.getElementById(nf);i||((i=document.createElement("span")).setAttribute("id",nf),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Qs(Qs({},rf),n);Object.assign(i.style,a),i.textContent="".concat(t);var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return ef.widthCache[o]=u,++ef.cacheCount>2e3&&(ef.cacheCount=0,ef.widthCache={}),u}catch(l){return{width:0,height:0}}};function af(t){return(af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return uf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uf(t,e)}(t,e)||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 uf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function lf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sf(n.key),n)}}function sf(t){var e=function(t,e){if("object"!=af(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=af(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==af(e)?e:e+""}var ff=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hf=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,yf=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,df={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},vf=Object.keys(df),mf="NaN";var bf=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||hf.test(r)||(this.num=NaN,this.unit=""),vf.includes(r)&&(this.num=function(t,e){return t*df[e]}(e,r),this.unit="px")}return e=t,n=[{key:"parse",value:function(e){var r,n=cf(null!==(r=yf.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&lf(e.prototype,r),n&&lf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();function gf(t){if(t.includes(mf))return mf;for(var e=t;e.includes("*")||e.includes("/");){var r,n=cf(null!==(r=ff.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=bf.parse(null!=o?o:""),u=bf.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return mf;e=e.replace(ff,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=cf(null!==(s=pf.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],y=f[3],d=bf.parse(null!=p?p:""),v=bf.parse(null!=y?y:""),m="+"===h?d.add(v):d.subtract(v);if(m.isNaN())return mf;e=e.replace(pf,m.toString())}return e}var wf=/\(([^()]*)\)/;function xf(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=cf(wf.exec(e),2)[1];e=e.replace(wf,gf(r))}return e}(e),e=gf(e)}function Of(t){var e=function(t){try{return xf(t)}catch(e){return mf}}(t.slice(5,-1));return e===mf?"":e}var jf=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Sf=["dx","dy","angle","className","breakAll"];function Pf(){return Pf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
vendor: 6,209 bytes, line 1
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pf.apply(this,arguments)}function Af(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ef(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return kf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kf(t,e)}(t,e)||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 kf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Mf=/[ \f\n\r\t\v\u2028\u2029]+/,Tf=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return ke(e)||(o=r?e.toString().split(""):e.toString().split(Mf)),{wordsWithComputedWidth:o.map(function(t){return{word:t,width:of(t,n).width}}),spaceWidth:r?0:of(" ",n).width}}catch(i){return null}},_f=function(t){return[{words:ke(t)?[]:t.toString().split(Mf)}]},Cf=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!ss.isSsr){var c=Tf({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=ar(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t},[])},p=f(e);if(!l)return p;for(var h,y=function(t){var e=s.slice(0,t),r=Tf({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce(function(t,e){return t.width>e.width?t:e})}(o).width>Number(n);return[a,o]},d=0,v=s.length-1,m=0;d<=v&&m<=s.length-1;){var b=Math.floor((d+v)/2),g=Ef(y(b-1),2),w=g[0],x=g[1],O=Ef(y(b),1)[0];if(w||O||(d=b+1),w&&O&&(v=b-1),!w&&O){h=x;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):_f(n)}return _f(n)},Df="#808080",If=function(e){var r=e.x,i=void 0===r?0:r,a=e.y,c=void 0===a?0:a,u=e.lineHeight,l=void 0===u?"1em":u,s=e.capHeight,f=void 0===s?"0.71em":s,p=e.scaleToFit,h=void 0!==p&&p,y=e.textAnchor,d=void 0===y?"start":y,v=e.verticalAnchor,m=void 0===v?"end":v,b=e.fill,g=void 0===b?Df:b,w=Af(e,jf),x=n.useMemo(function(){return Cf({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:h,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,h,w.style,w.width]),O=w.dx,j=w.dy,S=w.angle,P=w.className,A=w.breakAll,E=Af(w,Sf);if(!cr(i)||!cr(c))return null;var k,M=i+(ar(O)?O:0),T=c+(ar(j)?j:0);switch(m){case"start":k=Of("calc(".concat(f,")"));break;case"middle":k=Of("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:k=Of("calc(".concat(x.length-1," * -").concat(l,")"))}var _=[];if(h){var C=x[0].width,D=w.width;_.push("scale(".concat((ar(D)?D/C:1)/C,")"))}return S&&_.push("rotate(".concat(S,", ").concat(M,", ").concat(T,")")),_.length&&(E.transform=_.join(" ")),o.createElement("text",Pf({},Rr(E,!0),{x:M,y:T,className:t("recharts-text",P),textAnchor:d,fill:g.includes("url")?Df:g}),x.map(function(t,e){var r=t.words.join(A?"":" ");return o.createElement("tspan",{x:M,dy:0===e?k:l,key:"".concat(r,"-").concat(e)},r)}))};function Nf(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Bf(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Rf(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=Nf,r=(e,r)=>Nf(t(e),r),n=(e,r)=>t(e)-r):(e=t===Nf||t===Bf?t:Lf,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function Lf(){return 0}function zf(t){return null===t?NaN:+t}const Ff=Rf(Nf).right;Rf(zf).center;class Uf extends Map{constructor(t,e=Wf){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[r,n]of t)this.set(r,n)}get(t){return super.get($f(this,t))}has(t){return super.has($f(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function $f({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function Wf(t){return null!==t&&"object"==typeof t?t.valueOf():t}function qf(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const Vf=Math.sqrt(50),Xf=Math.sqrt(10),Hf=Math.sqrt(2);function Kf(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=Vf?10:i>=Xf?5:i>=Hf?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?Kf(t,e,2*r):[c,u,l]}function Gf(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?Kf(e,t,r):Kf(t,e,r);
vendor: 17,981 bytes, line 1
1if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let l=0;l<c;++l)u[l]=(i-l)/-a;else for(let l=0;l<c;++l)u[l]=(i-l)*a;else if(a<0)for(let l=0;l<c;++l)u[l]=(o+l)/-a;else for(let l=0;l<c;++l)u[l]=(o+l)*a;return u}function Yf(t,e,r){return Kf(t=+t,e=+e,r=+r)[2]}function Zf(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Yf(e,t,r):Yf(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Jf(t,e){let r;for(const n of t)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);return r}function Qf(t,e){let r;for(const n of t)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);return r}function tp(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?qf:function(t=Nf){if(t===Nf)return qf;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);tp(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(ep(t,r,e),o(t[n],i)>0&&ep(t,r,n);a<c;){for(ep(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?ep(t,r,c):(++c,ep(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function ep(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function rp(t,e,r=zf){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function np(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function op(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const ip=Symbol("implicit");function ap(){var t=new Uf,e=[],r=[],n=ip;function o(o){let i=t.get(o);if(void 0===i){if(n!==ip)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new Uf;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return ap(e,r).unknown(n)},np.apply(o,arguments),o}function cp(){var t,e,r=ap().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(h-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var y=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map(function(e){return p+t*e});return o(f?y.reverse():y)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return cp(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},np.apply(f(),arguments)}function up(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return up(e())},t}function lp(){return up(cp.apply(null,arguments).paddingInner(1))}function sp(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function fp(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function pp(){}var hp=.7,yp=1/hp,dp="\\s*([+-]?\\d+)\\s*",vp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bp=/^#([0-9a-f]{3,8})$/,gp=new RegExp(`^rgb\\(${dp},${dp},${dp}\\)$`),wp=new RegExp(`^rgb\\(${mp},${mp},${mp}\\)$`),xp=new RegExp(`^rgba\\(${dp},${dp},${dp},${vp}\\)$`),Op=new RegExp(`^rgba\\(${mp},${mp},${mp},${vp}\\)$`),jp=new RegExp(`^hsl\\(${vp},${mp},${mp}\\)$`),Sp=new RegExp(`^hsla\\(${vp},${mp},${mp},${vp}\\)$`),Pp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ap(){return this.rgb().formatHex()}function Ep(){return this.rgb().formatRgb()}function kp(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=bp.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Mp(e):3===r?new Cp(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Tp(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Tp(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=gp.exec(t))?new Cp(e[1],e[2],e[3],1):(e=wp.exec(t))?new Cp(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=xp.exec(t))?Tp(e[1],e[2],e[3],e[4]):(e=Op.exec(t))?Tp(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=jp.exec(t))?Lp(e[1],e[2]/100,e[3]/100,1):(e=Sp.exec(t))?Lp(e[1],e[2]/100,e[3]/100,e[4]):Pp.hasOwnProperty(t)?Mp(Pp[t]):"transparent"===t?new Cp(NaN,NaN,NaN,0):null}function Mp(t){return new Cp(t>>16&255,t>>8&255,255&t,1)}function Tp(t,e,r,n){return n<=0&&(t=e=r=NaN),new Cp(t,e,r,n)}function _p(t,e,r,n){return 1===arguments.length?((o=t)instanceof pp||(o=kp(o)),o?new Cp((o=o.rgb()).r,o.g,o.b,o.opacity):new Cp):new Cp(t,e,r,null==n?1:n);var o}function Cp(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Dp(){return`#${Rp(this.r)}${Rp(this.g)}${Rp(this.b)}`}function Ip(){const t=Np(this.opacity);return`${1===t?"rgb(":"rgba("}${Bp(this.r)}, ${Bp(this.g)}, ${Bp(this.b)}${1===t?")":`, ${t})`}`}function Np(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Bp(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Rp(t){return((t=Bp(t))<16?"0":"")+t.toString(16)}function Lp(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Fp(t,e,r,n)}function zp(t){if(t instanceof Fp)return new Fp(t.h,t.s,t.l,t.opacity);if(t instanceof pp||(t=kp(t)),!t)return new Fp;if(t instanceof Fp)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new Fp(a,c,u,t.opacity)}function Fp(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Up(t){return(t=(t||0)%360)<0?t+360:t}function $p(t){return Math.max(0,Math.min(1,t||0))}function Wp(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}sp(pp,kp,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ap,formatHex:Ap,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zp(this).formatHsl()},formatRgb:Ep,toString:Ep}),sp(Cp,_p,fp(pp,{brighter(t){return t=null==t?yp:Math.pow(yp,t),new Cp(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?hp:Math.pow(hp,t),new Cp(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Cp(Bp(this.r),Bp(this.g),Bp(this.b),Np(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Dp,formatHex:Dp,formatHex8:function(){return`#${Rp(this.r)}${Rp(this.g)}${Rp(this.b)}${Rp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ip,toString:Ip})),sp(Fp,function(t,e,r,n){return 1===arguments.length?zp(t):new Fp(t,e,r,null==n?1:n)},fp(pp,{brighter(t){return t=null==t?yp:Math.pow(yp,t),new Fp(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?hp:Math.pow(hp,t),new Fp(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new Cp(Wp(t>=240?t-240:t+120,o,n),Wp(t,o,n),Wp(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new Fp(Up(this.h),$p(this.s),$p(this.l),Np(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Np(this.opacity);return`${1===t?"hsl(":"hsla("}${Up(this.h)}, ${100*$p(this.s)}%, ${100*$p(this.l)}%${1===t?")":`, ${t})`}`}}));const qp=t=>()=>t;function Vp(t){return 1===(t=+t)?Xp:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):qp(isNaN(e)?r:e)}}function Xp(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):qp(isNaN(t)?e:t)}const Hp=function t(e){var r=Vp(e);function n(t,e){var n=r((t=_p(t)).r,(e=_p(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=Xp(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Kp(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function Gp(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=rh(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function Yp(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Zp(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Jp(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=rh(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Qp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,th=new RegExp(Qp.source,"g");function eh(t,e){var r,n,o,i=Qp.lastIndex=th.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=Qp.exec(t))&&(n=th.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:Zp(r,n)})),i=th.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function rh(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?qp(e):("number"===o?Zp:"string"===o?(r=kp(e))?(e=r,Hp):eh:e instanceof kp?Hp:e instanceof Date?Yp:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?Gp:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Jp:Zp:Kp))(t,e)}function nh(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function oh(t){return+t}var ih=[0,1];function ah(t){return t}function ch(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function uh(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=ch(o,n),i=r(a,i)):(n=ch(n,o),i=r(i,a)),function(t){return i(n(t))}}function lh(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=ch(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=Ff(t,e,1,n)-1;return i[r](o[r](e))}}function sh(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function fh(){var t,e,r,n,o,i,a=ih,c=ih,u=rh,l=ah;function s(){var t,e,r,u=Math.min(a.length,c.length);return l!==ah&&(t=a[0],e=a[u-1],t>e&&(r=t,t=e,e=r),l=function(r){return Math.max(t,Math.min(e,r))}),n=u>2?lh:uh,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),Zp)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,oh),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=nh,s()},f.clamp=function(t){return arguments.length?(l=!!t||ah,s()):l!==ah},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function ph(){return fh()(ah,ah)}function hh(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function yh(t){return(t=hh(Math.abs(t)))?t[1]:NaN}var dh,vh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mh(t){if(!(e=vh.exec(t)))throw new Error("invalid format: "+t);var e;return new bh({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function bh(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function gh(t,e){var r=hh(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}mh.prototype=bh.prototype,bh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const wh={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>gh(100*t,e),r:gh,s:function(t,e){var r=hh(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(dh=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+hh(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function xh(t){return t}var Oh,jh,Sh,Ph=Array.prototype.map,Ah=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Eh(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?xh:(e=Ph.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?xh:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(Ph.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=mh(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,y=t.width,d=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(d=!0,b="g"):wh[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===e&&"="===r)&&(h=!0,e="
10",r="=");var g="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===p?i:/[%p]/.test(b)?u:"",x=wh[b],O=/[defgprs%]/.test(b);function j(t){var o,i,u,p=g,j=w;if("c"===b)j=x(t)+j,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0===+t&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,j=("s"===b?Ah[8+dh/3]:"")+j+(S&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){j=(46===u?a+t.slice(o+1):t.slice(o))+j,t=t.slice(0,o);break}}d&&!h&&(t=n(t,1/0));var P=p.length+t.length+j.length,A=P<y?new Array(y-P+1).join(e):"";switch(d&&h&&(t=n(A+t,A.length?y-j.length:1/0),A=""),r){case"<":t=p+t+j+A;break;case"=":t=p+A+t+j;break;case"^":t=A.slice(0,P=A.length>>1)+p+t+j+A.slice(P);break;default:t=A+p+t+j}return c(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return t+""},j}return{format:f,formatPrefix:function(t,e){var r=f(((t=mh(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(yh(e)/3))),o=Math.pow(10,-n),i=Ah[8+n/3];return function(t){return r(o*t)+i}}}}function kh(t,e,r,n){var o,i=Zf(t,e,r);switch((n=mh(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(yh(e)/3)))-yh(Math.abs(t)))}(i,a))||(n.precision=o),Sh(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,yh(e)-yh(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-yh(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return jh(n)}function Mh(t){var e=t.domain;return t.ticks=function(t){var r=e();return Gf(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return kh(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=Yf(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function Th(){var t=ph();return t.copy=function(){return sh(t,Th())},np.apply(t,arguments),Mh(t)}function _h(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function Ch(t){return Math.log(t)}function Dh(t){return Math.exp(t)}function Ih(t){return-Math.log(-t)}function Nh(t){return-Math.exp(-t)}function Bh(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Rh(t){return(e,r)=>-t(-e,r)}function Lh(t){const e=t(Ch,Dh),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Bh:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=Rh(n),o=Rh(o),t(Ih,Nh)):t(Ch,Dh),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const h=null==t?10:+t;let y=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;y.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;y.push(s)}2*y.length<h&&(y=Gf(a,c,h))}else y=Gf(f,p,Math.min(p-f,h)).map(o);return u?y.reverse():y},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=mh(r)).precision||(r.trim=!0),r=jh(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(_h(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function zh(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Fh(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Uh(t){var e=1,r=t(zh(e),Fh(e));return r.constant=function(r){return arguments.length?t(zh(e=+r),Fh(e)):e},Mh(r)}function $h(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Wh(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function qh(t){return t<0?-t*t:t*t}function Vh(t){var e=t(ah,ah),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(ah,ah):.5===r?t(Wh,qh):t($h(r),$h(1/r)):r},Mh(e)}function Xh(){var t=Vh(fh());return t.copy=function(){return sh(t,Xh()).exponent(t.exponent())},np.apply(t,arguments),t}function Hh(t){return Math.sign(t)*t*t}Oh=Eh({thousands:",",grouping:[3],currency:["$",""]}),jh=Oh.format,Sh=Oh.formatPrefix;const Kh=new Date,Gh=new Date;function Yh(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>Yh(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(o.count=(e,n)=>(Kh.setTime(+e),Gh.setTime(+n),t(Kh),t(Gh),Math.floor(r(Kh,Gh))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t===0:e=>o.count(0,e)%t===0):o:null)),o}const Zh=Yh(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Zh.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Yh(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Zh:null),Zh.range;const Jh=1e3,Qh=6e4,ty=36e5,ey=864e5,ry=6048e5,ny=2592e6,oy=31536e6,iy=Yh(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Jh)},(t,e)=>(e-t)/Jh,t=>t.getUTCSeconds());iy.range;const ay=Yh(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jh)},(t,e)=>{t.setTime(+t+e*Qh)},(t,e)=>(e-t)/Qh,t=>t.getMinutes());ay.range;const cy=Yh(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Qh)},(t,e)=>(e-t)/Qh,t=>t.getUTCMinutes());cy.range;const uy=Yh(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jh-t.getMinutes()*Qh)},(t,e)=>{t.setTime(+t+e*ty)},(t,e)=>(e-t)/ty,t=>t.getHours());uy.range;const ly=Yh(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ty)},(t,e)=>(e-t)/ty,t=>t.getUTCHours());ly.range;const sy=Yh(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Qh)/ey,t=>t.getDate()-1);sy.range;const fy=Yh(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ey,t=>t.getUTCDate()-1);fy.range;const py=Yh(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ey,t=>Math.floor(t/ey));function hy(t){return Yh(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Qh)/ry)}py.range;const yy=hy(0),dy=hy(1),vy=hy(2),my=hy(3),by=hy(4),gy=hy(5),wy=hy(6);function xy(t){return Yh(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/ry)}yy.range,dy.range,vy.range,my.range,by.range,gy.range,wy.range;const Oy=xy(0),jy=xy(1),Sy=xy(2),Py=xy(3),Ay=xy(4),Ey=xy(5),ky=xy(6);Oy.range,jy.range,Sy.range,Py.range,Ay.range,Ey.range,ky.range;const My=Yh(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth());My.range;const Ty=Yh(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth());Ty.range;const _y=Yh(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());_y.every=t=>isFinite(t=Math.floor(t))&&t>0?Yh(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,_y.range;const Cy=Yh(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function Dy(t,e,r,n,o,i){const a=[[iy,1,Jh],[iy,5,5e3],[iy,15,15e3],[iy,30,3e4],[i,1,Qh],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,ty],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,ey],[n,2,1728e5],[r,1,ry],[e,1,ny],[e,3,7776e6],[t,1,oy]];function c(e,r,n){const o=Math.abs(r-e)/n,i=Rf(([,,t])=>t).right(a,o);if(i===a.length)return t.every(Zf(e/oy,r/oy,n));
vendor: 5,947 bytes, line 1
1if(0===i)return Zh.every(Math.max(Zf(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}Cy.every=t=>isFinite(t=Math.floor(t))&&t>0?Yh(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,Cy.range;const[Iy,Ny]=Dy(Cy,Ty,Oy,py,ly,cy),[By,Ry]=Dy(_y,My,yy,sy,uy,ay);function Ly(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function zy(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Fy(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Uy,$y,Wy,qy={"-":"",_:" ",0:"0"},Vy=/^\s*\d+/,Xy=/^%/,Hy=/[\\^$*+?|[\]().{}]/g;function Ky(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function Gy(t){return t.replace(Hy,"\\$&")}function Yy(t){return new RegExp("^(?:"+t.map(Gy).join("|")+")","i")}function Zy(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Jy(t,e,r){var n=Vy.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Qy(t,e,r){var n=Vy.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function td(t,e,r){var n=Vy.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function ed(t,e,r){var n=Vy.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function rd(t,e,r){var n=Vy.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function nd(t,e,r){var n=Vy.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function od(t,e,r){var n=Vy.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function id(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ad(t,e,r){var n=Vy.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function cd(t,e,r){var n=Vy.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function ud(t,e,r){var n=Vy.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ld(t,e,r){var n=Vy.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function sd(t,e,r){var n=Vy.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function fd(t,e,r){var n=Vy.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function pd(t,e,r){var n=Vy.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function hd(t,e,r){var n=Vy.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function yd(t,e,r){var n=Vy.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dd(t,e,r){var n=Xy.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function vd(t,e,r){var n=Vy.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function md(t,e,r){var n=Vy.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function bd(t,e){return Ky(t.getDate(),e,2)}function gd(t,e){return Ky(t.getHours(),e,2)}function wd(t,e){return Ky(t.getHours()%12||12,e,2)}function xd(t,e){return Ky(1+sy.count(_y(t),t),e,3)}function Od(t,e){return Ky(t.getMilliseconds(),e,3)}function jd(t,e){return Od(t,e)+"000"}function Sd(t,e){return Ky(t.getMonth()+1,e,2)}function Pd(t,e){return Ky(t.getMinutes(),e,2)}function Ad(t,e){return Ky(t.getSeconds(),e,2)}function Ed(t){var e=t.getDay();return 0===e?7:e}function kd(t,e){return Ky(yy.count(_y(t)-1,t),e,2)}function Md(t){var e=t.getDay();return e>=4||0===e?by(t):by.ceil(t)}function Td(t,e){return t=Md(t),Ky(by.count(_y(t),t)+(4===_y(t).getDay()),e,2)}function _d(t){return t.getDay()}function Cd(t,e){return Ky(dy.count(_y(t)-1,t),e,2)}function Dd(t,e){return Ky(t.getFullYear()%100,e,2)}function Id(t,e){return Ky((t=Md(t)).getFullYear()%100,e,2)}function Nd(t,e){return Ky(t.getFullYear()%1e4,e,4)}function Bd(t,e){var r=t.getDay();return Ky((t=r>=4||0===r?by(t):by.ceil(t)).getFullYear()%1e4,e,4)}function Rd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ky(e/60|0,"0",2)+Ky(e%60,"0",2)}function Ld(t,e){return Ky(t.getUTCDate(),e,2)}function zd(t,e){return Ky(t.getUTCHours(),e,2)}function Fd(t,e){return Ky(t.getUTCHours()%12||12,e,2)}function Ud(t,e){return Ky(1+fy.count(Cy(t),t),e,3)}function $d(t,e){return Ky(t.getUTCMilliseconds(),e,3)}function Wd(t,e){return $d(t,e)+"000"}function qd(t,e){return Ky(t.getUTCMonth()+1,e,2)}function Vd(t,e){return Ky(t.getUTCMinutes(),e,2)}function Xd(t,e){return Ky(t.getUTCSeconds(),e,2)}function Hd(t){var e=t.getUTCDay();return 0===e?7:e}function Kd(t,e){return Ky(Oy.count(Cy(t)-1,t),e,2)}function Gd(t){var e=t.getUTCDay();return e>=4||0===e?Ay(t):Ay.ceil(t)}function Yd(t,e){return t=Gd(t),Ky(Ay.count(Cy(t),t)+(4===Cy(t).getUTCDay()),e,2)}function Zd(t){return t.getUTCDay()}function Jd(t,e){return Ky(jy.count(Cy(t)-1,t),e,2)}function Qd(t,e){return Ky(t.getUTCFullYear()%100,e,2)}function tv(t,e){return Ky((t=Gd(t)).getUTCFullYear()%100,e,2)}function ev(t,e){return Ky(t.getUTCFullYear()%1e4,e,4)}function rv(t,e){var r=t.getUTCDay();return Ky((t=r>=4||0===r?Ay(t):Ay.ceil(t)).getUTCFullYear()%1e4,e,4)}function nv(){return"+0000"}function ov(){return"%"}function iv(t){return+t}function av(t){return Math.floor(+t/1e3)}function cv(t){return new Date(t)}function uv(t){return t instanceof Date?+t:+new Date(+t)}function lv(t,e,r,n,o,i,a,c,u,l){var s=ph(),f=s.invert,p=s.domain,h=l(".%L"),y=l(":%S"),d=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),w=l("%Y");function x(t){return(u(t)<t?h:c(t)<t?y:a(t)<t?d:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,uv)):p().map(cv)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)}
vendor: 12,873 bytes, line 1
1,s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(_h(r,t)):s},s.copy=function(){return sh(s,lv(t,e,r,n,o,i,a,c,u,l))},s}function sv(){var t,e,r,n,o,i=0,a=1,c=ah,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(rh),l.rangeRound=s(nh),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function fv(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function pv(){var t=Vh(sv());return t.copy=function(){return fv(t,pv()).exponent(t.exponent())},op.apply(t,arguments)}function hv(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=ah,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function y(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=rh);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,u,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=y(rh),h.rangeRound=y(nh),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function yv(){var t=Vh(hv());return t.copy=function(){return fv(t,yv()).exponent(t.exponent())},op.apply(t,arguments)}!function(t){Uy=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=Yy(o),s=Zy(o),f=Yy(i),p=Zy(i),h=Yy(a),y=Zy(a),d=Yy(c),v=Zy(c),m=Yy(u),b=Zy(u),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:bd,e:bd,f:jd,g:Id,G:Bd,H:gd,I:wd,j:xd,L:Od,m:Sd,M:Pd,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:iv,s:av,S:Ad,u:Ed,U:kd,V:Td,w:_d,W:Cd,x:null,X:null,y:Dd,Y:Nd,Z:Rd,"%":ov},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:Ld,e:Ld,f:Wd,g:tv,G:rv,H:zd,I:Fd,j:Ud,L:$d,m:qd,M:Vd,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:iv,s:av,S:Xd,u:Hd,U:Kd,V:Yd,w:Zd,W:Jd,x:null,X:null,y:Qd,Y:ev,Z:nv,"%":ov},x={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=y.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:ud,e:ud,f:yd,g:od,G:nd,H:sd,I:sd,j:ld,L:hd,m:cd,M:fd,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:ad,Q:vd,s:md,S:pd,u:Qy,U:td,V:ed,w:Jy,W:rd,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:od,Y:nd,Z:id,"%":dd};function O(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=qy[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function j(t,e){return function(r){var n,o,i=Fy(1900,void 0,1);if(S(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=zy(Fy(i.y,0,1))).getUTCDay(),n=o>4||0===o?jy.ceil(n):jy(n),n=fy.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Ly(Fy(i.y,0,1))).getDay(),n=o>4||0===o?dy.ceil(n):dy(n),n=sy.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?zy(Fy(i.y,0,1)).getUTCDay():Ly(Fy(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,zy(i)):Ly(i)}}function S(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=x[o in qy?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=O(r,g),g.X=O(n,g),g.c=O(e,g),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}(t),$y=Uy.format,Uy.parse,Wy=Uy.utcFormat,Uy.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const dv=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cp,scaleDiverging:function t(){var e=Mh(hv()(ah));return e.copy=function(){return fv(e,t())},op.apply(e,arguments)},scaleDivergingLog:function t(){var e=Lh(hv()).domain([.1,1,10]);return e.copy=function(){return fv(e,t()).base(e.base())},op.apply(e,arguments)},scaleDivergingPow:yv,scaleDivergingSqrt:function(){return yv.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=Uh(hv());return e.copy=function(){return fv(e,t()).constant(e.constant())},op.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,oh),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,oh):[0,1],Mh(n)},scaleImplicit:ip,scaleLinear:Th,scaleLog:function t(){const e=Lh(fh()).domain([1,10]);return e.copy=()=>sh(e,t()).base(e.base()),np.apply(e,arguments),e},scaleOrdinal:ap,scalePoint:lp,scalePow:Xh,scaleQuantile:function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=new Array(e-1);++t<e;)o[t-1]=rp(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[Ff(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],e<o.length?o[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(Nf),i()},a.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},np.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[Ff(i,t,0,o)]:e}function u(){var t=-1;for(i=new Array(o);++t<o;)i[t]=((t+1)*n-(t-o)*r)/(o+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},c.range=function(t){return arguments.length?(o=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,i[0]]:e>=o?[i[o-1],n]:[i[e-1],i[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},np.apply(Mh(c),arguments)},scaleRadial:function t(){var e,r=ph(),n=[0,1],o=!1;function i(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:o?Math.round(n):n}return i.invert=function(t){return r.invert(Hh(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,oh)).map(Hh)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},np.apply(i,arguments),Mh(i)},scaleSequential:function t(){var e=Mh(sv()(ah));return e.copy=function(){return fv(e,t())},op.apply(e,arguments)},scaleSequentialLog:function t(){var e=Lh(sv()).domain([1,10]);return e.copy=function(){return fv(e,t()).base(e.base())},op.apply(e,arguments)},scaleSequentialPow:pv,scaleSequentialQuantile:function t(){var e=[],r=ah;function n(t){if(null!=t&&!isNaN(t=+t))return r((Ff(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Nf),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map((t,n)=>r(n/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(r,n)=>function(t,e){if((r=(t=Float64Array.from(function*(t){for(let e of t)null!=e&&(e=+e)>=e&&(yield e)}(t))).length)&&!isNaN(e=+e)){if(e<=0||r<2)return Qf(t);if(e>=1)return Jf(t);var r,n=(r-1)*e,o=Math.floor(n),i=Jf(tp(t,o).subarray(0,o+1));return i+(Qf(t.subarray(o+1))-i)*(n-o)}}(e,n/t))},n.copy=function(){return t(r).domain(e)},op.apply(n,arguments)},scaleSequentialSqrt:function(){return pv.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=Uh(sv());return e.copy=function(){return fv(e,t()).constant(e.constant())},op.apply(e,arguments)},scaleSqrt:function(){return Xh.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=Uh(fh());return e.copy=function(){return sh(e,t()).constant(e.constant())},np.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[Ff(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(r=Array.from(t),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},np.apply(i,arguments)},scaleTime:function(){return np.apply(lv(By,Ry,_y,My,yy,sy,uy,ay,iy,$y).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return np.apply(lv(Iy,Ny,Cy,Ty,Oy,fy,ly,cy,iy,Wy).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:kh},Symbol.toStringTag,{value:"Module"}));var vv=P;var mv=function(t,e,r){for(var n=-1,o=t.length;++n<o;){var i=t[n],a=e(i);if(null!=a&&(void 0===c?a==a&&!vv(a):r(a,c)))var c=a,u=i}return u};var bv=function(t,e){return t>e},gv=mv,wv=bv,xv=Zc;const Ov=r(function(t){return t&&t.length?gv(t,xv,wv):void 0});var jv=function(t,e){return t<e},Sv=mv,Pv=jv,Av=Zc;const Ev=r(function(t){return t&&t.length?Sv(t,Av,Pv):void 0});var kv=ae,Mv=uu,Tv=rl,_v=i;var Cv=Ku,Dv=function(t,e){return(_v(t)?kv:Tv)(t,Mv(e))};const Iv=r(function(t,e){return Cv(Dv(t,e),1)});var Nv=Pc;const Bv=r(function(t,e){return Nv(t,e)});var Rv,Lv=1e9,zv=!0,Fv="[DecimalError] ",Uv=Fv+"Invalid argument: ",$v=Fv+"Exponent out of range: ",Wv=Math.floor,qv=Math.pow,Vv=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Xv=1e7,Hv=9007199254740991,Kv=Wv(1286742750677284.5),Gv={};function Yv(t,e){var r,n,o,i,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),zv?am(e,f):e;if(u=t.d,l=e.d,a=t.e,o=e.e,u=u.slice(),i=a-o){for(i<0?(n=u,i=-i,c=l.length):(n=l,o=a,c=u.length),i>(c=(a=Math.ceil(f/7))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=u.length)-(i=l.length)<0&&(i=c,n=l,l=u,u=n),r=0;i;
vendor: 2,418 bytes, line 1
1)r=(u[--i]=u[i]+l[i]+r)/Xv|0,u[i]%=Xv;for(r&&(u.unshift(r),++o),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=o,zv?am(e,f):e}function Zv(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Uv+t)}function Jv(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(r=7-(n=t[e]+"").length)&&(i+=nm(r)),i+=n;(r=7-(n=(a=t[e])+"").length)&&(i+=nm(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Gv.absoluteValue=Gv.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},Gv.comparedTo=Gv.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},Gv.decimalPlaces=Gv.dp=function(){var t=this,e=t.d.length-1,r=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},Gv.dividedBy=Gv.div=function(t){return Qv(this,new this.constructor(t))},Gv.dividedToIntegerBy=Gv.idiv=function(t){var e=this.constructor;return am(Qv(this,new e(t),0,1),e.precision)},Gv.equals=Gv.eq=function(t){return!this.cmp(t)},Gv.exponent=function(){return em(this)},Gv.greaterThan=Gv.gt=function(t){return this.cmp(t)>0},Gv.greaterThanOrEqualTo=Gv.gte=function(t){return this.cmp(t)>=0},Gv.isInteger=Gv.isint=function(){return this.e>this.d.length-2},Gv.isNegative=Gv.isneg=function(){return this.s<0},Gv.isPositive=Gv.ispos=function(){return this.s>0},Gv.isZero=function(){return 0===this.s},Gv.lessThan=Gv.lt=function(t){return this.cmp(t)<0},Gv.lessThanOrEqualTo=Gv.lte=function(t){return this.cmp(t)<1},Gv.logarithm=Gv.log=function(t){var e,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(Rv))throw Error(Fv+"NaN");if(r.s<1)throw Error(Fv+(r.s?"NaN":"-Infinity"));return r.eq(Rv)?new n(0):(zv=!1,e=Qv(om(r,i),om(t,i),i),zv=!0,am(e,o))},Gv.minus=Gv.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?cm(e,t):Yv(e,(t.s=-t.s,t))},Gv.modulo=Gv.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(Fv+"NaN");return r.s?(zv=!1,e=Qv(r,t,0,1).times(t),zv=!0,r.minus(e)):am(new n(r),o)},Gv.naturalExponential=Gv.exp=function(){return tm(this)},Gv.naturalLogarithm=Gv.ln=function(){return om(this)},Gv.negated=Gv.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},Gv.plus=Gv.add=function(t){var e=this;
vendor: 4,504 bytes, line 1
1return t=new e.constructor(t),e.s==t.s?Yv(e,t):cm(e,(t.s=-t.s,t))},Gv.precision=Gv.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Uv+t);if(e=em(o)+1,r=7*(n=o.d.length-1)+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},Gv.squareRoot=Gv.sqrt=function(){var t,e,r,n,o,i,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(Fv+"NaN")}for(t=em(c),zv=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=Jv(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=Wv((t+1)/2)-(t<0||t%2),n=new u(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(o.toString()),o=a=(r=u.precision)+3;;)if(n=(i=n).plus(Qv(c,i,a+2)).times(.5),Jv(i.d).slice(0,a)===(e=Jv(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(am(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return zv=!0,am(n,r)},Gv.times=Gv.mul=function(t){var e,r,n,o,i,a,c,u,l,s=this,f=s.constructor,p=s.d,h=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(u=p.length)<(l=h.length)&&(i=p,p=h,h=i,a=u,u=l,l=a),i=[],n=a=u+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=u+n;o>n;)c=i[o]+h[n]*p[o-n-1]+e,i[o--]=c%Xv|0,e=c/Xv|0;i[o]=(i[o]+e)%Xv|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,zv?am(t,f.precision):t},Gv.toDecimalPlaces=Gv.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(Zv(t,0,Lv),void 0===e?e=n.rounding:Zv(e,0,8),am(r,t+em(r)+1,e))},Gv.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=um(n,!0):(Zv(t,0,Lv),void 0===e?e=o.rounding:Zv(e,0,8),r=um(n=am(new o(n),t+1,e),!0,t+1)),r},Gv.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?um(o):(Zv(t,0,Lv),void 0===e?e=i.rounding:Zv(e,0,8),r=um((n=am(new i(o),t+em(o)+1,e)).abs(),!1,t+em(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},Gv.toInteger=Gv.toint=function(){var t=this,e=t.constructor;return am(new e(t),em(t)+1,e.rounding)},Gv.toNumber=function(){return+this},Gv.toPower=Gv.pow=function(t){var e,r,n,o,i,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(Rv);if(!(c=new u(c)).s){if(t.s<1)throw Error(Fv+"Infinity");return c}if(c.eq(Rv))return c;if(n=u.precision,t.eq(Rv))return am(c,n);if(a=(e=t.e)>=(r=t.d.length-1),i=c.s,a){if((r=l<0?-l:l)<=Hv){for(o=new u(Rv),e=Math.ceil(n/7+4),zv=!1;r%2&&lm((o=o.times(c)).d,e),0!==(r=Wv(r/2));)lm((c=c.times(c)).d,e);return zv=!0,t.s<0?new u(Rv).div(o):am(o,n)}}else if(i<0)throw Error(Fv+"NaN");return i=i<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,zv=!1,o=t.times(om(c,n+12)),zv=!0,(o=tm(o)).s=i,o},Gv.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=um(o,(r=em(o))<=i.toExpNeg||r>=i.toExpPos):(Zv(t,1,Lv),void 0===e?e=i.rounding:Zv(e,0,8),n=um(o=am(new i(o),t,e),t<=(r=em(o))||r<=i.toExpNeg,t)),n},Gv.toSignificantDigits=Gv.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(Zv(t,1,Lv),void 0===e?e=r.rounding:Zv(e,0,8)),am(new r(this),t,e)},Gv.toString=Gv.valueOf=Gv.val=Gv.toJSON=Gv[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=em(t),r=t.constructor;return um(t,e<=r.toExpNeg||e>=r.toExpPos)};var Qv=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%Xv|0,n=r/Xv|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*Xv+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,u,l,s,f,p,h,y,d,v,m,b,g,w,x,O,j,S,P=n.constructor,A=n.s==o.s?1:-1,E=n.d,k=o.d;if(!n.s)return new P(n);if(!o.s)throw Error(Fv+"Division by zero");for(u=n.e-o.e,j=k.length,x=E.length,y=(h=new P(A)).d=[],l=0;k[l]==(E[l]||0);)++l;if(k[l]>(E[l]||0)&&--u,(b=null==i?i=P.precision:a?i+(em(n)-em(o))+1:i)<0)return new P(0);if(b=b/7+2|0,l=0,1==j)for(s=0,k=k[0],b++;(l<x||s)&&b--;l++)g=s*Xv+(E[l]||0),y[l]=g/k|0,s=g%k|0;else{for((s=Xv/(k[0]+1)|0)>1&&(k=t(k,s),E=t(E,s),j=k.length,x=E.length),w=j,v=(d=E.slice(0,j)).length;v<j;)d[v++]=0;(S=k.slice()).unshift(0),O=k[0],k[1]>=Xv/2&&++O;do{s=0,(c=e(k,d,j,v))<0?(m=d[0],j!=v&&(m=m*Xv+(d[1]||0)),(s=m/O|0)>1?(s>=Xv&&(s=Xv-1),1==(c=e(f=t(k,s),d,p=f.length,v=d.length))&&(s--,r(f,j<p?S:k,p))):(0==s&&(c=s=1),f=k.slice()),(p=f.length)<v&&f.unshift(0),r(d,f,v),-1==c&&(c=e(k,d,j,v=d.length))<1&&(s++,r(d,j<v?S:k,v)),v=d.length):0===c&&(s++,d=[0]),y[l++]=s,c&&d[0]?d[v++]=E[w]||0:(d=[E[w]],v=1)}while((w++<x||void 0!==d[0])&&b--)}
vendor: 1,842 bytes, line 1
1return y[0]||y.shift(),h.e=u,am(h,a?i+em(h)+1:i)}}();function tm(t,e){var r,n,o,i,a,c=0,u=0,l=t.constructor,s=l.precision;if(em(t)>16)throw Error($v+em(t));if(!t.s)return new l(Rv);for(null==e?(zv=!1,a=s):a=e,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),u+=5;for(a+=Math.log(qv(2,u))/Math.LN10*2+5|0,r=n=o=new l(Rv),l.precision=a;;){if(n=am(n.times(t),a),r=r.times(++c),Jv((i=o.plus(Qv(n,r,a))).d).slice(0,a)===Jv(o.d).slice(0,a)){for(;u--;)o=am(o.times(o),a);return l.precision=s,null==e?(zv=!0,am(o,s)):o}o=i}}function em(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function rm(t,e,r){if(e>t.LN10.sd())throw zv=!0,r&&(t.precision=r),Error(Fv+"LN10 precision limit exceeded");return am(new t(t.LN10),e)}function nm(t){for(var e="";t--;)e+="0";return e}function om(t,e){var r,n,o,i,a,c,u,l,s,f=1,p=t,h=p.d,y=p.constructor,d=y.precision;if(p.s<1)throw Error(Fv+(p.s?"NaN":"-Infinity"));if(p.eq(Rv))return new y(0);if(null==e?(zv=!1,l=d):l=e,p.eq(10))return null==e&&(zv=!0),rm(y,l);if(l+=10,y.precision=l,n=(r=Jv(h)).charAt(0),i=em(p),!(Math.abs(i)<15e14))return u=rm(y,l+2,d).times(i+""),p=om(new y(n+"."+r.slice(1)),l-10).plus(u),y.precision=d,null==e?(zv=!0,am(p,d)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Jv((p=p.times(t)).d)).charAt(0),f++;for(i=em(p),n>1?(p=new y("0."+r),i++):p=new y(n+"."+r.slice(1)),c=a=p=Qv(p.minus(Rv),p.plus(Rv),l),s=am(p.times(p),l),o=3;;){if(a=am(a.times(s),l),Jv((u=c.plus(Qv(a,new y(o),l))).d).slice(0,l)===Jv(c.d).slice(0,l))return c=c.times(2),0!==i&&(c=c.plus(rm(y,l+2,d).times(i+""))),c=Qv(c,new y(f),l),y.precision=d,null==e?(zv=!0,am(c,d)):c;c=u,o+=2}}function im(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;
vendor: 6,785 bytes, line 1
1if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=Wv(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=7;n<o;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),zv&&(t.e>Kv||t.e<-Kv))throw Error($v+r)}else t.s=0,t.e=0,t.d=[0];return t}function am(t,e,r){var n,o,i,a,c,u,l,s,f=t.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,l=f[s=0];else{if((s=Math.ceil((n+1)/7))>=(i=f.length))return t;for(l=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=7)-7+a}if(void 0!==r&&(c=l/(i=qv(10,a-o-1))%10|0,u=e<0||void 0!==f[s+1]||l%i,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?o>0?l/qv(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(i=em(t),f.length=1,e=e-i-1,f[0]=qv(10,(7-e%7)%7),t.e=Wv(-e/7)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=qv(10,7-n),f[s]=o>0?(l/qv(10,a-o)%qv(10,o)|0)*i:0),u)for(;;){if(0==s){(f[0]+=i)==Xv&&(f[0]=1,++t.e);break}if(f[s]+=i,f[s]!=Xv)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(zv&&(t.e>Kv||t.e<-Kv))throw Error($v+em(t));return t}function cm(t,e){var r,n,o,i,a,c,u,l,s,f,p=t.constructor,h=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),zv?am(e,h):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(o=Math.max(Math.ceil(h/7),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=u.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(u[o]!=f[o]){s=u[o]<f[o];break}a=0}for(s&&(r=u,u=f,f=r,e.s=-e.s),c=u.length,o=f.length-c;o>0;--o)u[c++]=0;for(o=f.length;o>a;){if(u[--o]<f[o]){for(i=o;i&&0===u[--i];)u[i]=Xv-1;--u[i],u[o]+=Xv}u[o]-=f[o]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,zv?am(e,h):e):new p(0)}function um(t,e,r){var n,o=em(t),i=Jv(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+nm(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+nm(-o-1)+i,r&&(n=r-a)>0&&(i+=nm(n))):o>=a?(i+=nm(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+nm(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=nm(n))),t.s<0?"-"+i:i}function lm(t,e){if(t.length>e)return t.length=e,!0}function sm(t){if(!t||"object"!=typeof t)throw Error(Fv+"Object expected");var e,r,n,o=["precision",1,Lv,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(Wv(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(Uv+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(Uv+r+": "+n);this[r]=new this(n)}return this}var fm=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(Uv+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):im(e,t.toString())}if("string"!=typeof t)throw Error(Uv+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!Vv.test(t))throw Error(Uv+t);im(e,t)}if(i.prototype=Gv,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=sm,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Rv=new fm(1);const pm=fm;function hm(t){return function(t){if(Array.isArray(t))return ym(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ym(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ym(t,e)}(t)||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 ym(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var dm=function(t){return t},vm={"@@functional/placeholder":!0},mm=function(t){return t===vm},bm=function(t){return function e(){return 0===arguments.length||1===arguments.length&&mm(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},gm=function t(e,r){return 1===e?r:bm(function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter(function(t){return t!==vm}).length;return a>=e?r.apply(void 0,o):t(e-a,bm(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map(function(t){return mm(t)?e.shift():t});return r.apply(void 0,hm(i).concat(e))}))})},wm=function(t){return gm(t.length,t)},xm=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},Om=wm(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)}),jm=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Sm=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every(function(t,r){return t===e[r]})?r:(e=o,r=t.apply(void 0,o))}};const Pm={rangeStep:function(t,e,r){for(var n=new pm(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new pm(t).abs().log(10).toNumber())+1},interpolateNumber:wm(function(t,e,r){var n=+t;return n+r*(+e-n)}),uninterpolateNumber:wm(function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)}),uninterpolateTruncation:wm(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})};function Am(t){return function(t){if(Array.isArray(t))return Mm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||km(t)||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 Em(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(u){o=!0,i=u}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||km(t,e)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function km(t,e){if(t){if("string"==typeof t)return Mm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mm(t,e):void 0}}function Mm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tm(t){var e=Em(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function _m(t,e,r){if(t.lte(0))return new pm(0);var n=Pm.getDigitCount(t.toNumber()),o=new pm(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new pm(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new pm(Math.ceil(c))}function Cm(t,e,r){var n=1,o=new pm(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new pm(10).pow(Pm.getDigitCount(t)-1),o=new pm(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new pm(Math.floor(t)))}else 0===t?o=new pm(Math.floor((e-1)/2)):r||(o=new pm(Math.floor(t)));var a=Math.floor((e-1)/2),c=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return dm;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce(function(t,e){return e(t)},o.apply(void 0,arguments))}}(Om(function(t){return o.add(new pm(t-a).mul(n)).toNumber()}),xm);return c(0,e)}function Dm(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new pm(0),tickMin:new pm(0),tickMax:new pm(0)};var i,a=_m(new pm(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new pm(0):(i=new pm(t).add(e).div(2)).sub(new pm(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new pm(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?Dm(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new pm(c).mul(a)),tickMax:i.add(new pm(u).mul(a))})}var Im=Sm(function(t){var e=Em(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=Em(Tm([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(Am(xm(0,o-1).map(function(){return 1/0}))):[].concat(Am(xm(0,o-1).map(function(){return-1/0})),[l]);return r>n?jm(s):s}if(u===l)return Cm(u,o,i);var f=Dm(u,l,a,i),p=f.step,h=f.tickMin,y=f.tickMax,d=Pm.rangeStep(h,y.add(new pm(.1).mul(p)),p);return r>n?jm(d):d}),Nm=Sm(function(t,e){var r=Em(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Em(Tm([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=_m(new pm(u).sub(c).div(l-1),i,0),f=[].concat(Am(Pm.rangeStep(new pm(c),new pm(u).sub(new pm(.99).mul(s)),s)),[u]);return n>o?jm(f):f});function Bm(t,e){throw new Error("Invariant failed")}var Rm=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Lm(t){return(Lm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zm(){return zm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zm.apply(this,arguments)}function Fm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Um(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Um(t,e)}
vendor: 10,393 bytes, line 1
1(t,e)||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 Um(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $m(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Wm(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Gm(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qm(t,e,r){return e=Xm(e),function(t,e){if(e&&("object"===Lm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Vm()?Reflect.construct(e,r||[],Xm(t).constructor):e.apply(t,r))}function Vm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vm=function(){return!!t})()}function Xm(t){return(Xm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Hm(t,e){return(Hm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Km(t,e,r){return(e=Gm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gm(t){var e=function(t,e){if("object"!=Lm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Lm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Lm(e)?e:e+""}var Ym=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qm(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hm(t,e)}(t,o.Component),Wm(t,[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,n=t.width,i=t.dataKey,a=t.data,c=t.dataPointFormatter,u=t.xAxis,l=t.yAxis,s=$m(t,Rm),f=Rr(s,!1);"x"===this.props.direction&&"number"!==u.type&&Bm();var p=a.map(function(t){var a=c(t,i),s=a.x,p=a.y,h=a.value,y=a.errorVal;if(!y)return null;var d,v,m=[];if(Array.isArray(y)){var b=Fm(y,2);d=b[0],v=b[1]}else d=v=y;if("vertical"===r){var g=u.scale,w=p+e,x=w+n,O=w-n,j=g(h-d),S=g(h+v);m.push({x1:S,y1:x,x2:S,y2:O}),m.push({x1:j,y1:w,x2:S,y2:w}),m.push({x1:j,y1:x,x2:j,y2:O})}else if("horizontal"===r){var P=l.scale,A=s+e,E=A-n,k=A+n,M=P(h-d),T=P(h+v);m.push({x1:E,y1:T,x2:k,y2:T}),m.push({x1:A,y1:M,x2:A,y2:T}),m.push({x1:E,y1:M,x2:k,y2:M})}return o.createElement(Kr,zm({className:"recharts-errorBar",key:"bar-".concat(m.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},f),m.map(function(t){return o.createElement("line",zm({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return o.createElement(Kr,{className:"recharts-errorBars"},p)}}])}();function Zm(t){return(Zm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Qm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jm(Object(r),!0).forEach(function(e){tb(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tb(t,e,r){var n;return n=function(t,e){if("object"!=Zm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Zm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Km(Ym,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Km(Ym,"displayName","ErrorBar");var eb=function(t){var e=t.children,r=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=Dr(e,$u);if(!i)return null;var a,c=$u.defaultProps,u=void 0!==c?Qm(Qm({},c),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).reduce(function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map(function(t){return{type:i.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}}))},[]):(r||[]).map(function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?Qm(Qm({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:u.iconType||a||"square",color:sb(e),value:i||o,payload:n}}),Qm(Qm(Qm({},u),$u.getWithHeight(i,n)),{},{payload:a,item:i})};function rb(t){return(rb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nb(t){return function(t){if(Array.isArray(t))return ob(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ob(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ob(t,e)}(t)||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 ob(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ib(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ab(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ib(Object(r),!0).forEach(function(e){cb(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ib(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function cb(t,e,r){var n;return n=function(t,e){if("object"!=rb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==rb(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ub(t,e,r){return ke(t)||ke(e)?r:cr(e)?Ee(t,e,r):B(e)?e(t):r}function lb(t,e,r,n){var o=Iv(t,function(t){return ub(t,e)});if("number"===r){var i=o.filter(function(t){return ar(t)||parseFloat(t)});return i.length?[Ev(i),Ov(i)]:[1/0,-1/0]}return(n?o.filter(function(t){return!ke(t)}):o).map(function(t){return cr(t)||t instanceof Date?t:""})}var sb=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?ab(ab({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},fb=function(t,e,r,n,o){var i=Cr(e.props.children,Ym).filter(function(t){return function(t,e,r){return!!ke(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)});if(i&&i.length){var a=i.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=ub(e,r);if(ke(n))return t;var o=Array.isArray(n)?[Ev(n),Ov(n)]:[n,n],i=a.reduce(function(t,r){var n=ub(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]},[1/0,-1/0])}return null},pb=function(t,e,r,n,o){var i=e.map(function(e){var i=e.props.dataKey;return"number"===r&&i&&fb(t,e,i,n)||lb(t,i,r,o)});if("number"===r)return i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return i.reduce(function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t},[])},hb=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},yb=function(t,e,r,n){if(n)return t.map(function(t){return t.coordinate});var o,i,a=t.map(function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate});return o||a.push(e),i||a.push(r),a},db=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*or(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map(function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}}).filter(function(t){return!nr(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}}
vendor: 4,640 bytes, line 1
1):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+u,value:t,offset:u}}):n.domain().map(function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}})},vb=new WeakMap,mb=function(t,e){if("function"!=typeof e)return t;vb.has(t)||vb.set(t,new WeakMap);var r=vb.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},bb=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:cp(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Th(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:lp(),realScaleType:"point"}:"category"===o?{scale:cp(),realScaleType:"band"}:{scale:Th(),realScaleType:"linear"};if(Ce(n)){var c="scale".concat(xn(n));return{scale:(dv[c]||lp)(),realScaleType:dv[c]?c:"point"}}return B(n)?{scale:n}:{scale:lp(),realScaleType:"point"}},gb=1e-4,wb=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-gb,i=Math.max(n[0],n[1])+gb,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}},xb={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=nr(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}jo(t,e)}},none:jo,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}jo(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var y=t[e[h]];p+=(y[a][1]||0)-(y[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,jo(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=nr(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},Ob=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),o=xb[r],i=function(){var t=On([]),e=So,r=jo,n=Po;function o(o){var i,a,c=Array.from(t.apply(this,arguments),Ao),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=Nn(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:On(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:On(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?So:"function"==typeof t?t:On(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?jo:t,o):r},o}().keys(n).value(function(t,e){return+ub(t,e,0)}).order(So).offset(o);return i(t)},jb=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=Im(u,o,a);return t.domain([Ev(l),Ov(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:Nm(s,o,a)}}return null};function Sb(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!ke(o[e.dataKey])){var c=hr(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=ub(o,ke(a)?e.dataKey:a);return ke(u)?null:e.scale(u)}var Pb=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=ub(i,e.dataKey,e.domain[a]);return ke(c)?null:e.scale(c)-o/2+n},Ab=function(t,e,r){return Object.keys(t).reduce(function(n,o){var i=t[o].stackedData.reduce(function(t,n){var o=n.slice(e,r+1).reduce(function(t,e){return[Ev(e.concat([t[0]]).filter(ar)),Ov(e.concat([t[1]]).filter(ar))]},[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[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(t){return t===1/0||t===-1/0?0:t})},Eb=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kb=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Mb=function(t,e,r){if(B(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];
vendor: 21,335 bytes, line 1
1if(ar(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(Eb.test(t[0])){var o=+Eb.exec(t[0])[1];n[0]=e[0]-o}else B(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(ar(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(kb.test(t[1])){var i=+kb.exec(t[1])[1];n[1]=e[1]+i}else B(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},Tb=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=Rl(e,function(t){return t.coordinate}),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},_b=function(t,e,r){return t&&t.length?Bv(t,Ee(r,"type.defaultProps.domain"))?e:t:e},Cb=function(t,e){var r=t.type.defaultProps?ab(ab({},t.type.defaultProps),t.props):t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return ab(ab({},Rr(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:sb(t),value:ub(e,n),type:c,payload:e,chartType:u,hide:l})};function Db(t){return(Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ib(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Nb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ib(Object(r),!0).forEach(function(e){Bb(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ib(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Bb(t,e,r){var n;return n=function(t,e){if("object"!=Db(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Db(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Db(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rb(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Lb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lb(t,e)}(t,e)||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 Lb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var zb=Math.PI/180,Fb=function(t){return 180*t/Math.PI},Ub=function(t,e,r,n){return{x:t+Math.cos(-zb*n)*r,y:e+Math.sin(-zb*n)*r}},$b=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},Wb=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:Fb(u),angleInRadian:u}},qb=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},Vb=function(t,e){var r=t.x,n=t.y,o=Wb({x:r,y:n},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?Nb(Nb({},e),{},{radius:i,angle:qb(h,e)}):null},Xb=function(t){return n.isValidElement(t)||B(t)||"boolean"==typeof t?"":t.className};function Hb(t){return(Hb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Kb=["offset"];function Gb(t){return function(t){if(Array.isArray(t))return Yb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Yb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yb(t,e)}(t)||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 Yb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zb(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Jb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Qb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jb(Object(r),!0).forEach(function(e){tg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jb(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tg(t,e,r){var n;return n=function(t,e){if("object"!=Hb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Hb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Hb(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eg(){return eg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},eg.apply(this,arguments)}var rg=function(e,r,n){var i,a,c=e.position,u=e.viewBox,l=e.offset,s=e.className,f=u,p=f.cx,h=f.cy,y=f.innerRadius,d=f.outerRadius,v=f.startAngle,m=f.endAngle,b=f.clockWise,g=(y+d)/2,w=function(t,e){return or(e-t)*Math.min(Math.abs(e-t),360)}(v,m),x=w>=0?1:-1;"insideStart"===c?(i=v+x*l,a=b):"insideEnd"===c?(i=m-x*l,a=!b):"end"===c&&(i=m+x*l,a=b),a=w<=0?a:!a;var O=Ub(p,h,g,i),j=Ub(p,h,g,i+359*(a?1:-1)),S="M".concat(O.x,",").concat(O.y,"\n A").concat(g,",").concat(g,",0,1,").concat(a?0:1,",\n ").concat(j.x,",").concat(j.y),P=ke(e.id)?lr("recharts-radial-line-"):e.id;return o.createElement("text",eg({},n,{dominantBaseline:"central",className:t("recharts-radial-bar-label",s)}),o.createElement("defs",null,o.createElement("path",{id:P,d:S})),o.createElement("textPath",{xlinkHref:"#".concat(P)},r))};function ng(e){var r,i=e.offset,a=Qb({offset:void 0===i?5:i},Zb(e,Kb)),c=a.viewBox,u=a.position,l=a.value,s=a.children,f=a.content,p=a.className,h=void 0===p?"":p,y=a.textBreakAll;if(!c||ke(l)&&ke(s)&&!n.isValidElement(f)&&!B(f))return null;if(n.isValidElement(f))return n.cloneElement(f,a);if(B(f)){if(r=n.createElement(f,a),n.isValidElement(r))return r}else r=function(t){var e=t.value,r=t.formatter,n=ke(t.children)?e:t.children;return B(r)?r(n):n}(a);var d=function(t){return"cx"in t&&ar(t.cx)}(c),v=Rr(a,!0);if(d&&("insideStart"===u||"insideEnd"===u||"end"===u))return rg(a,r,v);var m=d?function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=Ub(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=Ub(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(a):function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",y=u>=0?1:-1,d=y*n,v=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return Qb(Qb({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return Qb(Qb({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var b={x:a-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return Qb(Qb({},b),r?{width:Math.max(b.x-r.x,0),height:l}:{})}if("right"===o){var g={x:a+u+d,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return Qb(Qb({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var w=r?{width:u,height:l}:{};return"insideLeft"===o?Qb({x:a+d,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?Qb({x:a+u-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?Qb({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:h},w):"insideBottom"===o?Qb({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?Qb({x:a+d,y:c+f,textAnchor:m,verticalAnchor:h},w):"insideTopRight"===o?Qb({x:a+u-d,y:c+f,textAnchor:v,verticalAnchor:h},w):"insideBottomLeft"===o?Qb({x:a+d,y:c+l-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===o?Qb({x:a+u-d,y:c+l-f,textAnchor:v,verticalAnchor:p},w):C(o)&&(ar(o.x)||ir(o.x))&&(ar(o.y)||ir(o.y))?Qb({x:a+sr(o.x,u),y:c+sr(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):Qb({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(a);return o.createElement(If,eg({className:t("recharts-label",h)},v,m,{breakAll:y}),r)}ng.displayName="Label";var og=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,y=t.width,d=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(ar(y)&&ar(d)){if(ar(s)&&ar(f))return{x:s,y:f,width:y,height:d};if(ar(p)&&ar(h))return{x:p,y:h,width:y,height:d}}return ar(s)&&ar(f)?{x:s,y:f,width:0,height:0}:ar(e)&&ar(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};ng.parseViewBox=og,ng.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=og(t),c=Cr(i,ng).map(function(t,r){return n.cloneElement(t,{viewBox:e||a,key:"label-".concat(r)})});if(!r)return c;var u=function(t,e){return t?!0===t?o.createElement(ng,{key:"label-implicit",viewBox:e}):cr(t)?o.createElement(ng,{key:"label-implicit",viewBox:e,value:t}):n.isValidElement(t)?t.type===ng?n.cloneElement(t,{key:"label-implicit",viewBox:e}):o.createElement(ng,{key:"label-implicit",content:t,viewBox:e}):B(t)?o.createElement(ng,{key:"label-implicit",content:t,viewBox:e}):C(t)?o.createElement(ng,eg({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||a);return[u].concat(Gb(c))};const ig=r(function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0});function ag(t){return(ag="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var cg=["valueAccessor"],ug=["data","dataKey","clockWise","id","textBreakAll"];function lg(t){return function(t){if(Array.isArray(t))return sg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return sg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sg(t,e)}(t)||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 sg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fg(){return fg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fg.apply(this,arguments)}function pg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function hg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pg(Object(r),!0).forEach(function(e){yg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function yg(t,e,r){var n;return n=function(t,e){if("object"!=ag(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ag(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ag(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var vg=function(t){return Array.isArray(t.value)?ig(t.value):t.value};function mg(t){var e=t.valueAccessor,r=void 0===e?vg:e,n=dg(t,cg),i=n.data,a=n.dataKey,c=n.clockWise,u=n.id,l=n.textBreakAll,s=dg(n,ug);return i&&i.length?o.createElement(Kr,{className:"recharts-label-list"},i.map(function(t,e){var n=ke(a)?r(t,e):ub(t&&t.payload,a),i=ke(u)?{}:{id:"".concat(u,"-").concat(e)};return o.createElement(ng,fg({},Rr(t,!0),s,i,{parentViewBox:t.parentViewBox,value:n,textBreakAll:l,viewBox:ng.parseViewBox(ke(c)?t:hg(hg({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))})):null}function bg(t){return(bg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gg(){return gg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gg.apply(this,arguments)}function wg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function xg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wg(Object(r),!0).forEach(function(e){Og(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Og(t,e,r){var n;return n=function(t,e){if("object"!=bg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==bg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}mg.displayName="LabelList",mg.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=Cr(t.children,mg).map(function(t,r){return n.cloneElement(t,{data:e,key:"labelList-".concat(r)})});return r?[function(t,e){return t?!0===t?o.createElement(mg,{key:"labelList-implicit",data:e}):o.isValidElement(t)||B(t)?o.createElement(mg,{key:"labelList-implicit",data:e,content:t}):C(t)?o.createElement(mg,fg({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(lg(i)):i};var jg=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/zb,f=u?o:o+i*s,p=u?o-i*s:o;return{center:Ub(e,r,l,f),circleTangency:Ub(e,r,n,f),lineTangency:Ub(e,r,l*Math.cos(s*zb),p),theta:s}},Sg=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return or(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=Ub(e,r,o,i),l=Ub(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=Ub(e,r,n,i),p=Ub(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},Pg={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Ag=function(e){var r=xg(xg({},Pg),e),n=r.cx,i=r.cy,a=r.innerRadius,c=r.outerRadius,u=r.cornerRadius,l=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,p=r.endAngle,h=r.className;if(c<a||f===p)return null;var y,d=t("recharts-sector",h),v=c-a,m=sr(u,v,0,!0);return y=m>0&&Math.abs(f-p)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=or(l-u),f=jg({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,y=f.theta,d=jg({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=d.circleTangency,m=d.lineTangency,b=d.theta,g=c?Math.abs(u-l):Math.abs(u-l)-y-b;if(g<0)return a?"M ".concat(h.x,",").concat(h.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 "):Sg({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var w="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var x=jg({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=x.circleTangency,j=x.lineTangency,S=x.theta,P=jg({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),A=P.circleTangency,E=P.lineTangency,k=P.theta,M=c?Math.abs(u-l):Math.abs(u-l)-S-k;if(M<0&&0===i)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(A.x,",").concat(A.y,"\n A").concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(j.x,",").concat(j.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:n,cy:i,innerRadius:a,outerRadius:c,cornerRadius:Math.min(m,v/2),forceCornerRadius:l,cornerIsExternal:s,startAngle:f,endAngle:p}):Sg({cx:n,cy:i,innerRadius:a,outerRadius:c,startAngle:f,endAngle:p}),o.createElement("path",gg({},Rr(r,!0),{className:d,d:y,role:"img"}))};function Eg(t){return(Eg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kg(){return kg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kg.apply(this,arguments)}function Mg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Tg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mg(Object(r),!0).forEach(function(e){_g(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _g(t,e,r){var n;return n=function(t,e){if("object"!=Eg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Eg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Eg(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Cg={curveBasisClosed:function(t){return new lo(t)},curveBasisOpen:function(t){return new so(t)},curveBasis:function(t){return new uo(t)},curveBumpX:function(t){return new $n(t,!0)},curveBumpY:function(t){return new $n(t,!1)},curveLinearClosed:function(t){return new fo(t)},curveLinear:Rn,curveMonotoneX:function(t){return new mo(t)},curveMonotoneY:function(t){return new bo(t)},curveNatural:function(t){return new wo(t)},curveStep:function(t){return new Oo(t,.5)},curveStepAfter:function(t){return new Oo(t,1)},curveStepBefore:function(t){return new Oo(t,0)}},Dg=function(t){return t.x===+t.x&&t.y===+t.y},Ig=function(t){return t.x},Ng=function(t){return t.y},Bg=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(B(t))return t;var r="curve".concat(xn(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?Cg[r]||Rn:Cg["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter(function(t){return Dg(t)}):i;if(Array.isArray(a)){var p=l?a.filter(function(t){return Dg(t)}):a,h=f.map(function(t,e){return Tg(Tg({},t),{},{base:p[e]})});return(e="vertical"===c?Un().y(Ng).x1(Ig).x0(function(t){return t.base.x}):Un().x(Ig).y1(Ng).y0(function(t){return t.base.y})).defined(Dg).curve(s),e(h)}return(e="vertical"===c&&ar(a)?Un().y(Ng).x1(Ig).x0(a):ar(a)?Un().x(Ig).y1(Ng).y0(a):Fn().x(Ig).y(Ng)).defined(Dg).curve(s),e(f)},Rg=function(e){var r=e.className,o=e.points,i=e.path,a=e.pathRef;if(!(o&&o.length||i))return null;var c=o&&o.length?Bg(e):i;return n.createElement("path",kg({},Rr(e,!1),xr(e),{className:t("recharts-curve",r),d:c,ref:a}))},Lg={exports:{}};function zg(){}function Fg(){}Fg.resetWarningCache=zg;Lg.exports=function(){function t(t,e,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Fg,resetWarningCache:zg};return r.PropTypes=r,r}();const Ug=r(Lg.exports),{getOwnPropertyNames:$g,getOwnPropertySymbols:Wg}=Object,{hasOwnProperty:qg}=Object.prototype;function Vg(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function Xg(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);const{cache:o}=n,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);const c=t(e,r,n);return o.delete(e),o.delete(r),c}}function Hg(t){return $g(t).concat(Wg(t))}const Kg=Object.hasOwn||((t,e)=>qg.call(t,e));function Gg(t,e){return t===e||!t&&!e&&t!=t&&e!=e}const{getOwnPropertyDescriptor:Yg,keys:Zg}=Object;function Jg(t,e){return t.byteLength===e.byteLength&&fw(new Uint8Array(t),new Uint8Array(e))}function Qg(t,e,r){let n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function tw(t,e){return t.byteLength===e.byteLength&&fw(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function ew(t,e){return Gg(t.getTime(),e.getTime())}function rw(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function nw(t,e){return t===e}function ow(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const o=new Array(n),i=t.entries();let a,c,u=0;for(;(a=i.next())&&!a.done;){const n=e.entries();let i=!1,l=0;for(;(c=n.next())&&!c.done;){if(o[l]){l++;continue}const n=a.value,s=c.value;if(r.equals(n[0],s[0],u,l,t,e,r)&&r.equals(n[1],s[1],n[0],s[0],t,e,r)){i=o[l]=!0;break}l++}if(!i)return!1;u++}return!0}const iw=Gg;function aw(t,e,r){const n=Zg(t);let o=n.length;if(Zg(e).length!==o)return!1;for(;o-- >0;)if(!hw(t,e,r,n[o]))return!1;return!0}function cw(t,e,r){const n=Hg(t);let o,i,a,c=n.length;if(Hg(e).length!==c)return!1;for(;c-- >0;){if(o=n[c],!hw(t,e,r,o))return!1;
1if(i=Yg(t,o),a=Yg(e,o),(i||a)&&(!i||!a||i.configurable!==a.configurable||i.enumerable!==a.enumerable||i.writable!==a.writable))return!1}return!0}function uw(t,e){return Gg(t.valueOf(),e.valueOf())}function lw(t,e){return t.source===e.source&&t.flags===e.flags}function sw(t,e,r){const n=t.size;if(n!==e.size)return!1;if(!n)return!0;const o=new Array(n),i=t.values();let a,c;for(;(a=i.next())&&!a.done;){const n=e.values();let i=!1,u=0;for(;(c=n.next())&&!c.done;){if(!o[u]&&r.equals(a.value,c.value,a.value,c.value,t,e,r)){i=o[u]=!0;break}u++}if(!i)return!1}return!0}function fw(t,e){let r=t.byteLength;if(e.byteLength!==r||t.byteOffset!==e.byteOffset)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function pw(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function hw(t,e,r,n){return!("_owner"!==n&&"__o"!==n&&"__v"!==n||!t.$$typeof&&!e.$$typeof)||Kg(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}const yw={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},dw=Object.prototype.toString;function vw({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:c,areObjectsEqual:u,arePrimitiveWrappersEqual:l,areRegExpsEqual:s,areSetsEqual:f,areTypedArraysEqual:p,areUrlsEqual:h,unknownTagComparators:y}){return function(d,v,m){if(d===v)return!0;if(null==d||null==v)return!1;const b=typeof d;if(b!==typeof v)return!1;if("object"!==b)return"number"===b?c(d,v,m):"function"===b&&i(d,v,m);const g=d.constructor;if(g!==v.constructor)return!1;if(g===Object)return u(d,v,m);if(Array.isArray(d))return e(d,v,m);if(g===Date)return n(d,v,m);if(g===RegExp)return s(d,v,m);if(g===Map)return a(d,v,m);if(g===Set)return f(d,v,m);const w=dw.call(d);if("[object Date]"===w)return n(d,v,m);if("[object RegExp]"===w)return s(d,v,m);if("[object Map]"===w)return a(d,v,m);if("[object Set]"===w)return f(d,v,m);if("[object Object]"===w)return"function"!=typeof d.then&&"function"!=typeof v.then&&u(d,v,m);if("[object URL]"===w)return h(d,v,m);if("[object Error]"===w)return o(d,v,m);if("[object Arguments]"===w)return u(d,v,m);if(yw[w])return p(d,v,m);if("[object ArrayBuffer]"===w)return t(d,v,m);if("[object DataView]"===w)return r(d,v,m);if("[object Boolean]"===w||"[object Number]"===w||"[object String]"===w)return l(d,v,m);if(y){let t=y[w];if(!t){const e=null!=(x=d)?x[Symbol.toStringTag]:void 0;e&&(t=y[e])}if(t)return t(d,v,m)}var x;return!1}}const mw=bw();function bw(t={}){const{circular:e=!1,createInternalComparator:r,createState:n,strict:o=!1}=t,i=function({circular:t,createCustomConfig:e,strict:r}){let n={areArrayBuffersEqual:Jg,areArraysEqual:r?cw:Qg,areDataViewsEqual:tw,areDatesEqual:ew,areErrorsEqual:rw,areFunctionsEqual:nw,areMapsEqual:r?Vg(ow,cw):ow,areNumbersEqual:iw,areObjectsEqual:r?cw:aw,arePrimitiveWrappersEqual:uw,areRegExpsEqual:lw,areSetsEqual:r?Vg(sw,cw):sw,areTypedArraysEqual:r?Vg(fw,cw):fw,areUrlsEqual:pw,unknownTagComparators:void 0};if(e&&(n=Object.assign({},n,e(n))),t){const t=Xg(n.areArraysEqual),e=Xg(n.areMapsEqual),r=Xg(n.areObjectsEqual),o=Xg(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:t,areMapsEqual:e,areObjectsEqual:r,areSetsEqual:o})}return n}(t),a=vw(i);var c;return function({circular:t,comparator:e,createState:r,equals:n,strict:o}){if(r)return function(i,a){const{cache:c=(t?new WeakMap:void 0),meta:u}=r();return e(i,a,{cache:c,equals:n,meta:u,strict:o})};if(t)return function(t,r){return e(t,r,{cache:new WeakMap,equals:n,meta:void 0,strict:o})};const i={cache:void 0,equals:n,meta:void 0,strict:o};return function(t,r){return e(t,r,i)}}({circular:e,comparator:a,createState:n,equals:r?r(a):(c=a,function(t,e,r,n,o,i,a){return c(t,e,a)}),strict:o})}function gw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;
vendor: 59,685 bytes, line 1
1requestAnimationFrame(function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)})}function ww(t){return(ww="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xw(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ow(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ow(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ow(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jw(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=xw(n),i=o[0],a=o.slice(1);return"number"==typeof i?void gw(r.bind(null,a),i):(r(i),void gw(r.bind(null,a)))}"object"===ww(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Sw(t){return(Sw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Aw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pw(Object(r),!0).forEach(function(e){Ew(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ew(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Sw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Sw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}bw({strict:!0}),bw({circular:!0}),bw({circular:!0,strict:!0}),bw({createInternalComparator:()=>Gg}),bw({strict:!0,createInternalComparator:()=>Gg}),bw({circular:!0,createInternalComparator:()=>Gg}),bw({circular:!0,createInternalComparator:()=>Gg,strict:!0});var kw=function(t){return t},Mw=function(t,e){return Object.keys(e).reduce(function(r,n){return Aw(Aw({},r),{},Ew({},n,t(n,e[n])))},{})},Tw=function(t,e,r){return t.map(function(t){return"".concat((n=t,n.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())}))," ").concat(e,"ms ").concat(r);var n}).join(",")};function _w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Dw(t,e)||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 Cw(t){return function(t){if(Array.isArray(t))return Iw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Dw(t)||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 Dw(t,e){if(t){if("string"==typeof t)return Iw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Iw(t,e):void 0}}function Iw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Nw=1e-4,Bw=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Rw=function(t,e){return t.map(function(t,r){return t*Math.pow(e,r)}).reduce(function(t,e){return t+e})},Lw=function(t,e){return function(r){var n=Bw(t,e);return Rw(n,r)}},zw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=_w(c[1].split(")")[0].split(",").map(function(t){return parseFloat(t)}),4);n=u[0],o=u[1],i=u[2],a=u[3]}}var l,s,f=Lw(n,i),p=Lw(o,a),h=(l=n,s=i,function(t){var e=Bw(l,s),r=[].concat(Cw(e.map(function(t,e){return t*e}).slice(1)),[0]);return Rw(r,t)}),y=function(t){return t>1?1:t<0?0:t},d=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=f(r)-e,i=h(r);if(Math.abs(o-e)<Nw||i<Nw)return p(r);r=y(r-o/i)}return p(r)};return d.isStepper=!1,d},Fw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return zw(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Nw&&Math.abs(i)<Nw?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return zw(n)}return"function"==typeof n?n:null};function Uw(t){return(Uw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $w(t){return function(t){if(Array.isArray(t))return Kw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Hw(t)||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 Ww(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function qw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ww(Object(r),!0).forEach(function(e){Vw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ww(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Vw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Uw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Uw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Hw(t,e)||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 Hw(t,e){if(t){if("string"==typeof t)return Kw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kw(t,e):void 0}}function Kw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Gw=function(t,e,r){return t+(e-t)*r},Yw=function(t){return t.from!==t.to},Zw=function t(e,r,n){var o=Mw(function(t,r){if(Yw(r)){var n=Xw(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return qw(qw({},r),{},{from:o,velocity:i})}return r},r);return n<1?Mw(function(t,e){return Yw(e)?qw(qw({},e),{},{velocity:Gw(e.velocity,o[t].velocity,n),from:Gw(e.from,o[t].from,n)}):e},r):t(e,o,n-1)};const Jw=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce(function(t,e){return t.filter(function(t){return e.includes(t)})})),s=l.reduce(function(r,n){return qw(qw({},r),{},Vw({},n,[t[n],e[n]]))},{}),f=l.reduce(function(r,n){return qw(qw({},r),{},Vw({},n,{from:t[n],velocity:0,to:e[n]}))},{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=Zw(r,f,i),o(qw(qw(qw({},t),e),Mw(function(t,e){return e.from},f))),c=n,Object.values(f).filter(Yw).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/n,c=Mw(function(t,e){return Gw.apply(void 0,$w(e).concat([r(a)]))},s);if(o(qw(qw(qw({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var l=Mw(function(t,e){return Gw.apply(void 0,$w(e).concat([r(1)]))},s);o(qw(qw(qw({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function Qw(t){return(Qw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var tx=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ex(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function rx(t){return function(t){if(Array.isArray(t))return nx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return nx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nx(t,e)}(t)||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 nx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ox(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ix(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ox(Object(r),!0).forEach(function(e){ax(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ox(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ax(t,e,r){return(e=ux(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cx(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ux(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ux(t){var e=function(t,e){if("object"!==Qw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Qw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qw(e)?e:String(e)}function lx(t,e){return(lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sx(t){var e=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(t){return!1}}();return function(){var r,n=hx(t);if(e){var o=hx(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return fx(this,r)}}function fx(t,e){if(e&&("object"===Qw(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return px(t)}function px(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hx(t){return(hx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yx=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lx(t,e)}(e,n.PureComponent);var t=sx(e);function e(r,n){var o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=(o=t.call(this,r,n)).props,a=i.isActive,c=i.attributeName,u=i.from,l=i.to,s=i.steps,f=i.children,p=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(px(o)),o.changeStyle=o.changeStyle.bind(px(o)),!a||p<=0)return o.state={style:{}},"function"==typeof f&&(o.state={style:l}),fx(o);if(s&&s.length)o.state={style:s[0].style};else if(u){if("function"==typeof f)return o.state={style:u},fx(o);o.state={style:c?ax({},c,u):u}}else o.state={style:{}};return o}return cx(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(mw(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?ax({},o,s):s};(o&&u[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(ix(ix({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?ax({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=Jw(r,n,Fw(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(rx(r.reduce(function(t,n,o){if(0===o)return t;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(rx(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=Tw(p,i,c),y=ix(ix(ix({},f.style),u),{},{transition:h});return[].concat(rx(t),[y,i,s]).filter(kw)},[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=jw());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.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(t);else{var f=n?ax({},n,o):o,p=Tw(Object.keys(f),r,i);s.start([a,e,ix(ix({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var i=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var a=ex(t,tx),c=n.Children.count(e),u=this.state.style;if("function"==typeof e)return e(u);if(!i||0===c||r<=0)return e;var l=function(t){var e=t.props,r=e.style,o=void 0===r?{}:r,i=e.className;return n.cloneElement(t,ix(ix({},a),{},{style:ix(ix({},o),u),className:i}))};return 1===c?l(n.Children.only(e)):o.createElement("div",null,n.Children.map(e,function(t){return l(t)}))}}]),e}();function dx(t){return(dx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vx(){return vx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vx.apply(this,arguments)}function mx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return bx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bx(t,e)}(t,e)||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 bx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function gx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function wx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gx(Object(r),!0).forEach(function(e){xx(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gx(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function xx(t,e,r){var n;return n=function(t,e){if("object"!=dx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==dx(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}yx.displayName="Animate",yx.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},yx.propTypes={from:Ug.oneOfType([Ug.object,Ug.string]),to:Ug.oneOfType([Ug.object,Ug.string]),attributeName:Ug.string,duration:Ug.number,begin:Ug.number,easing:Ug.oneOfType([Ug.string,Ug.func]),steps:Ug.arrayOf(Ug.shape({duration:Ug.number.isRequired,style:Ug.object.isRequired,easing:Ug.oneOfType([Ug.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ug.func]),properties:Ug.arrayOf("string"),onAnimationEnd:Ug.func})),children:Ug.oneOfType([Ug.node,Ug.func]),isActive:Ug.bool,canBegin:Ug.bool,onAnimationEnd:Ug.func,shouldReAnimate:Ug.bool,onAnimationStart:Ug.func,onAnimationReStart:Ug.func};var Ox=function(t,e,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(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},jx=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.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},Sx={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Px=function(e){var r=wx(wx({},Sx),e),i=n.useRef(),a=mx(n.useState(-1),2),c=a[0],u=a[1];n.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var t=i.current.getTotalLength();t&&u(t)}catch(e){}},[]);var l=r.x,s=r.y,f=r.width,p=r.height,h=r.radius,y=r.className,d=r.animationEasing,v=r.animationDuration,m=r.animationBegin,b=r.isAnimationActive,g=r.isUpdateAnimationActive;if(l!==+l||s!==+s||f!==+f||p!==+p||0===f||0===p)return null;var w=t("recharts-rectangle",y);return g?o.createElement(yx,{canBegin:c>0,from:{width:f,height:p,x:l,y:s},to:{width:f,height:p,x:l,y:s},duration:v,animationEasing:d,isActive:g},function(t){var e=t.width,n=t.height,a=t.x,u=t.y;return o.createElement(yx,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,isActive:b,easing:d},o.createElement("path",vx({},Rr(r,!0),{className:w,d:Ox(a,u,e,n,h),ref:i})))}):o.createElement("path",vx({},Rr(r,!0),{className:w,d:Ox(l,s,f,p,h)}))},Ax=["points","className","baseLinePoints","connectNulls"];function Ex(){return Ex=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ex.apply(this,arguments)}function kx(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Mx(t){return function(t){if(Array.isArray(t))return Tx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Tx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tx(t,e)}(t)||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 Tx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var _x=function(t){return t&&t.x===+t.x&&t.y===+t.y},Cx=function(t,e){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach(function(t){_x(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])}),_x(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(r=[r.reduce(function(t,e){return[].concat(Mx(t),Mx(e))},[])]);var n=r.map(function(t){return t.reduce(function(t,e,r){return"".concat(t).concat(0===r?"M":"L").concat(e.x,",").concat(e.y)},"")}).join("");return 1===r.length?"".concat(n,"Z"):n},Dx=function(e){var r=e.points,n=e.className,i=e.baseLinePoints,a=e.connectNulls,c=kx(e,Ax);if(!r||!r.length)return null;var u=t("recharts-polygon",n);if(i&&i.length){var l=c.stroke&&"none"!==c.stroke,s=function(t,e,r){var n=Cx(t,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(Cx(e.reverse(),r).slice(1))}(r,i,a);return o.createElement("g",{className:u},o.createElement("path",Ex({},Rr(c,!0),{fill:"Z"===s.slice(-1)?c.fill:"none",stroke:"none",d:s})),l?o.createElement("path",Ex({},Rr(c,!0),{fill:"none",d:Cx(r,a)})):null,l?o.createElement("path",Ex({},Rr(c,!0),{fill:"none",d:Cx(i,a)})):null)}var f=Cx(r,a);return o.createElement("path",Ex({},Rr(c,!0),{fill:"Z"===f.slice(-1)?c.fill:"none",className:u,d:f}))};function Ix(){return Ix=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ix.apply(this,arguments)}var Nx=function(e){var r=e.cx,o=e.cy,i=e.r,a=e.className,c=t("recharts-dot",a);return r===+r&&o===+o&&i===+i?n.createElement("circle",Ix({},Rr(e,!1),xr(e),{className:c,cx:r,cy:o,r:i})):null};function Bx(t){return(Bx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Rx=["x","y","top","left","width","height","className"];function Lx(){return Lx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lx.apply(this,arguments)}function zx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Fx(t,e,r){var n;return n=function(t,e){if("object"!=Bx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Bx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Bx(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ux(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var $x=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},Wx=function(e){var r=e.x,n=void 0===r?0:r,i=e.y,a=void 0===i?0:i,c=e.top,u=void 0===c?0:c,l=e.left,s=void 0===l?0:l,f=e.width,p=void 0===f?0:f,h=e.height,y=void 0===h?0:h,d=e.className,v=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zx(Object(r),!0).forEach(function(e){Fx(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zx(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({x:n,y:a,top:u,left:s,width:p,height:y},Ux(e,Rx));return ar(n)&&ar(a)&&ar(p)&&ar(y)&&ar(u)&&ar(s)?o.createElement("path",Lx({},Rr(v,!0),{className:t("recharts-cross",d),d:$x(n,a,p,y,u,s)})):null},qx=mv,Vx=bv,Xx=uu;const Hx=r(function(t,e){return t&&t.length?qx(t,Xx(e),Vx):void 0});var Kx=mv,Gx=uu,Yx=jv;const Zx=r(function(t,e){return t&&t.length?Kx(t,Gx(e),Yx):void 0});var Jx=["cx","cy","angle","ticks","axisLine"],Qx=["ticks","tick","angle","tickFormatter","stroke"];function tO(t){return(tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eO(){return eO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},eO.apply(this,arguments)}function rO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function nO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rO(Object(r),!0).forEach(function(e){sO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rO(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function oO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function iO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fO(n.key),n)}}function aO(t,e,r){return e=uO(e),function(t,e){if(e&&("object"===tO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,cO()?Reflect.construct(e,r||[],uO(t).constructor):e.apply(t,r))}function cO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cO=function(){return!!t})()}function uO(t){return(uO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function lO(t,e){return(lO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sO(t,e,r){return(e=fO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fO(t){var e=function(t,e){if("object"!=tO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tO(e)?e:e+""}var pO=function(){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),aO(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lO(t,e)}(e,n.PureComponent),r=e,a=[{key:"renderTickItem",value:function(t,e,r){return o.isValidElement(t)?o.cloneElement(t,e):B(t)?t(e):o.createElement(If,eO({},e,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],(i=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return Ub(o,i,e,n)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=Hx(o,function(t){return t.coordinate||0});return{cx:e,cy:r,startAngle:n,endAngle:n,innerRadius:Zx(o,function(t){return t.coordinate||0}).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,i=t.ticks,a=t.axisLine,c=oO(t,Jx),u=i.reduce(function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]},[1/0,-1/0]),l=Ub(e,r,u[0],n),s=Ub(e,r,u[1],n),f=nO(nO(nO({},Rr(c,!1)),{},{fill:"none"},Rr(a,!1)),{},{x1:l.x,y1:l.y,x2:s.x,y2:s.y});return o.createElement("line",eO({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var r=this,n=this.props,i=n.ticks,a=n.tick,c=n.angle,u=n.tickFormatter,l=n.stroke,s=oO(n,Qx),f=this.getTickTextAnchor(),p=Rr(s,!1),h=Rr(a,!1),y=i.map(function(n,i){var s=r.getTickValueCoord(n),y=nO(nO(nO(nO({textAnchor:f,transform:"rotate(".concat(90-c,", ").concat(s.x,", ").concat(s.y,")")},p),{},{stroke:"none",fill:l},h),{},{index:i},s),{},{payload:n});return o.createElement(Kr,eO({className:t("recharts-polar-radius-axis-tick",Xb(a)),key:"tick-".concat(n.coordinate)},Or(r.props,n,i)),e.renderTickItem(a,y,u?u(n.value,i):n.value))});return o.createElement(Kr,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var e=this.props,r=e.ticks,n=e.axisLine,i=e.tick;return r&&r.length?o.createElement(Kr,{className:t("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),i&&this.renderTicks(),ng.renderCallByParent(this.props,this.getViewBox())):null}}])&&iO(r.prototype,i),a&&iO(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}();function hO(t){return(hO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yO(){return yO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yO.apply(this,arguments)}function dO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function vO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dO(Object(r),!0).forEach(function(e){OO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dO(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function mO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jO(n.key),n)}}function bO(t,e,r){return e=wO(e),function(t,e){if(e&&("object"===hO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,gO()?Reflect.construct(e,r||[],wO(t).constructor):e.apply(t,r))}function gO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(gO=function(){return!!t})()}function wO(t){return(wO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xO(t,e){return(xO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function OO(t,e,r){return(e=jO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jO(t){var e=function(t,e){if("object"!=hO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=hO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hO(e)?e:e+""}sO(pO,"displayName","PolarRadiusAxis"),sO(pO,"axisType","radiusAxis"),sO(pO,"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 SO=Math.PI/180,PO=1e-5,AO=function(){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),bO(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xO(t,e)}(e,n.PureComponent),r=e,a=[{key:"renderTickItem",value:function(t,e,r){return o.isValidElement(t)?o.cloneElement(t,e):B(t)?t(e):o.createElement(If,yO({},e,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],(i=[{key:"getTickLineCoord",value:function(t){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.orientation,a=e.tickSize||8,c=Ub(r,n,o,t.coordinate),u=Ub(r,n,o+("inner"===i?-1:1)*a,t.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,r=Math.cos(-t.coordinate*SO);return r>PO?"outer"===e?"start":"end":r<-PO?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.radius,i=t.axisLine,a=t.axisLineType,c=vO(vO({},Rr(this.props,!1)),{},{fill:"none"},Rr(i,!1));if("circle"===a)return o.createElement(Nx,yO({className:"recharts-polar-angle-axis-line"},c,{cx:e,cy:r,r:n}));var u=this.props.ticks.map(function(t){return Ub(e,r,n,t.coordinate)});return o.createElement(Dx,yO({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var r=this,n=this.props,i=n.ticks,a=n.tick,c=n.tickLine,u=n.tickFormatter,l=n.stroke,s=Rr(this.props,!1),f=Rr(a,!1),p=vO(vO({},s),{},{fill:"none"},Rr(c,!1)),h=i.map(function(n,i){var h=r.getTickLineCoord(n),y=vO(vO(vO({textAnchor:r.getTickTextAnchor(n)},s),{},{stroke:"none",fill:l},f),{},{index:i,payload:n,x:h.x2,y:h.y2});return o.createElement(Kr,yO({className:t("recharts-polar-angle-axis-tick",Xb(a)),key:"tick-".concat(n.coordinate)},Or(r.props,n,i)),c&&o.createElement("line",yO({className:"recharts-polar-angle-axis-tick-line"},p,h)),a&&e.renderTickItem(a,y,u?u(n.value,i):n.value))});return o.createElement(Kr,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var e=this.props,r=e.ticks,n=e.radius,i=e.axisLine;return n<=0||!r||!r.length?null:o.createElement(Kr,{className:t("recharts-polar-angle-axis",this.props.className)},i&&this.renderAxisLine(),this.renderTicks())}}])&&mO(r.prototype,i),a&&mO(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}();OO(AO,"displayName","PolarAngleAxis"),OO(AO,"axisType","angleAxis"),OO(AO,"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});var EO=Aa(Object.getPrototypeOf,Object),kO=x,MO=EO,TO=O,_O=Function.prototype,CO=Object.prototype,DO=_O.toString,IO=CO.hasOwnProperty,NO=DO.call(Object);const BO=r(function(t){if(!TO(t)||"[object Object]"!=kO(t))return!1;var e=MO(t);if(null===e)return!0;var r=IO.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&DO.call(r)==NO});var RO=x,LO=O;const zO=r(function(t){return!0===t||!1===t||LO(t)&&"[object Boolean]"==RO(t)});function FO(t){return(FO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function UO(){return UO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},UO.apply(this,arguments)}function $O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return WO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return WO(t,e)}(t,e)||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 WO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function VO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qO(Object(r),!0).forEach(function(e){XO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function XO(t,e,r){var n;return n=function(t,e){if("object"!=FO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=FO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==FO(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var HO,KO=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},GO={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YO=function(e){var r=VO(VO({},GO),e),i=n.useRef(),a=$O(n.useState(-1),2),c=a[0],u=a[1];n.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var t=i.current.getTotalLength();t&&u(t)}catch(e){}},[]);var l=r.x,s=r.y,f=r.upperWidth,p=r.lowerWidth,h=r.height,y=r.className,d=r.animationEasing,v=r.animationDuration,m=r.animationBegin,b=r.isUpdateAnimationActive;if(l!==+l||s!==+s||f!==+f||p!==+p||h!==+h||0===f&&0===p||0===h)return null;var g=t("recharts-trapezoid",y);return b?o.createElement(yx,{canBegin:c>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:s},to:{upperWidth:f,lowerWidth:p,height:h,x:l,y:s},duration:v,animationEasing:d,isActive:b},function(t){var e=t.upperWidth,n=t.lowerWidth,a=t.height,u=t.x,l=t.y;return o.createElement(yx,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,easing:d},o.createElement("path",UO({},Rr(r,!0),{className:g,d:KO(u,l,e,n,a),ref:i})))}):o.createElement("g",null,o.createElement("path",UO({},Rr(r,!0),{className:g,d:KO(l,s,f,p,h)})))},ZO=["option","shapeType","propTransformer","activeClassName","isActive"];function JO(t){return(JO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function QO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function tj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ej(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tj(Object(r),!0).forEach(function(e){rj(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tj(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function rj(t,e,r){var n;return n=function(t,e){if("object"!=JO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=JO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==JO(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nj(t,e){return ej(ej({},e),t)}function oj(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return o.createElement(Px,r);case"trapezoid":return o.createElement(YO,r);case"sector":return o.createElement(Ag,r);case"symbols":if(function(t){return"symbols"===t}(e))return o.createElement(Bo,r);break;default:return null}}function ij(t){var e,r=t.option,i=t.shapeType,a=t.propTransformer,c=void 0===a?nj:a,u=t.activeClassName,l=void 0===u?"recharts-active-shape":u,s=t.isActive,f=QO(t,ZO);if(n.isValidElement(r))e=n.cloneElement(r,ej(ej({},f),function(t){return n.isValidElement(t)?t.props:t}(r)));else if(B(r))e=r(f);else if(BO(r)&&!zO(r)){var p=c(r,f);e=o.createElement(oj,{shapeType:i,elementProps:p})}else{var h=f;e=o.createElement(oj,{shapeType:i,elementProps:h})}return s?o.createElement(Kr,{className:l},e):e}function aj(t,e){return null!=e&&"trapezoids"in t.props}function cj(t,e){return null!=e&&"sectors"in t.props}function uj(t,e){return null!=e&&"points"in t.props}function lj(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function sj(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function fj(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function pj(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return aj(t,e)?r="trapezoids":cj(t,e)?r="sectors":uj(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return aj(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:cj(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:uj(t,e)?e.payload:{}}(r,e),a=n.filter(function(t,n){var a=Bv(i,t),c=r.props[o].filter(function(t){var n=function(t,e){var r;return aj(t,e)?r=lj:cj(t,e)?r=sj:uj(t,e)&&(r=fj),r}(r,e);return n(t,e)}),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u});return n.indexOf(a[a.length-1])}function hj(t){return(hj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yj(){return yj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yj.apply(this,arguments)}function dj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function vj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dj(Object(r),!0).forEach(function(e){Oj(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dj(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function mj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jj(n.key),n)}}function bj(t,e,r){return e=wj(e),function(t,e){if(e&&("object"===hj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,gj()?Reflect.construct(e,r||[],wj(t).constructor):e.apply(t,r))}function gj(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(gj=function(){return!!t})()}function wj(t){return(wj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xj(t,e){return(xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Oj(t,e,r){return(e=jj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jj(t){var e=function(t,e){if("object"!=hj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=hj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hj(e)?e:e+""}var Sj=function(){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Oj(r=bj(this,e,[t]),"pieRef",null),Oj(r,"sectorRefs",[]),Oj(r,"id",lr("recharts-pie-")),Oj(r,"handleAnimationEnd",function(){var t=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),B(t)&&t()}),Oj(r,"handleAnimationStart",function(){var t=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),B(t)&&t()}),r.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xj(t,e)}(e,n.PureComponent),r=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return e.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:e.curSectors,isAnimationFinished:!0}:t.sectors!==e.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,r,n){if(o.isValidElement(e))return o.cloneElement(e,r);if(B(e))return e(r);var i=t("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return o.createElement(Rg,yj({},r,{key:n,type:"linear",className:i}))}},{key:"renderLabelItem",value:function(e,r,n){if(o.isValidElement(e))return o.cloneElement(e,r);var i=n;if(B(e)&&(i=e(r),o.isValidElement(i)))return i;var a=t("recharts-pie-label-text","boolean"==typeof e||B(e)?"":e.className);return o.createElement(If,yj({},r,{alignmentBaseline:"middle",className:a}),i)}}],(i=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?0!==t.length:t||0===t}},{key:"renderLabels",value:function(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.label,i=r.labelLine,a=r.dataKey,c=r.valueKey,u=Rr(this.props,!1),l=Rr(n,!1),s=Rr(i,!1),f=n&&n.offsetRadius||20,p=t.map(function(t,r){var p=(t.startAngle+t.endAngle)/2,h=Ub(t.cx,t.cy,t.outerRadius+f,p),y=vj(vj(vj(vj({},u),t),{},{stroke:"none"},l),{},{index:r,textAnchor:e.getTextAnchor(h.x,t.cx)},h),d=vj(vj(vj(vj({},u),t),{},{fill:"none",stroke:t.fill},s),{},{index:r,points:[Ub(t.cx,t.cy,t.outerRadius,p),h]}),v=a;return ke(a)&&ke(c)?v="value":ke(a)&&(v=c),o.createElement(Kr,{key:"label-".concat(t.startAngle,"-").concat(t.endAngle,"-").concat(t.midAngle,"-").concat(r)},i&&e.renderLabelLineItem(i,d,"line"),e.renderLabelItem(n,y,ub(t,v)))});return o.createElement(Kr,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(t){var e=this,r=this.props,n=r.activeShape,i=r.blendStroke,a=r.inactiveShape;return t.map(function(r,c){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==t.length)return null;var u=e.isActiveIndex(c),l=a&&e.hasActiveIndex()?a:null,s=u?n:l,f=vj(vj({},r),{},{stroke:i?r.fill:r.stroke,tabIndex:-1});return o.createElement(Kr,yj({ref:function(t){t&&!e.sectorRefs.includes(t)&&e.sectorRefs.push(t)},tabIndex:-1,className:"recharts-pie-sector"},Or(e.props,r,c),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(c)}),o.createElement(ij,yj({option:s,isActive:u,shapeType:"sector"},f)))})}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,r=e.sectors,n=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state,s=l.prevSectors,f=l.prevIsAnimationActive;return o.createElement(yx,{begin:i,duration:a,isActive:n,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(e){var n=e.t,i=[],a=(r&&r[0]).startAngle;return r.forEach(function(t,e){var r=s&&s[e],o=e>0?Ee(t,"paddingAngle",0):0;if(r){var c=pr(r.endAngle-r.startAngle,t.endAngle-t.startAngle),u=vj(vj({},t),{},{startAngle:a+o,endAngle:a+c(n)+o});i.push(u),a=u.endAngle}else{var l=t.endAngle,f=t.startAngle,p=pr(0,l-f)(n),h=vj(vj({},t),{},{startAngle:a+o,endAngle:a+p+o});i.push(h),a=h.endAngle}}),o.createElement(Kr,null,t.renderSectorsStatically(i))})}},{key:"attachKeyboardHandlers",value:function(t){var e=this;t.onkeydown=function(t){if(!t.altKey)switch(t.key){case"ArrowLeft":var r=++e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[r].focus(),e.setState({sectorToFocus:r});break;case"ArrowRight":var n=--e.state.sectorToFocus<0?e.sectorRefs.length-1:e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[n].focus(),e.setState({sectorToFocus:n});break;case"Escape":e.sectorRefs[e.state.sectorToFocus].blur(),e.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,r=t.isAnimationActive,n=this.state.prevSectors;return!(r&&e&&e.length)||n&&Bv(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,r=this.props,n=r.hide,i=r.sectors,a=r.className,c=r.label,u=r.cx,l=r.cy,s=r.innerRadius,f=r.outerRadius,p=r.isAnimationActive,h=this.state.isAnimationFinished;if(n||!i||!i.length||!ar(u)||!ar(l)||!ar(s)||!ar(f))return null;var y=t("recharts-pie",a);return o.createElement(Kr,{tabIndex:this.props.rootTabIndex,className:y,ref:function(t){e.pieRef=t}},this.renderSectors(),c&&this.renderLabels(i),ng.renderCallByParent(this.props,null,!1),(!p||h)&&mg.renderCallByParent(this.props,i,!1))}}])&&mj(r.prototype,i),a&&mj(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}();HO=Sj,Oj(Sj,"displayName","Pie"),Oj(Sj,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ss.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),Oj(Sj,"parseDeltaAngle",function(t,e){return or(e-t)*Math.min(Math.abs(e-t),360)}),Oj(Sj,"getRealPieData",function(t){var e=t.data,r=t.children,n=Rr(t,!1),o=Cr(r,Ys);return e&&e.length?e.map(function(t,e){return vj(vj(vj({payload:t},n),t),o&&o[e]&&o[e].props)}):o&&o.length?o.map(function(t){return vj(vj({},n),t.props)}):[]}),Oj(Sj,"parseCoordinateOfPie",function(t,e){var r=e.top,n=e.left,o=e.width,i=e.height,a=$b(o,i);return{cx:n+sr(t.cx,o,o/2),cy:r+sr(t.cy,i,i/2),innerRadius:sr(t.innerRadius,a,0),outerRadius:sr(t.outerRadius,a,.8*a),maxRadius:t.maxRadius||Math.sqrt(o*o+i*i)/2}}),Oj(Sj,"getComposedData",function(t){var e=t.item,r=t.offset,n=void 0!==e.type.defaultProps?vj(vj({},e.type.defaultProps),e.props):e.props,o=HO.getRealPieData(n);if(!o||!o.length)return null;var i=n.cornerRadius,a=n.startAngle,c=n.endAngle,u=n.paddingAngle,l=n.dataKey,s=n.nameKey,f=n.valueKey,p=n.tooltipType,h=Math.abs(n.minAngle),y=HO.parseCoordinateOfPie(n,r),d=HO.parseDeltaAngle(a,c),v=Math.abs(d),m=l;ke(l)&&ke(f)?(Gr(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated
1in 1.1.0'),m="value"):ke(l)&&(Gr(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),m=f);var b,g,w=o.filter(function(t){return 0!==ub(t,m,0)}).length,x=v-w*h-(v>=360?w:w-1)*u,O=o.reduce(function(t,e){var r=ub(e,m,0);return t+(ar(r)?r:0)},0);O>0&&(b=o.map(function(t,e){var r,n=ub(t,m,0),o=ub(t,s,e),c=(ar(n)?n:0)/O,l=(r=e?g.endAngle+or(d)*u*(0!==n?1:0):a)+or(d)*((0!==n?h:0)+c*x),f=(r+l)/2,v=(y.innerRadius+y.outerRadius)/2,b=[{name:o,value:n,payload:t,dataKey:m,type:p}],w=Ub(y.cx,y.cy,v,f);return g=vj(vj(vj({percent:c,cornerRadius:i,name:o,tooltipPayload:b,midAngle:f,middleRadius:v,tooltipPosition:w},t),y),{},{value:ub(t,m),startAngle:r,endAngle:l,payload:t,paddingAngle:or(d)*u})}));return vj(vj({},y),{},{sectors:b,data:o})});var Pj=Math.ceil,Aj=Math.max;var Ej=Is,kj=1/0;var Mj=function(t){return t?(t=Ej(t))===kj||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Tj=function(t,e,r,n){for(var o=-1,i=Aj(Pj((e-t)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=t,t+=r;return a},_j=Dl,Cj=Mj;const Dj=r(function(t){return function(e,r,n){return n&&"number"!=typeof n&&_j(e,r,n)&&(r=n=void 0),e=Cj(e),void 0===r?(r=e,e=0):r=Cj(r),n=void 0===n?e<r?1:-1:Cj(n),Tj(e,r,n,t)}}());function Ij(t){return(Ij="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Bj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nj(Object(r),!0).forEach(function(e){Rj(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nj(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Rj(t,e,r){var n;return n=function(t,e){if("object"!=Ij(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ij(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ij(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Lj=["Webkit","Moz","O","ms"];function zj(t){return(zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fj(){return Fj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fj.apply(this,arguments)}function Uj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function $j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uj(Object(r),!0).forEach(function(e){Kj(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uj(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Wj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Gj(n.key),n)}}function qj(t,e,r){return e=Xj(e),function(t,e){if(e&&("object"===zj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Vj()?Reflect.construct(e,r||[],Xj(t).constructor):e.apply(t,r))}function Vj(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vj=function(){return!!t})()}
vendor: 106,700 bytes, line 1
1function Xj(t){return(Xj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Hj(t,e){return(Hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Kj(t,e,r){return(e=Gj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gj(t){var e=function(t,e){if("object"!=zj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zj(e)?e:e+""}var Yj=function(t){return t.changedTouches&&!!t.changedTouches.length},Zj=function(){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Kj(r=qj(this,e,[t]),"handleDrag",function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)}),Kj(r,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])}),Kj(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})}),r.detachDragEndListener()}),Kj(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Kj(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Kj(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Kj(r,"handleSlideDragStart",function(t){var e=Yj(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hj(t,e)}(e,n.PureComponent),r=e,a=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,a=t.stroke,c=Math.floor(r+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:e,y:r,width:n,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:e+1,y1:c,x2:e+n-1,y2:c,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:e+1,y1:c+2,x2:e+n-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return o.isValidElement(t)?o.cloneElement(t,r):B(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return $j({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=lp().domain(Dj(0,c)).range([o,o+i-a]),l=u.domain().map(function(t){return u(t)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!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(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],(i=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(o,u),f=e.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=ub(r[t],o,t);return B(n)?n(i,t):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(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.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 h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=Yj(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,y={startX:this.state.startX,endX:this.state.endX},d=t.pageX-r;d>0?d=Math.min(d,u+l-s-a):d<0&&(d=Math.max(d,u-a)),y[n]=a+d;var v=this.getIndex(y),m=v.startIndex,b=v.endIndex;this.setState(Kj(Kj({},n,a+d),"brushMoveStartX",t.pageX),function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?m%p===0:b%p===0)||o<i&&b===t||"endX"===n&&(o>i?b%p===0:m%p===0)||o>i&&b===t)&&f(v))})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(Kj({},e,s),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,a=t.fill,c=t.stroke;return o.createElement("rect",{stroke:c,fill:a,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,i=t.width,a=t.height,c=t.data,u=t.children,l=t.padding,s=n.Children.only(u);return s?o.cloneElement(s,{x:e,y:r,width:i,height:a,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,i,a=this,c=this.props,u=c.y,l=c.travellerWidth,s=c.height,f=c.traveller,p=c.ariaLabel,h=c.data,y=c.startIndex,d=c.endIndex,v=Math.max(t,this.props.x),m=$j($j({},Rr(this.props,!1)),{},{x:v,y:u,width:l,height:s}),b=p||"Min value: ".concat(null===(n=h[y])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=h[d])||void 0===i?void 0:i.name);return o.createElement(Kr,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,a=r.stroke,c=r.travellerWidth,u=Math.min(t,e)+c,l=Math.max(Math.abs(e-t)-c,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:n,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,a=t.travellerWidth,c=t.stroke,u=this.state,l=u.startX,s=u.endX,f={pointerEvents:"none",fill:c};return o.createElement(Kr,{className:"recharts-brush-texts"},o.createElement(If,Fj({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:n+i/2},f),this.getTextOfTick(e)),o.createElement(If,Fj({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:n+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,r=e.data,n=e.className,i=e.children,a=e.x,c=e.y,u=e.width,l=e.height,s=e.alwaysShowText,f=this.state,p=f.startX,h=f.endX,y=f.isTextActive,d=f.isSlideMoving,v=f.isTravellerMoving,m=f.isTravellerFocused;if(!r||!r.length||!ar(a)||!ar(c)||!ar(u)||!ar(l)||u<=0||l<=0)return null;var b,g,w,x,O=t("recharts-brush",n),j=1===o.Children.count(i),S=(g="none",w=(b="userSelect").replace(/(\w)/,function(t){return t.toUpperCase()}),(x=Lj.reduce(function(t,e){return Bj(Bj({},t),{},Rj({},e+w,g))},{}))[b]=g,x);return o.createElement(Kr,{className:O,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),j&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(y||d||v||m||s)&&this.renderText())}}])&&Wj(r.prototype,i),a&&Wj(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}();Kj(Zj,"displayName","Brush"),Kj(Zj,"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 Jj=Qu;var Qj=pi,tS=uu,eS=function(t,e){var r;return Jj(t,function(t,n,o){return!(r=e(t,n,o))}),!!r},rS=i,nS=Dl;const oS=r(function(t,e,r){var n=rS(t)?Qj:eS;return r&&nS(t,e,r)&&(e=void 0),n(t,tS(e))});var iS=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},aS=wl;var cS=function(t,e,r){"__proto__"==e&&aS?aS(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},uS=Zu,lS=uu;const sS=r(function(t,e){var r={};return e=lS(e),uS(t,function(t,n,o){cS(r,n,e(t,n,o))}),r});var fS=Qu;var pS=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},hS=function(t,e){var r=!0;return fS(t,function(t,n,o){return r=!!e(t,n,o)}),r},yS=uu,dS=i,vS=Dl;const mS=r(function(t,e,r){var n=dS(t)?pS:hS;return r&&vS(t,e,r)&&(e=void 0),n(t,yS(e))});var bS=["x","y"];function gS(t){return(gS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wS(){return wS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wS.apply(this,arguments)}function xS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function OS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xS(Object(r),!0).forEach(function(e){jS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function jS(t,e,r){var n;return n=function(t,e){if("object"!=gS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==gS(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function PS(t,e){var r=t.x,n=t.y,o=SS(t,bS),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return OS(OS(OS(OS(OS({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function AS(t){return o.createElement(ij,wS({shapeType:"rectangle",propTransformer:PS,activeClassName:"recharts-active-bar"},t))}var ES,kS=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o=ar(r)||function(t){return ke(t)}(r);return o?t(r,n):(o||Bm(),e)}},MS=["value","background"];function TS(t){return(TS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _S(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function CS(){return CS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},CS.apply(this,arguments)}function DS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function IS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DS(Object(r),!0).forEach(function(e){FS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function NS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,US(n.key),n)}}function BS(t,e,r){return e=LS(e),function(t,e){if(e&&("object"===TS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,RS()?Reflect.construct(e,r||[],LS(t).constructor):e.apply(t,r))}function RS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(RS=function(){return!!t})()}function LS(t){return(LS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function zS(t,e){return(zS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function FS(t,e,r){return(e=US(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function US(t){var e=function(t,e){if("object"!=TS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=TS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==TS(e)?e:e+""}var $S=function(){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return FS(t=BS(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),FS(t,"id",lr("recharts-bar-")),FS(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),FS(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zS(t,e)}(e,n.PureComponent),r=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(i=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,a=r.activeIndex,c=r.activeBar,u=Rr(this.props,!1);return t&&t.map(function(t,r){var l=r===a,s=l?c:n,f=IS(IS(IS({},u),t),{},{isActive:l,option:s,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return o.createElement(Kr,CS({className:"recharts-bar-rectangle"},Or(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(r)}),o.createElement(AS,f))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,a=e.animationBegin,c=e.animationDuration,u=e.animationEasing,l=e.animationId,s=this.state.prevData;return o.createElement(yx,{begin:a,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var i=e.t,a=r.map(function(t,e){var r=s&&s[e];if(r){var o=pr(r.x,t.x),a=pr(r.y,t.y),c=pr(r.width,t.width),u=pr(r.height,t.height);return IS(IS({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var l=pr(0,t.height)(i);return IS(IS({},t),{},{y:t.y+t.height-l,height:l})}var f=pr(0,t.width)(i);return IS(IS({},t),{},{width:f})});return o.createElement(Kr,null,t.renderRectanglesStatically(a))})}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Bv(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,a=Rr(this.props.background,!1);return r.map(function(e,r){e.value;var c=e.background,u=_S(e,MS);if(!c)return null;var l=IS(IS(IS(IS(IS({},u),{},{fill:"#eee"},c),a),Or(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return o.createElement(AS,CS({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},l))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,a=r.yAxis,c=r.layout,u=Cr(r.children,Ym);if(!u)return null;var l="vertical"===c?n[0].height/2:n[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:ub(t,e)}},f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return o.createElement(Kr,f,u.map(function(t){return o.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:a,layout:c,offset:l,dataPointFormatter:s})}))}},{key:"render",value:function(){var e=this.props,r=e.hide,n=e.data,i=e.className,a=e.xAxis,c=e.yAxis,u=e.left,l=e.top,s=e.width,f=e.height,p=e.isAnimationActive,h=e.background,y=e.id;if(r||!n||!n.length)return null;var d=this.state.isAnimationFinished,v=t("recharts-bar",i),m=a&&a.allowDataOverflow,b=c&&c.allowDataOverflow,g=m||b,w=ke(y)?this.id:y;return o.createElement(Kr,{className:v},m||b?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(w)},o.createElement("rect",{x:m?u:u-s/2,y:b?l:l-f/2,width:m?s:2*s,height:b?f:2*f}))):null,o.createElement(Kr,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(w,")"):null},h?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,w),(!p||d)&&mg.renderCallByParent(this.props,n))}}])&&NS(r.prototype,i),a&&NS(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}();function WS(t){return(WS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,KS(n.key),n)}}function VS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function XS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VS(Object(r),!0).forEach(function(e){HS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function HS(t,e,r){return(e=KS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function KS(t){var e=function(t,e){if("object"!=WS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=WS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==WS(e)?e:e+""}ES=$S,FS($S,"displayName","Bar"),FS($S,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ss.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),FS($S,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var y=e.layout,d=r.type.defaultProps,v=void 0!==d?IS(IS({},d),r.props):r.props,m=v.dataKey,b=v.children,g=v.minPointSize,w="horizontal"===y?a:i,x=l?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.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]}({numericAxis:w}),j=Cr(b,Ys),S=f.map(function(t,e){var n,f,p,d,v,b;l?n=function(t,e){if(!e||2!==e.length||!ar(e[0])||!ar(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!ar(t[0])||t[0]<r)&&(o[0]=r),(!ar(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=ub(t,m),Array.isArray(n)||(n=[O,n]));var w=kS(g,ES.defaultProps.minPointSize)(n[1],e);if("horizontal"===y){var S,P=[a.scale(n[0]),a.scale(n[1])],A=P[0],E=P[1];f=Pb({axis:i,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(S=null!=E?E:A)&&void 0!==S?S:void 0,d=h.size;var k=A-E;if(v=Number.isNaN(k)?0:k,b={x:f,y:a.y,width:d,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var M=or(v||w)*(Math.abs(w)-Math.abs(v));p-=M,v+=M}}else{var T=[i.scale(n[0]),i.scale(n[1])],_=T[0],C=T[1];if(f=_,p=Pb({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),d=C-_,v=h.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(d)<Math.abs(w))d+=or(d||w)*(Math.abs(w)-Math.abs(d))}return IS(IS(IS({},t),{},{x:f,y:p,width:d,height:v,value:l?n:n[1],payload:t,background:b},j&&j[e]&&j[e].props),{},{tooltipPayload:[Cb(r,t)],tooltipPosition:{x:f+d/2,y:p+v/2}})});return IS({data:S,layout:y},p)});var GS=function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={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},f=!!Dr(u,$S);return l.reduce(function(i,a){var u,l,p,h,y,d=e[a],v=d.orientation,m=d.domain,b=d.padding,g=void 0===b?{}:b,w=d.mirror,x=d.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===d.type&&("gap"===d.padding||"no-gap"===d.padding)){var j=m[1]-m[0],S=1/0,P=d.categoricalDomain.sort(yr);if(P.forEach(function(t,e){e>0&&(S=Math.min((t||0)-(P[e-1]||0),S))}),Number.isFinite(S)){var A=S/j,E="vertical"===d.layout?r.height:r.width;if("gap"===d.padding&&(u=A*E/2),"no-gap"===d.padding){var k=sr(t.barCategoryGap,A*E),M=A*E/2;u=M-k-(M-k)/E*k}}}l="xAxis"===n?[r.left+(g.left||0)+(u||0),r.left+r.width-(g.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(u||0),r.top+r.height-(g.bottom||0)-(u||0)]:d.range,x&&(l=[l[1],l[0]]);var T=bb(d,o,f),_=T.scale,C=T.realScaleType;_.domain(m).range(l),wb(_);var D=jb(_,XS(XS({},d),{},{realScaleType:C}));"xAxis"===n?(y="top"===v&&!w||"bottom"===v&&w,p=r.left,h=s[O]-y*d.height):"yAxis"===n&&(y="left"===v&&!w||"right"===v&&w,p=s[O]-y*d.width,h=r.top);var I=XS(XS(XS({},d),D),{},{realScaleType:C,x:p,y:h,scale:_,width:"xAxis"===n?r.width:d.width,height:"yAxis"===n?r.height:d.height});return I.bandSize=Tb(I,D),d.hide||"xAxis"!==n?d.hide||(s[O]+=(y?-1:1)*I.width):s[O]+=(y?-1:1)*I.height,XS(XS({},i),{},HS({},a,I))},{})},YS=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},ZS=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,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(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&qS(e.prototype,r),n&&qS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();HS(ZS,"EPS",1e-4);var JS=function(t){var e=Object.keys(t).reduce(function(e,r){return XS(XS({},e),{},HS({},r,ZS.create(t[r])))},{});return XS(XS({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return sS(t,function(t,r){return e[r].apply(t,{bandAware:n,position:o})})},isInRange:function(t){return mS(t,function(t,r){return e[r].isInRange(t)})}})};var QS=uu,tP=Da,eP=Ra;var rP=function(t){return function(e,r,n){var o=Object(e);if(!tP(e)){var i=QS(r);e=eP(e),r=function(t){return i(o[t],t,o)}}var a=t(e,r,n);return a>-1?o[i?e[a]:a]:void 0}},nP=Mj;var oP=lu,iP=uu,aP=function(t){var e=nP(t),r=e%1;return e==e?r?e-r:e:0},cP=Math.max;const uP=r(rP(function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:aP(r);return o<0&&(o=cP(n+o,0)),oP(t,iP(e),o)}));var lP=ee(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),sP=n.createContext(void 0),fP=n.createContext(void 0),pP=n.createContext(void 0),hP=n.createContext({}),yP=n.createContext(void 0),dP=n.createContext(0),vP=n.createContext(0),mP=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,a=t.clipPathId,c=t.children,u=t.width,l=t.height,s=lP(i);return o.createElement(sP.Provider,{value:r},o.createElement(fP.Provider,{value:n},o.createElement(hP.Provider,{value:i},o.createElement(pP.Provider,{value:s},o.createElement(yP.Provider,{value:a},o.createElement(dP.Provider,{value:l},o.createElement(vP.Provider,{value:u},c)))))))},bP=function(t){var e=n.useContext(sP);null==e&&Bm();var r=e[t];return null==r&&Bm(),r},gP=function(t){var e=n.useContext(fP);null==e&&Bm();var r=e[t];return null==r&&Bm(),r},wP=function(){return n.useContext(vP)},xP=function(){return n.useContext(dP)};function OP(t){return(OP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jP(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_P(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function SP(t,e,r){return e=AP(e),function(t,e){if(e&&("object"===OP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,PP()?Reflect.construct(e,r||[],AP(t).constructor):e.apply(t,r))}function PP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(PP=function(){return!!t})()}function AP(t){return(AP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function EP(t,e){return(EP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function kP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function MP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kP(Object(r),!0).forEach(function(e){TP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kP(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function TP(t,e,r){return(e=_P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _P(t){var e=function(t,e){if("object"!=OP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=OP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==OP(e)?e:e+""}function CP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return DP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DP(t,e)}(t,e)||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 DP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function IP(){return IP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},IP.apply(this,arguments)}function NP(e){var r=e.x,i=e.y,a=e.segment,c=e.xAxisId,u=e.yAxisId,l=e.shape,s=e.className,f=e.alwaysShow,p=n.useContext(yP),h=bP(c),y=gP(u),d=n.useContext(pP);if(!p||!d)return null;Gr(void 0===f,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var h=u.y,y=t.y.apply(h,{position:i});if(iS(u,"discard")&&!t.y.isInRange(y))return null;var d=[{x:l+f,y:y},{x:l,y:y}];return"left"===c?d.reverse():d}if(e){var v=u.x,m=t.x.apply(v,{position:i});if(iS(u,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?b.reverse():b}if(n){var g=u.segment.map(function(e){return t.apply(e,{position:i})});return iS(u,"discard")&&oS(g,function(e){return!t.isInRange(e)})?null:g}return null}(JS({x:h.scale,y:y.scale}),cr(r),cr(i),a&&2===a.length,d,e.position,h.orientation,y.orientation,e);if(!v)return null;var m=CP(v,2),b=m[0],g=b.x,w=b.y,x=m[1],O=x.x,j=x.y,S=MP(MP({clipPath:iS(e,"hidden")?"url(#".concat(p,")"):void 0},Rr(e,!0)),{},{x1:g,y1:w,x2:O,y2:j});return o.createElement(Kr,{className:t("recharts-reference-line",s)},function(t,e){return o.isValidElement(t)?o.cloneElement(t,e):B(t)?t(e):o.createElement("line",IP({},e,{className:"recharts-reference-line-line"}))}(l,S),ng.renderCallByParent(e,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return YS({x:e,y:r},{x:n,y:o})}({x1:g,y1:w,x2:O,y2:j})))}var BP=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),SP(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&EP(t,e)}(t,o.Component),jP(t,[{key:"render",value:function(){return o.createElement(NP,this.props)}}])}();function RP(){return RP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},RP.apply(this,arguments)}function LP(t){return(LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function FP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zP(Object(r),!0).forEach(function(e){XP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zP(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function UP(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function $P(t,e,r){return e=qP(e),function(t,e){if(e&&("object"===LP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,WP()?Reflect.construct(e,r||[],qP(t).constructor):e.apply(t,r))}function WP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(WP=function(){return!!t})()}function qP(t){return(qP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function VP(t,e){return(VP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function XP(t,e,r){return(e=HP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function HP(t){var e=function(t,e){if("object"!=LP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=LP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==LP(e)?e:e+""}TP(BP,"displayName","ReferenceLine"),TP(BP,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var KP=function(){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),$P(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&VP(t,e)}(e,o.Component),UP(e,[{key:"render",value:function(){var r=this.props,n=r.x,i=r.y,a=r.r,c=r.alwaysShow,u=r.clipPathId,l=cr(n),s=cr(i);if(Gr(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!s)return null;var f=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=JS({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return iS(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!f)return null;var p=f.x,h=f.y,y=this.props,d=y.shape,v=y.className,m=FP(FP({clipPath:iS(this.props,"hidden")?"url(#".concat(u,")"):void 0},Rr(this.props,!0)),{},{cx:p,cy:h});return o.createElement(Kr,{className:t("recharts-reference-dot",v)},e.renderDot(d,m),ng.renderCallByParent(this.props,{x:p-a,y:h-a,width:2*a,height:2*a}))}}])}();function GP(){return GP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},GP.apply(this,arguments)}function YP(t){return(YP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ZP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function JP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ZP(Object(r),!0).forEach(function(e){oA(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZP(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function QP(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,iA(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function tA(t,e,r){return e=rA(e),function(t,e){if(e&&("object"===YP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,eA()?Reflect.construct(e,r||[],rA(t).constructor):e.apply(t,r))}function eA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eA=function(){return!!t})()}function rA(t){return(rA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function nA(t,e){return(nA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function oA(t,e,r){return(e=iA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iA(t){var e=function(t,e){if("object"!=YP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=YP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==YP(e)?e:e+""}XP(KP,"displayName","ReferenceDot"),XP(KP,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),XP(KP,"renderDot",function(t,e){return o.isValidElement(t)?o.cloneElement(t,e):B(t)?t(e):o.createElement(Nx,RP({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))});var aA=function(){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),tA(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nA(t,e)}(e,o.Component),QP(e,[{key:"render",value:function(){var r=this.props,n=r.x1,i=r.x2,a=r.y1,c=r.y2,u=r.className,l=r.alwaysShow,s=r.clipPathId;Gr(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=cr(n),p=cr(i),h=cr(a),y=cr(c),d=this.props.shape;if(!(f||p||h||y||d))return null;var v=function(t,e,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=JS({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!iS(o,"discard")||f.isInRange(p)&&f.isInRange(h)?YS(p,h):null}(f,p,h,y,this.props);if(!v&&!d)return null;var m=iS(this.props,"hidden")?"url(#".concat(s,")"):void 0;return o.createElement(Kr,{className:t("recharts-reference-area",u)},e.renderRect(d,JP(JP({clipPath:m},Rr(this.props,!0)),v)),ng.renderCallByParent(this.props,v))}}])}();function cA(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e)n.push(t[o]);return n}function uA(t,e,r){return function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)}({width:t.width+e.width,height:t.height+e.height},r)}function lA(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function sA(t){return(sA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function pA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fA(Object(r),!0).forEach(function(e){hA(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fA(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function hA(t,e,r){var n;return n=function(t,e){if("object"!=sA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==sA(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yA(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(ar(u)||ss.isSsr)return function(t,e){return cA(t,e+1)}(o,"number"==typeof u&&ar(u)?u:0);var p=[],h="top"===c||"bottom"===c?"width":"height",y=s&&"width"===h?of(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},d=function(t,n){var o=B(l)?l(t.value,n):t.value;return"width"===h?uA(of(o,{fontSize:e,letterSpacing:r}),y,f):of(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?or(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:cA(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,y=0===l||lA(t,h,p,f,u);y||(l=0,f=c,s+=1),y&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,d,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=pA(pA({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),lA(t,s.tickCoord,function(){return f},u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=pA(pA({},s),{},{isShow:!0}))}for(var h=i?c-1:c,y=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=pA(pA({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=pA(pA({},i),{},{tickCoord:i.coordinate});lA(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=pA(pA({},i),{},{isShow:!0}))},d=0;d<h;d++)y(d);return a}(v,m,d,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=pA(pA({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=pA(pA({},l),{},{tickCoord:l.coordinate});lA(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=pA(pA({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,d,o,a),p.filter(function(t){return t.isShow}))}oA(aA,"displayName","ReferenceArea"),oA(aA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),oA(aA,"renderRect",function(t,e){return o.isValidElement(t)?o.cloneElement(t,e):B(t)?t(e):o.createElement(Px,GP({},e,{className:"recharts-reference-area-rect"}))});var dA=["viewBox"],vA=["viewBox"],mA=["ticks"];function bA(t){return(bA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gA(){return gA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gA.apply(this,arguments)}function wA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function xA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wA(Object(r),!0).forEach(function(e){kA(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wA(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function OA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function jA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MA(n.key),n)}}function SA(t,e,r){return e=AA(e),function(t,e){if(e&&("object"===bA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,PA()?Reflect.construct(e,r||[],AA(t).constructor):e.apply(t,r))}function PA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(PA=function(){return!!t})()}function AA(t){return(AA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function EA(t,e){return(EA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function kA(t,e,r){return(e=MA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function MA(t){var e=function(t,e){if("object"!=bA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bA(e)?e:e+""}var TA=function(){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=SA(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&EA(t,e)}(e,n.Component),r=e,a=[{key:"renderTickItem",value:function(e,r,n){var i=t(r.className,"recharts-cartesian-axis-tick-value");return o.isValidElement(e)?o.cloneElement(e,xA(xA({},r),{},{className:i})):B(e)?e(xA(xA({},r),{},{className:i})):o.createElement(If,gA({},r,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(i=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=OA(t,dA),o=this.props,i=o.viewBox,a=OA(o,vA);return!dr(r,i)||!dr(n,a)||!dr(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,y=c.mirror,d=c.tickMargin,v=y?-1:1,m=t.tickSize||h,b=ar(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!y*f)-v*m)-v*d,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!y*s)-v*m)-v*d,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +y*s)+v*m)+v*d,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +y*f)+v*m)+v*d,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){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,r=e.x,n=e.y,i=e.width,a=e.height,c=e.orientation,u=e.mirror,l=e.axisLine,s=xA(xA(xA({},Rr(this.props,!1)),Rr(l,!1)),{},{fill:"none"});if("top"===c||"bottom"===c){var f=+("top"===c&&!u||"bottom"===c&&u);s=xA(xA({},s),{},{x1:r,y1:n+f*a,x2:r+i,y2:n+f*a})}else{var p=+("left"===c&&!u||"right"===c&&u);s=xA(xA({},s),{},{x1:r+p*i,y1:n,x2:r+p*i,y2:n+a})}return o.createElement("line",gA({},s,{className:t("recharts-cartesian-axis-line",Ee(l,"className"))}))}},{key:"renderTicks",value:function(r,n,i){var a=this,c=this.props,u=c.tickLine,l=c.stroke,s=c.tick,f=c.tickFormatter,p=c.unit,h=yA(xA(xA({},this.props),{},{ticks:r}),n,i),y=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),v=Rr(this.props,!1),m=Rr(s,!1),b=xA(xA({},v),{},{fill:"none"},Rr(u,!1)),g=h.map(function(r,n){var i=a.getTickLineCoord(r),c=i.line,g=i.tick,w=xA(xA(xA(xA({textAnchor:y,verticalAnchor:d},v),{},{stroke:"none",fill:l},m),g),{},{index:n,payload:r,visibleTicksCount:h.length,tickFormatter:f});return o.createElement(Kr,gA({className:"recharts-cartesian-axis-tick",key:"tick-".concat(r.value,"-").concat(r.coordinate,"-").concat(r.tickCoord)},Or(a.props,r,n)),u&&o.createElement("line",gA({},b,c,{className:t("recharts-cartesian-axis-tick-line",Ee(u,"className"))})),s&&e.renderTickItem(s,w,"".concat(B(f)?f(r.value,n):r.value).concat(p||"")))});return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var e=this,r=this.props,n=r.axisLine,i=r.width,a=r.height,c=r.ticksGenerator,u=r.className;if(r.hide)return null;var l=this.props,s=l.ticks,f=OA(l,mA),p=s;return B(c)&&(p=s&&s.length>0?c(this.props):c(f)),i<=0||a<=0||!p||!p.length?null:o.createElement(Kr,{className:t("recharts-cartesian-axis",u),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),ng.renderCallByParent(this.props))}}])&&jA(r.prototype,i),a&&jA(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}();kA(TA,"displayName","CartesianAxis"),kA(TA,"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 _A=["x1","y1","x2","y2","key"],CA=["offset"];function DA(t){return(DA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function IA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function NA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?IA(Object(r),!0).forEach(function(e){BA(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function BA(t,e,r){var n;return n=function(t,e){if("object"!=DA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=DA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==DA(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RA(){return RA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},RA.apply(this,arguments)}function LA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var zA=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,n=t.x,i=t.y,a=t.width,c=t.height,u=t.ry;return o.createElement("rect",{x:n,y:i,ry:u,width:a,height:c,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function FA(t,e){var r;if(o.isValidElement(t))r=o.cloneElement(t,e);else if(B(t))r=t(e);else{var n=e.x1,i=e.y1,a=e.x2,c=e.y2,u=e.key,l=LA(e,_A),s=Rr(l,!1);s.offset;var f=LA(s,CA);r=o.createElement("line",RA({},f,{x1:n,y1:i,x2:a,y2:c,fill:"none",key:u}))}return r}function UA(t){var e=t.x,r=t.width,n=t.horizontal,i=void 0===n||n,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var c=a.map(function(n,o){var a=NA(NA({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(o),index:o});return FA(i,a)});return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function $A(t){var e=t.y,r=t.height,n=t.vertical,i=void 0===n||n,a=t.verticalPoints;if(!i||!a||!a.length)return null;var c=a.map(function(n,o){var a=NA(NA({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(o),index:o});return FA(i,a)});return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function WA(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,i=t.y,a=t.width,c=t.height,u=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var s=u.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var f=s.map(function(t,u){var l=!s[u+1]?i+c-t:s[u+1]-t;if(l<=0)return null;var f=u%e.length;return o.createElement("rect",{key:"react-".concat(u),y:t,x:n,height:l,width:a,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function qA(t){var e=t.vertical,r=void 0===e||e,n=t.verticalFill,i=t.fillOpacity,a=t.x,c=t.y,u=t.width,l=t.height,s=t.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(t){return Math.round(t+a-a)}).sort(function(t,e){return t-e});a!==f[0]&&f.unshift(0);var p=f.map(function(t,e){var r=!f[e+1]?a+u-t:f[e+1]-t;if(r<=0)return null;var s=e%n.length;return o.createElement("rect",{key:"react-".concat(e),x:t,y:c,width:r,height:l,stroke:"none",fill:n[s],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var VA=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return yb(yA(NA(NA(NA({},TA.defaultProps),r),{},{ticks:db(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},XA=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return yb(yA(NA(NA(NA({},TA.defaultProps),r),{},{ticks:db(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},HA={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function KA(t){var e,r,i,a,c,u,l,s,f=wP(),p=xP(),h=n.useContext(hP),y=NA(NA({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:HA.stroke,fill:null!==(r=t.fill)&&void 0!==r?r:HA.fill,horizontal:null!==(i=t.horizontal)&&void 0!==i?i:HA.horizontal,horizontalFill:null!==(a=t.horizontalFill)&&void 0!==a?a:HA.horizontalFill,vertical:null!==(c=t.vertical)&&void 0!==c?c:HA.vertical,verticalFill:null!==(u=t.verticalFill)&&void 0!==u?u:HA.verticalFill,x:ar(t.x)?t.x:h.left,y:ar(t.y)?t.y:h.top,width:ar(t.width)?t.width:h.width,height:ar(t.height)?t.height:h.height}),d=y.x,v=y.y,m=y.width,b=y.height,g=y.syncWithTicks,w=y.horizontalValues,x=y.verticalValues,O=(l=n.useContext(sP),fr(l)),j=(s=n.useContext(fP),uP(s,function(t){return mS(t.domain,Number.isFinite)})||fr(s));if(!ar(m)||m<=0||!ar(b)||b<=0||!ar(d)||d!==+d||!ar(v)||v!==+v)return null;var S=y.verticalCoordinatesGenerator||VA,P=y.horizontalCoordinatesGenerator||XA,A=y.horizontalPoints,E=y.verticalPoints;if((!A||!A.length)&&B(P)){var k=w&&w.length,M=P({yAxis:j?NA(NA({},j),{},{ticks:k?w:j.ticks}):void 0,width:f,height:p,offset:h},!!k||g);Gr(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(DA(M),"]")),Array.isArray(M)&&(A=M)}if((!E||!E.length)&&B(S)){var T=x&&x.length,_=S({xAxis:O?NA(NA({},O),{},{ticks:T?x:O.ticks}):void 0,width:f,height:p,offset:h},!!T||g);Gr(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(DA(_),"]")),Array.isArray(_)&&(E=_)}return o.createElement("g",{className:"recharts-cartesian-grid"},o.createElement(zA,{fill:y.fill,fillOpacity:y.fillOpacity,x:y.x,y:y.y,width:y.width,height:y.height,ry:y.ry}),o.createElement(UA,RA({},y,{offset:h,horizontalPoints:A,xAxis:O,yAxis:j})),o.createElement($A,RA({},y,{offset:h,verticalPoints:E,xAxis:O,yAxis:j})),o.createElement(WA,RA({},y,{horizontalPoints:A})),o.createElement(qA,RA({},y,{verticalPoints:E})))}KA.displayName="CartesianGrid";var GA=["type","layout","connectNulls","ref"],YA=["key"];function ZA(t){return(ZA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function JA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function QA(){return QA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},QA.apply(this,arguments)}function tE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function eE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tE(Object(r),!0).forEach(function(e){lE(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tE(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function rE(t){return function(t){if(Array.isArray(t))return nE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return nE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nE(t,e)}(t)||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 nE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function oE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sE(n.key),n)}}function iE(t,e,r){return e=cE(e),function(t,e){if(e&&("object"===ZA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,aE()?Reflect.construct(e,r||[],cE(t).constructor):e.apply(t,r))}function aE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aE=function(){return!!t})()}function cE(t){return(cE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function uE(t,e){return(uE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function lE(t,e,r){return(e=sE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sE(t){var e=function(t,e){if("object"!=ZA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ZA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ZA(e)?e:e+""}var fE=function(){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return lE(t=iE(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),lE(t,"generateSimpleStrokeDasharray",function(t,e){return"".concat(e,"px ").concat(t-e,"px")}),lE(t,"getStrokeDasharray",function(r,n,o){var i=o.reduce(function(t,e){return t+e});if(!i)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,u=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(rE(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(rE(e.repeat(o,a)),rE(l),p).map(function(t){return"".concat(t,"px")}).join(", ")}),lE(t,"id",lr("recharts-line-")),lE(t,"pathRef",function(e){t.mainCurve=e}),lE(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),lE(t,"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uE(t,e)}(e,n.PureComponent),r=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(rE(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(rE(n),rE(r));return n}},{key:"renderDotItem",value:function(e,r){var n;if(o.isValidElement(e))n=o.cloneElement(e,r);else if(B(e))n=e(r);else{var i=r.key,a=JA(r,YA),c=t("recharts-line-dot","boolean"!=typeof e?e.className:"");n=o.createElement(Nx,QA({key:i},a,{className:c}))}return n}}],(i=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,i=r.xAxis,a=r.yAxis,c=r.layout,u=Cr(r.children,Ym);if(!u)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:ub(t.payload,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return o.createElement(Kr,s,u.map(function(t){return o.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:a,layout:c,dataPointFormatter:l})}))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,c=i.points,u=i.dataKey,l=Rr(this.props,!1),s=Rr(a,!0),f=c.map(function(t,r){var n=eE(eE(eE({key:"dot-".concat(r),r:3},l),s),{},{index:r,cx:t.x,cy:t.y,value:t.value,dataKey:u,payload:t.payload,points:c});return e.renderDotItem(a,n)}),p={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return o.createElement(Kr,QA({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,a=i.type,c=i.layout,u=i.connectNulls;i.ref;var l=JA(i,GA),s=eE(eE(eE({},Rr(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:a,layout:c,connectNulls:u});return o.createElement(Rg,QA({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,a=n.strokeDasharray,c=n.isAnimationActive,u=n.animationBegin,l=n.animationDuration,s=n.animationEasing,f=n.animationId,p=n.animateNewValues,h=n.width,y=n.height,d=this.state,v=d.prevPoints,m=d.totalLength;return o.createElement(yx,{begin:u,duration:l,isActive:c,easing:s,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(n){var o=n.t;if(v){var c=v.length/i.length,u=i.map(function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=pr(n.x,t.x),a=pr(n.y,t.y);return eE(eE({},t),{},{x:i(o),y:a(o)})}if(p){var u=pr(2*h,t.x),l=pr(y/2,t.y);return eE(eE({},t),{},{x:u(o),y:l(o)})}return eE(eE({},t),{},{x:t.x,y:t.y})});return r.renderCurveStatically(u,t,e)}var l,s=pr(0,m)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map(function(t){return parseFloat(t)});l=r.getStrokeDasharray(s,m,f)}else l=r.generateSimpleStrokeDasharray(m,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:l})})}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!Bv(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var e,r=this.props,n=r.hide,i=r.dot,a=r.points,c=r.className,u=r.xAxis,l=r.yAxis,s=r.top,f=r.left,p=r.width,h=r.height,y=r.isAnimationActive,d=r.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,m=1===a.length,b=t("recharts-line",c),g=u&&u.allowDataOverflow,w=l&&l.allowDataOverflow,x=g||w,O=ke(d)?this.id:d,j=null!==(e=Rr(i,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=j.r,P=void 0===S?3:S,A=j.strokeWidth,E=void 0===A?2:A,k=(Br(i)?i:{}).clipDot,M=void 0===k||k,T=2*P+E;return o.createElement(Kr,{className:b},g||w?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(O)},o.createElement("rect",{x:g?f:f-p/2,y:w?s:s-h/2,width:g?p:2*p,height:w?h:2*h})),!M&&o.createElement("clipPath",{id:"clipPath-dots-".concat(O)},o.createElement("rect",{x:f-T/2,y:s-T/2,width:p+T,height:h+T}))):null,!m&&this.renderCurve(x,O),this.renderErrorBar(x,O),(m||i)&&this.renderDots(x,M,O),(!y||v)&&mg.renderCallByParent(this.props,a))}}])&&oE(r.prototype,i),a&&oE(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}();lE(fE,"displayName","Line"),lE(fE,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ss.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),lE(fE,"getComposedData",function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return eE({points:u.map(function(t,e){var u=ub(t,a);return"horizontal"===s?{x:Sb({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:ke(u)?null:n.scale(u),value:u,payload:t}:{x:ke(u)?null:r.scale(u),y:Sb({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}}),layout:s},l)});var pE,hE=["layout","type","stroke","connectNulls","isRange","ref"],yE=["key"];function dE(t){return(dE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function mE(){return mE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mE.apply(this,arguments)}function bE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function gE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bE(Object(r),!0).forEach(function(e){PE(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bE(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function wE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,AE(n.key),n)}}function xE(t,e,r){return e=jE(e),function(t,e){if(e&&("object"===dE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,OE()?Reflect.construct(e,r||[],jE(t).constructor):e.apply(t,r))}function OE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(OE=function(){return!!t})()}function jE(t){return(jE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function SE(t,e){return(SE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function PE(t,e,r){return(e=AE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AE(t){var e=function(t,e){if("object"!=dE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dE(e)?e:e+""}var EE=function(){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return PE(t=xE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),PE(t,"id",lr("recharts-area-")),PE(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),B(e)&&e()}),PE(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),B(e)&&e()}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&SE(t,e)}(e,n.PureComponent),r=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],(i=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(i&&!a)return null;var c=this.props,u=c.dot,l=c.points,s=c.dataKey,f=Rr(this.props,!1),p=Rr(u,!0),h=l.map(function(t,r){var n=gE(gE(gE({key:"dot-".concat(r),r:3},f),p),{},{index:r,cx:t.x,cy:t.y,dataKey:s,value:t.value,payload:t.payload,points:l});return e.renderDotItem(u,n)}),y={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return o.createElement(Kr,mE({className:"recharts-area-dots"},y),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,a=n[0].x,c=n[n.length-1].x,u=t*Math.abs(a-c),l=Ov(n.map(function(t){return t.y||0}));return ar(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(Ov(r.map(function(t){return t.y||0})),l)),ar(l)?o.createElement("rect",{x:a<c?a:a-u,y:0,width:u,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,a=n[0].y,c=n[n.length-1].y,u=t*Math.abs(a-c),l=Ov(n.map(function(t){return t.x||0}));return ar(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(Ov(r.map(function(t){return t.x||0})),l)),ar(l)?o.createElement("rect",{x:0,y:a<c?a:a-u,width:l+(i?parseInt("".concat(i),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,a=i.layout,c=i.type,u=i.stroke,l=i.connectNulls,s=i.isRange;i.ref;var f=vE(i,hE);return o.createElement(Kr,{clipPath:r?"url(#clipPath-".concat(n,")"):null},o.createElement(Rg,mE({},Rr(f,!0),{points:t,connectNulls:l,type:c,baseLine:e,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==u&&o.createElement(Rg,mE({},Rr(this.props,!1),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:t})),"none"!==u&&s&&o.createElement(Rg,mE({},Rr(this.props,!1),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,a=n.baseLine,c=n.isAnimationActive,u=n.animationBegin,l=n.animationDuration,s=n.animationEasing,f=n.animationId,p=this.state,h=p.prevPoints,y=p.prevBaseLine;return o.createElement(yx,{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(h){var u,l=h.length/i.length,s=i.map(function(t,e){var r=Math.floor(e*l);if(h[r]){var n=h[r],o=pr(n.x,t.x),i=pr(n.y,t.y);return gE(gE({},t),{},{x:o(c),y:i(c)})}return t});return u=ar(a)&&"number"==typeof a?pr(y,a)(c):ke(a)||nr(a)?pr(y,0)(c):a.map(function(t,e){var r=Math.floor(e*l);if(y[r]){var n=y[r],o=pr(n.x,t.x),i=pr(n.y,t.y);return gE(gE({},t),{},{x:o(c),y:i(c)})}return t}),r.renderAreaStatically(s,u,t,e)}return o.createElement(Kr,null,o.createElement("defs",null,o.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(c))),o.createElement(Kr,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,a,t,e)))})}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return i&&n&&n.length&&(!c&&l>0||!Bv(c,n)||!Bv(u,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var e,r=this.props,n=r.hide,i=r.dot,a=r.points,c=r.className,u=r.top,l=r.left,s=r.xAxis,f=r.yAxis,p=r.width,h=r.height,y=r.isAnimationActive,d=r.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,m=1===a.length,b=t("recharts-area",c),g=s&&s.allowDataOverflow,w=f&&f.allowDataOverflow,x=g||w,O=ke(d)?this.id:d,j=null!==(e=Rr(i,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=j.r,P=void 0===S?3:S,A=j.strokeWidth,E=void 0===A?2:A,k=(Br(i)?i:{}).clipDot,M=void 0===k||k,T=2*P+E;return o.createElement(Kr,{className:b},g||w?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(O)},o.createElement("rect",{x:g?l:l-p/2,y:w?u:u-h/2,width:g?p:2*p,height:w?h:2*h})),!M&&o.createElement("clipPath",{id:"clipPath-dots-".concat(O)},o.createElement("rect",{x:l-T/2,y:u-T/2,width:p+T,height:h+T}))):null,m?null:this.renderArea(x,O),(i||m)&&this.renderDots(x,M,O),(!y||v)&&mg.renderCallByParent(this.props,a))}}])&&wE(r.prototype,i),a&&wE(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}();function kE(t){return(kE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ME(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,NE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function TE(t,e,r){return e=CE(e),function(t,e){if(e&&("object"===kE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_E()?Reflect.construct(e,r||[],CE(t).constructor):e.apply(t,r))}function _E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_E=function(){return!!t})()}function CE(t){return(CE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function DE(t,e){return(DE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function IE(t,e,r){return(e=NE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function NE(t){var e=function(t,e){if("object"!=kE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=kE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kE(e)?e:e+""}function BE(){return BE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},BE.apply(this,arguments)}function RE(e){var r=e.xAxisId,o=wP(),i=xP(),a=bP(r);return null==a?null:n.createElement(TA,BE({},a,{className:t("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:o,height:i},ticksGenerator:function(t){return db(t,!0)}}))}pE=EE,PE(EE,"displayName","Area"),PE(EE,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ss.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),PE(EE,"getBaseValue",function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,c=null!=a?a:i;if(ar(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]}),PE(EE,"getComposedData",function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,h=t.offset,y=r.layout,d=s&&s.length,v=pE.getBaseValue(r,n,o,i),m="horizontal"===y,b=!1,g=p.map(function(t,e){var r;d?r=s[f+e]:(r=ub(t,l),Array.isArray(r)?b=!0:r=[v,r]);var n=null==r[1]||d&&null==ub(t,l);return m?{x:Sb({axis:o,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:i.scale(r[1]),value:r,payload:t}:{x:n?null:o.scale(r[1]),y:Sb({axis:i,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}});return e=d||b?g.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?o.scale(e):null,y:t.y}}):m?i.scale(v):o.scale(v),gE({points:g,baseLine:e,layout:y,isRange:b},h)}),PE(EE,"renderDotItem",function(e,r){var n;if(o.isValidElement(e))n=o.cloneElement(e,r);else if(B(e))n=e(r);else{var i=t("recharts-area-dot","boolean"!=typeof e?e.className:""),a=r.key,c=vE(r,yE);n=o.createElement(Nx,mE({},c,{key:a,className:i}))}return n});var LE=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),TE(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&DE(t,e)}(t,n.Component),ME(t,[{key:"render",value:function(){return n.createElement(RE,this.props)}}])}();function zE(t){return(zE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function FE(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,XE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function UE(t,e,r){return e=WE(e),function(t,e){if(e&&("object"===zE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$E()?Reflect.construct(e,r||[],WE(t).constructor):e.apply(t,r))}function $E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($E=function(){return!!t})()}function WE(t){return(WE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qE(t,e){return(qE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function VE(t,e,r){return(e=XE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XE(t){var e=function(t,e){if("object"!=zE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zE(e)?e:e+""}function HE(){return HE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HE.apply(this,arguments)}IE(LE,"displayName","XAxis"),IE(LE,"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});var KE=function(e){var r=e.yAxisId,o=wP(),i=xP(),a=gP(r);return null==a?null:n.createElement(TA,HE({},a,{className:t("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:o,height:i},ticksGenerator:function(t){return db(t,!0)}}))},GE=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),UE(this,t,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qE(t,e)}(t,n.Component),FE(t,[{key:"render",value:function(){return n.createElement(KE,this.props)}}])}();function YE(t){return function(t){if(Array.isArray(t))return ZE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ZE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZE(t,e)}(t)||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 ZE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}VE(GE,"displayName","YAxis"),VE(GE,"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});var JE=function(t,e,r,n,o){var i=Cr(t,BP),a=Cr(t,KP),c=[].concat(YE(i),YE(a)),u=Cr(t,aA),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce(function(t,e){if(e.props[l]===r&&iS(e.props,"extendDomain")&&ar(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t},f)),u.length){var p="".concat(s,"1"),h="".concat(s,"2");f=u.reduce(function(t,e){if(e.props[l]===r&&iS(e.props,"extendDomain")&&ar(e.props[p])&&ar(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t},f)}return o&&o.length&&(f=o.reduce(function(t,e){return ar(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},f)),f},QE={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0===--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(QE);var tk=new(r(QE.exports)),ek="recharts.syncMouseEvents";function rk(t){return(rk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nk(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ik(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ok(t,e,r){return(e=ik(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ik(t){var e=function(t,e){if("object"!=rk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=rk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==rk(e)?e:e+""}var ak=function(){return nk(function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ok(this,"activeIndex",0),ok(this,"coordinateList",[]),ok(this,"layout","horizontal")},[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])}();function ck(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[Ub(e,r,n,o),Ub(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function uk(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return ck(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=Ub(c,u,l,f),h=Ub(c,u,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function lk(t){return(lk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function fk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sk(Object(r),!0).forEach(function(e){pk(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sk(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function pk(t,e,r){var n;return n=function(t,e){if("object"!=lk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lk(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hk(e){var r,o,i,a=e.element,c=e.tooltipEventType,u=e.isActive,l=e.activeCoordinate,s=e.activePayload,f=e.offset,p=e.activeTooltipIndex,h=e.tooltipAxisBandSize,y=e.layout,d=e.chartName,v=null!==(r=a.props.cursor)&&void 0!==r?r:null===(o=a.type.defaultProps)||void 0===o?void 0:o.cursor;if(!a||!v||!u||!l||"ScatterChart"!==d&&"axis"!==c)return null;var m=Rg;if("ScatterChart"===d)i=l,m=Wx;else if("BarChart"===d)i=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(y,l,f,h),m=Px;else if("radial"===y){var b=ck(l),g=b.cx,w=b.cy,x=b.radius;i={cx:g,cy:w,startAngle:b.startAngle,endAngle:b.endAngle,innerRadius:x,outerRadius:x},m=Ag}else i={points:uk(y,l,f)},m=Rg;var O=fk(fk(fk(fk({stroke:"#ccc",pointerEvents:"none"},f),i),Rr(v,!1)),{},{payload:s,payloadIndex:p,className:t("recharts-tooltip-cursor",v.className)});return n.isValidElement(v)?n.cloneElement(v,O):n.createElement(m,O)}var yk=["item"],dk=["children","className","width","height","style","compact","title","desc"];function vk(t){return(vk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mk(){return mk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mk.apply(this,arguments)}function bk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Ak(t,e)||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 gk(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function wk(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_k(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xk(t,e,r){return e=jk(e),function(t,e){if(e&&("object"===vk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ok()?Reflect.construct(e,r||[],jk(t).constructor):e.apply(t,r))}function Ok(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ok=function(){return!!t})()}function jk(t){return(jk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Sk(t,e){return(Sk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Pk(t){return function(t){if(Array.isArray(t))return Ek(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ak(t)||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 Ak(t,e){if(t){if("string"==typeof t)return Ek(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ek(t,e):void 0}}function Ek(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Mk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kk(Object(r),!0).forEach(function(e){Tk(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kk(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Tk(t,e,r){return(e=_k(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _k(t){var e=function(t,e){if("object"!=vk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vk(e)?e:e+""}var Ck={xAxis:["bottom","top"],yAxis:["left","right"]},Dk={width:"100%",height:"100%"},Ik={x:0,y:0};function Nk(t){return t}var Bk=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce(function(t,e){var r=e.props.data;return r&&r.length?[].concat(Pk(t),Pk(r)):t},[]);return i.length>0?i:t&&t.length&&ar(n)&&ar(o)?t.slice(n,o+1):[]};function Rk(t){return"number"===t?[0,"auto"]:void 0}var Lk=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=Bk(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=hr(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(Pk(o),[Cb(c,l)]):o},[])},zk=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,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!==(e=null==r?void 0:r.length)&&void 0!==e?e: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(or(s-l)!==or(f-s)){var h=[];if(or(f-s)===or(c[1]-c[0])){p=f;var y=s+c[1]-c[0];h[0]=Math.min(y,(y+l)/2),h[1]=Math.max(y,(y+l)/2)}else{p=l;var d=f+c[1]-c[0];h[0]=Math.min(s,(d+s)/2),h[1]=Math.max(s,(d+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[u].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[u].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=Lk(t,e,l,s),p=function(t,e,r,n){var o=e.find(function(t){return t&&t.index===r});if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return Mk(Mk(Mk({},n),Ub(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return Mk(Mk(Mk({},n),Ub(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return Ik}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},Fk=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=hb(l,o);return r.reduce(function(e,r){var h,y=void 0!==r.type.defaultProps?Mk(Mk({},r.type.defaultProps),r.props):r.props,d=y.type,v=y.dataKey,m=y.allowDataOverflow,b=y.allowDuplicatedCategory,g=y.scale,w=y.ticks,x=y.includeHidden,O=y[i];if(e[O])return e;var j,S,P,A=Bk(t.data,{graphicalItems:n.filter(function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===O}),dataStartIndex:c,dataEndIndex:u}),E=A.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&ar(n)&&ar(o))return!0}return!1})(y.domain,m,d)&&(j=Mb(y.domain,null,m),!p||"number"!==d&&"auto"===g||(P=lb(A,v,"category")));var k=Rk(d);
vendor: 31,244 bytes, line 1
1if(!j||0===j.length){var M,T=null!==(M=y.domain)&&void 0!==M?M:k;if(v){if(j=lb(A,v,d),"category"===d&&p){var _=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(j);b&&_?(S=j,j=Dj(0,E)):b||(j=_b(T,j,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(Pk(t),[e])},[]))}else if("category"===d)j=b?j.filter(function(t){return""!==t&&!ke(t)}):_b(T,j,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||ke(e)?t:[].concat(Pk(t),[e])},[]);else if("number"===d){var C=function(t,e,r,n,o){var i=e.map(function(e){return fb(t,e,r,o,n)}).filter(function(t){return!ke(t)});return i&&i.length?i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null}(A,n.filter(function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)}),v,o,l);C&&(j=C)}!p||"number"!==d&&"auto"===g||(P=lb(A,v,"category"))}else j=p?Dj(0,E):a&&a[O]&&a[O].hasStack&&"number"===d?"expand"===f?[0,1]:Ab(a[O].stackGroups,c,u):pb(A,n.filter(function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)}),d,l,!0);if("number"===d)j=JE(s,j,O,o,w),T&&(j=Mb(T,j,m));else if("category"===d&&T){var D=T;j.every(function(t){return D.indexOf(t)>=0})&&(j=D)}}return Mk(Mk({},e),{},Tk({},O,Mk(Mk({},y),{},{axisType:o,domain:j,categoricalDomain:P,duplicateDomain:S,originalDomain:null!==(h=y.domain)&&void 0!==h?h:k,isCategorical:p,layout:l})))},{})},Uk=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Cr(l,o),p={};return f&&f.length?p=Fk(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=Bk(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=hb(l,o),y=-1;return r.reduce(function(t,e){var d,v=(void 0!==e.type.defaultProps?Mk(Mk({},e.type.defaultProps),e.props):e.props)[i],m=Rk("number");return t[v]?t:(y++,h?d=Dj(0,p):a&&a[v]&&a[v].hasStack?(d=Ab(a[v].stackGroups,c,u),d=JE(s,d,v,o)):(d=Mb(m,pb(f,r.filter(function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o}),"number",l),n.defaultProps.allowDataOverflow),d=JE(s,d,v,o)),Mk(Mk({},t),{},Tk({},v,Mk(Mk({axisType:o},n.defaultProps),{},{hide:!0,orientation:Ee(Ck,"".concat(o,".").concat(y%2),null),domain:d,originalDomain:m,isCategorical:h,layout:l}))))},{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},$k=function(t){var e=t.children,r=t.defaultShowTooltip,n=Dr(e,Zj),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},Wk=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},qk=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=Dr(l,Zj),p=Dr(l,$u),h=Object.keys(a).reduce(function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:Mk(Mk({},t),{},Tk({},n,t[n]+r.width))},{left:s.left||0,right:s.right||0}),y=Object.keys(o).reduce(function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:Mk(Mk({},t),{},Tk({},n,Ee(t,"".concat(n))+r.height))},{top:s.top||0,bottom:s.bottom||0}),d=Mk(Mk({},y),h),v=d.bottom;f&&(d.bottom+=f.props.height||Zj.defaultProps.height),p&&e&&(d=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=eb({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,h=u.verticalAlign,y=u.layout;if(("vertical"===y||"horizontal"===y&&"middle"===h)&&"center"!==p&&ar(t[p]))return ab(ab({},t),{},cb({},p,t[p]+(s||0)));if(("horizontal"===y||"vertical"===y&&"center"===p)&&"middle"!==h&&ar(t[h]))return ab(ab({},t),{},cb({},h,t[h]+(f||0)))}return t}(d,0,r,e));var m=c-d.left-d.right,b=u-d.top-d.bottom;return Mk(Mk({brushBottom:v},d),{},{width:Math.max(m,0),height:Math.max(b,0)})},Vk=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},Xk=function(e){var r=e.chartName,i=e.GraphicalChild,a=e.defaultTooltipEventType,c=void 0===a?"axis":a,u=e.validateTooltipEventTypes,l=void 0===u?["axis"]:u,s=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,h=e.defaultProps,y=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,y=Wk(l),d=y.numericAxisName,v=y.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some(function(t){var e=kr(t&&t.type);return e&&e.indexOf("Bar")>=0})}(r),b=[];return r.forEach(function(r,y){var g=Bk(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),w=void 0!==r.type.defaultProps?Mk(Mk({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,j=w["".concat(d,"Id")],S=w["".concat(v,"Id")],P=s.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],o=w["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||Bm();var i=n[o];return Mk(Mk({},t),{},Tk(Tk({},r.axisType,i),"".concat(r.axisType,"Ticks"),db(i)))},{}),A=P[v],E=P["".concat(v,"Ticks")],k=n&&n[j]&&n[j].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?ab(ab({},t.type.defaultProps),t.props):t.props).stackId;if(cr(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[j].stackGroups),M=kr(r.type).indexOf("Bar")>=0,T=Tb(A,E),_=[],C=m&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,u=a.length;c<u;c++)for(var l=o[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var h=l[s[f]],y=h.items,d=h.cateAxisId,v=y.filter(function(t){return kr(t.type).indexOf("Bar")>=0});if(v&&v.length){var m=v[0].type.defaultProps,b=void 0!==m?ab(ab({},m),v[0].props):v[0].props,g=b.barSize,w=b[d];i[w]||(i[w]=[]);var x=ke(g)?e:g;i[w].push({item:v[0],stackList:v.slice(1),barSize:ke(x)?void 0:sr(x,r,0)})}}return i}({barSize:u,stackGroups:n,totalSize:Vk(P,v)});if(M){var D,I,N=ke(O)?h:O,B=null!==(D=null!==(I=Tb(A,E,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;_=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=sr(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,h=i.reduce(function(t,e){return t+e.barSize||0},0);(h+=(c-1)*l)>=n&&(h-=(c-1)*l,l=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var y={offset:((n-h)/2|0)-l,size:0};u=i.reduce(function(t,e){var r={item:e.item,position:{offset:y.offset+y.size+l,size:f?p:e.barSize}},n=[].concat(nb(t),[r]);return y=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:y})}),n},s)}else{var d=sr(r,n,0,!0);n-2*d-(c-1)*l<=0&&(l=0);var v=(n-2*d-(c-1)*l)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;u=i.reduce(function(t,e,r){var n=[].concat(nb(t),[{item:e.item,position:{offset:d+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},s)}return u}({barGap:f,barCategoryGap:p,bandSize:B!==T?B:T,sizeList:C[S],maxBarSize:N}),B!==T&&(_=_.map(function(t){return Mk(Mk({},t),{},{position:Mk(Mk({},t.position),{},{offset:t.position.offset-B/2})})}))}var R,L,z=r&&r.type&&r.type.getComposedData;z&&b.push({props:Mk(Mk({},z(Mk(Mk({},P),{},{displayedData:g,props:t,dataKey:x,item:r,bandSize:T,barPosition:_,offset:o,stackedData:k,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},Tk(Tk(Tk({key:r.key||"item-".concat(y)},d,P[d]),v,P[v]),"animationId",i)),childIndex:(R=r,L=t.children,_r(L).indexOf(R)),item:r})}),b},d=function(t,e){var n=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Ir({props:n}))return null;var u=n.children,l=n.layout,f=n.stackOffset,h=n.data,d=n.reverseStackOrder,v=Wk(l),m=v.numericAxisName,b=v.cateAxisName,g=Cr(u,i),w=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce(function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?ab(ab({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var c=i[r],u=t[c]||{hasStack:!1,stackGroups:{}};if(cr(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[lr("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return ab(ab({},t),{},cb({},c,u))},{});return Object.keys(a).reduce(function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce(function(e,i){var a=c.stackGroups[i];return ab(ab({},e),{},cb({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:Ob(t,a.items,o)}))},{})),ab(ab({},e),{},cb({},i,c))},{})}(h,g,"".concat(m,"Id"),"".concat(b,"Id"),f,d),x=s.reduce(function(t,e){var r="".concat(e.axisType,"Map");return Mk(Mk({},t),{},Tk({},r,Uk(n,Mk(Mk({},e),{},{graphicalItems:g,stackGroups:e.axisType===m&&w,dataStartIndex:o,dataEndIndex:a}))))},{}),O=qk(Mk(Mk({},x),{},{props:n,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(x).forEach(function(t){x[t]=p(n,x[t],O,t.replace("Map",""),r)});var j,S,P=x["".concat(b,"Map")],A=(j=fr(P),{tooltipTicks:S=db(j,!1,!0),orderedTooltipTicks:Rl(S,function(t){return t.coordinate}),tooltipAxis:j,tooltipAxisBandSize:Tb(j,S)}),E=y(n,Mk(Mk({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:g,stackGroups:w,offset:O}));return Mk(Mk({formattedGraphicalItems:E,graphicalItems:g,offset:O,stackGroups:w},A),x)},v=function(){function e(i){var a,c,u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Tk(u=xk(this,e,[i]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Tk(u,"accessibilityManager",new ak),Tk(u,"handleLegendBBoxUpdate",function(t){if(t){var e=u.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;u.setState(Mk({legendBBox:t},d({props:u.props,dataStartIndex:r,dataEndIndex:n,updateId:o},Mk(Mk({},u.state),{},{legendBBox:t}))))}}),Tk(u,"handleReceiveSyncEvent",function(t,e,r){if(u.props.syncId===t){if(r===u.eventEmitterSymbol&&"function"!=typeof u.props.syncMethod)return;u.applySyncEvent(e)}}),Tk(u,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==u.state.dataStartIndex||r!==u.state.dataEndIndex){var n=u.state.updateId;u.setState(function(){return Mk({dataStartIndex:e,dataEndIndex:r},d({props:u.props,dataStartIndex:e,dataEndIndex:r,updateId:n},u.state))}),u.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),Tk(u,"handleMouseEnter",function(t){var e=u.getMouseInfo(t);if(e){var r=Mk(Mk({},e),{},{isTooltipActive:!0});u.setState(r),u.triggerSyncEvent(r);var n=u.props.onMouseEnter;B(n)&&n(r,t)}}),Tk(u,"triggeredAfterMouseMove",function(t){var e=u.getMouseInfo(t),r=e?Mk(Mk({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};u.setState(r),u.triggerSyncEvent(r);var n=u.props.onMouseMove;B(n)&&n(r,t)}),Tk(u,"handleItemMouseEnter",function(t){u.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),Tk(u,"handleItemMouseLeave",function(){u.setState(function(){return{isTooltipActive:!1}})}),Tk(u,"handleMouseMove",function(t){t.persist(),u.throttleTriggeredAfterMouseMove(t)}),Tk(u,"handleMouseLeave",function(t){u.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};u.setState(e),u.triggerSyncEvent(e);var r=u.props.onMouseLeave;B(r)&&r(e,t)}),Tk(u,"handleOuterEvent",function(t){var e,r=function(t){var e=t&&t.type;return e&&Er[e]?Er[e]:null}(t),n=Ee(u.props,"".concat(r));r&&B(n)&&n(null!==(e=/.*touch.*/i.test(r)?u.getMouseInfo(t.changedTouches[0]):u.getMouseInfo(t))&&void 0!==e?e:{},t)}),Tk(u,"handleClick",function(t){var e=u.getMouseInfo(t);if(e){var r=Mk(Mk({},e),{},{isTooltipActive:!0});u.setState(r),u.triggerSyncEvent(r);var n=u.props.onClick;B(n)&&n(r,t)}}),Tk(u,"handleMouseDown",function(t){var e=u.props.onMouseDown;B(e)&&e(u.getMouseInfo(t),t)}),Tk(u,"handleMouseUp",function(t){var e=u.props.onMouseUp;B(e)&&e(u.getMouseInfo(t),t)}),Tk(u,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&u.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),Tk(u,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&u.handleMouseDown(t.changedTouches[0])}),Tk(u,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&u.handleMouseUp(t.changedTouches[0])}),Tk(u,"handleDoubleClick",function(t){var e=u.props.onDoubleClick;B(e)&&e(u.getMouseInfo(t),t)}),Tk(u,"handleContextMenu",function(t){var e=u.props.onContextMenu;B(e)&&e(u.getMouseInfo(t),t)}),Tk(u,"triggerSyncEvent",function(t){void 0!==u.props.syncId&&tk.emit(ek,u.props.syncId,t,u.eventEmitterSymbol)}),Tk(u,"applySyncEvent",function(t){var e=u.props,r=e.layout,n=e.syncMethod,o=u.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)u.setState(Mk({dataStartIndex:i,dataEndIndex:a},d({props:u.props,dataStartIndex:i,dataEndIndex:a,updateId:o},u.state)));else if(void 0!==t.activeTooltipIndex){var c=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=u.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var v=Mk(Mk({},p),{},{x:p.left,y:p.top}),m=Math.min(c,v.x+v.width),b=Math.min(l,v.y+v.height),g=h[s]&&h[s].value,w=Lk(u.state,u.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:m,y:"horizontal"===r?b:h[s].coordinate}:Ik;u.setState(Mk(Mk({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else u.setState(t)}),Tk(u,"renderCursor",function(t){var e,n=u.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,l=n.offset,s=n.activeTooltipIndex,f=n.tooltipAxisBandSize,p=u.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:i,y=u.props.layout,d=t.key||"_recharts-cursor";return o.createElement(hk,{key:d,activeCoordinate:a,activePayload:c,activeTooltipIndex:s,chartName:r,element:t,isActive:h,layout:y,offset:l,tooltipAxisBandSize:f,tooltipEventType:p})}),Tk(u,"renderPolarAxis",function(e,r,o){var i=Ee(e,"type.axisType"),a=Ee(u.state,"".concat(i,"Map")),c=e.type.defaultProps,l=void 0!==c?Mk(Mk({},c),e.props):e.props,s=a&&a[l["".concat(i,"Id")]];return n.cloneElement(e,Mk(Mk({},s),{},{className:t(i,s.className),key:e.key||"".concat(r,"-").concat(o),ticks:db(s,!0)}))}),Tk(u,"renderPolarGrid",function(t){var e=t.props,r=e.radialLines,o=e.polarAngles,i=e.polarRadius,a=u.state,c=a.radiusAxisMap,l=a.angleAxisMap,s=fr(c),f=fr(l),p=f.cx,h=f.cy,y=f.innerRadius,d=f.outerRadius;return n.cloneElement(t,{polarAngles:Array.isArray(o)?o:db(f,!0).map(function(t){return t.coordinate}),polarRadius:Array.isArray(i)?i:db(s,!0).map(function(t){return t.coordinate}),cx:p,cy:h,innerRadius:y,outerRadius:d,key:t.key||"polar-grid",radialLines:r})}),Tk(u,"renderLegend",function(){var t=u.state.formattedGraphicalItems,e=u.props,r=e.children,o=e.width,i=e.height,a=u.props.margin||{},c=o-(a.left||0)-(a.right||0),l=eb({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:f});if(!l)return null;var s=l.item,p=gk(l,yk);return n.cloneElement(s,Mk(Mk({},p),{},{chartWidth:o,chartHeight:i,margin:a,onBBoxUpdate:u.handleLegendBBoxUpdate}))}),Tk(u,"renderTooltip",function(){var t,e=u.props,r=e.children,o=e.accessibilityLayer,i=Dr(r,Os);if(!i)return null;var a=u.state,c=a.isTooltipActive,l=a.activeCoordinate,s=a.activePayload,f=a.activeLabel,p=a.offset,h=null!==(t=i.props.active)&&void 0!==t?t:c;return n.cloneElement(i,{viewBox:Mk(Mk({},p),{},{x:p.left,y:p.top}),active:h,label:f,payload:h?s:[],coordinate:l,accessibilityLayer:o})}),Tk(u,"renderBrush",function(t){var e=u.props,r=e.margin,o=e.data,i=u.state,a=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,s=i.updateId;return n.cloneElement(t,{key:t.key||"_recharts-brush",onChange:mb(u.handleBrushChange,t.props.onChange),data:o,x:ar(t.props.x)?t.props.x:a.left,y:ar(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:ar(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(s)})}),Tk(u,"renderReferenceElement",function(t,e,r){if(!t)return null;var o=u.clipPathId,i=u.state,a=i.xAxisMap,c=i.yAxisMap,l=i.offset,s=t.type.defaultProps||{},f=t.props,p=f.xAxisId,h=void 0===p?s.xAxisId:p,y=f.yAxisId,d=void 0===y?s.yAxisId:y;return n.cloneElement(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[h],yAxis:c[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:o})}),Tk(u,"renderActivePoints",function(t){var r=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,c=[],u=r.props.key,l=void 0!==r.item.type.defaultProps?Mk(Mk({},r.item.type.defaultProps),r.item.props):r.item.props,s=l.activeDot,f=Mk(Mk({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:sb(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Rr(s,!1)),xr(s));return c.push(e.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(i))),o?c.push(e.renderActiveDot(s,Mk(Mk({},f),{},{cx:o.x,cy:o.y}),"".concat(u,"-basePoint-").concat(i))):a&&c.push(null),c}),Tk(u,"renderGraphicChild",function(t,e,r){var o=u.filterFormatItem(t,e,r);if(!o)return null;var i=u.getTooltipEventType(),a=u.state,c=a.isTooltipActive,l=a.tooltipAxis,s=a.activeTooltipIndex,f=a.activeLabel,p=Dr(u.props.children,Os),h=o.props,y=h.points,d=h.isRange,v=h.baseLine,m=void 0!==o.item.type.defaultProps?Mk(Mk({},o.item.type.defaultProps),o.item.props):o.item.props,b=m.activeDot,g=m.hide,w=m.activeBar,x=m.activeShape,O=Boolean(!g&&c&&p&&(b||w||x)),j={};"axis"!==i&&p&&"click"===p.props.trigger?j={onClick:mb(u.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(j={onMouseLeave:mb(u.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:mb(u.handleItemMouseEnter,t.props.onMouseEnter)});var S=n.cloneElement(t,Mk(Mk({},o.props),j));if(O){if(!(s>=0)){var P,A=(null!==(P=u.getItemByXY(u.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:S}).graphicalItem,E=A.item,k=void 0===E?t:E,M=A.childIndex,T=Mk(Mk(Mk({},o.props),j),{},{activeIndex:M});return[n.cloneElement(k,T),null,null]}var _,C;if(l.dataKey&&!l.allowDuplicatedCategory){var D="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());_=hr(y,D,f),C=d&&v&&hr(v,D,f)}else _=null==y?void 0:y[s],C=d&&v&&v[s];if(x||w){var I=void 0!==t.props.activeIndex?t.props.activeIndex:s;return[n.cloneElement(t,Mk(Mk(Mk({},o.props),j),{},{activeIndex:I})),null,null]}if(!ke(_))return[S].concat(Pk(u.renderActivePoints({item:o,activePoint:_,basePoint:C,childIndex:s,isRange:d})))}return d?[S,null,null]:[S,null]}),Tk(u,"renderCustomized",function(t,e,r){return n.cloneElement(t,Mk(Mk({key:"recharts-customized-".concat(r)},u.props),u.state))}),Tk(u,"renderMap",{CartesianGrid:{handler:Nk,once:!0},ReferenceArea:{handler:u.renderReferenceElement},ReferenceLine:{handler:Nk},ReferenceDot:{handler:u.renderReferenceElement},XAxis:{handler:Nk},YAxis:{handler:Nk},Brush:{handler:u.renderBrush,once:!0},Bar:{handler:u.renderGraphicChild},Line:{handler:u.renderGraphicChild},Area:{handler:u.renderGraphicChild},Radar:{handler:u.renderGraphicChild},RadialBar:{handler:u.renderGraphicChild},Scatter:{handler:u.renderGraphicChild},Pie:{handler:u.renderGraphicChild},Funnel:{handler:u.renderGraphicChild},Tooltip:{handler:u.renderCursor,once:!0},PolarGrid:{handler:u.renderPolarGrid,once:!0},PolarAngleAxis:{handler:u.renderPolarAxis},PolarRadiusAxis:{handler:u.renderPolarAxis},Customized:{handler:u.renderCustomized}}),u.clipPathId="".concat(null!==(a=i.id)&&void 0!==a?a:lr("recharts"),"-clip"),u.throttleTriggeredAfterMouseMove=$s(u.triggeredAfterMouseMove,null!==(c=i.throttleDelay)&&void 0!==c?c:1e3/60),u.state={},u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sk(t,e)}(e,n.Component),wk(e,[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=Dr(e,Os);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=Lk(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=Mk(Mk({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}});return null}},{key:"componentDidUpdate",value:function(t){Lr([Dr(t.children,Os)],[Dr(this.props.children,Os)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Dr(this.props.children,Os);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return l.indexOf(e)>=0?e:c}return c}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap,f=this.getTooltipEventType(),p=zk(this.state,this.props.data,this.props.layout,c);if("axis"!==f&&l&&s){var h=fr(l).scale,y=fr(s).scale,d=h&&h.invert?h.invert(i.chartX):null,v=y&&y.invert?y.invert(i.chartY):null;return Mk(Mk({},i),{},{xValue:d,yValue:v},p)}return p?Mk(Mk({},i),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=fr(u);return Vb({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Dr(t,Os),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),Mk(Mk({},xr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){tk.on(ek,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tk.removeListener(ek,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===kr(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,a=e.width;return o.createElement("defs",null,o.createElement("clipPath",{id:t},o.createElement("rect",{x:r,y:n,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=bk(e,2),n=r[0],o=r[1];return Mk(Mk({},t),{},Tk({},n,o.scale))},{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=bk(e,2),n=r[0],o=r[1];return Mk(Mk({},t),{},Tk({},n,o.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=void 0!==u.type.defaultProps?Mk(Mk({},u.type.defaultProps),u.props):u.props,s=kr(u.type);if("Bar"===s){var f=(c.data||[]).find(function(e){return jx(t,e)});if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find(function(e){return Vb(t,e)});if(p)return{graphicalItem:a,payload:p}}else if(aj(a,n)||cj(a,n)||uj(a,n)){var h=pj({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),y=void 0===l.activeIndex?h:l.activeIndex;return{graphicalItem:Mk(Mk({},a),{},{childIndex:y}),payload:uj(a,n)?l.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var e=this;if(!Ir(this))return null;var r,n,i=this.props,a=i.children,c=i.className,u=i.width,l=i.height,s=i.style,f=i.compact,p=i.title,h=i.desc,y=gk(i,dk),d=Rr(y,!1);if(f)return o.createElement(mP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},o.createElement(qr,mk({},d,{width:u,height:l,title:p,desc:h}),this.renderClipPath(),Fr(a,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,d.role=null!==(n=this.props.role)&&void 0!==n?n:"application",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var v=this.parseEventsOfWrapper();return o.createElement(mP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},o.createElement("div",mk({className:t("recharts-wrapper",c),style:Mk({position:"relative",cursor:"default",width:u,height:l},s)},v,{ref:function(t){e.container=t}}),o.createElement(qr,mk({},d,{width:u,height:l,title:p,desc:h,style:Dk}),this.renderClipPath(),Fr(a,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();Tk(v,"displayName",r),Tk(v,"defaultProps",Mk({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Tk(v,"getDerivedStateFromProps",function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=$k(t);return Mk(Mk(Mk({},p),{},{updateId:0},d(Mk(Mk({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!dr(l,e.prevMargin)){var h=$k(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=Mk(Mk({},zk(e,n,c)),{},{updateId:e.updateId+1}),m=Mk(Mk(Mk({},h),y),v);return Mk(Mk(Mk({},m),d(Mk({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!Lr(o,e.prevChildren)){var b,g,w,x,O=Dr(o,Zj),j=O&&null!==(b=null===(g=O.props)||void 0===g?void 0:g.startIndex)&&void 0!==b?b:s,S=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,P=j!==s||S!==f,A=!ke(n)&&!P?e.updateId:e.updateId+1;return Mk(Mk({updateId:A},d(Mk(Mk({props:t},e),{},{updateId:A,dataStartIndex:j,dataEndIndex:S}),e)),{},{prevChildren:o,dataStartIndex:j,dataEndIndex:S})}return null}),Tk(v,"renderActiveDot",function(t,e,r){var i;return i=n.isValidElement(t)?n.cloneElement(t,e):B(t)?t(e):o.createElement(Nx,e),o.createElement(Kr,{className:"recharts-active-dot",key:r},i)});var m=n.forwardRef(function(t,e){return o.createElement(v,mk({},t,{ref:e}))});return m.displayName=v.displayName,m},Hk=Xk({chartName:"LineChart",GraphicalChild:fE,axisComponents:[{axisType:"xAxis",AxisComp:LE},{axisType:"yAxis",AxisComp:GE}],formatAxisMap:GS}),Kk=Xk({chartName:"BarChart",GraphicalChild:$S,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:LE},{axisType:"yAxis",AxisComp:GE}],formatAxisMap:GS}),Gk=Xk({chartName:"PieChart",GraphicalChild:Sj,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:AO},{axisType:"radiusAxis",AxisComp:pO}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,l=sr(t.cx,i,i/2),s=sr(t.cy,a,a/2),f=$b(i,a,r),p=sr(t.innerRadius,f,0),h=sr(t.outerRadius,f,.8*f);return Object.keys(e).reduce(function(t,r){var i,a=e[r],f=a.domain,y=a.reversed;if(ke(a.range))"angleAxis"===n?i=[c,u]:"radiusAxis"===n&&(i=[p,h]),y&&(i=[i[1],i[0]]);else{var d=Rb(i=a.range,2);c=d[0],u=d[1]}var v=bb(a,o),m=v.realScaleType,b=v.scale;b.domain(f).range(i),wb(b);var g=jb(b,Nb(Nb({},a),{},{realScaleType:m})),w=Nb(Nb(Nb({},a),g),{},{range:i,radius:h,realScaleType:m,scale:b,cx:l,cy:s,innerRadius:p,outerRadius:h,startAngle:c,endAngle:u});return Nb(Nb({},t),{},Bb({},r,w))},{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});export{EE as A,Kk as B,KA as C,Hk as L,Ug as P,Gs as R,Os as T,LE as X,GE as Y,$S as a,Gk as b,Sj as c,Ys as d,BP as e,fE as f};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.