PageSourceSearch

https://portal.heyfilo.ai/assets/DashboardPage-HTIn1Q_f.js

js heyfilo.ai collected 2026-10-05 14:28:24 UTC 376,545 bytes, 70 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BIdkve2-.js","assets/index-CDW9g5Hk.css"])))=>i.map(i=>d[i]);
2import{m as qn,n as fe,r as L,R as $,e as ey,g as ty,_ as ry,j as B,P as ny,S as iy,B as ay,X as oy,E as uy,F as Xa,o as Vc,G as cy}from"./index-BIdkve2-.js";import{a as sy}from"./analytics-lRTy7y4u.js";import{T as Yc}from"./trending-up-iuqOebNk.js";import{i as ia,a as ly}from"./value-3LWPH8SZ.js";import{B as fy}from"./bar-chart-3-BiuTGg39.js";function Mp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Mp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function te(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Mp(e))&&(n&&(n+=" "),n+=t);return n}var py=Array.isArray,De=py,hy=typeof qn=="object"&&qn&&qn.Object===Object&&qn,Cp=hy,dy=Cp,vy=typeof self=="object"&&self&&self.Object===Object&&self,yy=dy||vy||Function("return this")(),ot=yy,my=ot,gy=my.Symbol,Rn=gy,Zc=Rn,Ip=Object.prototype,by=Ip.hasOwnProperty,xy=Ip.toString,Gr=Zc?Zc.toStringTag:void 0;function wy(e){var t=by.call(e,Gr),r=e[Gr];try{e[Gr]=void 0;var n=!0}catch{}var i=xy.call(e);return n&&(t?e[Gr]=r:delete e[Gr]),i}var Oy=wy,Sy=Object.prototype,_y=Sy.toString;function Ay(e){return _y.call(e)}var Py=Ay,Jc=Rn,$y=Oy,Ty=Py,jy="[object Null]",Ey="[object Undefined]",Qc=Jc?Jc.toStringTag:void 0;function My(e){return e==null?e===void 0?Ey:jy:Qc&&Qc in Object(e)?$y(e):Ty(e)}var yt=My;function Cy(e){return e!=null&&typeof e=="object"}var mt=Cy,Iy=yt,Dy=mt,Ny="[object Symbol]";function ky(e){return typeof e=="symbol"||Dy(e)&&Iy(e)==Ny}var Cr=ky,Ly=De,By=Cr,Ry=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fy=/^\w*$/;function Uy(e,t){if(Ly(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||By(e)?!0:Fy.test(e)||!Ry.test(e)||t!=null&&e in Object(t)}var Hu=Uy;function Wy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _t=Wy;const Ir=fe(_t);var zy=yt,Gy=_t,Ky="[object AsyncFunction]",Hy="[object Function]",qy="[object GeneratorFunction]",Xy="[object Proxy]";function Vy(e){if(!Gy(e))return!1;var t=zy(e);return t==Hy||t==qy||t==Ky||t==Xy}var qu=Vy;const J=fe(qu);var Yy=ot,Zy=Yy["__core-js_shared__"],Jy=Zy,Va=Jy,es=function(){var e=/[^.]+$/.exec(Va&&Va.keys&&Va.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Qy(e){return!!es&&es in e}var em=Qy,tm=Function.prototype,rm=tm.toString;function nm(e){if(e!=null){try{return rm.call(e)}catch{}try{return e+""}catch{}}return""}var Dp=nm,im=qu,am=em,om=_t,um=Dp,cm=/[\\^$.*+?()[\]{}|]/g,sm=/^\[object .+?Constructor\]$/,lm=Function.prototype,fm=Object.prototype,pm=lm.toString,hm=fm.hasOwnProperty,dm=RegExp("^"+pm.call(hm).replace(cm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vm(e){if(!om(e)||am(e))return!1;var t=im(e)?dm:sm;return t.test(um(e))}var ym=vm;function mm(e,t){return e==null?void 0:e[t]}var gm=mm,bm=ym,xm=gm;function wm(e,t){var r=xm(e,t);return bm(r)?r:void 0}var Kt=wm,Om=Kt,Sm=Om(Object,"create"),aa=Sm,ts=aa;function _m(){this.__data__=ts?ts(null):{},this.size=0}var Am=_m;function Pm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $m=Pm,Tm=aa,jm="__lodash_hash_undefined__",Em=Object.prototype,Mm=Em.hasOwnProperty;function Cm(e){var t=this.__data__;if(Tm){var r=t[e];return r===jm?void 0:r}return Mm.call(t,e)?t[e]:void 0}var Im=Cm,Dm=aa,Nm=Object.prototype,km=Nm.hasOwnProperty;function Lm(e){var t=this.__data__;return Dm?t[e]!==void 0:km.call(t,e)}var Bm=Lm,Rm=aa,Fm="__lodash_hash_undefined__";function Um(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Rm&&t===void 0?Fm:t,this}var Wm=Um,zm=Am,Gm=$m,Km=Im,Hm=Bm,qm=Wm;function Dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Dr.prototype.clear=zm;Dr.prototype.delete=Gm;Dr.prototype.get=Km;Dr.prototype.has=Hm;Dr.prototype.set=qm;var Xm=Dr;function Vm(){this.__data__=[],this.size=0}var Ym=Vm;function Zm(e,t){return e===t||e!==e&&t!==t}var Xu=Zm,Jm=Xu;function Qm(e,t){for(var r=e.length;r--;)if(Jm(e[r][0],t))return r;return-1}var oa=Qm,eg=oa,tg=Array.prototype,rg=tg.splice;function ng(e){var t=this.__data__,r=eg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():rg.call(t,r,1),--this.size,!0}var ig=ng,ag=oa;
vendor: 1,870 bytes, line 2
2function og(e){var t=this.__data__,r=ag(t,e);return r<0?void 0:t[r][1]}var ug=og,cg=oa;function sg(e){return cg(this.__data__,e)>-1}var lg=sg,fg=oa;function pg(e,t){var r=this.__data__,n=fg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var hg=pg,dg=Ym,vg=ig,yg=ug,mg=lg,gg=hg;function Nr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Nr.prototype.clear=dg;Nr.prototype.delete=vg;Nr.prototype.get=yg;Nr.prototype.has=mg;Nr.prototype.set=gg;var ua=Nr,bg=Kt,xg=ot,wg=bg(xg,"Map"),Vu=wg,rs=Xm,Og=ua,Sg=Vu;function _g(){this.size=0,this.__data__={hash:new rs,map:new(Sg||Og),string:new rs}}var Ag=_g;function Pg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var $g=Pg,Tg=$g;function jg(e,t){var r=e.__data__;return Tg(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ca=jg,Eg=ca;function Mg(e){var t=Eg(this,e).delete(e);return this.size-=t?1:0,t}var Cg=Mg,Ig=ca;function Dg(e){return Ig(this,e).get(e)}var Ng=Dg,kg=ca;function Lg(e){return kg(this,e).has(e)}var Bg=Lg,Rg=ca;function Fg(e,t){var r=Rg(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Ug=Fg,Wg=Ag,zg=Cg,Gg=Ng,Kg=Bg,Hg=Ug;function kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}kr.prototype.clear=Wg;kr.prototype.delete=zg;kr.prototype.get=Gg;kr.prototype.has=Kg;kr.prototype.set=Hg;var Yu=kr,Np=Yu,qg="Expected a function";function Zu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qg);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Zu.Cache||Np),r}Zu.Cache=Np;var kp=Zu;const Xg=fe(kp);var Vg=kp,Yg=500;function Zg(e){var t=Vg(e,function(n){return r.size===Yg&&r.clear(),n}
vendor: 6,630 bytes, lines 2-10
2),r=t.cache;return t}var Jg=Zg,Qg=Jg,eb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tb=/\\(\\)?/g,rb=Qg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(eb,function(r,n,i,a){t.push(i?a.replace(tb,"$1"):n||r)}),t}),nb=rb;function ib(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ju=ib,ns=Rn,ab=Ju,ob=De,ub=Cr,is=ns?ns.prototype:void 0,as=is?is.toString:void 0;function Lp(e){if(typeof e=="string")return e;if(ob(e))return ab(e,Lp)+"";if(ub(e))return as?as.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var cb=Lp,sb=cb;function lb(e){return e==null?"":sb(e)}var Bp=lb,fb=De,pb=Hu,hb=nb,db=Bp;function vb(e,t){return fb(e)?e:pb(e,t)?[e]:hb(db(e))}var Rp=vb,yb=Cr;function mb(e){if(typeof e=="string"||yb(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var sa=mb,gb=Rp,bb=sa;function xb(e,t){t=gb(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[bb(t[r++])];return r&&r==n?e:void 0}var Qu=xb,wb=Qu;function Ob(e,t,r){var n=e==null?void 0:wb(e,t);return n===void 0?r:n}var Fp=Ob;const Ke=fe(Fp);function Sb(e){return e==null}var _b=Sb;const Z=fe(_b);var Ab=yt,Pb=De,$b=mt,Tb="[object String]";function jb(e){return typeof e=="string"||!Pb(e)&&$b(e)&&Ab(e)==Tb}var Eb=jb;const Ut=fe(Eb);var Up={exports:{}},ie={};/**
3 * @license React
4 * react-is.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var ec=Symbol.for("react.element"),tc=Symbol.for("react.portal"),la=Symbol.for("react.fragment"),fa=Symbol.for("react.strict_mode"),pa=Symbol.for("react.profiler"),ha=Symbol.for("react.provider"),da=Symbol.for("react.context"),Mb=Symbol.for("react.server_context"),va=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),ga=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"),Cb=Symbol.for("react.offscreen"),Wp;Wp=Symbol.for("react.module.reference");function Xe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ec:switch(e=e.type,e){case la:case pa:case fa:case ya:case ma:return e;default:switch(e=e&&e.$$typeof,e){case Mb:case da:case va:case ba:case ga:case ha:return e;default:return t}}case tc:return t}}}ie.ContextConsumer=da;ie.ContextProvider=ha;ie.Element=ec;ie.ForwardRef=va;ie.Fragment=la;ie.Lazy=ba;ie.Memo=ga;ie.Portal=tc;ie.Profiler=pa;ie.StrictMode=fa;ie.Suspense=ya;ie.SuspenseList=ma;ie.isAsyncMode=function(){return!1};ie.isConcurrentMode=function(){return!1};ie.isContextConsumer=function(e){return Xe(e)===da};ie.isContextProvider=function(e){return Xe(e)===ha};ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ec};ie.isForwardRef=function(e){return Xe(e)===va};ie.isFragment=function(e){return Xe(e)===la};ie.isLazy=function(e){return Xe(e)===ba};ie.isMemo=function(e){return Xe(e)===ga};ie.isPortal=function(e){return Xe(e)===tc};ie.isProfiler=function(e){return Xe(e)===pa};ie.isStrictMode=function(e){return Xe(e)===fa};ie.isSuspense=function(e){return Xe(e)===ya};ie.isSuspenseList=function(e){return Xe(e)===ma};ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===la||e===pa||e===fa||e===ya||e===ma||e===Cb||typeof e=="object"&&e!==null&&(e.$$typeof===ba||e.$$typeof===ga||e.$$typeof===ha||e.$$typeof===da||e.$$typeof===va||e.$$typeof===Wp||e.getModuleId!==void 0)};ie.typeOf=Xe;Up.exports=ie;var Ib=Up.exports,Db=yt,Nb=mt,kb="[object Number]";function Lb(e){return typeof e=="number"||Nb(e)&&Db(e)==kb}var zp=Lb;const Bb=fe(zp);var Rb=zp;function Fb(e){return Rb(e)&&e!=+e}var Ub=Fb;const Fn=fe(Ub);var tt=function(t){return t===0?0:t>0?1:-1},Nt=function(t){return Ut(t)&&t.indexOf("%")===t.length-1},F=function(t){return Bb(t)&&!Fn(t)},Wb=function(t){return Z(t)},Se=function(t){return F(t)||Ut(t)},zb=0,Un=function(t){var r=++zb;return"".concat(t||"").concat(r)},Wt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!F(t)&&!Ut(t))return n;var a;if(Nt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Fn(a)&&(a=n),i&&a>r&&(a=r),a},tr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Gb=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},et=function(t,r){return F(t)&&F(r)?function(n){return t+n*(r-t)}:function(){return r}};function oi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ke(n,t))===r})}var Kb=function(t,r){return F(t)&&F(r)?t-r:Ut(t)&&Ut(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function ar(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}var Hb=["viewBox","children"],qb=["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
10dering","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"],os=["points","pathLength"],Ya={svg:Hb,polygon:os,polyline:os},rc=["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
10Capture","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"],ui=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(L.isValidElement(t)&&(n=t.props),!Ir(n))return null;var i={};return Object.keys(n).forEach(function(a){rc.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Xb=function(t,r,n){return function(i){return t(r,n,i),null}},ci=function(t,r,n){if(!Ir(t)||So(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];rc.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Xb(o,r,n))}),i},Vb=["children"],Yb=["children"];function us(e,t){if(e==null)return{};var r=Zb(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zb(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}var cs={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"},lt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},ss=null,Za=null,nc=function e(t){if(t===ss&&Array.isArray(Za))return Za;var r=[];return L.Children.forEach(t,function(n){Z(n)||(Ib.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Za=r,ss=t,r};function He(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return lt(i)}):n=[lt(t)],nc(e).forEach(function(i){var a=Ke(i,"type.displayName")||Ke(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Be(e,t){var r=He(e,t);return r&&r[0]}var ls=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!F(n)||n<=0||!F(i)||i<=0)},Jb=["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"],Qb=function(t){return t&&t.type&&Ut(t.type)&&Jb.indexOf(t.type)>=0},e0=function(t){return t&&_o(t)==="object"&&"clipDot"in t},t0=function(t,r,n,i){var a,o=(a=Ya==null?void 0:Ya[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!J(t)&&(i&&o.includes(r)||qb.includes(r))||n&&rc.includes(r)},Q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(L.isValidElement(t)&&(i=t.props),!Ir(i))return null;var a={};
10return Object.keys(i).forEach(function(o){var u;t0((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Ao=function e(t,r){if(t===r)return!0;var n=L.Children.count(t);if(n!==L.Children.count(r))return!1;if(n===0)return!0;if(n===1)return fs(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!fs(a,o))return!1}return!0},fs=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=us(n,Vb),o=r.props||{},u=o.children,c=us(o,Yb);return i&&u?ar(a,c)&&Ao(i,u):!i&&!u?ar(a,c):!1}return!1},ps=function(t,r){var n=[],i={};return nc(t).forEach(function(a,o){if(Qb(a))n.push(a);else if(a){var u=lt(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},r0=function(t){var r=t&&t.type;return r&&cs[r]?cs[r]:null},n0=function(t,r){return nc(r).indexOf(t)},i0=["children","width","height","viewBox","className","style","title","desc"];function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Po.apply(this,arguments)}function a0(e,t){if(e==null)return{};var r=o0(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o0(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $o(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=a0(e,i0),f=i||{width:r,height:n,x:0,y:0},l=te("recharts-surface",a);return $.createElement("svg",Po({},Q(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),$.createElement("title",null,u),$.createElement("desc",null,c),t)}var u0=["children","className"];function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},To.apply(this,arguments)}function c0(e,t){if(e==null)return{};var r=s0(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s0(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ve=$.forwardRef(function(e,t){var r=e.children,n=e.className,i=c0(e,u0),a=te("recharts-layer",n);return $.createElement("g",To({className:a},Q(i,!0),{ref:t}),r)}),Bt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function l0(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var f0=l0,p0=f0;function h0(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:p0(e,t,r)}var d0=h0,v0="\\ud800-\\udfff",y0="\\u0300-\\u036f",m0="\\ufe20-\\ufe2f",g0="\\u20d0-\\u20ff",b0=y0+m0+g0,x0="\\ufe0e\\ufe0f",w0="\\u200d",O0=RegExp("["+w0+v0+b0+x0+"]");function S0(e){return O0.test(e)}var Gp=S0;function _0(e){return e.split("")}var A0=_0,Kp="\\ud800-\\udfff",P0="\\u0300-\\u036f",$0="\\ufe20-\\ufe2f",T0="\\u20d0-\\u20ff",j0=P0+$0+T0,E0="\\ufe0e\\ufe0f",M0="["+Kp+"]",jo="["+j0+"]",Eo="\\ud83c[\\udffb-\\udfff]",C0="(?:"+jo+"|"+Eo+")",Hp="[^"+Kp+"]",qp="(?:\\ud83c[\\udde6-\\uddff]){2}",Xp="[\\ud800-\\udbff][\\udc00-\\udfff]",I0="\\u200d",Vp=C0+"?",Yp="["+E0+"]?",D0="(?:"+I0+"(?:"+[Hp,qp,Xp].join("|")+")"+Yp+Vp+")*",N0=Yp+Vp+D0,k0="(?:"+[Hp+jo+"?",jo,qp,Xp,M0].join("|")+")",L0=RegExp(Eo+"(?="+Eo+")|"+k0+N0,"g");function B0(e){return e.match(L0)||[]}var R0=B0,F0=A0,U0=Gp,W0=R0;function z0(e){return U0(e)?W0(e):F0(e)}var G0=z0,K0=d0,H0=Gp,q0=G0,X0=Bp;function V0(e){return function(t){t=X0(t);var r=H0(t)?q0(t):void 0,n=r?r[0]:t.charAt(0),i=r?K0(r,1).join(""):t.slice(1);return n[e]()+i}}var Y0=V0,Z0=Y0,J0=Z0("toUpperCase"),Q0=J0;const xa=fe(Q0);function ue(e){return function(){return e}}const Zp=Math.cos,si=Math.sin,rt=Math.sqrt,li=Math.PI,wa=2*li,Mo=Math.PI,Co=2*Mo,Ct=1e-6,ex=Co-Ct;function Jp(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function tx(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Jp;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class rx{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Jp:tx(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n}
10,${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,p=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>Ct)if(!(Math.abs(l*c-s*f)>Ct)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=i-u,v=c*c+s*s,d=h*h+y*y,b=Math.sqrt(v),x=Math.sqrt(p),w=a*Math.tan((Mo-Math.acos((v+p-d)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>Ct&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*h>f*y)},${this._x1=t+m*c},${this._y1=r+m*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Ct||Math.abs(this._y1-f)>Ct)&&this._append`L${s},${f}`,n&&(p<0&&(p=p%Co+Co),p>ex?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:p>Ct&&this._append`A${n},${n},0,${+(p>=Mo)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function ic(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new rx(t)}function ac(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Qp(e){this._context=e}Qp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Oa(e){return new Qp(e)}function eh(e){return e[0]}function th(e){return e[1]}function rh(e,t){var r=ue(!0),n=null,i=Oa,a=null,o=ic(u);e=typeof e=="function"?e:e===void 0?eh:ue(e),t=typeof t=="function"?t:t===void 0?th:ue(t);function u(c){var s,f=(c=ac(c)).length,l,p=!1,h;for(n==null&&(a=i(h=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(l,s,c),+t(l,s,c));if(h)return a=null,h+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ue(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:ue(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:ue(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function Xn(e,t,r){var n=null,i=ue(!0),a=null,o=Oa,u=null,c=ic(s);e=typeof e=="function"?e:e===void 0?eh:ue(+e),t=typeof t=="function"?t:ue(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?th:ue(+r);function s(l){var p,h,y,v=(l=ac(l)).length,d,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),p=0;p<=v;++p){if(!(p<v&&i(d=l[p],p,l))===b)if(b=!b)h=p,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=p-1;y>=h;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[p]=+e(d,p,l),O[p]=+t(d,p,l),u.point(n?+n(d,p,l):w[p],r?+r(d,p,l):O[p]))}if(x)return u=null,x+""||null}function f(){return rh().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ue(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ue(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ue(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ue(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ue(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class nh{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function nx(e){return new nh(e,!0)}function ix(e){return new nh(e,!1)}const oc={draw(e,t){const r=rt(t/li);e.moveTo(r,0),e.arc(0,0,r,0,wa)}},ax={draw(e,t){const r=rt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},ih=rt(1/3),ox=ih*2,ux={draw(e,t){const r=rt(t/ox),n=r*ih;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},cx={draw(e,t){const r=rt(t),n=-r/2;e.rect(n,n,r,r)}},sx=.8908130915292852,ah=si(li/10)/si(7*li/10),lx=si(wa/10)*ah,fx=-Zp(wa/10)*ah,px={draw(e,t){const r=rt(t*sx),n=lx*r,i=fx*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=wa*a/5,u=Zp(o),c=si(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Ja=rt(3),hx={draw(e,t){const r=-rt(t/(Ja*3));e.moveTo(0,r*2),e.lineTo(-Ja*r,-r),e.lineTo(Ja*r,-r),e.closePath()}},Ue=-.5,We=rt(3)/2,Io=1/rt(12),dx=(Io/2+1)*3,vx={draw(e,t){const r=rt(t/dx),n=r/2,i=r*Io,a=n,o=r*Io+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Ue*n-We*i,We*n+Ue*i),e.lineTo(Ue*a-We*o,We*a+Ue*o),e.lineTo(Ue*u-We*c,We*u+Ue*c),e.lineTo(Ue*n+We*i,Ue*i-We*n),e.lineTo(Ue*a+We*o,Ue*o-We*a),e.lineTo(Ue*u+We*c,Ue*c-We*u),e.closePath()}};function yx(e,t){let r=null,n=ic(i);e=typeof e=="function"?e:ue(e||oc),t=typeof t=="function"?t:ue(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ue(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ue(+a),i):t}
vendor: 6,361 bytes, line 10
10,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function fi(){}function pi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function oh(e){this._context=e}oh.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:pi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mx(e){return new oh(e)}function uh(e){this._context=e}uh.prototype={areaStart:fi,areaEnd:fi,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);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gx(e){return new uh(e)}function ch(e){this._context=e}ch.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bx(e){return new ch(e)}function sh(e){this._context=e}sh.prototype={areaStart:fi,areaEnd:fi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function xx(e){return new sh(e)}function hs(e){return e<0?-1:1}function ds(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(hs(a)+hs(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function vs(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Qa(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function hi(e){this._context=e}hi.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:Qa(this,this._t0,vs(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qa(this,vs(this,r=ds(this,e,t)),r);break;default:Qa(this,this._t0,r=ds(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function lh(e){this._context=new fh(e)}(lh.prototype=Object.create(hi.prototype)).point=function(e,t){hi.prototype.point.call(this,t,e)};function fh(e){this._context=e}fh.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function wx(e){return new hi(e)}function Ox(e){return new lh(e)}function ph(e){this._context=e}ph.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=ys(e),i=ys(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function ys(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Sx(e){return new ph(e)}function Sa(e,t){this._context=e,this._t=t}Sa.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 4,724 bytes, line 10
10default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function _x(e){return new Sa(e,.5)}function Ax(e){return new Sa(e,0)}function Px(e){return new Sa(e,1)}function cr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Do(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function $x(e,t){return e[t]}function Tx(e){const t=[];return t.key=e,t}function jx(){var e=ue([]),t=Do,r=cr,n=$x;function i(a){var o=Array.from(e.apply(this,arguments),Tx),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=ac(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ue(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ue(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Do:typeof a=="function"?a:ue(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??cr,i):r},i}function Ex(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}cr(e,t)}}function Mx(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}cr(e,t)}}function Cx(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,p=f[n-1][1]||0,h=(l-p)/2,y=0;y<u;++y){var v=e[t[y]],d=v[n][1]||0,b=v[n-1][1]||0;h+=d-b}c+=l,s+=h*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,cr(e,t)}}function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}var Ix=["type","size","sizeType"];function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},No.apply(this,arguments)}function ms(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ms(Object(r),!0).forEach(function(n){Dx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ms(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dx(e,t,r){return t=Nx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nx(e){var t=kx(e,"string");return un(t)=="symbol"?t:t+""}function kx(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lx(e,t){if(e==null)return{};var r=Bx(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hh={symbolCircle:oc,symbolCross:ax,symbolDiamond:ux,symbolSquare:cx,symbolStar:px,symbolTriangle:hx,symbolWye:vx},Rx=Math.PI/180,Fx=function(t){var r="symbol".concat(xa(t));return hh[r]||oc},Ux=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Rx;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},Wx=function(t,r){hh["symbol".concat(xa(t))]=r},uc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=Lx(t,Ix),s=gs(gs({},c),{},{type:n,size:a,sizeType:u}),f=function(){var d=Fx(n),b=yx().type(d).size(Ux(a,u,n));return b()},l=s.className,p=s.cx,h=s.cy,y=Q(s,!0);return p===+p&&h===+h&&a===+a?$.createElement("path",No({}
10,y,{className:te("recharts-symbols",l),transform:"translate(".concat(p,", ").concat(h,")"),d:f()})):null};uc.registerSymbol=Wx;function sr(e){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(e)}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ko.apply(this,arguments)}function bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bs(Object(r),!0).forEach(function(n){cn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vh(n.key),n)}}function Hx(e,t,r){return t&&Kx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qx(e,t,r){return t=di(t),Xx(e,dh()?Reflect.construct(t,r||[],di(e).constructor):t.apply(e,r))}function Xx(e,t){if(t&&(sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vx(e)}function Vx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dh=function(){return!!e})()}function di(e){return di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},di(e)}function Yx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lo(e,t)}function Lo(e,t){return Lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lo(e,t)}function cn(e,t,r){return t=vh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vh(e){var t=Zx(e,"string");return sr(t)=="symbol"?t:t+""}function Zx(e,t){if(sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ze=32,cc=function(e){function t(){return Gx(this,t),qx(this,t,arguments)}return Yx(t,e),Hx(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=ze/2,o=ze/6,u=ze/3,c=n.inactive?i:n.color;if(n.type==="plainline")return $.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:ze,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return $.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
11            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
12            H`).concat(ze,"M").concat(2*u,",").concat(a,`
13            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return $.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(ze/8,"h").concat(ze,"v").concat(ze*3/4,"h").concat(-ze,"z"),className:"recharts-legend-icon"});if($.isValidElement(n.legendIcon)){var s=zx({},n);return delete s.legendIcon,$.cloneElement(n.legendIcon,s)}return $.createElement(uc,{fill:c,cx:a,cy:a,size:ze,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:ze,height:ze},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,y){var v=h.formatter||c,d=te(cn(cn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var b=J(h.value)?null:h.value;Bt(!J(h.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 x=h.inactive?s:h.color;return $.createElement("li",ko({className:d,style:l,key:"legend-item-".concat(y)},ci(n.props,h,y)),$.createElement($o,{width:o,height:o,viewBox:f,style:p},n.renderIcon(h)),$.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,h,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return $.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(L.PureComponent);cn(cc,"displayName","Legend");cn(cc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Jx=ua;function Qx(){this.__data__=new Jx,this.size=0}var ew=Qx;function tw(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var rw=tw;function nw(e){return this.__data__.get(e)}var iw=nw;function aw(e){return this.__data__.has(e)}var ow=aw,uw=ua,cw=Vu,sw=Yu,lw=200;function fw(e,t){var r=this.__data__;if(r instanceof uw){var n=r.__data__;if(!cw||n.length<lw-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new sw(n)}return r.set(e,t),this.size=r.size,this}var pw=fw,hw=ua,dw=ew,vw=rw,yw=iw,mw=ow,gw=pw;function Lr(e){var t=this.__data__=new hw(e);this.size=t.size}Lr.prototype.clear=dw;Lr.prototype.delete=vw;Lr.prototype.get=yw;Lr.prototype.has=mw;Lr.prototype.set=gw;var yh=Lr,bw="__lodash_hash_undefined__";function xw(e){return this.__data__.set(e,bw),this}var ww=xw;function Ow(e){return this.__data__.has(e)}var Sw=Ow,_w=Yu,Aw=ww,Pw=Sw;function vi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new _w;++t<r;)this.add(e[t])}vi.prototype.add=vi.prototype.push=Aw;vi.prototype.has=Pw;var mh=vi;function $w(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var gh=$w;function Tw(e,t){return e.has(t)}
vendor: 6,894 bytes, line 13
13var bh=Tw,jw=mh,Ew=gh,Mw=bh,Cw=1,Iw=2;function Dw(e,t,r,n,i,a){var o=r&Cw,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var l=-1,p=!0,h=r&Iw?new jw:void 0;for(a.set(e,t),a.set(t,e);++l<u;){var y=e[l],v=t[l];if(n)var d=o?n(v,y,l,t,e,a):n(y,v,l,e,t,a);if(d!==void 0){if(d)continue;p=!1;break}if(h){if(!Ew(t,function(b,x){if(!Mw(h,x)&&(y===b||i(y,b,r,n,a)))return h.push(x)})){p=!1;break}}else if(!(y===v||i(y,v,r,n,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var xh=Dw,Nw=ot,kw=Nw.Uint8Array,Lw=kw;function Bw(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var Rw=Bw;function Fw(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var sc=Fw,xs=Rn,ws=Lw,Uw=Xu,Ww=xh,zw=Rw,Gw=sc,Kw=1,Hw=2,qw="[object Boolean]",Xw="[object Date]",Vw="[object Error]",Yw="[object Map]",Zw="[object Number]",Jw="[object RegExp]",Qw="[object Set]",eO="[object String]",tO="[object Symbol]",rO="[object ArrayBuffer]",nO="[object DataView]",Os=xs?xs.prototype:void 0,eo=Os?Os.valueOf:void 0;function iO(e,t,r,n,i,a,o){switch(r){case nO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rO:return!(e.byteLength!=t.byteLength||!a(new ws(e),new ws(t)));case qw:case Xw:case Zw:return Uw(+e,+t);case Vw:return e.name==t.name&&e.message==t.message;case Jw:case eO:return e==t+"";case Yw:var u=zw;case Qw:var c=n&Kw;if(u||(u=Gw),e.size!=t.size&&!c)return!1;var s=o.get(e);if(s)return s==t;n|=Hw,o.set(e,t);var f=Ww(u(e),u(t),n,i,a,o);return o.delete(e),f;case tO:if(eo)return eo.call(e)==eo.call(t)}return!1}var aO=iO;function oO(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var wh=oO,uO=wh,cO=De;function sO(e,t,r){var n=t(e);return cO(e)?n:uO(n,r(e))}var lO=sO;function fO(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var pO=fO;function hO(){return[]}var dO=hO,vO=pO,yO=dO,mO=Object.prototype,gO=mO.propertyIsEnumerable,Ss=Object.getOwnPropertySymbols,bO=Ss?function(e){return e==null?[]:(e=Object(e),vO(Ss(e),function(t){return gO.call(e,t)}))}:yO,xO=bO;function wO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var OO=wO,SO=yt,_O=mt,AO="[object Arguments]";function PO(e){return _O(e)&&SO(e)==AO}var $O=PO,_s=$O,TO=mt,Oh=Object.prototype,jO=Oh.hasOwnProperty,EO=Oh.propertyIsEnumerable,MO=_s(function(){return arguments}())?_s:function(e){return TO(e)&&jO.call(e,"callee")&&!EO.call(e,"callee")},lc=MO,yi={exports:{}};function CO(){return!1}var IO=CO;yi.exports;(function(e,t){var r=ot,n=IO,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(yi,yi.exports);var Sh=yi.exports,DO=9007199254740991,NO=/^(?:0|[1-9]\d*)$/;function kO(e,t){var r=typeof e;return t=t??DO,!!t&&(r=="number"||r!="symbol"&&NO.test(e))&&e>-1&&e%1==0&&e<t}var fc=kO,LO=9007199254740991;function BO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=LO}var pc=BO,RO=yt,FO=pc,UO=mt,WO="[object Arguments]",zO="[object Array]",GO="[object Boolean]",KO="[object Date]",HO="[object Error]",qO="[object Function]",XO="[object Map]",VO="[object Number]",YO="[object Object]",ZO="[object RegExp]",JO="[object Set]",QO="[object String]",e1="[object WeakMap]",t1="[object ArrayBuffer]",r1="[object DataView]",n1="[object Float32Array]",i1="[object Float64Array]",a1="[object Int8Array]",o1="[object Int16Array]",u1="[object Int32Array]",c1="[object Uint8Array]",s1="[object Uint8ClampedArray]",l1="[object Uint16Array]",f1="[object Uint32Array]",se={};se[n1]=se[i1]=se[a1]=se[o1]=se[u1]=se[c1]=se[s1]=se[l1]=se[f1]=!0;se[WO]=se[zO]=se[t1]=se[GO]=se[r1]=se[KO]=se[HO]=se[qO]=se[XO]=se[VO]=se[YO]=se[ZO]=se[JO]=se[QO]=se[e1]=!1;function p1(e){return UO(e)&&FO(e.length)&&!!se[RO(e)]}var h1=p1;function d1(e){return function(t){return e(t)}}var _h=d1,mi={exports:{}};mi.exports;(function(e,t){var r=Cp,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(mi,mi.exports);var v1=mi.exports,y1=h1,m1=_h,As=v1,Ps=As&&As.isTypedArray,g1=Ps?m1(Ps):y1,Ah=g1,b1=OO,x1=lc,w1=De,O1=Sh,S1=fc,_1=Ah,A1=Object.prototype,P1=A1.hasOwnProperty;function $1(e,t){var r=w1(e),n=!r&&x1(e),i=!r&&!n&&O1(e),a=!r&&!n&&!i&&_1(e),o=r||n||i||a,u=o?b1(e.length,String):[],c=u.length;for(var s in e)(t||P1.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||S1(s,c)))&&u.push(s);return u}var T1=$1,j1=Object.prototype;function E1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||j1;return e===r}var M1=E1;function C1(e,t){return function(r){return e(t(r))}}var Ph=C1,I1=Ph,D1=I1(Object.keys,Object),N1=D1,k1=M1,L1=N1,B1=Object.prototype,R1=B1.hasOwnProperty;function F1(e){if(!k1(e))return L1(e);var t=[];for(var r in Object(e))R1.call(e,r)&&r!="constructor"&&t.push(r);return t}var U1=F1,W1=qu,z1=pc;function G1(e){return e!=null&&z1(e.length)&&!W1(e)}var _a=G1,K1=T1,H1=U1,q1=_a;function X1(e){return q1(e)?K1(e):H1(e)}var hc=X1,V1=lO,Y1=xO,Z1=hc;function J1(e){return V1(e,Z1,Y1)}var Q1=J1,$s=Q1,eS=1,tS=Object.prototype,rS=tS.hasOwnProperty;function nS(e,t,r,n,i,a){var o=r&eS,u=$s(e),c=u.length,s=$s(t),f=s.length;if(c!=f&&!o)return!1;for(var l=c;l--;){var p=u[l];if(!(o?p in t:rS.call(t,p)))return!1}var h=a.get(e),y=a.get(t);if(h&&y)return h==t&&y==e;var v=!0;a.set(e,t),a.set(t,e);for(var d=o;++l<c;){p=u[l];var b=e[p],x=t[p];if(n)var w=o?n(x,b,p,t,e,a):n(b,x,p,e,t,a);if(!(w===void 0?b===x||i(b,x,r,n,a):w)){v=!1;break}d||(d=p=="constructor")}if(v&&!d){var O=e.constructor,m=t.constructor;O!=m&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof m=="function"&&m instanceof m)&&(v=!1)}return a.delete(e),a.delete(t),v}var iS=nS,aS=Kt,oS=ot,uS=aS(oS,"DataView"),cS=uS,sS=Kt,lS=ot,fS=sS(lS,"Promise"),pS=fS,hS=Kt,dS=ot,vS=hS(dS,"Set"),$h=vS,yS=Kt,mS=ot,gS=yS(mS,"WeakMap"),bS=gS,Bo=cS,Ro=Vu,Fo=pS,Uo=$h,Wo=bS,Th=yt,Br=Dp,Ts="[object Map]",xS="[object Object]",js="[object Promise]",Es="[object Set]",Ms="[object WeakMap]",Cs="[object DataView]",wS=Br(Bo),OS=Br(Ro),SS=Br(Fo),_S=Br(Uo),AS=Br(Wo),It=Th;(Bo&&It(new Bo(new ArrayBuffer(1)))!=Cs||Ro&&It(new Ro)!=Ts||Fo&&It(Fo.resolve())!=js||Uo&&It(new Uo)!=Es||Wo&&It(new Wo)!=Ms)&&(It=function(e){var t=Th(e),r=t==xS?e.constructor:void 0,n=r?Br(r):"";if(n)switch(n){case wS:return Cs;case OS:return Ts;case SS:return js;case _S:return Es;case AS:return Ms}return t});var PS=It,to=yh,$S=xh,TS=aO,jS=iS,Is=PS,Ds=De,Ns=Sh,ES=Ah,MS=1,ks="[object Arguments]",Ls="[object Array]",Vn="[object Object]",CS=Object.prototype,Bs=CS.hasOwnProperty;function IS(e,t,r,n,i,a){var o=Ds(e),u=Ds(t),c=o?Ls:Is(e),s=u?Ls:Is(t);c=c==ks?Vn:c,s=s==ks?Vn:s;var f=c==Vn,l=s==Vn,p=c==s;
vendor: 4,103 bytes, line 13
13if(p&&Ns(e)){if(!Ns(t))return!1;o=!0,f=!1}if(p&&!f)return a||(a=new to),o||ES(e)?$S(e,t,r,n,i,a):TS(e,t,c,r,n,i,a);if(!(r&MS)){var h=f&&Bs.call(e,"__wrapped__"),y=l&&Bs.call(t,"__wrapped__");if(h||y){var v=h?e.value():e,d=y?t.value():t;return a||(a=new to),i(v,d,r,n,a)}}return p?(a||(a=new to),jS(e,t,r,n,i,a)):!1}var DS=IS,NS=DS,Rs=mt;function jh(e,t,r,n,i){return e===t?!0:e==null||t==null||!Rs(e)&&!Rs(t)?e!==e&&t!==t:NS(e,t,r,n,jh,i)}var dc=jh,kS=yh,LS=dc,BS=1,RS=2;function FS(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var u=r[i];if(o&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=r[i];var c=u[0],s=e[c],f=u[1];if(o&&u[2]){if(s===void 0&&!(c in e))return!1}else{var l=new kS;if(n)var p=n(s,f,c,e,t,l);if(!(p===void 0?LS(f,s,BS|RS,n,l):p))return!1}}return!0}var US=FS,WS=_t;function zS(e){return e===e&&!WS(e)}var Eh=zS,GS=Eh,KS=hc;function HS(e){for(var t=KS(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,GS(i)]}return t}var qS=HS;function XS(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Mh=XS,VS=US,YS=qS,ZS=Mh;function JS(e){var t=YS(e);return t.length==1&&t[0][2]?ZS(t[0][0],t[0][1]):function(r){return r===e||VS(r,e,t)}}var QS=JS;function e_(e,t){return e!=null&&t in Object(e)}var t_=e_,r_=Rp,n_=lc,i_=De,a_=fc,o_=pc,u_=sa;function c_(e,t,r){t=r_(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=u_(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&o_(i)&&a_(o,i)&&(i_(e)||n_(e)))}var s_=c_,l_=t_,f_=s_;function p_(e,t){return e!=null&&f_(e,t,l_)}var h_=p_,d_=dc,v_=Fp,y_=h_,m_=Hu,g_=Eh,b_=Mh,x_=sa,w_=1,O_=2;function S_(e,t){return m_(e)&&g_(t)?b_(x_(e),t):function(r){var n=v_(r,e);return n===void 0&&n===t?y_(r,e):d_(t,n,w_|O_)}}var __=S_;function A_(e){return e}var Rr=A_;function P_(e){return function(t){return t==null?void 0:t[e]}}var $_=P_,T_=Qu;function j_(e){return function(t){return T_(t,e)}}var E_=j_,M_=$_,C_=E_,I_=Hu,D_=sa;function N_(e){return I_(e)?M_(D_(e)):C_(e)}var k_=N_,L_=QS,B_=__,R_=Rr,F_=De,U_=k_;function W_(e){return typeof e=="function"?e:e==null?R_:typeof e=="object"?F_(e)?B_(e[0],e[1]):L_(e):U_(e)}var Fr=W_;function z_(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var G_=z_;function K_(e){return e!==e}var H_=K_;function q_(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var X_=q_,V_=G_,Y_=H_,Z_=X_;function J_(e,t,r){return t===t?Z_(e,t,r):V_(e,Y_,r)}var Q_=J_,eA=Q_;function tA(e,t){var r=e==null?0:e.length;return!!r&&eA(e,t,0)>-1}var rA=tA;function nA(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var iA=nA;function aA(){}var oA=aA,ro=$h,uA=oA,cA=sc,sA=1/0,lA=ro&&1/cA(new ro([,-0]))[1]==sA?function(e){return new ro(e)}:uA,fA=lA,pA=mh,hA=rA,dA=iA,vA=bh,yA=fA,mA=sc,gA=200;function bA(e,t,r){var n=-1,i=hA,a=e.length,o=!0,u=[],c=u;if(r)o=!1,i=dA;else if(a>=gA){var s=t?null:yA(e);if(s)return mA(s);o=!1,i=vA,c=new pA}else c=t?[]:u;e:for(;++n<a;){var f=e[n],l=t?t(f):f;if(f=r||f!==0?f:0,o&&l===l){for(var p=c.length;p--;)if(c[p]===l)continue e;t&&c.push(l),u.push(f)}else i(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u}var xA=bA,wA=Fr,OA=xA;function SA(e,t){return e&&e.length?OA(e,wA(t)):[]}var _A=SA;const Fs=fe(_A);function Ch(e,t,r){return t===!0?Fs(e,r):J(t)?Fs(e,t):e}function lr(e){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lr(e)}var AA=["ref"];function Us(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Us(Object(r),!0).forEach(function(n){Aa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Us(Object(r)).forEac
vendor: 4,229 bytes, line 13
13h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ws(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dh(n.key),n)}}function $A(e,t,r){return t&&Ws(e.prototype,t),r&&Ws(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TA(e,t,r){return t=gi(t),jA(e,Ih()?Reflect.construct(t,r||[],gi(e).constructor):t.apply(e,r))}function jA(e,t){if(t&&(lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EA(e)}function EA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ih(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ih=function(){return!!e})()}function gi(e){return gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gi(e)}function MA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zo(e,t)}function zo(e,t){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zo(e,t)}function Aa(e,t,r){return t=Dh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dh(e){var t=CA(e,"string");return lr(t)=="symbol"?t:t+""}function CA(e,t){if(lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function IA(e,t){if(e==null)return{};var r=DA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function NA(e){return e.value}function kA(e,t){if($.isValidElement(e))return $.cloneElement(e,t);if(typeof e=="function")return $.createElement(e,t);t.ref;var r=IA(t,AA);return $.createElement(cc,r)}var zs=1,or=function(e){function t(){var r;PA(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=TA(this,t,[].concat(i)),Aa(r,"lastBoundingBox",{width:-1,height:-1}),r}return MA(t,e),$A(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>zs||Math.abs(i.height-this.lastBoundingBox.height)>zs)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ut({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,p;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();l={left:((s||0)-h.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapsh
13ot();p={top:((f||0)-y.height)/2}}else p=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return ut(ut({},l),p)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=ut(ut({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return $.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(h){n.wrapperNode=h}},kA(a,ut(ut({},this.props),{},{payload:Ch(f,s,NA)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ut(ut({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&F(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(L.PureComponent);Aa(or,"displayName","Legend");Aa(or,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Gs=Rn,LA=lc,BA=De,Ks=Gs?Gs.isConcatSpreadable:void 0;function RA(e){return BA(e)||LA(e)||!!(Ks&&e&&e[Ks])}var FA=RA,UA=wh,WA=FA;function Nh(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=WA),i||(i=[]);++a<o;){var u=e[a];t>0&&r(u)?t>1?Nh(u,t-1,r,n,i):UA(i,u):n||(i[i.length]=u)}return i}var kh=Nh;function zA(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),u=o.length;u--;){var c=o[e?u:++i];if(r(a[c],c,a)===!1)break}return t}}var GA=zA,KA=GA,HA=KA(),qA=HA,XA=qA,VA=hc;function YA(e,t){return e&&XA(e,t,VA)}var Lh=YA,ZA=_a;function JA(e,t){return function(r,n){if(r==null)return r;if(!ZA(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var QA=JA,eP=Lh,tP=QA,rP=tP(eP),vc=rP,nP=vc,iP=_a;function aP(e,t){var r=-1,n=iP(e)?Array(e.length):[];return nP(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var Bh=aP;function oP(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var uP=oP,Hs=Cr;function cP(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=Hs(e),o=t!==void 0,u=t===null,c=t===t,s=Hs(t);if(!u&&!s&&!a&&e>t||a&&o&&c&&!u&&!s||n&&o&&c||!r&&c||!i)return 1;if(!n&&!a&&!s&&e<t||s&&r&&i&&!n&&!a||u&&r&&i||!o&&i||!c)return-1}return 0}var sP=cP,lP=sP;function fP(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,u=r.length;++n<o;){var c=lP(i[n],a[n]);if(c){if(n>=u)return c;var s=r[n];return c*(s=="desc"?-1:1)}}return e.index-t.index}var pP=fP,no=Ju,hP=Qu,dP=Fr,vP=Bh,yP=uP,mP=_h,gP=pP,bP=Rr,xP=De;function wP(e,t,r){t.length?t=no(t,function(a){return xP(a)?function(o){return hP(o,a.length===1?a[0]:a)}:a}):t=[bP];var n=-1;t=no(t,mP(dP));var i=vP(e,function(a,o,u){var c=no(t,function(s){return s(a)});return{criteria:c,index:++n,value:a}});return yP(i,function(a,o){return gP(a,o,r)})}var OP=wP;function SP(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var _P=SP,AP=_P,qs=Math.max;function PP(e,t,r){return t=qs(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=qs(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(o),AP(e,this,u)}}var $P=PP;function TP(e){return function(){return e}}var jP=TP,EP=Kt,MP=function(){try{var e=EP(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Rh=MP,CP=jP,Xs=Rh,IP=Rr,DP=Xs?function(e,t){return Xs(e,"toString",{configurable:!0,enumerable:!1,value:CP(t),writable:!0})}:IP,NP=DP,kP=800,LP=16,BP=Date.now;function RP(e){var t=0,r=0;return function(){var n=BP(),i=LP-(n-r);if(r=n,i>0){if(++t>=kP)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var FP=RP,UP=NP,WP=FP,zP=WP(UP),GP=zP,KP=Rr,HP=$P,qP=GP;function XP(e,t){return qP(HP(e,t,KP),e+"")}var VP=XP,YP=Xu,ZP=_a,JP=fc,QP=_t;function e$(e,t,r){if(!QP(r))return!1;var n=typeof t;return(n=="number"?ZP(r)&&JP(t,r.length):n=="string"&&t in r)?YP(r[t],e):!1}var Pa=e$,t$=kh,r$=OP,n$=VP,Vs=Pa,i$=n$(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Vs(e,t[0],t[1])?t=[]:r>2&&Vs(t[0],t[1],t[2])&&(t=[t[0]]),r$(e,t$(t,1),[])}),a$=i$;const yc=fe(a$);function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 14,882 bytes, lines 13-14
13for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Go.apply(this,arguments)}function o$(e,t){return l$(e)||s$(e,t)||c$(e,t)||u$()}function u$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c$(e,t){if(e){if(typeof e=="string")return Ys(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ys(e,t)}}function Ys(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function l$(e){if(Array.isArray(e))return e}function Zs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function io(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zs(Object(r),!0).forEach(function(n){f$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f$(e,t,r){return t=p$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p$(e){var t=h$(e,"string");return sn(t)=="symbol"?t:t+""}function h$(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e){return Array.isArray(e)&&Se(e[0])&&Se(e[1])?e.join(" ~ "):e}var v$=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,p=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,v=t.label,d=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var P={padding:0,margin:0},D=(p?yc(f,p):f).map(function(M,E){if(M.type==="none")return null;var I=io({display:"block",paddingTop:4,paddingBottom:4,color:M.color||"#000"},u),N=M.formatter||l||d$,R=M.value,U=M.name,K=R,q=U;if(N&&K!=null&&q!=null){var z=N(R,U,M,E,f);if(Array.isArray(z)){var X=o$(z,2);K=X[0],q=X[1]}else K=z}return $.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(E),style:I},Se(q)?$.createElement("span",{className:"recharts-tooltip-item-name"},q):null,Se(q)?$.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,$.createElement("span",{className:"recharts-tooltip-item-value"},K),$.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return $.createElement("ul",{className:"recharts-tooltip-item-list",style:P},D)}return null},O=io({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=io({margin:0},s),g=!Z(v),S=g?v:"",_=te("recharts-default-tooltip",h),A=te("recharts-tooltip-label",y);g&&d&&f!==void 0&&f!==null&&(S=d(v,f));var C=x?{role:"status","aria-live":"assertive"}:{};return $.createElement("div",Go({className:_,style:O},C),$.createElement("p",{className:A,style:m},$.isValidElement(S)?S:"".concat(S)),w())};function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function Yn(e,t,r){return t=y$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y$(e){var t=m$(e,"string");return ln(t)=="symbol"?t:t+""}function m$(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kr="recharts-tooltip-wrapper",g$={visibility:"hidden"};function b$(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(Kr,Yn(Yn(Yn(Yn({},"".concat(Kr,"-right"),F(r)&&t&&F(t.x)&&r>=t.x),"".concat(Kr,"-left"),F(r)&&t&&F(t.x)&&r<t.x),"".concat(Kr,"-bottom"),F(n)&&t&&F(t.y)&&n>=t.y),"".concat(Kr,"-top"),F(n)&&t&&F(t.y)&&n<t.y))}function Js(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&F(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var p=f,h=c[n];return p<h?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,v=c[n]+s;return y>v?Math.max(f,c[n]):Math.max(l,c[n])}function x$(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function w$(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=Js({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=Js({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=x$({translateX:f,translateY:l,useTranslate3d:u})):s=g$,{cssProperties:s,cssClasses:b$({translateX:f,translateY:l,coordinate:r})}}function fr(e){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(e)}function Qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function el(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qs(Object(r),!0).forEach(function(n){Ho(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Uh(n.key),n)}}function _$(e,t,r){return t&&S$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function A$(e,t,r){return t=bi(t),P$(e,Fh()?Reflect.construct(t,r||[],bi(e).constructor):t.apply(e,r))}function P$(e,t){if(t&&(fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $$(e)}function $$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fh=function(){return!!e})()}function bi(e){return bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bi(e)}function T$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ko(e,t)}function Ko(e,t){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ko(e,t)}function Ho(e,t,r){return t=Uh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uh(e){var t=j$(e,"string");return fr(t)=="symbol"?t:t+""}function j$(e,t){if(fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var tl=1,E$=function(e){function t(){var r;O$(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=A$(this,t,[].concat(i)),Ho(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ho(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return T$(t,e),_$(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>tl||Math.abs(n.height-this.state.lastBoundingBox.height)>tl)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,p=i.isAnimationActive,h=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=w$({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:b}),O=w.cssClasses,m=w.cssProperties,g=el(el({transition:p&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return $.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(_){n.wrapperNode=_}},s)}}])}(L.PureComponent),M$=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ur={isSsr:M$()};function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rl(Object(r),!0).forEach(function(n){mc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zh(n.key),n)}}function D$(e,t,r){return t&&I$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N$(e,t,r){return t=xi(t),k$(e,Wh()?Reflect.construct(t,r||[],xi(e).constructor):t.apply(e,r))}function k$(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L$(e)}function L$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wh=function(){return!!e})()}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xi(e)}function B$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qo(e,t)}function qo(e,t){return qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qo(e,t)}function mc(e,t,r){return t=zh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zh(e){var t=R$(e,"string");return pr(t)=="symbol"?t:t+""}function R$(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function F$(e){return e.dataKey}function U$(e,t){return $.isValidElement(e)?$.cloneElement(e,t):typeof e=="function"?$.createElement(e,t):$.createElement(v$,t)}var Ze=function(e){function t(){return C$(this,t),N$(this,t,arguments)}return B$(t,e),D$(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,p=i.isAnimationActive,h=i.offset,y=i.payload,v=i.payloadUniqBy,d=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=Ch(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),v,F$));var g=m.length>0;return $.createElement(E$,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:p,active:a,coordinate:f,hasPayload:g,offset:h,position:d,reverseDirection:b,useTranslate3d:x,viewB
14ox:w,wrapperStyle:O},U$(s,nl(nl({},this.props),{},{payload:m})))}}])}(L.PureComponent);mc(Ze,"displayName","Tooltip");mc(Ze,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ur.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 W$=ot,z$=function(){return W$.Date.now()},G$=z$,K$=/\s/;function H$(e){for(var t=e.length;t--&&K$.test(e.charAt(t)););return t}var q$=H$,X$=q$,V$=/^\s+/;function Y$(e){return e&&e.slice(0,X$(e)+1).replace(V$,"")}var Z$=Y$,J$=Z$,il=_t,Q$=Cr,al=NaN,eT=/^[-+]0x[0-9a-f]+$/i,tT=/^0b[01]+$/i,rT=/^0o[0-7]+$/i,nT=parseInt;function iT(e){if(typeof e=="number")return e;if(Q$(e))return al;if(il(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=il(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=J$(e);var r=tT.test(e);return r||rT.test(e)?nT(e.slice(2),r?2:8):eT.test(e)?al:+e}var Gh=iT,aT=_t,ao=G$,ol=Gh,oT="Expected a function",uT=Math.max,cT=Math.min;function sT(e,t,r){var n,i,a,o,u,c,s=0,f=!1,l=!1,p=!0;if(typeof e!="function")throw new TypeError(oT);t=ol(t)||0,aT(r)&&(f=!!r.leading,l="maxWait"in r,a=l?uT(ol(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function h(g){var S=n,_=i;return n=i=void 0,s=g,o=e.apply(_,S),o}function y(g){return s=g,u=setTimeout(b,t),f?h(g):o}function v(g){var S=g-c,_=g-s,A=t-S;return l?cT(A,a-_):A}function d(g){var S=g-c,_=g-s;return c===void 0||S>=t||S<0||l&&_>=a}function b(){var g=ao();if(d(g))return x(g);u=setTimeout(b,v(g))}function x(g){return u=void 0,p&&n?h(g):(n=i=void 0,o)}function w(){u!==void 0&&clearTimeout(u),s=0,n=c=i=u=void 0}function O(){return u===void 0?o:x(ao())}function m(){var g=ao(),S=d(g);if(n=arguments,i=this,c=g,S){if(u===void 0)return y(c);if(l)return clearTimeout(u),u=setTimeout(b,t),h(c)}return u===void 0&&(u=setTimeout(b,t)),o}return m.cancel=w,m.flush=O,m}var lT=sT,fT=lT,pT=_t,hT="Expected a function";function dT(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(hT);return pT(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),fT(e,t,{leading:n,maxWait:t,trailing:i})}var vT=dT;const Kh=fe(vT);function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function ul(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ul(Object(r),!0).forEach(function(n){yT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ul(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yT(e,t,r){return t=mT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mT(e){var t=gT(e,"string");return fn(t)=="symbol"?t:t+""}function gT(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bT(e,t){return ST(e)||OT(e,t)||wT(e,t)||xT()}function xT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wT(e,t){if(e){if(typeof e=="string")return cl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cl(e,t)}}function cl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;
vendor: 9,408 bytes, lines 15-20
15!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function ST(e){if(Array.isArray(e))return e}var sl=L.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,c=u===void 0?"100%":u,s=e.minWidth,f=s===void 0?0:s,l=e.minHeight,p=e.maxHeight,h=e.children,y=e.debounce,v=y===void 0?0:y,d=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=L.useRef(null),g=L.useRef();g.current=x,L.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var S=L.useState({containerWidth:i.width,containerHeight:i.height}),_=bT(S,2),A=_[0],C=_[1],T=L.useCallback(function(D,M){C(function(E){var I=Math.round(D),N=Math.round(M);return E.containerWidth===I&&E.containerHeight===N?E:{containerWidth:I,containerHeight:N}})},[]);L.useEffect(function(){var D=function(U){var K,q=U[0].contentRect,z=q.width,X=q.height;T(z,X),(K=g.current)===null||K===void 0||K.call(g,z,X)};v>0&&(D=Kh(D,v,{trailing:!0,leading:!1}));var M=new ResizeObserver(D),E=m.current.getBoundingClientRect(),I=E.width,N=E.height;return T(I,N),M.observe(m.current),function(){M.disconnect()}},[T,v]);var P=L.useMemo(function(){var D=A.containerWidth,M=A.containerHeight;if(D<0||M<0)return null;Bt(Nt(o)||Nt(c),`The width(%s) and height(%s) are both fixed numbers,
16       maybe you don't need to use a ResponsiveContainer.`,o,c),Bt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var E=Nt(o)?D:o,I=Nt(c)?M:c;r&&r>0&&(E?I=E/r:I&&(E=I*r),p&&I>p&&(I=p)),Bt(E>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0,
17       please check the style of container, or the props width(%s) and height(%s),
18       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
19       height and width.`,E,I,o,c,f,l,r);var N=!Array.isArray(h)&&lt(h.type).endsWith("Chart");return $.Children.map(h,function(R){return $.isValidElement(R)?L.cloneElement(R,Zn({width:E,height:I},N?{style:Zn({height:"100%",width:"100%",maxHeight:I,maxWidth:E},R.props.style)}:{})):R})},[r,h,c,p,l,f,A,o]);return $.createElement("div",{id:d?"".concat(d):void 0,className:te("recharts-responsive-container",b),style:Zn(Zn({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:p}),ref:m},P)}),Hh=function(t){return null};Hh.displayName="Cell";function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function ll(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ll(Object(r),!0).forEach(function(n){_T(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ll(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _T(e,t,r){return t=AT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AT(e){var t=PT(e,"string");return pn(t)=="symbol"?t:t+""}function PT(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zt={widthCache:{},cacheCount:0},$T=2e3,TT={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},fl="recharts_measurement_span";function jT(e){var t=Xo({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var tn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ur.isSsr)return{width:0,height:0};var n=jT(r),i=JSON.stringify({text:t,copyStyle:n});if(Zt.widthCache[i])return Zt.widthCache[i];try{var a=document.getElementById(fl);a||(a=document.createElement("span"),a.setAttribute("id",fl),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Xo(Xo({},TT),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return Zt.widthCache[i]=c,++Zt.cacheCount>$T&&(Zt.cacheCount=0,Zt.widthCache={}),c}catch{return{width:0,height:0}}},ET=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function wi(e,t){return DT(e)||IT(e,t)||CT(e,t)||MT()}function MT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CT(e,t){if(e){if(typeof e=="string")return pl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pl(e,t)}}function pl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function IT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function DT(e){if(Array.isArray(e))return e}function NT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LT(n.key),n)}}function kT(e,t,r){return t&&hl(e.prototype,t),r&&hl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LT(e){var t=BT(e,"string");return hn(t)=="symbol"?t:t+""}function BT(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dl=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,vl=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,RT=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,FT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,qh={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},UT=Object.keys(qh),rr="NaN";function WT(e,t){return e*qh[t]}var Jn=function(){function e(t,r){NT(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!RT.test(r)&&(this.num=NaN,this.unit=""),UT.includes(r)&&(this.num=WT(t,r),this.unit="px")}return kT(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=FT.exec(r))!==null&&n!==void 0?n:[],a=wi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])}();function Xh(e){if(e.includes(rr))return rr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=dl.exec(t))!==null&&r!==void 0?r:[],i=wi(n,4),a=i[1],o=i[2],u=i[3],c=Jn.parse(a??""),s=Jn.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return rr;t=t.replace(dl,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,p=(l=vl.exec(t))!==null&&l!==void 0?l:[],h=wi(p,4),y=h[1],v=h[2],d=h[3],b=Jn.parse(y??""),x=Jn.parse(d??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return rr;t=t.replace(vl,w.toString())}return t}var yl=/\(([^()]*)\)/;function zT(e){for(var t=e;t.includes("(");){var r=yl.exec(t),n=wi(r,2),i=n[1];t=t.replace(yl,Xh(i))}return t}function GT(e){var t=e.replace(/\s+/g,"");return t=zT(t),t=Xh(t),t}function KT(e){try{return GT(e)}catch{return rr}}function oo(e){var t=KT(e.slice(5,-1));return t===rr?"":t}var HT=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],qT=["dx","dy","angle","className","breakAll"];function Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
20for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vo.apply(this,arguments)}function ml(e,t){if(e==null)return{};var r=XT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gl(e,t){return JT(e)||ZT(e,t)||YT(e,t)||VT()}function VT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YT(e,t){if(e){if(typeof e=="string")return bl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bl(e,t)}}function bl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function JT(e){if(Array.isArray(e))return e}var Vh=/[ \f\n\r\t\v\u2028\u2029]+/,Yh=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Z(r)||(n?a=r.toString().split(""):a=r.toString().split(Vh));var o=a.map(function(c){return{word:c,width:tn(c,i).width}}),u=n?0:tn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},QT=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=F(o),l=u,p=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return E.reduce(function(I,N){var R=N.word,U=N.width,K=I[I.length-1];if(K&&(i==null||a||K.width+U+n<Number(i)))K.words.push(R),K.width+=U+n;else{var q={words:[R],width:U};I.push(q)}return I},[])},h=p(r),y=function(E){return E.reduce(function(I,N){return I.width>N.width?I:N})};if(!f)return h;for(var v="…",d=function(E){var I=l.slice(0,E),N=Yh({breakAll:s,style:c,children:I+v}).wordsWithComputedWidth,R=p(N),U=R.length>o||y(R).width>Number(i);return[U,R]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var m=Math.floor((b+x)/2),g=m-1,S=d(g),_=gl(S,2),A=_[0],C=_[1],T=d(m),P=gl(T,1),D=P[0];if(!A&&!D&&(b=m+1),A&&D&&(x=m-1),!A&&D){O=C;break}w++}return O||h},xl=function(t){var r=Z(t)?[]:t.toString().split(Vh);return[{words:r}]},ej=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Ur.isSsr){var c,s,f=Yh({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,p=f.spaceWidth;c=l,s=p}else return xl(i);return QT({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return xl(i)},wl="#808080",Oi=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,p=t.textAnchor,h=p===void 0?"start":p,y=t.verticalAnchor,v=y===void 0?"end":y,d=t.fill,b=d===void 0?wl:d,x=ml(t,HT),w=L.useMemo(function(){return ej({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,g=x.angle,S=x.className,_=x.breakAll,A=ml(x,qT);if(!Se(n)||!Se(a))return null;var C=n+(F(O)?O:0),T=a+(F(m)?m:0),P;switch(v){case"start":P=oo("calc(".concat(s,")"));break;case"middle":P=oo("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:P=oo("calc(".concat(w.length-1," * -").concat(u,")"));break}var D=[];if(l){var M=w[0].width,E=x.width;D.push("scale(".concat((F(E)?E/M:1)/M,")"))}return g&&D.push("rotate(".concat(g,", ").concat(C,", ").concat(T,")")),D.length&&(A.transform=D.join(" ")),$.createElement("text",Vo({},Q(A,!0),{x:C,y:T,className:te("recharts-text",S),textAnchor:h,fill:b.includes("url")?wl:b}),w.map(function(I,N){var R=I.words.join(_?"":" ");return $.createElement("tspan",{x:C,dy:N===0?P:u,key:"".concat(R,"-").concat(N)},R)}))};function Ot(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gc(e){let t,r,n;e.length!==2?(t=Ot,r=(u,c)=>Ot(e(u),c),n=(u,c)=>e(u)-c):(t=e===Ot||e===tj?e:rj,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function rj(){return 0}function Zh(e){return e===null?NaN:+e}function*nj(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const ij=gc(Ot),Wn=ij.right;gc(Zh).center;class Ol extends Map{constructor(t,r=uj){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Sl(this,t))}has(t){return super.has(Sl(this,t))}set(t,r){return super.set(aj(this,t),r)}delete(t){return super.delete(oj(this,t))}}function Sl({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function aj({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function oj({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function uj(e){return e!==null&&typeof e=="object"?e.valueOf():e}function cj(e=Ot){if(e===Ot)return Jh;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Jh(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const sj=Math.sqrt(50),lj=Math.sqrt(10),fj=Math.sqrt(2);function Si(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=sj?10:a>=lj?5:a>=fj?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?Si(e,t,r*2):[u,c,s]}function Yo(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Si(t,e,r):Si(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function Zo(e,t,r){return t=+t,e=+e,r=+r,Si(e,t,r)[2]}function Jo(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Zo(t,e,r):Zo(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function _l(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Al(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}
21function Qh(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Jh:cj(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),h=Math.max(r,Math.floor(t-s*l/c+p)),y=Math.min(n,Math.floor(t+(c-s)*l/c+p));Qh(e,t,h,y,i)}const a=e[t];let o=r,u=n;for(Hr(e,r,t),i(e[n],a)>0&&Hr(e,r,n);o<u;){for(Hr(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Hr(e,r,u):(++u,Hr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Hr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function pj(e,t,r){if(e=Float64Array.from(nj(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Al(e);if(t>=1)return _l(e);var n,i=(n-1)*t,a=Math.floor(i),o=_l(Qh(e,a).subarray(0,a+1)),u=Al(e.subarray(a+1));return o+(u-o)*(i-a)}}function hj(e,t,r=Zh){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function dj(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ve(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function gt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Qo=Symbol("implicit");function bc(){var e=new Ol,t=[],r=[],n=Qo;function i(a){let o=e.get(a);if(o===void 0){if(n!==Qo)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ol;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return bc(t,r).unknown(n)},Ve.apply(i,arguments),i}function dn(){var e=bc().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var p=t().length,h=i<n,y=h?i:n,v=h?n:i;a=(v-y)/Math.max(1,p-c+s*2),u&&(a=Math.floor(a)),y+=(v-y-a*(p-c))*f,o=a*(1-c),u&&(y=Math.round(y),o=Math.round(o));var d=dj(p).map(function(b){return y+a*b});return r(h?d.reverse():d)}return e.domain=function(p){return arguments.length?(t(p),l()):t()},e.range=function(p){return arguments.length?([n,i]=p,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(p){return[n,i]=p,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(p){return arguments.length?(u=!!p,l()):u},e.padding=function(p){return arguments.length?(c=Math.min(1,s=+p),l()):c},e.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),l()):c},e.paddingOuter=function(p){return arguments.length?(s=+p,l()):s},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),l()):f},e.copy=function(){return dn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Ve.apply(l(),arguments)}function ed(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ed(t())},e}function rn(){return ed(dn.apply(null,arguments).paddingInner(1))}function xc(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function vj(e,t){t===void 0&&(t=e,e=ia);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function yj(e){return function(){return e}}function _i(e){return+e}var Pl=[0,1];function Me(e){return e}function eu(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:yj(isNaN(t)?NaN:.5)}function mj(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function gj(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=eu(i,n),a=r(o,a)):(n=eu(n,i),a=r(a,o)),function(u){return a(n(u))}}function bj(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=eu(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=Wn(e,u,1,n)-1;return a[c](i[c](u))}}function zn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $a(){var e=Pl,t=Pl,r=ia,n,i,a,o=Me,u,c,s;function f(){var p=Math.min(e.length,t.length);return o!==Me&&(o=mj(e[0],e[p-1])),u=p>2?bj:gj,c=s=null,l}function l(p){return p==null||isNaN(p=+p)?a:(c||(c=u(e.map(n),t,r)))(n(o(p)))}return l.invert=function(p){return o(i((s||(s=u(t,e.map(n),ly)))(p)))},l.domain=function(p){return arguments.length?(e=Array.from(p,_i),f()):e.slice()},l.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},l.rangeRound=function(p){return t=Array.from(p),r=xc,f()},l.clamp=function(p){return arguments.length?(o=p?!0:Me,f()):o!==Me},l.interpolate=function(p){return arguments.length?(r=p,f()):r},l.unknown=function(p){return arguments.length?(a=p,l):a},function(p,h){return n=p,i=h,f()}}function wc(){return $a()(Me,Me)}
vendor: 4,970 bytes, line 21
21function xj(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ai(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function hr(e){return e=Ai(Math.abs(e)),e?e[1]:NaN}function wj(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Oj(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Sj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vn(e){if(!(t=Sj.exec(e)))throw new Error("invalid format: "+e);var t;return new Oc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}vn.prototype=Oc.prototype;function Oc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Oc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _j(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Pi;function Aj(e,t){var r=Ai(e,t);if(!r)return Pi=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Pi=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ai(e,Math.max(0,t+a-1))[0]}function $l(e,t){var r=Ai(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Tl={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:xj,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>$l(e*100,t),r:$l,s:Aj,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jl(e){return e}var El=Array.prototype.map,Ml=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Pj(e){var t=e.grouping===void 0||e.thousands===void 0?jl:wj(El.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?jl:Oj(El.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l,p){l=vn(l);var h=l.fill,y=l.align,v=l.sign,d=l.symbol,b=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,g=l.type;g==="n"?(w=!0,g="g"):Tl[g]||(O===void 0&&(O=12),m=!0,g="g"),(b||h==="0"&&y==="=")&&(b=!0,h="0",y="=");var S=(p&&p.prefix!==void 0?p.prefix:"")+(d==="$"?r:d==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():""),_=(d==="$"?n:/[%p]/.test(g)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),A=Tl[g],C=/[defgprs%]/.test(g);O=O===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function T(P){var D=S,M=_,E,I,N;if(g==="c")M=A(P)+M,P="";else{P=+P;var R=P<0||1/P<0;if(P=isNaN(P)?c:A(Math.abs(P),O),m&&(P=_j(P)),R&&+P==0&&v!=="+"&&(R=!1),D=(R?v==="("?v:u:v==="-"||v==="("?"":v)+D,M=(g==="s"&&!isNaN(P)&&Pi!==void 0?Ml[8+Pi/3]:"")+M+(R&&v==="("?")":""),C){for(E=-1,I=P.length;++E<I;)if(N=P.charCodeAt(E),48>N||N>57){M=(N===46?i+P.slice(E+1):P.slice(E))+M,P=P.slice(0,E);break}}}w&&!b&&(P=t(P,1/0));var U=D.length+P.length+M.length,K=U<x?new Array(x-U+1).join(h):"";switch(w&&b&&(P=t(K+P,K.length?x-M.length:1/0),K=""),y){case"<":P=D+P+M+K;break;case"=":P=D+K+P+M;break;case"^":P=K.slice(0,U=K.length>>1)+D+P+M+K.slice(U);break;default:P=K+D+P+M;break}return a(P)}return T.toString=function(){return l+""},T}function f(l,p){var h=Math.max(-8,Math.min(8,Math.floor(hr(p)/3)))*3,y=Math.pow(10,-h),v=s((l=vn(l),l.type="f",l),{suffix:Ml[8+h/3]});return function(d){return v(y*d)}}return{format:s,formatPrefix:f}}var Qn,Sc,td;$j({thousands:",",grouping:[3],currency:["$",""]});function $j(e){return Qn=Pj(e),Sc=Qn.format,td=Qn.formatPrefix,Qn}function Tj(e){return Math.max(0,-hr(Math.abs(e)))}function jj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(hr(t)/3)))*3-hr(Math.abs(e)))}function Ej(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,hr(t)-hr(e))+1}function rd(e,t,r,n){var i=Jo(e,t,r),a;
21switch(n=vn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=jj(i,o))&&(n.precision=a),td(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Ej(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Tj(i))&&(n.precision=a-(n.type==="%")*2);break}}return Sc(n)}function At(e){var t=e.domain;return e.ticks=function(r){var n=t();return Yo(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return rd(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=Zo(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function $i(){var e=wc();return e.copy=function(){return zn(e,$i())},Ve.apply(e,arguments),At(e)}function nd(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,_i),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return nd(e).unknown(t)},e=arguments.length?Array.from(e,_i):[0,1],At(r)}function id(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Cl(e){return Math.log(e)}function Il(e){return Math.exp(e)}function Mj(e){return-Math.log(-e)}function Cj(e){return-Math.exp(-e)}function Ij(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Dj(e){return e===10?Ij:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Nj(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Dl(e){return(t,r)=>-e(-t,r)}function _c(e){const t=e(Cl,Il),r=t.domain;let n=10,i,a;function o(){return i=Nj(n),a=Dj(n),r()[0]<0?(i=Dl(i),a=Dl(a),e(Mj,Cj)):e(Cl,Il),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let p=i(s),h=i(f),y,v;const d=u==null?10:+u;let b=[];if(!(n%1)&&h-p<d){if(p=Math.floor(p),h=Math.ceil(h),s>0){for(;p<=h;++p)for(y=1;y<n;++y)if(v=p<0?y/a(-p):y*a(p),!(v<s)){if(v>f)break;b.push(v)}}else for(;p<=h;++p)for(y=n-1;y>=1;--y)if(v=p>0?y/a(-p):y*a(p),!(v<s)){if(v>f)break;b.push(v)}b.length*2<d&&(b=Yo(s,f,d))}else b=Yo(p,h,Math.min(h-p,d)).map(a);return l?b.reverse():b},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=vn(c)).precision==null&&(c.trim=!0),c=Sc(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},t.nice=()=>r(id(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function ad(){const e=_c($a()).domain([1,10]);return e.copy=()=>zn(e,ad()).base(e.base()),Ve.apply(e,arguments),e}function Nl(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function kl(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ac(e){var t=1,r=e(Nl(t),kl(t));return r.constant=function(n){return arguments.length?e(Nl(t=+n),kl(t)):t},At(r)}function od(){var e=Ac($a());return e.copy=function(){return zn(e,od()).constant(e.constant())},Ve.apply(e,arguments)}function Ll(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function kj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Lj(e){return e<0?-e*e:e*e}function Pc(e){var t=e(Me,Me),r=1;function n(){return r===1?e(Me,Me):r===.5?e(kj,Lj):e(Ll(r),Ll(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},At(t)}function $c(){var e=Pc($a());return e.copy=function(){return zn(e,$c()).exponent(e.exponent())},Ve.apply(e,arguments),e}function Bj(){return $c.apply(null,arguments).exponent(.5)}function Bl(e){return Math.sign(e)*e*e}function Rj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ud(){var e=wc(),t=[0,1],r=!1,n;function i(a){var o=Rj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Bl(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,_i)).map(Bl)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ud(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ve.apply(i,arguments),At(i)}function cd(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=hj(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Wn(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]}
21,a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Ot),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return cd().domain(e).range(t).unknown(n)},Ve.apply(a,arguments)}function sd(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Wn(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return sd().domain([e,t]).range(i).unknown(a)},Ve.apply(At(o),arguments)}function ld(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Wn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return ld().domain(e).range(t).unknown(r)},Ve.apply(i,arguments)}const uo=new Date,co=new Date;function _e(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>_e(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(uo.setTime(+a),co.setTime(+o),e(uo),e(co),Math.floor(r(uo,co))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ti=_e(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ti.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_e(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ti);Ti.range;const ct=1e3,Ge=ct*60,st=Ge*60,pt=st*24,Tc=pt*7,Rl=pt*30,so=pt*365,kt=_e(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getUTCSeconds());kt.range;const jc=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ct)},(e,t)=>{e.setTime(+e+t*Ge)},(e,t)=>(t-e)/Ge,e=>e.getMinutes());jc.range;const Ec=_e(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ge)},(e,t)=>(t-e)/Ge,e=>e.getUTCMinutes());Ec.range;const Mc=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ct-e.getMinutes()*Ge)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getHours());Mc.range;const Cc=_e(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getUTCHours());Cc.range;const Gn=_e(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ge)/pt,e=>e.getDate()-1);Gn.range;const Ta=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pt,e=>e.getUTCDate()-1);Ta.range;const fd=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pt,e=>Math.floor(e/pt));fd.range;function Ht(e){return _e(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ge)/Tc)}const ja=Ht(0),ji=Ht(1),Fj=Ht(2),Uj=Ht(3),dr=Ht(4),Wj=Ht(5),zj=Ht(6);ja.range;ji.range;Fj.range;Uj.range;dr.range;Wj.range;zj.range;function qt(e){return _e(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Tc)}
vendor: 5,694 bytes, line 21
21const Ea=qt(0),Ei=qt(1),Gj=qt(2),Kj=qt(3),vr=qt(4),Hj=qt(5),qj=qt(6);Ea.range;Ei.range;Gj.range;Kj.range;vr.range;Hj.range;qj.range;const Ic=_e(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ic.range;const Dc=_e(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Dc.range;const ht=_e(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ht.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});ht.range;const dt=_e(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});dt.range;function pd(e,t,r,n,i,a){const o=[[kt,1,ct],[kt,5,5*ct],[kt,15,15*ct],[kt,30,30*ct],[a,1,Ge],[a,5,5*Ge],[a,15,15*Ge],[a,30,30*Ge],[i,1,st],[i,3,3*st],[i,6,6*st],[i,12,12*st],[n,1,pt],[n,2,2*pt],[r,1,Tc],[t,1,Rl],[t,3,3*Rl],[e,1,so]];function u(s,f,l){const p=f<s;p&&([s,f]=[f,s]);const h=l&&typeof l.range=="function"?l:c(s,f,l),y=h?h.range(s,+f+1):[];return p?y.reverse():y}function c(s,f,l){const p=Math.abs(f-s)/l,h=gc(([,,d])=>d).right(o,p);if(h===o.length)return e.every(Jo(s/so,f/so,l));if(h===0)return Ti.every(Math.max(Jo(s,f,l),1));const[y,v]=o[p/o[h-1][2]<o[h][2]/p?h-1:h];return y.every(v)}return[u,c]}const[Xj,Vj]=pd(dt,Dc,Ea,fd,Cc,Ec),[Yj,Zj]=pd(ht,Ic,ja,Gn,Mc,jc);function lo(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function fo(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Jj(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=Xr(i),f=Vr(i),l=Xr(a),p=Vr(a),h=Xr(o),y=Vr(o),v=Xr(u),d=Vr(u),b=Xr(c),x=Vr(c),w={a:N,A:R,b:U,B:K,c:null,d:Kl,e:Kl,f:wE,g:ME,G:IE,H:gE,I:bE,j:xE,L:hd,m:OE,M:SE,p:q,q:z,Q:Xl,s:Vl,S:_E,u:AE,U:PE,V:$E,w:TE,W:jE,x:null,X:null,y:EE,Y:CE,Z:DE,"%":ql},O={a:X,A:ce,b:ye,B:Ne,c:null,d:Hl,e:Hl,f:BE,g:XE,G:YE,H:NE,I:kE,j:LE,L:vd,m:RE,M:FE,p:Tt,q:Ce,Q:Xl,s:Vl,S:UE,u:WE,U:zE,V:GE,w:KE,W:HE,x:null,X:null,y:qE,Y:VE,Z:ZE,"%":ql},m={a:C,A:T,b:P,B:D,c:M,d:zl,e:zl,f:dE,g:Wl,G:Ul,H:Gl,I:Gl,j:lE,L:hE,m:sE,M:fE,p:A,q:cE,Q:yE,s:mE,S:pE,u:nE,U:iE,V:aE,w:rE,W:oE,x:E,X:I,y:Wl,Y:Ul,Z:uE,"%":vE};w.x=g(r,w),w.X=g(n,w),w.c=g(t,w),O.x=g(r,O),O.X=g(n,O),O.c=g(t,O);function g(W,V){return function(Y){var k=[],he=-1,ee=0,be=W.length,xe,Ie,bt;for(Y instanceof Date||(Y=new Date(+Y));++he<be;)W.charCodeAt(he)===37&&(k.push(W.slice(ee,he)),(Ie=Fl[xe=W.charAt(++he)])!=null?xe=W.charAt(++he):Ie=xe==="e"?" ":"0",(bt=V[xe])&&(xe=bt(Y,Ie)),k.push(xe),ee=he+1);return k.push(W.slice(ee,he)),k.join("")}}function S(W,V){return function(Y){var k=qr(1900,void 0,1),he=_(k,W,Y+="",0),ee,be;if(he!=Y.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(ee=fo(qr(k.y,0,1)),be=ee.getUTCDay(),ee=be>4||be===0?Ei.ceil(ee):Ei(ee),ee=Ta.offset(ee,(k.V-1)*7),k.y=ee.getUTCFullYear(),k.m=ee.getUTCMonth(),k.d=ee.getUTCDate()+(k.w+6)%7):(ee=lo(qr(k.y,0,1)),be=ee.getDay(),ee=be>4||be===0?ji.ceil(ee):ji(ee),ee=Gn.offset(ee,(k.V-1)*7),k.y=ee.getFullYear(),k.m=ee.getMonth(),k.d=ee.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),be="Z"in k?fo(qr(k.y,0,1)).getUTCDay():lo(qr(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(be+5)%7:k.w+k.U*7-(be+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,fo(k)):lo(k)}}function _(W,V,Y,k){for(var he=0,ee=V.length,be=Y.length,xe,Ie;he<ee;){if(k>=be)return-1;if(xe=V.charCodeAt(he++),xe===37){if(xe=V.charAt(he++),Ie=m[xe in Fl?V.charAt(he++):xe],!Ie||(k=Ie(W,Y,k))<0)return-1}else if(xe!=Y.charCodeAt(k++))return-1}return k}function A(W,V,Y){var k=s.exec(V.slice(Y));return k?(W.p=f.get(k[0].toLowerCase()),Y+k[0].length):-1}function C(W,V,Y){var k=h.exec(V.slice(Y));return k?(W.w=y.get(k[0].toLowerCase()),Y+k[0].length):-1}function T(W,V,Y){var k=l.exec(V.slice(Y));return k?(W.w=p.get(k[0].toLowerCase()),Y+k[0].length):-1}function P(W,V,Y){var k=b.exec(V.slice(Y));return k?(W.m=x.get(k[0].toLowerCase()),Y+k[0].length):-1}function D(W,V,Y){var k=v.exec(V.slice(Y));return k?(W.m=d.get(k[0].toLowerCase()),Y+k[0].length):-1}function M(W,V,Y){return _(W,t,V,Y)}function E(W,V,Y){return _(W,r,V,Y)}function I(W,V,Y){return _(W,n,V,Y)}function N(W){return o[W.getDay()]}function R(W){return a[W.getDay()]}function U(W){return c[W.getMonth()]}function K(W){return u[W.getMonth()]}function q(W){return i[+(W.getHours()>=12)]}function z(W){return 1+~~(W.getMonth()/3)}function X(W){return o[W.getUTCDay()]}function ce(W){return a[W.getUTCDay()]}function ye(W){return c[W.getUTCMonth()]}function Ne(W){return u[W.getUTCMonth()]}function Tt(W){return i[+(W.getUTCHours()>=12)]}function Ce(W){return 1+~~(W.getUTCMonth()/3)}
vendor: 4,118 bytes, line 21
21return{format:function(W){var V=g(W+="",w);return V.toString=function(){return W},V},parse:function(W){var V=S(W+="",!1);return V.toString=function(){return W},V},utcFormat:function(W){var V=g(W+="",O);return V.toString=function(){return W},V},utcParse:function(W){var V=S(W+="",!0);return V.toString=function(){return W},V}}}var Fl={"-":"",_:" ",0:"0"},Pe=/^\s*\d+/,Qj=/^%/,eE=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function tE(e){return e.replace(eE,"\\$&")}function Xr(e){return new RegExp("^(?:"+e.map(tE).join("|")+")","i")}function Vr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function rE(e,t,r){var n=Pe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function nE(e,t,r){var n=Pe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function iE(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function aE(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function oE(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ul(e,t,r){var n=Pe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Wl(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function uE(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function cE(e,t,r){var n=Pe.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function sE(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function zl(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function lE(e,t,r){var n=Pe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Gl(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function fE(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function pE(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function hE(e,t,r){var n=Pe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function dE(e,t,r){var n=Pe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function vE(e,t,r){var n=Qj.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function yE(e,t,r){var n=Pe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function mE(e,t,r){var n=Pe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Kl(e,t){return re(e.getDate(),t,2)}function gE(e,t){return re(e.getHours(),t,2)}function bE(e,t){return re(e.getHours()%12||12,t,2)}function xE(e,t){return re(1+Gn.count(ht(e),e),t,3)}function hd(e,t){return re(e.getMilliseconds(),t,3)}function wE(e,t){return hd(e,t)+"000"}function OE(e,t){return re(e.getMonth()+1,t,2)}function SE(e,t){return re(e.getMinutes(),t,2)}function _E(e,t){return re(e.getSeconds(),t,2)}function AE(e){var t=e.getDay();return t===0?7:t}function PE(e,t){return re(ja.count(ht(e)-1,e),t,2)}function dd(e){var t=e.getDay();return t>=4||t===0?dr(e):dr.ceil(e)}function $E(e,t){return e=dd(e),re(dr.count(ht(e),e)+(ht(e).getDay()===4),t,2)}function TE(e){return e.getDay()}function jE(e,t){return re(ji.count(ht(e)-1,e),t,2)}function EE(e,t){return re(e.getFullYear()%100,t,2)}function ME(e,t){return e=dd(e),re(e.getFullYear()%100,t,2)}function CE(e,t){return re(e.getFullYear()%1e4,t,4)}function IE(e,t){var r=e.getDay();return e=r>=4||r===0?dr(e):dr.ceil(e),re(e.getFullYear()%1e4,t,4)}function DE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function Hl(e,t){return re(e.getUTCDate(),t,2)}function NE(e,t){return re(e.getUTCHours(),t,2)}function kE(e,t){return re(e.getUTCHours()%12||12,t,2)}function LE(e,t){return re(1+Ta.count(dt(e),e),t,3)}function vd(e,t){return re(e.getUTCMilliseconds(),t,3)}function BE(e,t){return vd(e,t)+"000"}function RE(e,t){return re(e.getUTCMonth()+1,t,2)}function FE(e,t){return re(e.getUTCMinutes(),t,2)}function UE(e,t){return re(e.getUTCSeconds(),t,2)}function WE(e){var t=e.getUTCDay();return t===0?7:t}
21function zE(e,t){return re(Ea.count(dt(e)-1,e),t,2)}function yd(e){var t=e.getUTCDay();return t>=4||t===0?vr(e):vr.ceil(e)}function GE(e,t){return e=yd(e),re(vr.count(dt(e),e)+(dt(e).getUTCDay()===4),t,2)}function KE(e){return e.getUTCDay()}function HE(e,t){return re(Ei.count(dt(e)-1,e),t,2)}function qE(e,t){return re(e.getUTCFullYear()%100,t,2)}function XE(e,t){return e=yd(e),re(e.getUTCFullYear()%100,t,2)}function VE(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function YE(e,t){var r=e.getUTCDay();return e=r>=4||r===0?vr(e):vr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function ZE(){return"+0000"}function ql(){return"%"}function Xl(e){return+e}function Vl(e){return Math.floor(+e/1e3)}var Jt,md,gd;JE({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function JE(e){return Jt=Jj(e),md=Jt.format,Jt.parse,gd=Jt.utcFormat,Jt.utcParse,Jt}function QE(e){return new Date(e)}function eM(e){return e instanceof Date?+e:+new Date(+e)}function Nc(e,t,r,n,i,a,o,u,c,s){var f=wc(),l=f.invert,p=f.domain,h=s(".%L"),y=s(":%S"),v=s("%I:%M"),d=s("%I %p"),b=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function m(g){return(c(g)<g?h:u(g)<g?y:o(g)<g?v:a(g)<g?d:n(g)<g?i(g)<g?b:x:r(g)<g?w:O)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?p(Array.from(g,eM)):p().map(QE)},f.ticks=function(g){var S=p();return e(S[0],S[S.length-1],g??10)},f.tickFormat=function(g,S){return S==null?m:s(S)},f.nice=function(g){var S=p();return(!g||typeof g.range!="function")&&(g=t(S[0],S[S.length-1],g??10)),g?p(id(S,g)):f},f.copy=function(){return zn(f,Nc(e,t,r,n,i,a,o,u,c,s))},f}function tM(){return Ve.apply(Nc(Yj,Zj,ht,Ic,ja,Gn,Mc,jc,kt,md).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function rM(){return Ve.apply(Nc(Xj,Vj,dt,Dc,Ea,Ta,Cc,Ec,kt,gd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ma(){var e=0,t=1,r,n,i,a,o=Me,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(p){var h,y;return arguments.length?([h,y]=p,o=l(h,y),s):[o(0),o(1)]}}return s.range=f(ia),s.rangeRound=f(xc),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function Pt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bd(){var e=At(Ma()(Me));return e.copy=function(){return Pt(e,bd())},gt.apply(e,arguments)}function xd(){var e=_c(Ma()).domain([1,10]);return e.copy=function(){return Pt(e,xd()).base(e.base())},gt.apply(e,arguments)}function wd(){var e=Ac(Ma());return e.copy=function(){return Pt(e,wd()).constant(e.constant())},gt.apply(e,arguments)}function kc(){var e=Pc(Ma());return e.copy=function(){return Pt(e,kc()).exponent(e.exponent())},gt.apply(e,arguments)}function nM(){return kc.apply(null,arguments).exponent(.5)}function Od(){var e=[],t=Me;function r(n){if(n!=null&&!isNaN(n=+n))return t((Wn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ot),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>pj(e,a/n))},r.copy=function(){return Od(t).domain(e)},gt.apply(r,arguments)}function Ca(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Me,f,l=!1,p;function h(v){return isNaN(v=+v)?p:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(l=!!v,h):l},h.interpolator=function(v){return arguments.length?(s=v,h):s};function y(v){return function(d){var b,x,w;return arguments.length?([b,x,w]=d,s=vj(v,[b,x,w]),h):[s(0),s(.5),s(1)]}}return h.range=y(ia),h.rangeRound=y(xc),h.unknown=function(v){return arguments.length?(p=v,h):p},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Sd(){var e=At(Ca()(Me));return e.copy=function(){return Pt(e,Sd())},gt.apply(e,arguments)}function _d(){var e=_c(Ca()).domain([.1,1,10]);return e.copy=function(){return Pt(e,_d()).base(e.base())},gt.apply(e,arguments)}function Ad(){var e=Ac(Ca());return e.copy=function(){return Pt(e,Ad()).constant(e.constant())},gt.apply(e,arguments)}function Lc(){var e=Pc(Ca());return e.copy=function(){return Pt(e,Lc()).exponent(e.exponent())},gt.apply(e,arguments)}function iM(){return Lc.apply(null,arguments).exponent(.5)}const Yl=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:dn,scaleDiverging:Sd,scaleDivergingLog:_d,scaleDivergingPow:Lc,scaleDivergingSqrt:iM,scaleDivergingSymlog:Ad,scaleIdentity:nd,scaleImplicit:Qo,scaleLinear:$i,scaleLog:ad,scaleOrdinal:bc,scalePoint:rn,scalePow:$c,scaleQuantile:cd,scaleQuantize:sd,scaleRadial:ud,scaleSequential:bd,scaleSequentialLog:xd,scaleSequentialPow:kc,scaleSequentialQuantile:Od,scaleSequentialSqrt:nM,scaleSequentialSymlog:wd,scaleSqrt:Bj,scaleSymlog:od,scaleThreshold:ld,scaleTime:tM,scaleUtc:rM,tickFormat:rd},Symbol.toStringTag,{value:"Module"}));var aM=Cr;function oM(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(u===void 0?o===o&&!aM(o):r(o,u)))var u=o,c=a}return c}var Pd=oM;function uM(e,t){return e>t}var cM=uM,sM=Pd,lM=cM,fM=Rr;function pM(e){return e&&e.length?sM(e,fM,lM):void 0}var hM=pM;const Ia=fe(hM);function dM(e,t){return e<t}var vM=dM,yM=Pd,mM=vM,gM=Rr;function bM(e){return e&&e.length?yM(e,gM,mM):void 0}var xM=bM;const Da=fe(xM);var wM=Ju,OM=Fr,SM=Bh,_M=De;function AM(e,t){var r=_M(e)?wM:SM;return r(e,OM(t))}var PM=AM,$M=kh,TM=PM;function jM(e,t){return $M(TM(e,t),1)}var EM=jM;const MM=fe(EM);var CM=dc;function IM(e,t){return CM(e,t)}var DM=IM;const Na=fe(DM);
vendor: 66,204 bytes, lines 21-47
21var Wr=1e9,NM={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Rc,pe=!0,qe="[DecimalError] ",Rt=qe+"Invalid argument: ",Bc=qe+"Exponent out of range: ",zr=Math.floor,Dt=Math.pow,kM=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Re,Ae=1e7,le=7,$d=9007199254740991,Mi=zr($d/le),G={};G.absoluteValue=G.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};G.comparedTo=G.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*le;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};G.dividedBy=G.div=function(e){return ft(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,r=t.constructor;return oe(ft(t,new r(e),0,1),r.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return ge(this)};G.greaterThan=G.gt=function(e){return this.cmp(e)>0};G.greaterThanOrEqualTo=G.gte=function(e){return this.cmp(e)>=0};G.isInteger=G.isint=function(){return this.e>this.d.length-2};G.isNegative=G.isneg=function(){return this.s<0};G.isPositive=G.ispos=function(){return this.s>0};G.isZero=function(){return this.s===0};G.lessThan=G.lt=function(e){return this.cmp(e)<0};G.lessThanOrEqualTo=G.lte=function(e){return this.cmp(e)<1};G.logarithm=G.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Re))throw Error(qe+"NaN");if(r.s<1)throw Error(qe+(r.s?"NaN":"-Infinity"));return r.eq(Re)?new n(0):(pe=!1,t=ft(yn(r,a),yn(e,a),a),pe=!0,oe(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ed(t,e):Td(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(qe+"NaN");return r.s?(pe=!1,t=ft(r,e,0,1).times(e),pe=!0,r.minus(t)):oe(new n(r),i)};G.naturalExponential=G.exp=function(){return jd(this)};G.naturalLogarithm=G.ln=function(){return yn(this)};G.negated=G.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};G.plus=G.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Td(t,e):Ed(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Rt+e);if(t=ge(i)+1,n=i.d.length-1,r=n*le+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};G.squareRoot=G.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(qe+"NaN")}for(e=ge(u),pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=nt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=zr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(ft(u,a,o+2)).times(.5),nt(a.d).slice(0,o)===(t=nt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(oe(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return pe=!0,oe(n,r)};G.times=G.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,p=f.d,h=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=p.length,s=h.length,c<s&&(a=p,p=h,h=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+h[n]*p[i-n-1]+t,a[i--]=u%Ae|0,t=u/Ae|0;a[i]=(a[i]+t)%Ae|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,pe?oe(e,l.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(at(e,0,Wr),t===void 0?t=n.rounding:at(t,0,8),oe(r,e+ge(r)+1,t))};G.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=zt(n,!0):(at(e,0,Wr),t===void 0?t=i.rounding:at(t,0,8),n=oe(new i(n),e+1,t),r=zt(n,!0,e+1)),r};G.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?zt(i):(at(e,0,Wr),t===void 0?t=a.rounding:at(t,0,8),n=oe(new a(i),e+ge(i)+1,t),r=zt(n.abs(),!1,e+ge(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return oe(new t(e),ge(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(Re);if(u=new c(u),!u.s){if(e.s<1)throw Error(qe+"Infinity");return u}if(u.eq(Re))return u;if(n=c.precision,e.eq(Re))return oe(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=$d){for(i=new c(Re),t=Math.ceil(n/le+4),pe=!1;r%2&&(i=i.times(u),Jl(i.d,t)),r=zr(r/2),r!==0;)u=u.times(u),Jl(u.d,t);return pe=!0,e.s<0?new c(Re).div(i):oe(i,n)}}else if(a<0)throw Error(qe+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,pe=!1,i=e.times(yn(u,n+s)),pe=!0,i=jd(i),i.s=a,i};G.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ge(i),n=zt(i,r<=a.toExpNeg||r>=a.toExpPos)):(at(e,1,Wr),t===void 0?t=a.rounding:at(t,0,8),i=oe(new a(i),e,t),r=ge(i),n=zt(i,e<=r||r<=a.toExpNeg,e)),n};G.toSignificantDigits=G.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(at(e,1,Wr),t===void 0?t=n.rounding:at(t,0,8)),oe(new n(r),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ge(e),r=e.constructor;return zt(e,t<=r.toExpNeg||t>=r.toExpPos)};function Td(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),pe?oe(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/le),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/Ae|0,c[a]%=Ae;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,pe?oe(t,l):t}function at(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Rt+e)}function nt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=le-n.length,r&&(a+=xt(r)),a+=n;o=e[t],n=o+"",r=le-n.length,r&&(a+=xt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ft=function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Ae|0,o=a/Ae|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ae+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,p,h,y,v,d,b,x,w,O,m,g,S,_,A=n.constructor,C=n.s==i.s?1:-1,T=n.d,P=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(qe+"Division by zero");for(c=n.e-i.e,S=P.length,m=T.length,h=new A(C),y=h.d=[],s=0;P[s]==(T[s]||0);)++s;if(P[s]>(T[s]||0)&&--c,a==null?x=a=A.precision:o?x=a+(ge(n)-ge(i))+1:x=a,x<0)return new A(0);if(x=x/le+2|0,s=0,S==1)for(f=0,P=P[0],x++;(s<m||f)&&x--;s++)w=f*Ae+(T[s]||0),y[s]=w/P|0,f=w%P|0;else{for(f=Ae/(P[0]+1)|0,f>1&&(P=e(P,f),T=e(T,f),S=P.length,m=T.length),O=S,v=T.slice(0,S),d=v.length;d<S;)v[d++]=0;_=P.slice(),_.unshift(0),g=P[0],P[1]>=Ae/2&&++g;do f=0,u=t(P,v,S,d),u<0?(b=v[0],S!=d&&(b=b*Ae+(v[1]||0)),f=b/g|0,f>1?(f>=Ae&&(f=Ae-1),l=e(P,f),p=l.length,d=v.length,u=t(l,v,p,d),u==1&&(f--,r(l,S<p?_:P,p))):(f==0&&(u=f=1),l=P.slice()),p=l.length,p<d&&l.unshift(0),r(v,l,d),u==-1&&(d=v.length,u=t(P,v,S,d),u<1&&(f++,r(v,S<d?_:P,d))),d=v.length):u===0&&(f++,v=[0]),y[s++]=f,u&&v[0]?v[d++]=T[O]||0:(v=[T[O]],d=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),h.e=c,oe(h,o?a+ge(h)+1:a)}}();function jd(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(ge(e)>16)throw Error(Bc+ge(e));if(!e.s)return new f(Re);for(pe=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Dt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Re),f.precision=u;;){if(i=oe(i.times(e),u),r=r.times(++c),o=a.plus(ft(i,r,u)),nt(o.d).slice(0,u)===nt(a.d).slice(0,u)){for(;s--;)a=oe(a.times(a),u);return f.precision=l,t==null?(pe=!0,oe(a,l)):a}a=o}}function ge(e){for(var t=e.e*le,r=e.d[0];r>=10;r/=10)t++;return t}function po(e,t,r){if(t>e.LN10.sd())throw pe=!0,r&&(e.precision=r),Error(qe+"LN10 precision limit exceeded");return oe(new e(e.LN10),t)}function xt(e){for(var t="";e--;)t+="0";return t}function yn(e,t){var r,n,i,a,o,u,c,s,f,l=1,p=10,h=e,y=h.d,v=h.constructor,d=v.precision;if(h.s<1)throw Error(qe+(h.s?"NaN":"-Infinity"));if(h.eq(Re))return new v(0);if(t==null?(pe=!1,s=d):s=t,h.eq(10))return t==null&&(pe=!0),po(v,s);if(s+=p,v.precision=s,r=nt(y),n=r.charAt(0),a=ge(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=nt(h.d),n=r.charAt(0),l++;a=ge(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return c=po(v,s+2,d).times(a+""),h=yn(new v(n+"."+r.slice(1)),s-p).plus(c),v.precision=d,t==null?(pe=!0,oe(h,d)):h;for(u=o=h=ft(h.minus(Re),h.plus(Re),s),f=oe(h.times(h),s),i=3;;){if(o=oe(o.times(f),s),c=u.plus(ft(o,new v(i),s)),nt(c.d).slice(0,s)===nt(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(po(v,s+2,d).times(a+""))),u=ft(u,new v(l),s),v.precision=d,t==null?(pe=!0,oe(u,d)):u;u=c,i+=2}}function Zl(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=zr(r/le),e.d=[],n=(r+1)%le,r<0&&(n+=le),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=le;n<i;)e.d.push(+t.slice(n,n+=le));t=t.slice(n),n=le-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),pe&&(e.e>Mi||e.e<-Mi))throw Error(Bc+r)}else e.s=0,e.e=0,e.d=[0];return e}function oe(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=le,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/le),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=le,i=n-le+o}if(r!==void 0&&(a=Dt(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Dt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=ge(e),l.length=1,t=t-a-1,l[0]=Dt(10,(le-t%le)%le),e.e=zr(-t/le)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Dt(10,le-n),l[f]=i>0?(s/Dt(10,o-i)%Dt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==Ae&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Ae)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(pe&&(e.e>Mi||e.e<-Mi))throw Error(Bc+ge(e));return e}function Ed(e,t){var r,n,i,a,o,u,c,s,f,l,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),pe?oe(t,h):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(h/le),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,t.s=-t.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=Ae-1;--c[a],c[i]+=Ae}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,pe?oe(t,h):t):new p(0)}function zt(e,t,r){var n,i=ge(e),a=nt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+xt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+xt(-i-1)+a,r&&(n=r-o)>0&&(a+=xt(n))):i>=o?(a+=xt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+xt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=xt(n))),e.s<0?"-"+a:a}function Jl(e,t){if(e.length>t)return e.length=t,!0}function Md(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Rt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Zl(o,a.toString())}else if(typeof a!="string")throw Error(Rt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,kM.test(a))Zl(o,a);else throw Error(Rt+a)}if(i.prototype=G,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=Md,i.config=i.set=LM,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function LM(e){if(!e||typeof e!="object")throw Error(qe+"Object expected");var t,r,n,i=["precision",1,Wr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(zr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Rt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Rt+r+": "+n);return this}var Rc=Md(NM);Re=new Rc(1);const ae=Rc;function BM(e){return WM(e)||UM(e)||FM(e)||RM()}function RM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FM(e,t){if(e){if(typeof e=="string")return tu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tu(e,t)}}function UM(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function WM(e){if(Array.isArray(e))return tu(e)}function tu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var zM=function(t){return t},Cd={},Id=function(t){return t===Cd},Ql=function(t){return function r(){return arguments.length===0||arguments.length===1&&Id(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},GM=function e(t,r){return t===1?r:Ql(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==Cd}).length;return o>=t?r.apply(void 0,i):e(t-o,Ql(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return Id(l)?c.shift():l});return r.apply(void 0,BM(f).concat(c))}))})},ka=function(t){return GM(t.length,t)},ru=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},KM=ka(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),HM=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return zM;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},nu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Dd=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function qM(e){var t;return e===0?t=1:t=Math.floor(new ae(e).abs().log(10).toNumber())+1,t}function XM(e,t,r){for(var n=new ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var VM=ka(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),YM=ka(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),ZM=ka(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const La={rangeStep:XM,getDigitCount:qM,interpolateNumber:VM,uninterpolateNumber:YM,uninterpolateTruncation:ZM};function iu(e){return eC(e)||QM(e)||Nd(e)||JM()}function JM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QM(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function eC(e){if(Array.isArray(e))return au(e)}function mn(e,t){return nC(e)||rC(e,t)||Nd(e,t)||tC()}function tC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nd(e,t){if(e){if(typeof e=="string")return au(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return au(e,t)}}function au(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rC(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function nC(e){if(Array.isArray(e))return e}function kd(e){var t=mn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Ld(e,t,r){if(e.lte(0))return new ae(0);var n=La.getDigitCount(e.toNumber()),i=new ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ae(Math.ceil(c))}function iC(e,t,r){var n=1,i=new ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ae(10).pow(La.getDigitCount(e)-1),i=new ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ae(Math.floor(e)))}else e===0?i=new ae(Math.floor((t-1)/2)):r||(i=new ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=HM(KM(function(c){return i.add(new ae(c-o).mul(n)).toNumber()}),ru);return u(0,t)}function Bd(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ae(0),tickMin:new ae(0),tickMax:new ae(0)};var a=Ld(new ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ae(0):(o=new ae(e).add(t).div(2),o=o.sub(new ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ae(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?Bd(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ae(u).mul(a)),tickMax:o.add(new ae(c).mul(a))})}function aC(e){var t=mn(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=kd([r,n]),c=mn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(iu(ru(0,i-1).map(function(){return 1/0}))):[].concat(iu(ru(0,i-1).map(function(){return-1/0})),[f]);return r>n?nu(l):l}if(s===f)return iC(s,i,a);var p=Bd(s,f,o,a),h=p.step,y=p.tickMin,v=p.tickMax,d=La.rangeStep(y,v.add(new ae(.1).mul(h)),h);return r>n?nu(d):d}function oC(e,t){var r=mn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=kd([n,i]),u=mn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=Ld(new ae(s).sub(c).div(f-1),a,0),p=[].concat(iu(La.rangeStep(new ae(c),new ae(s).sub(new ae(.99).mul(l)),l)),[s]);return n>i?nu(p):p}var uC=Dd(aC),cC=Dd(oC),sC="Invariant failed";function Gt(e,t){throw new Error(sC)}var lC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function yr(e){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yr(e)}function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ci.apply(this,arguments)}function fC(e,t){return vC(e)||dC(e,t)||hC(e,t)||pC()}function pC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hC(e,t){if(e){if(typeof e=="string")return ef(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ef(e,t)}}function ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function vC(e){if(Array.isArray(e))return e}function yC(e,t){if(e==null)return{};var r=mC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ud(n.key),n)}}function xC(e,t,r){return t&&bC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wC(e,t,r){return t=Ii(t),OC(e,Rd()?Reflect.construct(t,r||[],Ii(e).constructor):t.apply(e,r))}function OC(e,t){if(t&&(yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SC(e)}function SC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rd=function(){return!!e})()}function Ii(e){return Ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ii(e)}function _C(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ou(e,t)}function ou(e,t){return ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ou(e,t)}function Fd(e,t,r){return t=Ud(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ud(e){var t=AC(e,"string");return yr(t)=="symbol"?t:t+""}function AC(e,t){if(yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kn=function(e){function t(){return gC(this,t),wC(this,t,arguments)}return _C(t,e),xC(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,p=yC(n,lC),h=Q(p,!1);this.props.direction==="x"&&f.type!=="number"&&Gt();var y=c.map(function(v){var d=s(v,u),b=d.x,x=d.y,w=d.value,O=d.errorVal;if(!O)return null;var m=[],g,S;if(Array.isArray(O)){var _=fC(O,2);g=_[0],S=_[1]}else g=S=O;if(a==="vertical"){var A=f.scale,C=x+i,T=C+o,P=C-o,D=A(w-g),M=A(w+S);m.push({x1:M,y1:T,x2:M,y2:P}),m.push({x1:D,y1:C,x2:M,y2:C}),m.push({x1:D,y1:T,x2:D,y2:P})}else if(a==="horizontal"){var E=l.scale,I=b+i,N=I-o,R=I+o,U=E(w-g),K=E(w+S);m.push({x1:N,y1:K,x2:R,y2:K}),m.push({x1:I,y1:U,x2:I,y2:K}),m.push({x1:N,y1:U,x2:R,y2:U})}return $.createElement(ve,Ci({className:"recharts-errorBar",key:"bar-".concat(m.map(function(q){return"".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))},h),m.map(function(q){return $.createElement("line",Ci({},q,{key:"line-".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))}))});return $.createElement(ve,{className:"recharts-errorBars"},y)}}])}($.Component);Fd(Kn,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Fd(Kn,"displayName","ErrorBar");function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}function tf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tf(Object(r),!0).forEach(function(n){PC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PC(e,t,r){return t=$C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $C(e){var t=TC(e,"string");return gn(t)=="symbol"?t:t+""}function TC(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wd=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Be(r,or);if(!o)return null;var u=or.defaultProps,c=u!==void 0?Mt(Mt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var p=l.item,h=l.props,y=h.sectors||h.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||p.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,p=l.type.defaultProps,h=p!==void 0?Mt(Mt({},p),l.props):{},y=h.dataKey,v=h.name,d=h.legendType,b=h.hide;return{inactive:b,dataKey:y,type:c.iconType||d||"square",color:Fc(l),value:v||y,payload:h}}),Mt(Mt(Mt({},c),or.getWithHeight(o,i)),{},{payload:s,item:o})};function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function rf(e){return CC(e)||MC(e)||EC(e)||jC()}function jC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EC(e,t){if(e){if(typeof e=="string")return uu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uu(e,t)}}function MC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CC(e){if(Array.isArray(e))return uu(e)}function uu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nf(Object(r),!0).forEach(function(n){ur(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ur(e,t,r){return t=IC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IC(e){var t=DC(e,"string");return bn(t)=="symbol"?t:t+""}function DC(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fe(e,t,r){return Z(e)||Z(t)?r:Se(t)?Ke(e,t,r):J(t)?t(e):r}function nn(e,t,r,n){var i=MM(e,function(u){return Fe(u,t)});if(r==="number"){var a=i.filter(function(u){return F(u)||parseFloat(u)});return a.length?[Da(a),Ia(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return Se(u)||u instanceof Date?u:""})}var NC=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,p=s>=u-1?i[0].coordinate:i[s+1].coordinate,h=void 0;if(tt(l-f)!==tt(p-l)){var y=[];if(tt(p-l)===tt(c[1]-c[0])){h=p;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{h=f;var d=p+c[1]-c[0];y[0]=Math.min(l,(d+l)/2),y[1]=Math.max(l,(d+l)/2)}var b=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var x=Math.min(f,p),w=Math.max(f,p);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Fc=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?de(de({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},kC=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),p=0,h=l.length;p<h;p++){var y=f[l[p]],v=y.items,d=y.cateAxisId,b=v.filter(function(S){return lt(S.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?de(de({},x),b[0].props):b[0].props,O=w.barSize,m=w[d];o[m]||(o[m]=[]);var g=Z(O)?r:O;o[m].push({item:b[0],stackList:b.slice(1),barSize:Z(g)?void 0:Wt(g,n,0)})}}return o},LC=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=Wt(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var p=!1,h=i/c,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&h>0&&(p=!0,h*=.9,y=c*h);var v=(i-y)/2>>0,d={offset:v-s,size:0};f=o.reduce(function(O,m){var g={item:m.item,position:{offset:d.offset+d.size+s,size:p?h:m.barSize}},S=[].concat(rf(O),[g]);return d=S[S.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){S.push({item:_,position:d})}),S},l)}else{var b=Wt(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var x=(i-2*b-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,g){var S=[].concat(rf(O),[{item:m.item,position:{offset:b+(x+s)*g+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){S.push({item:_,position:S[S.length-1].position})}),S},l)}return f},BC=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Wd({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,p=f.height,h=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&h!=="center"&&F(t[h]))return de(de({},t),{},ur({},h,t[h]+(l||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&y!=="middle"&&F(t[y]))return de(de({},t),{},ur({},y,t[y]+(p||0)))}return t},RC=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},zd=function(t,r,n,i,a){var o=r.props.children,u=He(o,Kn).filter(function(s){return RC(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=Fe(f,n);if(Z(l))return s;var p=Array.isArray(l)?[Da(l),Ia(l)]:[l,l],h=c.reduce(function(y,v){var d=Fe(f,v,0),b=p[0]-Math.abs(Array.isArray(d)?d[0]:d),x=p[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(h[0],s[0]),Math.max(h[1],s[1])]},[1/0,-1/0])}return null},FC=function(t,r,n,i,a){var o=r.map(function(u){return zd(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},Gd=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&zd(t,c,s,i)||nn(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},Kd=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Lt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?tt(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var p=a?a.indexOf(l):l;return{coordinate:i(p)+s,value:l,offset:s}});return f.filter(function(l){return!Fn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,p){return{coordinate:i(l)+s,value:l,index:p,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,p){return{coordinate:i(l)+s,value:a?a[l]:l,index:p,offset:s}})},ho=new WeakMap,ei=function(t,r){if(typeof r!="function")return t;ho.has(t)||ho.set(t,new WeakMap);var n=ho.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},UC=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:dn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:$i(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:rn(),realScaleType:"point"}:a==="category"?{scale:dn(),realScaleType:"band"}:{scale:$i(),realScaleType:"linear"};if(Ut(i)){var c="scale".concat(xa(i));return{scale:(Yl[c]||rn)(),realScaleType:Yl[c]?c:"point"}}return J(i)?{scale:i}:{scale:rn(),realScaleType:"point"}},af=1e-4,WC=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-af,o=Math.max(i[0],i[1])+af,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},zC=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},GC=function(t,r){if(!r||r.length!==2||!F(r[0])||!F(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!F(t[0])||t[0]<n)&&(a[0]=n),(!F(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},KC=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=Fn(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},HC=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=Fn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},qC={sign:KC,expand:Ex,none:cr,silhouette:Mx,wiggle:Cx,positive:HC},XC=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=qC[n],o=jx().keys(i).value(function(u,c){return+Fe(u,c,0)}).order(Do).offset(a);return o(t)},VC=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,p){var h,y=(h=p.type)!==null&&h!==void 0&&h.defaultProps?de(de({},p.type.defaultProps),p.props):p.props,v=y.stackId,d=y.hide;if(d)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(Se(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(p),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[Un("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return de(de({},l),{},ur({},b,x))},c),f={};return Object.keys(s).reduce(function(l,p){var h=s[p];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,d){var b=h.stackGroups[d];return de(de({},v),{},ur({},d,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:XC(t,b.items,a)}))},y)}return de(de({},l),{},ur({},p,h))},f)},YC=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=uC(s,a,u);return t.domain([Da(f),Ia(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),p=cC(l,a,u);return{niceTicks:p}}return null};function of(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Z(i[t.dataKey])){var u=oi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Fe(i,Z(o)?t.dataKey:o);return Z(c)?null:t.scale(c)}var uf=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Fe(o,r.dataKey,r.domain[u]);return Z(c)?null:r.scale(c)-a/2+i},ZC=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},JC=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?de(de({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Se(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},QC=function(t){return t.reduce(function(r,n){return[Da(n.concat([r[0]]).filter(F)),Ia(n.concat([r[1]]).filter(F))]},[1/0,-1/0])},Hd=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=QC(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},cf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sf=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cu=function(t,r,n){if(J(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(F(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(cf.test(t[0])){var a=+cf.exec(t[0])[1];i[0]=r[0]-a}else J(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(F(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(sf.test(t[1])){var o=+sf.exec(t[1])[1];i[1]=r[1]+o}else J(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Di=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=yc(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},lf=function(t,r,n){return!t||!t.length||Na(t,Ke(n,"type.defaultProps.domain"))?r:t},qd=function(t,r){var n=t.type.defaultProps?de(de({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return de(de({},Q(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Fc(t),value:Fe(r,i),type:c,payload:r,chartType:s,hide:f})};function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function ff(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ff(Object(r),!0).forEach(function(n){eI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ff(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eI(e,t,r){return t=tI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tI(e){var t=rI(e,"string");return xn(t)=="symbol"?t:t+""}function rI(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ni=Math.PI/180,nI=function(t){return t*180/Math.PI},Te=function(t,r,n,i){return{x:t+Math.cos(-Ni*i)*n,y:r+Math.sin(-Ni*i)*n}},iI=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},aI=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=iI({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:nI(s),angleInRadian:s}},oI=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},uI=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},hf=function(t,r){var n=t.x,i=t.y,a=aI({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=oI(r),l=f.startAngle,p=f.endAngle,h=u,y;if(l<=p){for(;h>p;)h-=360;for(;h<l;)h+=360;y=h>=l&&h<=p}else{for(;h>l;)h-=360;for(;h<p;)h+=360;y=h>=p&&h<=l}return y?pf(pf({},r),{},{radius:o,angle:uI(h,r)}):null};function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}var cI=["offset"];function sI(e){return hI(e)||pI(e)||fI(e)||lI()}function lI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
27In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fI(e,t){if(e){if(typeof e=="string")return su(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return su(e,t)}}function pI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hI(e){if(Array.isArray(e))return su(e)}function su(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dI(e,t){if(e==null)return{};var r=vI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function df(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?df(Object(r),!0).forEach(function(n){yI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):df(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yI(e,t,r){return t=mI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mI(e){var t=gI(e,"string");return wn(t)=="symbol"?t:t+""}function gI(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},On.apply(this,arguments)}var bI=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return J(n)?n(i):i},xI=function(t,r){var n=tt(r-t),i=Math.min(Math.abs(r-t),360);return n*i},wI=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,p=c.outerRadius,h=c.startAngle,y=c.endAngle,v=c.clockWise,d=(l+p)/2,b=xI(h,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=h+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var m=Te(s,f,d,w),g=Te(s,f,d,w+(O?1:-1)*359),S="M".concat(m.x,",").concat(m.y,`
28    A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`,
29    `).concat(g.x,",").concat(g.y),_=Z(t.id)?Un("recharts-radial-line-"):t.id;return $.createElement("text",On({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",u)}),$.createElement("defs",null,$.createElement("path",{id:_,d:S})),$.createElement("textPath",{xlinkHref:"#".concat(_)},r))},OI=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,p=(f+l)/2;if(i==="outside"){var h=Te(o,u,s+n,p),y=h.x,v=h.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(c+s)/2,b=Te(o,u,d,p),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},SI=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,p=l*i,h=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,d=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:h};return Oe(Oe({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+p,textAnchor:"middle",verticalAnchor:y};return Oe(Oe({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return Oe(Oe({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+s+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return Oe(Oe({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var S=n?{width:s,height:f}:{};return a==="insideLeft"?Oe({x:u+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},S):a==="insideRight"?Oe({x:u+s-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},S):a==="insideTop"?Oe({x:u+s/2,y:c+p,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?Oe({x:u+s/2,y:c+f-p,textAnchor:"middle",verticalAnchor:h},S):a==="insideTopLeft"?Oe({x:u+d,y:c+p,textAnchor:x,verticalAnchor:y},S):a==="insideTopRight"?Oe({x:u+s-d,y:c+p,textAnchor:b,verticalAnchor:y},S):a==="insideBottomLeft"?Oe({x:u+d,y:c+f-p,textAnchor:x,verticalAnchor:h},S):a==="insideBottomRight"?Oe({x:u+s-d,y:c+f-p,textAnchor:b,verticalAnchor:h},S):Ir(a)&&(F(a.x)||Nt(a.x))&&(F(a.y)||Nt(a.y))?Oe({x:u+Wt(a.x,s),y:c+Wt(a.y,f),textAnchor:"end",verticalAnchor:"end"},S):Oe({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},S)},_I=function(t){return"cx"in t&&F(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=dI(e,cI),i=Oe({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,p=i.textBreakAll;if(!a||Z(u)&&Z(c)&&!L.isValidElement(s)&&!J(s))return null;if(L.isValidElement(s))return L.cloneElement(s,i);var h;if(J(s)){if(h=L.createElement(s,i),L.isValidElement(h))return h}else h=bI(i);var y=_I(a),v=Q(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return wI(i,h,v);var d=y?OI(i):SI(i);return $.createElement(Oi,On({className:te("recharts-label",l)},v,d,{breakAll:p}),h)}Ee.displayName="Label";var Xd=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,p=t.y,h=t.top,y=t.left,v=t.width,d=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(F(v)&&F(d)){if(F(l)&&F(p))return{x:l,y:p,width:v,height:d};if(F(h)&&F(y))return{x:h,y,width:v,height:d}}return F(l)&&F(p)?{x:l,y:p,width:0,height:0}:F(r)&&F(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},AI=function(t,r){return t?t===!0?$.createElement(Ee,{key:"label-implicit",viewBox:r}):Se(t)?$.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):L.isValidElement(t)?t.type===Ee?L.cloneElement(t,{key:"label-implicit",viewBox:r}):$.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):J(t)?$.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Ir(t)?$.createElement(Ee,On({viewBox:r},t,{key:"label-implicit"})):null:null},PI=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=Xd(t),o=He(i,Ee).map(function(c,s){return L.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=AI(t.label,r||a);return[u].concat(sI(o))};Ee.parseViewBox=Xd;Ee.renderCallByParent=PI;function $I(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var TI=$I;const jI=fe(TI);function Sn(e){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(e)}var EI=["valueAccessor"],MI=["data","dataKey","clockWise","id","textBreakAll"];function CI(e){return kI(e)||NI(e)||DI(e)||II()}function II(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
30In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DI(e,t){if(e){if(typeof e=="string")return lu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lu(e,t)}}function NI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kI(e){if(Array.isArray(e))return lu(e)}function lu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ki.apply(this,arguments)}function vf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vf(Object(r),!0).forEach(function(n){LI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LI(e,t,r){return t=BI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BI(e){var t=RI(e,"string");return Sn(t)=="symbol"?t:t+""}function RI(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mf(e,t){if(e==null)return{};var r=FI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var UI=function(t){return Array.isArray(t.value)?jI(t.value):t.value};function St(e){var t=e.valueAccessor,r=t===void 0?UI:t,n=mf(e,EI),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=mf(n,MI);return!i||!i.length?null:$.createElement(ve,{className:"recharts-label-list"},i.map(function(f,l){var p=Z(a)?r(f,l):Fe(f&&f.payload,a),h=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return $.createElement(Ee,ki({},Q(f,!0),s,h,{parentViewBox:f.parentViewBox,value:p,textBreakAll:c,viewBox:Ee.parseViewBox(Z(o)?f:yf(yf({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}St.displayName="LabelList";function WI(e,t){return e?e===!0?$.createElement(St,{key:"labelList-implicit",data:t}):$.isValidElement(e)||J(e)?$.createElement(St,{key:"labelList-implicit",data:t,content:e}):Ir(e)?$.createElement(St,ki({data:t},e,{key:"labelList-implicit"})):null:null}function zI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=He(n,St).map(function(o,u){return L.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=WI(e.label,t);return[a].concat(CI(i))}St.renderCallByParent=zI;function _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fu.apply(this,arguments)}function gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gf(Object(r),!0).forEach(function(n){GI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GI(e,t,r){return t=KI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KI(e){var t=HI(e,"string");return _n(t)=="symbol"?t:t+""}function HI(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qI=function(t,r){var n=tt(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ti=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/Ni,p=s?a:a+o*l,h=Te(r,n,f,p),y=Te(r,n,i,p),v=s?a-o*l:a,d=Te(r,n,f*Math.cos(l*Ni),v);return{center:h,circleTangency:y,lineTangency:d,theta:l}},Vd=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=qI(o,u),s=o+c,f=Te(r,n,a,o),l=Te(r,n,a,s),p="M ".concat(f.x,",").concat(f.y,`
31    A `).concat(a,",").concat(a,`,0,
32    `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
33    `).concat(l.x,",").concat(l.y,`
34  `);if(i>0){var h=Te(r,n,i,o),y=Te(r,n,i,s);p+="L ".concat(y.x,",").concat(y.y,`
35            A `).concat(i,",").concat(i,`,0,
36            `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
37            `).concat(h.x,",").concat(h.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},XI=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=tt(f-s),p=ti({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),h=p.circleTangency,y=p.lineTangency,v=p.theta,d=ti({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=d.circleTangency,x=d.lineTangency,w=d.theta,O=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
38        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
39        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
40      `):Vd({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
41    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,`
42    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
43    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
44  `);if(i>0){var g=ti({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),S=g.circleTangency,_=g.lineTangency,A=g.theta,C=ti({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),T=C.circleTangency,P=C.lineTangency,D=C.theta,M=c?Math.abs(s-f):Math.abs(s-f)-A-D;if(M<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(P.x,",").concat(P.y,`
45      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(T.x,",").concat(T.y,`
46      A`).concat(i,",").concat(i,",0,").concat(+(M>180),",").concat(+(l>0),",").concat(S.x,",").concat(S.y,`
47      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},VI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Yd=function(t){var r=bf(bf({},VI),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,p=r.className;if(o<a||f===l)return null;var h=te("recharts-sector",p),y=o-a,v=Wt(u,y,0,!0),d;return v>0&&Math.abs(f-l)<360?d=XI({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):d=Vd({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),$.createElement("path",fu({},Q(r,!0),{className:h,d,role:"img"}))};function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pu.apply(this,arguments)}function xf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xf(Object(r),!0).forEach(function(n){YI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YI(e,t,r){return t=ZI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZI(e){var t=JI(e,"string");return An(t)=="symbol"?t:t+""}function JI(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Of={curveBasisClosed:gx,curveBasisOpen:bx,curveBasis:mx,curveBumpX:nx,curveBumpY:ix,curveLinearClosed:xx,curveLinear:Oa,curveMonotoneX:wx,curveMonotoneY:Ox,curveNatural:Sx,curveStep:_x,curveStepAfter:Px,curveStepBefore:Ax},ri=function(t){return t.x===+t.x&&t.y===+t.y},Yr=function(t){return t.x},Zr=function(t){return t.y},QI=function(t,r){if(J(t))return t;var n="curve".concat(xa(t));return(n==="curveMonotone"||n==="curveBump")&&r?Of["".concat(n).concat(r==="vertical"?"Y":"X")]:Of[n]||Oa},e2=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,c=t.connectNulls,s=c===void 0?!1:c,f=QI(n,u),l=s?a.filter(function(v){return ri(v)}):a,p;if(Array.isArray(o)){var h=s?o.filter(function(v){return ri(v)}):o,y=l.map(function(v,d){return wf(wf({},v),{},{base:h[d]})});return u==="vertical"?p=Xn().y(Zr).x1(Yr).x0(function(v){return v.base.x}):p=Xn().x(Yr).y1(Zr).y0(function(v){return v.base.y}),p.defined(ri).curve(f),p(y)}return u==="vertical"&&F(o)?p=Xn().y(Zr).x1(Yr).x0(o):F(o)?p=Xn().x(Yr).y1(Zr).y0(o):p=rh().x(Yr).y(Zr),p.defined(ri).curve(f),p(l)},hu=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?e2(t):i;return L.createElement("path",pu({},Q(t,!1),ui(t),{className:te("recharts-curve",r),d:o,ref:a}))},Zd={exports:{}},t2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",r2=t2,n2=r2;function Jd(){}function Qd(){}Qd.resetWarningCache=Jd;var i2=function(){function e(n,i,a,o,u,c){if(c!==n2){var s=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 s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qd,resetWarningCache:Jd};return r.PropTypes=r,r};Zd.exports=i2();var a2=Zd.exports;const ne=fe(a2),{getOwnPropertyNames:o2,getOwnPropertySymbols:u2}=Object,{hasOwnProperty:c2}=Object.prototype;function vo(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ni(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function s2(e){return e!=null?e[Symbol.toStringTag]:void 0}function Sf(e){return o2(e).concat(u2(e))}const l2=Object.hasOwn||((e,t)=>c2.call(e,t));function Xt(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const f2="__v",p2="__o",h2="_owner",{getOwnPropertyDescriptor:_f,keys:Af}=Object;function d2(e,t){return e.byteLength===t.byteLength&&Li(new Uint8Array(e),new Uint8Array(t))}function v2(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function y2(e,t){return e.byteLength===t.byteLength&&Li(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function m2(e,t){return Xt(e.getTime(),t.getTime())}function g2(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function b2(e,t){return e===t}function Pf(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const s=t.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const p=o.value,h=u.value;if(r.equals(p[0],h[0],c,l,e,t,r)&&r.equals(p[1],h[1],p[0],h[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const x2=Xt;function w2(e,t,r){const n=Af(e);let i=n.length;if(Af(t).length!==i)return!1;for(;i-- >0;)if(!ev(e,t,r,n[i]))return!1;return!0}function Jr(e,t,r){const n=Sf(e);let i=n.length;if(Sf(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!ev(e,t,r,a)||(o=_f(e,a),u=_f(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function O2(e,t){return Xt(e.valueOf(),t.valueOf())}function S2(e,t){return e.source===t.source&&e.flags===t.flags}function $f(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const c=t.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function Li(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function _2(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function ev(e,t,r,n){return(n===h2||n===p2||n===f2)&&(e.$$typeof||t.$$typeof)?!0:l2(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const A2="[object ArrayBuffer]",P2="[object Arguments]",$2="[object Boolean]",T2="[object DataView]",j2="[object Date]",E2="[object Error]",M2="[object Map]",C2="[object Number]",I2="[object Object]",D2="[object RegExp]",N2="[object Set]",k2="[object String]",L2={"[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
47]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},B2="[object URL]",R2=Object.prototype.toString;function F2({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:p,areUrlsEqual:h,unknownTagComparators:y}){return function(d,b,x){if(d===b)return!0;if(d==null||b==null)return!1;const w=typeof d;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(d,b,x):w==="function"?a(d,b,x):!1;const O=d.constructor;if(O!==b.constructor)return!1;if(O===Object)return c(d,b,x);if(Array.isArray(d))return t(d,b,x);if(O===Date)return n(d,b,x);if(O===RegExp)return f(d,b,x);if(O===Map)return o(d,b,x);if(O===Set)return l(d,b,x);const m=R2.call(d);if(m===j2)return n(d,b,x);if(m===D2)return f(d,b,x);if(m===M2)return o(d,b,x);if(m===N2)return l(d,b,x);if(m===I2)return typeof d.then!="function"&&typeof b.then!="function"&&c(d,b,x);if(m===B2)return h(d,b,x);if(m===E2)return i(d,b,x);if(m===P2)return c(d,b,x);if(L2[m])return p(d,b,x);if(m===A2)return e(d,b,x);if(m===T2)return r(d,b,x);if(m===$2||m===C2||m===k2)return s(d,b,x);if(y){let g=y[m];if(!g){const S=s2(d);S&&(g=y[S])}if(g)return g(d,b,x)}return!1}}function U2({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:d2,areArraysEqual:r?Jr:v2,areDataViewsEqual:y2,areDatesEqual:m2,areErrorsEqual:g2,areFunctionsEqual:b2,areMapsEqual:r?vo(Pf,Jr):Pf,areNumbersEqual:x2,areObjectsEqual:r?Jr:w2,arePrimitiveWrappersEqual:O2,areRegExpsEqual:S2,areSetsEqual:r?vo($f,Jr):$f,areTypedArraysEqual:r?vo(Li,Jr):Li,areUrlsEqual:_2,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=ni(n.areArraysEqual),a=ni(n.areMapsEqual),o=ni(n.areObjectsEqual),u=ni(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function W2(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function z2({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=e?new WeakMap:void 0,meta:f}=r();return t(u,c,{cache:s,equals:n,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const G2=$t();$t({strict:!0});$t({circular:!0});$t({circular:!0,strict:!0});$t({createInternalComparator:()=>Xt});$t({strict:!0,createInternalComparator:()=>Xt});$t({circular:!0,createInternalComparator:()=>Xt});$t({circular:!0,createInternalComparator:()=>Xt,strict:!0});function $t(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=U2(e),o=F2(a),u=r?r(o):W2(o);return z2({circular:t,comparator:o,createState:n,equals:u,strict:i})}function K2(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Tf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):K2(i)};requestAnimationFrame(n)}function du(e){"@babel/helpers - typeof";return du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},du(e)}function H2(e){return Y2(e)||V2(e)||X2(e)||q2()}function q2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X2(e,t){if(e){if(typeof e=="string")return jf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jf(e,t)}}function jf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y2(e){if(Array.isArray(e))return e}function Z2(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=H2(o),c=u[0],s=u.slice(1);if(typeof c=="number"){Tf(i.bind(null,s),c);return}i(c),Tf(i.bind(null,s));return}du(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Pn(e){"@babel/helpers - typeof";return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(e)}function Ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 23,303 bytes, lines 48-64
48t%2?Ef(Object(r),!0).forEach(function(n){tv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ef(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tv(e,t,r){return t=J2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J2(e){var t=Q2(e,"string");return Pn(t)==="symbol"?t:String(t)}function Q2(e,t){if(Pn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eD=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},tD=function(t){return t},rD=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},an=function(t,r){return Object.keys(r).reduce(function(n,i){return Mf(Mf({},n),{},tv({},i,t(i,r[i])))},{})},Cf=function(t,r,n){return t.map(function(i){return"".concat(rD(i)," ").concat(r,"ms ").concat(n)}).join(",")};function nD(e,t){return oD(e)||aD(e,t)||rv(e,t)||iD()}function iD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function oD(e){if(Array.isArray(e))return e}function uD(e){return lD(e)||sD(e)||rv(e)||cD()}function cD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rv(e,t){if(e){if(typeof e=="string")return vu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vu(e,t)}}function sD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lD(e){if(Array.isArray(e))return vu(e)}function vu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Bi=1e-4,nv=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},iv=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},If=function(t,r){return function(n){var i=nv(t,r);return iv(i,n)}},fD=function(t,r){return function(n){var i=nv(t,r),a=[].concat(uD(i.map(function(o,u){return o*u}).slice(1)),[0]);return iv(a,n)}},Df=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),f=nD(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=If(i,o),p=If(a,u),h=fD(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var m=l(w)-x,g=h(w);if(Math.abs(m-x)<Bi||g<Bi)return p(w);w=y(w-m/g)}return p(w)};return v.isStepper=!1,v},pD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,p){var h=-(f-l)*n,y=p*a,v=p+(h-y)*u/1e3,d=p*u/1e3+f;return Math.abs(d-l)<Bi&&Math.abs(v)<Bi?[l,0]:[d,v]};return c.isStepper=!0,c.dt=u,c},hD=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Df(i);case"spring":return pD();default:if(i.split("(")[0]==="cubic-bezier")return Df(i)}return typeof i=="function"?i:null};function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}function Nf(e){return yD(e)||vD(e)||av(e)||dD()}function dD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
51In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yD(e){if(Array.isArray(e))return mu(e)}function kf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kf(Object(r),!0).forEach(function(n){yu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yu(e,t,r){return t=mD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mD(e){var t=gD(e,"string");return $n(t)==="symbol"?t:String(t)}function gD(e,t){if($n(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bD(e,t){return OD(e)||wD(e,t)||av(e,t)||xD()}function xD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
52In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function av(e,t){if(e){if(typeof e=="string")return mu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mu(e,t)}}function mu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function OD(e){if(Array.isArray(e))return e}var Ri=function(t,r,n){return t+(r-t)*n},gu=function(t){var r=t.from,n=t.to;return r!==n},SD=function e(t,r,n){var i=an(function(a,o){if(gu(o)){var u=t(o.from,o.to,o.velocity),c=bD(u,2),s=c[0],f=c[1];return $e($e({},o),{},{from:s,velocity:f})}return o},r);return n<1?an(function(a,o){return gu(o)?$e($e({},o),{},{velocity:Ri(o.velocity,i[a].velocity,n),from:Ri(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const _D=function(e,t,r,n,i){var a=eD(e,t),o=a.reduce(function(d,b){return $e($e({},d),{},yu({},b,[e[b],t[b]]))},{}),u=a.reduce(function(d,b){return $e($e({},d),{},yu({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,s,f,l=function(){return null},p=function(){return an(function(b,x){return x.from},u)},h=function(){return!Object.values(u).filter(gu).length},y=function(b){s||(s=b);var x=b-s,w=x/r.dt;u=SD(r,u,w),i($e($e($e({},e),t),p())),s=b,h()||(c=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=an(function(m,g){return Ri.apply(void 0,Nf(g).concat([r(x)]))},o);if(i($e($e($e({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=an(function(m,g){return Ri.apply(void 0,Nf(g).concat([r(1)]))},o);i($e($e($e({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}};function mr(e){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(e)}var AD=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function PD(e,t){if(e==null)return{};var r=$D(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $D(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function yo(e){return MD(e)||ED(e)||jD(e)||TD()}function TD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jD(e,t){if(e){if(typeof e=="string")return bu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bu(e,t)}}function ED(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MD(e){if(Array.isArray(e))return bu(e)}function bu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lf(Object(r),!0).forEach(function(n){en(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function en(e,t,r){return t=ov(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ID(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ov(n.key),n)}}function DD(e,t,r){return t&&ID(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ov(e){var t=ND(e,"string");return mr(t)==="symbol"?t:String(t)}function ND(e,t){if(mr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xu(e,t)}function xu(e,t){return xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xu(e,t)}function LD(e){var t=BD();return function(){var n=Fi(e),i;if(t){var a=Fi(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return wu(this,i)}}function wu(e,t){if(t&&(mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ou(e)}function Ou(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fi(e)}var vt=function(e){kD(r,e);var t=LD(r);function r(n,i){var a;CD(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,p=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ou(a)),a.changeStyle=a.changeStyle.bind(Ou(a)),!u||h<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:f}),wu(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof p=="function")return a.state={style:s},wu(a);a.state={style:c?en({},c,s):s}}else a.state={style:{}};return a}return DD(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,p=this.state.style;if(u){if(!o){var h={style:c?en({},c,f):f};this.state&&p&&(c&&p[c]!==f||!c&&p!==f)&&this.setState(h);return}if(!(G2(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||s?l:i.to;if(this.state&&p){var d={style:c?en({},c,v):v};(c&&p[c]!==v||!c&&p!==v)&&this.setState(d)}this.runAnimation(Ye(Ye({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,p=i.onAnimationStart,h=_D(o,u,hD(s),c,this.changeStyle),y=function(){a.stopJSAnimation=h()};this.manager.start([p,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,p=l===void 0?0:l,h=function(v,d,b){if(b===0)return v;var x=d.duration,w=d.easing,O=w===void 0?"ease":w,m=d.style,g=d.properties,S=d.onAnimationEnd,_=b>0?o[b-1]:d,A=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(yo(v),[a.runJSAnimation.bind(a,{from:_.style,to:m,duration:x,easing:O}),x]);var C=Cf(A,x,O),T=Ye(Ye(Ye({},_.style),m),{},{transition:C});return[].concat(yo(v),[T,x,S]).filter(tD)};return this.manager.start([c].concat(yo(o.reduce(h,[f,Math.max(p,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Z2());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,p=i.steps,h=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof h=="function"||s==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var v=u?en({},u,c):c,d=Cf(Object.keys(v),o,s);y.start([f,a,Ye(Ye({},v),{},{transition:d}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=PD(i,AD),s=L.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(h){var y=h.props,v=y.style,d=v===void 0?{}:v,b=y.className,x=L.cloneElement(h,Ye(Ye({},c),{},{style:Ye(Ye({},d),f),className:b}));return x};return s===1?l(L.Children.only(a)):$.createElement("div",null,L.Children.map(a,function(p){return l(p)}))}}]),r}(L.PureComponent);vt.displayName="Animate";vt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};vt.propTypes={from:ne.oneOfType([ne.object,ne.string]),to:ne.oneOfType([ne.object,ne.string]),attributeName:ne.string,duration:ne.number,begin:ne.number,easing:ne.oneOfType([ne.string,ne.func]),steps:ne.arrayOf(ne.shape({duration:ne.number.isRequired,style:ne.object.isRequired,easing:ne.oneOfType([ne.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ne.func]),properties:ne.arrayOf("string"),onAnimationEnd:ne.func})),children:ne.oneOfType([ne.node,ne.func]),isActive:ne.bool,canBegin:ne.bool,onAnimationEnd:ne.func,shouldReAnimate:ne.bool,onAnimationStart:ne.func,onAnimationReStart:ne.func};function Tn(e){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ui.apply(this,arguments)}function RD(e,t){return zD(e)||WD(e,t)||UD(e,t)||FD()}function FD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UD(e,t){if(e){if(typeof e=="string")return Bf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bf(e,t)}}function Bf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function zD(e){if(Array.isArray(e))return e}function Rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ff(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rf(Object(r),!0).forEach(function(n){GD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GD(e,t,r){return t=KD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KD(e){var t=HD(e,"string");return Tn(t)=="symbol"?t:t+""}function HD(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uf=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],p=0,h=4;p<h;p++)l[p]=a[p]>o?o:a[p];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
55        `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`,
56        `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
57        `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
58            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,`
59            L `).concat(t+n-c*y,",").concat(r,`
60            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,`
61            L `).concat(t+n,",").concat(r+i-u*y,`
62            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
63            L `).concat(t+c*y,",").concat(r+i,`
64            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},qD=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),p=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=p}return!1},XD={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Uc=function(t){var r=Ff(Ff({},XD),t),n=L.useRef(),i=L.useState(-1),a=RD(i,2),o=a[0],u=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,p=r.radius,h=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=te("recharts-rectangle",h);return x?$.createElement(vt,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,g=O.height,S=O.x,_=O.y;return $.createElement(vt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:b,easing:y},$.createElement("path",Ui({},Q(r,!0),{className:w,d:Uf(S,_,m,g,p),ref:n})))}):$.createElement("path",Ui({},Q(r,!0),{className:w,d:Uf(c,s,f,l,p)}))};function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Su.apply(this,arguments)}var Wc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=te("recharts-dot",a);return r===+r&&n===+n&&i===+i?L.createElement("circle",Su({},Q(t,!1),ui(t),{className:o,cx:r,cy:n,r:i})):null};function jn(e){"@babel/helpers - typeof";return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}var VD=["x","y","top","left","width","height","className"];function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
64for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_u.apply(this,arguments)}function Wf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wf(Object(r),!0).forEach(function(n){ZD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZD(e,t,r){return t=JD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JD(e){var t=QD(e,"string");return jn(t)=="symbol"?t:t+""}function QD(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eN(e,t){if(e==null)return{};var r=tN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var rN=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},nN=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,p=t.height,h=p===void 0?0:p,y=t.className,v=eN(t,VD),d=YD({x:n,y:a,top:u,left:s,width:l,height:h},v);return!F(n)||!F(a)||!F(l)||!F(h)||!F(u)||!F(s)?null:$.createElement("path",_u({},Q(d,!0),{className:te("recharts-cross",y),d:rN(n,a,l,h,u,s)}))},iN=Ph,aN=iN(Object.getPrototypeOf,Object),oN=aN,uN=yt,cN=oN,sN=mt,lN="[object Object]",fN=Function.prototype,pN=Object.prototype,uv=fN.toString,hN=pN.hasOwnProperty,dN=uv.call(Object);function vN(e){if(!sN(e)||uN(e)!=lN)return!1;var t=cN(e);if(t===null)return!0;var r=hN.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&uv.call(r)==dN}var yN=vN;const mN=fe(yN);var gN=yt,bN=mt,xN="[object Boolean]";function wN(e){return e===!0||e===!1||bN(e)&&gN(e)==xN}var ON=wN;const SN=fe(ON);function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wi.apply(this,arguments)}function _N(e,t){return TN(e)||$N(e,t)||PN(e,t)||AN()}function AN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PN(e,t){if(e){if(typeof e=="string")return zf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zf(e,t)}}function zf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $N(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function TN(e){if(Array.isArray(e))return e}function Gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 5,749 bytes, line 65
65t%2?Gf(Object(r),!0).forEach(function(n){jN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jN(e,t,r){return t=EN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EN(e){var t=MN(e,"string");return En(t)=="symbol"?t:t+""}function MN(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hf=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},CN={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},IN=function(t){var r=Kf(Kf({},CN),t),n=L.useRef(),i=L.useState(-1),a=_N(i,2),o=a[0],u=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,p=r.height,h=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||p!==+p||f===0&&l===0||p===0)return null;var x=te("recharts-trapezoid",h);return b?$.createElement(vt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:p,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,m=w.lowerWidth,g=w.height,S=w.x,_=w.y;return $.createElement(vt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:y},$.createElement("path",Wi({},Q(r,!0),{className:x,d:Hf(S,_,O,m,g),ref:n})))}):$.createElement("g",null,$.createElement("path",Wi({},Q(r,!0),{className:x,d:Hf(c,s,f,l,p)})))},DN=["option","shapeType","propTransformer","activeClassName","isActive"];function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function NN(e,t){if(e==null)return{};var r=kN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qf(Object(r),!0).forEach(function(n){LN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LN(e,t,r){return t=BN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BN(e){var t=RN(e,"string");return Mn(t)=="symbol"?t:t+""}function RN(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FN(e,t){return zi(zi({},t),e)}function UN(e,t){return e==="symbols"}function Xf(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return $.createElement(Uc,r);case"trapezoid":return $.createElement(IN,r);case"sector":return $.createElement(Yd,r);case"symbols":if(UN(t))return $.createElement(uc,r);break;default:return null}}function WN(e){return L.isValidElement(e)?e.props:e}function zN(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?FN:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=NN(e,DN),s;if(L.isValidElement(t))s=L.cloneElement(t,zi(zi({},c),WN(t)));else if(J(t))s=t(c);else if(mN(t)&&!SN(t)){var f=i(t,c);s=$.createElement(Xf,{shapeType:r,elementProps:f})}else{var l=c;s=$.createElement(Xf,{shapeType:r,elementProps:l})}return u?$.createElement(ve,{className:o},s):s}function Ba(e,t){return t!=null&&"trapezoids"in e.props}function Ra(e,t){return t!=null&&"sectors"in e.props}function Cn(e,t){return t!=null&&"points"in e.props}function GN(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function KN(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function HN(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function qN(e,t){var r;return Ba(e,t)?r=GN:Ra(e,t)?r=KN:Cn(e,t)&&(r=HN),r}function XN(e,t){var r;return Ba(e,t)?r="trapezoids":Ra(e,t)?r="sectors":Cn(e,t)&&(r="points"),r}function VN(e,t){if(Ba(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Ra(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Cn(e,t)?t.payload:{}}
65function YN(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=XN(r,t),a=VN(r,t),o=n.filter(function(c,s){var f=Na(a,c),l=r.props[i].filter(function(y){var v=qN(r,t);return v(y,t)}),p=r.props[i].indexOf(l[l.length-1]),h=s===p;return f&&h}),u=n.indexOf(o[o.length-1]);return u}var ZN=Math.ceil,JN=Math.max;function QN(e,t,r,n){for(var i=-1,a=JN(ZN((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var ek=QN,tk=Gh,Vf=1/0,rk=17976931348623157e292;function nk(e){if(!e)return e===0?e:0;if(e=tk(e),e===Vf||e===-Vf){var t=e<0?-1:1;return t*rk}return e===e?e:0}var ik=nk,ak=ek,ok=Pa,mo=ik;function uk(e){return function(t,r,n){return n&&typeof n!="number"&&ok(t,r,n)&&(r=n=void 0),t=mo(t),r===void 0?(r=t,t=0):r=mo(r),n=n===void 0?t<r?1:-1:mo(n),ak(t,r,n,e)}}var ck=uk,sk=ck,lk=sk(),fk=lk;const Gi=fe(fk);function In(e){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(e)}function Yf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yf(Object(r),!0).forEach(function(n){cv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cv(e,t,r){return t=pk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pk(e){var t=hk(e,"string");return In(t)=="symbol"?t:t+""}function hk(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dk=["Webkit","Moz","O","ms"],vk=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=dk.reduce(function(a,o){return Zf(Zf({},a),{},cv({},o+n,r))},{});return i[t]=r,i};function gr(e){"@babel/helpers - typeof";return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(e)}function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ki.apply(this,arguments)}function Jf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function go(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jf(Object(r),!0).forEach(function(n){Le(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lv(n.key),n)}}function mk(e,t,r){return t&&Qf(e.prototype,t),r&&Qf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gk(e,t,r){return t=Hi(t),bk(e,sv()?Reflect.construct(t,r||[],Hi(e).constructor):t.apply(e,r))}function bk(e,t){if(t&&(gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xk(e)}function xk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sv=function(){return!!e})()}
vendor: 112,559 bytes, lines 65-70
65function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hi(e)}function wk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Au(e,t)}function Au(e,t){return Au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Au(e,t)}function Le(e,t,r){return t=lv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lv(e){var t=Ok(e,"string");return gr(t)=="symbol"?t:t+""}function Ok(e,t){if(gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sk=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=rn().domain(Gi(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},ep=function(t){return t.changedTouches&&!!t.changedTouches.length},br=function(e){function t(r){var n;return yk(this,t),n=gk(this,t,[r]),Le(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Le(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Le(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Le(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Le(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Le(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Le(n,"handleSlideDragStart",function(i){var a=ep(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return wk(t,e),mk(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),p=Math.max(i,a),h=t.getIndexInRange(o,l),y=t.getIndexInRange(o,p);return{startIndex:h-h%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Fe(a[n],u,n);return J(o)?o(c,n):c}},{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(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,p=c.startIndex,h=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==p||d.endIndex!==h)&&y&&y(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=ep(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,p=f.width,h=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+p-h-s):x<0&&(x=Math.max(x,l-s)),b[o]=s+x;var w=this.getIndex(b),O=w.startIndex,m=w.endIndex,g=function(){var _=d.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||u<c&&m===_||o==="endX"&&(u>c?m%v===0:O%v===0)||u>c&&m===_};this.setState(Le(Le({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&g()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var p=l+n;if(!(p===-1||p>=u.length)){var h=u[p];i==="startX"&&h>=s||i==="endX"&&h<=c||this.setState(Le({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return $.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=L.Children.only(s);return l?$.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,p=c.traveller,h=c.ariaLabel,y=c.data,v=c.startIndex,d=c.endIndex,b=Math.max(n,this.props.x),x=go(go({},Q(this.props,!1)),{},{x:b,y:s,width:f,height:l}),w=h||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return $.createElement(ve,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return $.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,p=f.endX,h=5,y={pointerEvents:"none",fill:s};return $.createElement(ve,{className:"recharts-brush-texts"},$.createElement(Oi,Ki({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,p)-h,y:o+u/2},y),this.getTextOfTick(i)),$.createElement(Oi,Ki({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,p)+c+h,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,p=this.state,h=p.startX,y=p.endX,v=p.isTextActive,d=p.isSlideMoving,b=p.isTravellerMoving,x=p.isTravellerFocused;if(!i||!i.length||!F(u)||!F(c)||!F(s)||!F(f)||s<=0||f<=0)return null;var w=te("recharts-brush",a),O=$.Children.count(o)===1,m=vk("userSelect","none");return $.createElement(ve,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return $.createElement($.Fragment,null,$.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),$.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),$.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return $.isValidElement(n)?a=$.cloneElement(n,i):J(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return go({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?Sk({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var p=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])}(L.PureComponent);Le(br,"displayName","Brush");Le(br,"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 _k=vc;function Ak(e,t){var r;return _k(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var Pk=Ak,$k=gh,Tk=Fr,jk=Pk,Ek=De,Mk=Pa;function Ck(e,t,r){var n=Ek(e)?$k:jk;return r&&Mk(e,t,r)&&(t=void 0),n(e,Tk(t))}var Ik=Ck;const Dk=fe(Ik);var it=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},tp=Rh;function Nk(e,t,r){t=="__proto__"&&tp?tp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var kk=Nk,Lk=kk,Bk=Lh,Rk=Fr;function Fk(e,t){var r={};return t=Rk(t),Bk(e,function(n,i,a){Lk(r,i,t(n,i,a))}),r}var Uk=Fk;const Wk=fe(Uk);function zk(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Gk=zk,Kk=vc;function Hk(e,t){var r=!0;return Kk(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var qk=Hk,Xk=Gk,Vk=qk,Yk=Fr,Zk=De,Jk=Pa;function Qk(e,t,r){var n=Zk(e)?Xk:Vk;return r&&Jk(e,t,r)&&(t=void 0),n(e,Yk(t))}var eL=Qk;const tL=fe(eL);var rL=["x","y"];function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pu.apply(this,arguments)}function rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rp(Object(r),!0).forEach(function(n){nL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nL(e,t,r){return t=iL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iL(e){var t=aL(e,"string");return Dn(t)=="symbol"?t:t+""}function aL(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oL(e,t){if(e==null)return{};var r=uL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cL(e,t){var r=e.x,n=e.y,i=oL(e,rL),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),p=parseInt(l,10);return Qr(Qr(Qr(Qr(Qr({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function np(e){return $.createElement(zN,Pu({shapeType:"rectangle",propTransformer:cL,activeClassName:"recharts-active-bar"},e))}var sL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=F(n)||Wb(n);return a?t(n,i):(a||Gt(),r)}},lL=["value","background"],fv;function xr(e){"@babel/helpers - typeof";return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xr(e)}function fL(e,t){if(e==null)return{};var r=pL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qi.apply(this,arguments)}function ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ip(Object(r),!0).forEach(function(n){wt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ip(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ap(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hv(n.key),n)}}function dL(e,t,r){return t&&ap(e.prototype,t),r&&ap(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vL(e,t,r){return t=Xi(t),yL(e,pv()?Reflect.construct(t,r||[],Xi(e).constructor):t.apply(e,r))}function yL(e,t){if(t&&(xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mL(e)}function mL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pv=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(e)}function gL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$u(e,t)}function $u(e,t){return $u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$u(e,t)}function wt(e,t,r){return t=hv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hv(e){var t=bL(e,"string");return xr(t)=="symbol"?t:t+""}function bL(e,t){if(xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vt=function(e){function t(){var r;hL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=vL(this,t,[].concat(i)),wt(r,"state",{isAnimationFinished:!1}),wt(r,"id",Un("recharts-bar-")),wt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),wt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return gL(t,e),dL(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=Q(this.props,!1);return n&&n.map(function(l,p){var h=p===c,y=h?s:o,v=me(me(me({},f),l),{},{isActive:h,option:y,index:p,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return $.createElement(ve,qi({className:"recharts-bar-rectangle"},ci(i.props,l,p),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(p)}),$.createElement(np,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,p=this.state.prevData;return $.createElement(vt,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var y=h.t,v=a.map(function(d,b){var x=p&&p[b];if(x){var w=et(x.x,d.x),O=et(x.y,d.y),m=et(x.width,d.width),g=et(x.height,d.height);return me(me({},d),{},{x:w(y),y:O(y),width:m(y),height:g(y)})}if(o==="horizontal"){var S=et(0,d.height),_=S(y);return me(me({},d),{},{y:d.y+d.height-_,height:_})}var A=et(0,d.width),C=A(y);return me(me({},d),{},{width:C})});return $.createElement(ve,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Na(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=Q(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,p=fL(s,lL);if(!l)return null;var h=me(me(me(me(me({},p),{},{fill:"#eee"},l),c),ci(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return $.createElement(np,qi({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=He(f,Kn);if(!l)return null;var p=s==="vertical"?o[0].height/2:o[0].width/2,h=function(d,b){var x=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:x,errorVal:Fe(d,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return $.createElement(ve,y,l.map(function(v){return $.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:p,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,p=n.height,h=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,b=te("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,m=Z(v)?this.id:v;return $.createElement(ve,{className:b},x||w?$.createElement("defs",null,$.createElement("clipPath",{id:"clipPath-".concat(m)},$.createElement("rect",{x:x?s:s-l/2,y:w?f:f-p/2,width:x?l:l*2,height:w?p:p*2}))):null,$.createElement(ve,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!h||d)&&St.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(L.PureComponent);fv=Vt;wt(Vt,"displayName","Bar");wt(Vt,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ur.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});wt(Vt,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,p=e.offset,h=zC(n,r);if(!h)return null;var y=t.layout,v=r.type.defaultProps,d=v!==void 0?me(me({},v),r.props):r.props,b=d.dataKey,x=d.children,w=d.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,g=ZC({numericAxis:O}),S=He(x,Hh),_=l.map(function(A,C){var T,P,D,M,E,I;s?T=GC(s[f+C],m):(T=Fe(A,b),Array.isArray(T)||(T=[g,T]));var N=sL(w,fv.defaultProps.minPointSize)(T[1],C);if(y==="horizontal"){var R,U=[o.scale(T[0]),o.scale(T[1])],K=U[0],q=U[1];P=uf({axis:a,ticks:u,bandSize:i,offset:h.offset,entry:A,index:C}),D=(R=q??K)!==null&&R!==void 0?R:void 0,M=h.size;var z=K-q;if(E=Number.isNaN(z)?0:z,I={x:P,y:o.y,width:M,height:o.height},Math.abs(N)>0&&Math.abs(E)<Math.abs(N)){var X=tt(E||N)*(Math.abs(N)-Math.abs(E));D-=X,E+=X}}else{var ce=[a.scale(T[0]),a.scale(T[1])],ye=ce[0],Ne=ce[1];if(P=ye,D=uf({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:A,index:C}),M=Ne-ye,E=h.size,I={x:a.x,y:D,width:a.width,height:E},Math.abs(N)>0&&Math.abs(M)<Math.abs(N)){var Tt=tt(M||N)*(Math.abs(N)-Math.abs(M));M+=Tt}}return me(me(me({},A),{},{x:P,y:D,width:M,height:E,value:s?T:T[1],payload:A,background:I},S&&S[C]&&S[C].props),{},{tooltipPayload:[qd(r,A)],tooltipPosition:{x:P+M/2,y:D+E/2}})});return me({data:_,layout:y},p)});function Nn(e){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(e)}function xL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function op(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dv(n.key),n)}}function wL(e,t,r){return t&&op(e.prototype,t),r&&op(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?up(Object(r),!0).forEach(function(n){Fa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):up(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fa(e,t,r){return t=dv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dv(e){var t=OL(e,"string");return Nn(t)=="symbol"?t:t+""}function OL(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vv=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},p=!!Be(s,Vt);return f.reduce(function(h,y){var v=r[y],d=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,g="".concat(d).concat(O?"Mirror":""),S,_,A,C,T;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=b[1]-b[0],D=1/0,M=v.categoricalDomain.sort(Kb);if(M.forEach(function(ce,ye){ye>0&&(D=Math.min((ce||0)-(M[ye-1]||0),D))}),Number.isFinite(D)){var E=D/P,I=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(S=E*I/2),v.padding==="no-gap"){var N=Wt(t.barCategoryGap,E*I),R=E*I/2;S=R-N-(R-N)/I*N}}}i==="xAxis"?_=[n.left+(w.left||0)+(S||0),n.left+n.width-(w.right||0)-(S||0)]:i==="yAxis"?_=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(S||0),n.top+n.height-(w.bottom||0)-(S||0)]:_=v.range,m&&(_=[_[1],_[0]]);var U=UC(v,a,p),K=U.scale,q=U.realScaleType;K.domain(b).range(_),WC(K);var z=YC(K,Je(Je({},v),{},{realScaleType:q}));i==="xAxis"?(T=d==="top"&&!O||d==="bottom"&&O,A=n.left,C=l[g]-T*v.height):i==="yAxis"&&(T=d==="left"&&!O||d==="right"&&O,A=l[g]-T*v.width,C=n.top);var X=Je(Je(Je({},v),z),{},{realScaleType:q,x:A,y:C,scale:K,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=Di(X,z),!v.hide&&i==="xAxis"?l[g]+=(T?-1:1)*X.height:v.hide||(l[g]+=(T?-1:1)*X.width),Je(Je({},h),{},Fa({},y,X))},{})},yv=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},SL=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return yv({x:r,y:n},{x:i,y:a})},mv=function(){function e(t){xL(this,e),this.scale=t}return wL(e,[{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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Fa(mv,"EPS",1e-4);var zc=function(t){var r=Object.keys(t).reduce(function(n,i){return Je(Je({},n),{},Fa({},i,mv.create(t[i])))},{});return Je(Je({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return Wk(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return tL(i,function(a,o){return r[o].isInRange(a)})}})};function _L(e){return(e%180+180)%180}var AL=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=_L(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},PL=Xg(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),gv=L.createContext(void 0),bv=L.createContext(void 0),xv=L.createContext(void 0),$L=L.createContext({}),wv=L.createContext(void 0),Ov=L.createContext(0),Sv=L.createContext(0),cp=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=PL(a);return $.createElement(gv.Provider,{value:n},$.createElement(bv.Provider,{value:i},$.createElement($L.Provider,{value:a},$.createElement(xv.Provider,{value:f},$.createElement(wv.Provider,{value:o},$.createElement(Ov.Provider,{value:s},$.createElement(Sv.Provider,{value:c},u)))))))},TL=function(){return L.useContext(wv)},_v=function(t){var r=L.useContext(gv);r==null&&Gt();var n=r[t];return n==null&&Gt(),n},Av=function(t){var r=L.useContext(bv);r==null&&Gt();var n=r[t];return n==null&&Gt(),n},jL=function(){var t=L.useContext(xv);return t},Pv=function(){return L.useContext(Sv)},$v=function(){return L.useContext(Ov)};function wr(e){"@babel/helpers - typeof";return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function EL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ML(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jv(n.key),n)}}function CL(e,t,r){return t&&ML(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IL(e,t,r){return t=Vi(t),DL(e,Tv()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function DL(e,t){if(t&&(wr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NL(e)}function NL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tv=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function kL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tu(e,t)}function Tu(e,t){return Tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tu(e,t)}function sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(r),!0).forEach(function(n){Gc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gc(e,t,r){return t=jv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jv(e){var t=LL(e,"string");return wr(t)=="symbol"?t:t+""}function LL(e,t){if(wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function BL(e,t){return WL(e)||UL(e,t)||FL(e,t)||RL()}function RL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
66In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FL(e,t){if(e){if(typeof e=="string")return fp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fp(e,t)}}function fp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function UL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function WL(e){if(Array.isArray(e))return e}function ju(){return ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ju.apply(this,arguments)}var zL=function(t,r){var n;return $.isValidElement(t)?n=$.cloneElement(t,r):J(t)?n=t(r):n=$.createElement("line",ju({},r,{className:"recharts-reference-line-line"})),n},GL=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,p=a.width,h=a.height;if(n){var y=s.y,v=t.y.apply(y,{position:o});if(it(s,"discard")&&!t.y.isInRange(v))return null;var d=[{x:f+p,y:v},{x:f,y:v}];return c==="left"?d.reverse():d}if(r){var b=s.x,x=t.x.apply(b,{position:o});if(it(s,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+h},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,m=O.map(function(g){return t.apply(g,{position:o})});return it(s,"discard")&&Dk(m,function(g){return!t.isInRange(g)})?null:m}return null};function KL(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=TL(),f=_v(i),l=Av(a),p=jL();if(!s||!p)return null;Bt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=zc({x:f.scale,y:l.scale}),y=Se(t),v=Se(r),d=n&&n.length===2,b=GL(h,y,v,d,p,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=BL(b,2),w=x[0],O=w.x,m=w.y,g=x[1],S=g.x,_=g.y,A=it(e,"hidden")?"url(#".concat(s,")"):void 0,C=lp(lp({clipPath:A},Q(e,!0)),{},{x1:O,y1:m,x2:S,y2:_});return $.createElement(ve,{className:te("recharts-reference-line",u)},zL(o,C),Ee.renderCallByParent(e,SL({x1:O,y1:m,x2:S,y2:_})))}var Kc=function(e){function t(){return EL(this,t),IL(this,t,arguments)}return kL(t,e),CL(t,[{key:"render",value:function(){return $.createElement(KL,this.props)}}])}($.Component);Gc(Kc,"displayName","ReferenceLine");Gc(Kc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eu.apply(this,arguments)}function Or(e){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(e)}function pp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pp(Object(r),!0).forEach(function(n){Ua(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mv(n.key),n)}}function XL(e,t,r){return t&&qL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VL(e,t,r){return t=Yi(t),YL(e,Ev()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function YL(e,t){if(t&&(Or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZL(e)}function ZL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ev(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ev=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function JL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mu(e,t)}function Mu(e,t){return Mu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mu(e,t)}function Ua(e,t,r){return t=Mv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mv(e){var t=QL(e,"string");return Or(t)=="symbol"?t:t+""}function QL(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eB=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=zc({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return it(t,"discard")&&!o.isInRange(u)?null:u},Wa=function(e){function t(){return HL(this,t),VL(this,t,arguments)}return JL(t,e),XL(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=Se(i),f=Se(a);if(Bt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=eB(this.props);if(!l)return null;var p=l.x,h=l.y,y=this.props,v=y.shape,d=y.className,b=it(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=hp(hp({clipPath:b},Q(this.props,!0)),{},{cx:p,cy:h});return $.createElement(ve,{className:te("recharts-reference-dot",d)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:p-o,y:h-o,width:2*o,height:2*o}))}}])}($.Component);Ua(Wa,"displayName","ReferenceDot");Ua(Wa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ua(Wa,"renderDot",function(e,t){var r;return $.isValidElement(e)?r=$.cloneElement(e,t):J(e)?r=e(t):r=$.createElement(Wc,Eu({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cu.apply(this,arguments)}function Sr(e){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function dp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dp(Object(r),!0).forEach(function(n){za(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Iv(n.key),n)}}function nB(e,t,r){return t&&rB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iB(e,t,r){return t=Zi(t),aB(e,Cv()?Reflect.construct(t,r||[],Zi(e).constructor):t.apply(e,r))}function aB(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oB(e)}function oB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cv=function(){return!!e})()}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}function uB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iu(e,t)}function Iu(e,t){return Iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Iu(e,t)}function za(e,t,r){return t=Iv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iv(e){var t=cB(e,"string");return Sr(t)=="symbol"?t:t+""}function cB(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sB=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var p=zc({x:f.scale,y:l.scale}),h={x:t?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(c,{position:"start"}):p.y.rangeMin},y={x:r?p.x.apply(u,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(s,{position:"end"}):p.y.rangeMax};return it(a,"discard")&&(!p.isInRange(h)||!p.isInRange(y))?null:yv(h,y)},Ga=function(e){function t(){return tB(this,t),iB(this,t,arguments)}return uB(t,e),nB(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;Bt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Se(i),p=Se(a),h=Se(o),y=Se(u),v=this.props.shape;if(!l&&!p&&!h&&!y&&!v)return null;var d=sB(l,p,h,y,this.props);if(!d&&!v)return null;var b=it(this.props,"hidden")?"url(#".concat(f,")"):void 0;return $.createElement(ve,{className:te("recharts-reference-area",c)},t.renderRect(v,vp(vp({clipPath:b},Q(this.props,!0)),d)),Ee.renderCallByParent(this.props,d))}}])}($.Component);za(Ga,"displayName","ReferenceArea");za(Ga,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});za(Ga,"renderRect",function(e,t){var r;return $.isValidElement(e)?r=$.cloneElement(e,t):J(e)?r=e(t):r=$.createElement(Uc,Cu({},t,{className:"recharts-reference-area-rect"})),r});function Dv(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function lB(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return AL(n,r)}function fB(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Ji(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function pB(e,t){return Dv(e,t+1)}function hB(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:Dv(n,s)};var v=c,d,b=function(){return d===void 0&&(d=r(y,v)),d},x=y.coordinate,w=c===0||Ji(e,x,b,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(b()/2+i),c+=s)},p;s<=a.length;)if(p=l(),p)return p.v;return[]}function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yp(Object(r),!0).forEach(function(n){dB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dB(e,t,r){return t=vB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vB(e){var t=yB(e,"string");return kn(t)=="symbol"?t:t+""}function yB(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mB(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(p){var h=a[p],y,v=function(){return y===void 0&&(y=r(h,p)),y};if(p===o-1){var d=e*(h.coordinate+e*v()/2-c);a[p]=h=je(je({},h),{},{tickCoord:d>0?h.coordinate-d*e:h.coordinate})}else a[p]=h=je(je({},h),{},{tickCoord:h.coordinate});var b=Ji(e,h.tickCoord,v,u,c);b&&(c=h.tickCoord-e*(v()/2+i),a[p]=je(je({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function gB(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),p=e*(f.coordinate+e*l/2-s);o[u-1]=f=je(je({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var h=Ji(e,f.tickCoord,function(){return l},c,s);h&&(s=f.tickCoord-e*(l/2+i),o[u-1]=je(je({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var g=e*(w.coordinate-e*m()/2-c);o[x]=w=je(je({},w),{},{tickCoord:g<0?w.coordinate-g*e:w.coordinate})}else o[x]=w=je(je({},w),{},{tickCoord:w.coordinate});var S=Ji(e,w.tickCoord,m,c,s);S&&(c=w.tickCoord+e*(m()/2+i),o[x]=je(je({},w),{},{isShow:!0}))},d=0;d<y;d++)v(d);return o}function bB(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(F(c)||Ur.isSsr)return pB(i,typeof c=="number"&&F(c)?c:0);var p=[],h=u==="top"||u==="bottom"?"width":"height",y=f&&h==="width"?tn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=J(s)?s(w.value,O):w.value;return h==="width"?lB(tn(m,{fontSize:t,letterSpacing:r}),y,l):tn(m,{fontSize:t,letterSpacing:r})[h]},d=i.length>=2?tt(i[1].coordinate-i[0].coordinate):1,b=fB(a,d,h);return c==="equidistantPreserveStart"?hB(d,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?p=gB(d,b,v,i,o,c==="preserveStartEnd"):p=mB(d,b,v,i,o),p.filter(function(x){return x.isShow}))}var xB=["viewBox"],wB=["viewBox"],OB=["ticks"];function _r(e){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(e)}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nr.apply(this,arguments)}function mp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mp(Object(r),!0).forEach(function(n){Hc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bo(e,t){if(e==null)return{};var r=SB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kv(n.key),n)}}function AB(e,t,r){return t&&gp(e.prototype,t),r&&gp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PB(e,t,r){return t=Qi(t),$B(e,Nv()?Reflect.construct(t,r||[],Qi(e).constructor):t.apply(e,r))}function $B(e,t){if(t&&(_r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TB(e)}function TB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nv=function(){return!!e})()}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qi(e)}function jB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Du(e,t)}function Du(e,t){return Du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Du(e,t)}function Hc(e,t,r){return t=kv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kv(e){var t=EB(e,"string");return _r(t)=="symbol"?t:t+""}function EB(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ka=function(e){function t(r){var n;return _B(this,t),n=PB(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return jB(t,e),AB(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=bo(n,xB),u=this.props,c=u.viewBox,s=bo(u,wB);return!ar(a,c)||!ar(o,s)||!ar(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,p=i.tickMargin,h,y,v,d,b,x,w=l?-1:1,O=n.tickSize||f,m=F(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":h=y=n.coordinate,d=o+ +!l*c,v=d-w*O,x=v-w*p,b=m;break;case"left":v=d=n.coordinate,y=a+ +!l*u,h=y-w*O,b=h-w*p,x=m;break;case"right":v=d=n.coordinate,y=a+ +l*u,h=y+w*O,b=h+w*p,x=m;break;default:h=y=n.coordinate,d=o+ +l*c,v=d+w*O,x=v+w*p,b=m;break}return{line:{x1:h,y1:v,x2:y,y2:d},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.orientation,s=n.mirror,f=n.axisLine,l=we(we(we({},Q(this.props,!1)),Q(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!s||c==="bottom"&&s);l=we(we({},l),{},{x1:i,y1:a+p*u,x2:i+o,y2:a+p*u})}else{var h=+(c==="left"&&!s||c==="right"&&s);l=we(we({},l),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+u})}return $.createElement("line",nr({},l,{className:te("recharts-cartesian-axis-line",Ke(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,p=u.unit,h=bB(we(we({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),d=Q(this.props,!1),b=Q(f,!1),x=we(we({},d),{},{fill:"none"},Q(c,!1)),w=h.map(function(O,m){var g=o.getTickLineCoord(O),S=g.line,_=g.tick,A=we(we(we(we({textAnchor:y,verticalAnchor:v},d),{},{stroke:"none",fill:s},b),_),{},{index:m,payload:O,visibleTicksCount:h.length,tickFormatter:l});return $.createElement(ve,nr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},ci(o.props,O,m)),c&&$.createElement("line",nr({},x,S,{className:te("recharts-cartesian-axis-tick-line",Ke(c,"className"))})),f&&t.renderTickItem(f,A,"".concat(J(l)?l(O.value,m):O.value).concat(p||"")))});return $.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,p=l.ticks,h=bo(l,OB),y=p;return J(c)&&(y=p&&p.length>0?c(this.props):c(h)),o<=0||u<=0||!y||!y.length?null:$.createElement(ve,{className:te("recharts-cartesian-axis",s),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=te(i.className,"recharts-cartesian-axis-tick-value");return $.isValidElement(n)?o=$.cloneElement(n,we(we({},i),{},{className:u})):J(n)?o=n(we(we({},i),{},{className:u})):o=$.createElement(Oi,nr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(L.Component);Hc(Ka,"displayName","CartesianAxis");Hc(Ka,"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 MB=["type","layout","connectNulls","ref"],CB=["key"];function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}function bp(e,t){if(e==null)return{};var r=IB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},on.apply(this,arguments)}function xp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xp(Object(r),!0).forEach(function(n){Qe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qt(e){return LB(e)||kB(e)||NB(e)||DB()}function DB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
67In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NB(e,t){if(e){if(typeof e=="string")return Nu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nu(e,t)}}function kB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LB(e){if(Array.isArray(e))return Nu(e)}function Nu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function BB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bv(n.key),n)}}function RB(e,t,r){return t&&wp(e.prototype,t),r&&wp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FB(e,t,r){return t=ea(t),UB(e,Lv()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function UB(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WB(e)}function WB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lv=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}function zB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ku(e,t)}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ku(e,t)}function Qe(e,t,r){return t=Bv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bv(e){var t=GB(e,"string");return Ar(t)=="symbol"?t:t+""}function GB(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ft=function(e){function t(){var r;BB(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=FB(this,t,[].concat(i)),Qe(r,"state",{isAnimationFinished:!0,totalLength:0}),Qe(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),Qe(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(b,x){return b+x});if(!s)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/s),l=o%s,p=u-o,h=[],y=0,v=0;y<c.length;v+=c[y],++y)if(v+c[y]>l){h=[].concat(Qt(c.slice(0,y)),[l-v]);break}var d=h.length%2===0?[0,p]:[p];return[].concat(Qt(t.repeat(c,f)),Qt(h),d).map(function(b){return"".concat(b,"px")}).join(", ")}),Qe(r,"id",Un("recharts-line-")),Qe(r,"pathRef",function(o){r.mainCurve=o}),Qe(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Qe(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return zB(t,e),RB(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=He(f,Kn);if(!l)return null;var p=function(v,d){return{x:v.x,y:v.y,value:v.value,errorVal:Fe(v.payload,d)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return $.createElement(ve,h,l.map(function(y){return $.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:p})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,s=u.points,f=u.dataKey,l=Q(this.props,!1),p=Q(c,!0),h=s.map(function(v,d){var b=ke(ke(ke({key:"dot-".concat(d),r:3},l),p),{},{index:d,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(c,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return $.createElement(ve,on({className:"recharts-line-dots",key:"dots"},y),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,s=u.layout,f=u.connectNulls;u.ref;var l=bp(u,MB),p=ke(ke(ke({},Q(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:s,connectNulls:f});return $.createElement(hu,on({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,h=o.animationId,y=o.animateNewValues,v=o.width,d=o.height,b=this.state,x=b.prevPoints,w=b.totalLength;return $.createElement(vt,{begin:f,duration:l,isActive:s,easing:p,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var g=x.length/u.length,S=u.map(function(P,D){var M=Math.floor(D*g);if(x[M]){var E=x[M],I=et(E.x,P.x),N=et(E.y,P.y);return ke(ke({},P),{},{x:I(m),y:N(m)})}if(y){var R=et(v*2,P.x),U=et(d/2,P.y);return ke(ke({},P),{},{x:R(m),y:U(m)})}return ke(ke({},P),{},{x:P.x,y:P.y})});return a.renderCurveStatically(S,n,i)}var _=et(0,w),A=_(m),C;if(c){var T="".concat(c).split(/[,\s]+/gim).map(function(P){return parseFloat(P)});C=a.getStrokeDasharray(A,w,T)}else C=a.generateSimpleStrokeDasharray(w,A);return a.renderCurveStatically(u,n,i,{strokeDasharray:C})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,s=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!s&&f>0||!Na(s,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.xAxis,f=i.yAxis,l=i.top,p=i.left,h=i.width,y=i.height,v=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=te("recharts-line",c),O=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,g=O||m,S=Z(d)?this.id:d,_=(n=Q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=_.r,C=A===void 0?3:A,T=_.strokeWidth,P=T===void 0?2:T,D=e0(o)?o:{},M=D.clipDot,E=M===void 0?!0:M,I=C*2+P;return $.createElement(ve,{className:w},O||m?$.createElement("defs",null,$.createElement("clipPath",{id:"clipPath-".concat(S)},$.createElement("rect",{x:O?p:p-h/2,y:m?l:l-y/2,width:O?h:h*2,height:m?y:y*2})),!E&&$.createElement("clipPath",{id:"clipPath-dots-".concat(S)},$.createElement("rect",{x:p-I/2,y:l-I/2,width:h+I,height:y+I}))):null,!x&&this.renderCurve(g,S),this.renderErrorBar(g,S),(x||o)&&this.renderDots(g,E,S),(!v||b)&&St.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Qt(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Qt(o),Qt(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if($.isValidElement(n))a=$.cloneElement(n,i);else if(J(n))a=n(i);else{var o=i.key,u=bp(i,CB),c=te("recharts-line-dot",typeof n!="boolean"?n.className:"");a=$.createElement(Wc,on({key:o},u,{className:c}))}return a}}])}(L.PureComponent);Qe(Ft,"displayName","Line");Qe(Ft,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ur.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Qe(Ft,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,c=e.displayedData,s=e.offset,f=t.layout,l=c.map(function(p,h){var y=Fe(p,o);return f==="horizontal"?{x:of({axis:r,ticks:i,bandSize:u,entry:p,index:h}),y:Z(y)?null:n.scale(y),value:y,payload:p}:{x:Z(y)?null:r.scale(y),y:of({axis:n,ticks:a,bandSize:u,entry:p,index:h}),value:y,payload:p}});return ke({points:l,layout:f},s)});function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function KB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Uv(n.key),n)}}function qB(e,t,r){return t&&HB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XB(e,t,r){return t=ta(t),VB(e,Rv()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function VB(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YB(e)}function YB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rv=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ta(e)}function ZB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lu(e,t)}function Lu(e,t){return Lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lu(e,t)}function Fv(e,t,r){return t=Uv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uv(e){var t=JB(e,"string");return Pr(t)=="symbol"?t:t+""}function JB(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bu.apply(this,arguments)}function QB(e){var t=e.xAxisId,r=Pv(),n=$v(),i=_v(t);return i==null?null:L.createElement(Ka,Bu({},i,{className:te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Lt(o,!0)}}))}var $r=function(e){function t(){return KB(this,t),XB(this,t,arguments)}return ZB(t,e),qB(t,[{key:"render",value:function(){return L.createElement(QB,this.props)}}])}(L.Component);Fv($r,"displayName","XAxis");Fv($r,"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});function Tr(e){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}function eR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gv(n.key),n)}}function rR(e,t,r){return t&&tR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nR(e,t,r){return t=ra(t),iR(e,Wv()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function iR(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aR(e)}function aR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wv=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function oR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ru(e,t)}function Ru(e,t){return Ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ru(e,t)}function zv(e,t,r){return t=Gv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gv(e){var t=uR(e,"string");return Tr(t)=="symbol"?t:t+""}function uR(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fu.apply(this,arguments)}var cR=function(t){var r=t.yAxisId,n=Pv(),i=$v(),a=Av(r);return a==null?null:L.createElement(Ka,Fu({},a,{className:te("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Lt(u,!0)}}))},jr=function(e){function t(){return eR(this,t),nR(this,t,arguments)}return oR(t,e),rR(t,[{key:"render",value:function(){return L.createElement(cR,this.props)}}])}(L.Component);zv(jr,"displayName","YAxis");zv(jr,"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});function Op(e){return pR(e)||fR(e)||lR(e)||sR()}function sR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
68In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lR(e,t){if(e){if(typeof e=="string")return Uu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uu(e,t)}}function fR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pR(e){if(Array.isArray(e))return Uu(e)}function Uu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Wu=function(t,r,n,i,a){var o=He(t,Kc),u=He(t,Wa),c=[].concat(Op(o),Op(u)),s=He(t,Ga),f="".concat(i,"Id"),l=i[0],p=r;if(c.length&&(p=c.reduce(function(v,d){if(d.props[f]===n&&it(d.props,"extendDomain")&&F(d.props[l])){var b=d.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},p)),s.length){var h="".concat(l,"1"),y="".concat(l,"2");p=s.reduce(function(v,d){if(d.props[f]===n&&it(d.props,"extendDomain")&&F(d.props[h])&&F(d.props[y])){var b=d.props[h],x=d.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},p)}return a&&a.length&&(p=a.reduce(function(v,d){return F(d)?[Math.min(v[0],d),Math.max(v[1],d)]:v},p)),p},Kv={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,l||c,p),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],h]:c._events[y].push(h):(c._events[y]=h,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var p=0,h=l.length,y=new Array(h);p<h;p++)y[p]=l[p].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,p,h,y){var v=r?r+s:s;if(!this._events[v])return!1;var d=this._events[v],b=arguments.length,x,w;if(d.fn){switch(d.once&&this.removeListener(s,d.fn,void 0,!0),b){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,f),!0;case 3:return d.fn.call(d.context,f,l),!0;case 4:return d.fn.call(d.context,f,l,p),!0;case 5:return d.fn.call(d.context,f,l,p,h),!0;case 6:return d.fn.call(d.context,f,l,p,h,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];d.fn.apply(d.context,x)}else{var O=d.length,m;for(w=0;w<O;w++)switch(d[w].once&&this.removeListener(s,d[w].fn,void 0,!0),b){case 1:d[w].fn.call(d[w].context);break;case 2:d[w].fn.call(d[w].context,f);break;case 3:d[w].fn.call(d[w].context,f,l);break;case 4:d[w].fn.call(d[w].context,f,l,p);break;default:if(!x)for(m=1,x=new Array(b-1);m<b;m++)x[m-1]=arguments[m];d[w].fn.apply(d[w].context,x)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,p){var h=r?r+s:s;if(!this._events[h])return this;if(!f)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===f&&(!p||y.once)&&(!l||y.context===l)&&o(this,h);else{for(var v=0,d=[],b=y.length;v<b;v++)(y[v].fn!==f||p&&!y[v].once||l&&y[v].context!==l)&&d.push(y[v]);d.length?this._events[h]=d.length===1?d[0]:d:o(this,h)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Kv);var hR=Kv.exports;const dR=fe(hR);var xo=new dR,wo="recharts.syncMouseEvents";function Ln(e){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(e)}function vR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hv(n.key),n)}}function mR(e,t,r){return t&&yR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oo(e,t,r){return t=Hv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hv(e){var t=gR(e,"string");return Ln(t)=="symbol"?t:t+""}function gR(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bR=function(){function e(){vR(this,e),Oo(this,"activeIndex",0),Oo(this,"coordinateList",[]),Oo(this,"layout","horizontal")}return mR(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,p=r.mouseHandlerCallback,h=p===void 0?null:p;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=h??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(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+c+s,p=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:p})}}}])}();function xR(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&F(n)&&F(i))return!0}return!1}function wR(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function qv(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Te(t,r,n,i),u=Te(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function OR(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,p=Te(u,c,s,l),h=Te(u,c,f,l);n=p.x,i=p.y,a=h.x,o=h.y}else return qv(t);return[{x:n,y:i},{x:a,y:o}]}function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function Sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sp(Object(r),!0).forEach(function(n){SR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SR(e,t,r){return t=_R(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _R(e){var t=AR(e,"string");return Bn(t)=="symbol"?t:t+""}function AR(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PR(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,p=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||p!=="ScatterChart"&&i!=="axis")return null;var y,v=hu;if(p==="ScatterChart")y=o,v=nN;else if(p==="BarChart")y=wR(l,o,c,f),v=Uc;else if(l==="radial"){var d=qv(o),b=d.cx,x=d.cy,w=d.radius,O=d.startAngle,m=d.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=Yd}else y={points:OR(l,o,c)},v=hu;var g=ii(ii(ii(ii({stroke:"#ccc",pointerEvents:"none"},c),y),Q(h,!1)),{},{payload:u,payloadIndex:s,className:te("recharts-tooltip-cursor",h.className)});return L.isValidElement(h)?L.cloneElement(h,g):L.createElement(v,g)}var $R=["item"],TR=["children","className","width","height","style","compact","title","desc"];function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}function _p(e,t){return MR(e)||ER(e,t)||Vv(e,t)||jR()}function jR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
69In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ER(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function MR(e){if(Array.isArray(e))return e}function Ap(e,t){if(e==null)return{};var r=CR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function IR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yv(n.key),n)}}function NR(e,t,r){return t&&DR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kR(e,t,r){return t=na(t),LR(e,Xv()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function LR(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BR(e)}function BR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xv=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function RR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zu(e,t)}function zu(e,t){return zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zu(e,t)}function Mr(e){return WR(e)||UR(e)||Vv(e)||FR()}function FR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
70In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vv(e,t){if(e){if(typeof e=="string")return Gu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gu(e,t)}}function UR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WR(e){if(Array.isArray(e))return Gu(e)}function Gu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pp(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=Yv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yv(e){var t=zR(e,"string");return Er(t)=="symbol"?t:t+""}function zR(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GR={xAxis:["bottom","top"],yAxis:["left","right"]},KR={width:"100%",height:"100%"},Zv={x:0,y:0};function ai(e){return e}var HR=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},qR=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return j(j(j({},i),Te(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return j(j(j({},i),Te(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return Zv},Ha=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Mr(u),Mr(s)):u},[]);return o.length>0?o:t&&t.length&&F(i)&&F(a)?t.slice(i,a+1):[]};function Jv(e){return e==="number"?[0,"auto"]:void 0}var Ku=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ha(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var h=l===void 0?u:l;p=oi(h,o.dataKey,i)}else p=l&&l[n]||u[n];return p?[].concat(Mr(c),[qd(s,p)]):c},[])},$p=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=HR(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=NC(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,p=Ku(t,r,f,l),h=qR(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:p,activeCoordinate:h}}return null},XR=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,p=t.stackOffset,h=Kd(f,a);return n.reduce(function(y,v){var d,b=v.type.defaultProps!==void 0?j(j({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,m=b.allowDuplicatedCategory,g=b.scale,S=b.ticks,_=b.includeHidden,A=b[o];if(y[A])return y;var C=Ha(t.data,{graphicalItems:i.filter(function(z){var X,ce=o in z.props?z.props[o]:(X=z.type.defaultProps)===null||X===void 0?void 0:X[o];return ce===A}),dataStartIndex:c,dataEndIndex:s}),T=C.length,P,D,M;xR(b.domain,O,x)&&(P=cu(b.domain,null,O),h&&(x==="number"||g!=="auto")&&(M=nn(C,w,"category")));var E=Jv(x);if(!P||P.length===0){var I,N=(I=b.domain)!==null&&I!==void 0?I:E;if(w){if(P=nn(C,w,x),x==="category"&&h){var R=Gb(P);m&&R?(D=P,P=Gi(0,T)):m||(P=lf(N,P,v).reduce(function(z,X){return z.indexOf(X)>=0?z:[].concat(Mr(z),[X])},[]))}else if(x==="category")m?P=P.filter(function(z){return z!==""&&!Z(z)}):P=lf(N,P,v).reduce(function(z,X){return z.indexOf(X)>=0||X===""||Z(X)?z:[].concat(Mr(z),[X])},[]);else if(x==="number"){var U=FC(C,i.filter(function(z){var X,ce,ye=o in z.props?z.props[o]:(X=z.type.defaultProps)===null||X===void 0?void 0:X[o],Ne="hide"in z.props?z.props.hide:(ce=z.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return ye===A&&(_||!Ne)}),w,a,f);U&&(P=U)}h&&(x==="number"||g!=="auto")&&(M=nn(C,w,"category"))}else h?P=Gi(0,T):u&&u[A]&&u[A].hasStack&&x==="number"?P=p==="expand"?[0,1]:Hd(u[A].stackGroups,c,s):P=Gd(C,i.filter(function(z){var X=o in z.props?z.props[o]:z.type.defaultProps[o],ce="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return X===A&&(_||!ce)}),x,f,!0);if(x==="number")P=Wu(l,P,A,a,S),N&&(P=cu(N,P,O));else if(x==="category"&&N){var K=N,q=P.every(function(z){return K.indexOf(z)>=0});q&&(P=K)}}return j(j({},y),{},H({},A,j(j({},b),{},{axisType:a,domain:P,categoricalDomain:M,duplicateDomain:D,originalDomain:(d=b.domain)!==null&&d!==void 0?d:E,isCategorical:h,layout:f})))},{})},VR=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,p=Ha(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),h=p.length,y=Kd(f,a),v=-1;return n.reduce(function(d,b){var x=b.type.defaultProps!==void 0?j(j({},b.type.defaultProps),b.props):b.props,w=x[o],O=Jv("number");if(!d[w]){v++;var m;return y?m=Gi(0,h):u&&u[w]&&u[w].hasStack?(m=Hd(u[w].stackGroups,c,s),m=Wu(l,m,w,a)):(m=cu(O,Gd(p,n.filter(function(g){var S,_,A=o in g.props?g.props[o]:(S=g.type.defaultProps)===null||S===void 0?void 0:S[o],C="hide"in g.props?g.props.hide:(_=g.type.defaultProps)===null||_===void 0?void 0:_.hide;return A===w&&!C}),"number",f),i.defaultProps.allowDataOverflow),m=Wu(l,m,w,a)),j(j({},d),{},H({},w,j(j({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ke(GR,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return d},{})},YR=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),p=He(f,a),h={};return p&&p.length?h=XR(t,{axes:p,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(h=VR(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),h},ZR=function(t){var r=tr(t),n=Lt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:yc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Di(r,n)}},Tp=function(t){var r=t.children,n=t.defaultShowTooltip,i=Be(r,br),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},JR=function(t){return!t||!t.length?!1:t.some(function(r){var n=lt(r&&r.type);return n&&n.indexOf("Bar")>=0})},jp=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},QR=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,p=n.margin||{},h=Be(l,br),y=Be(l,or),v=Object.keys(c).reduce(function(m,g){var S=c[g],_=S.orientation;return!S.mirror&&!S.hide?j(j({},m),{},H({},_,m[_]+S.width)):m},{left:p.left||0,right:p.right||0}),d=Object.keys(o).reduce(function(m,g){var S=o[g],_=S.orientation;return!S.mirror&&!S.hide?j(j({},m),{},H({},_,Ke(m,"".concat(_))+S.height)):m},{top:p.top||0,bottom:p.bottom||0}),b=j(j({},d),v),x=b.bottom;h&&(b.bottom+=h.props.height||br.defaultProps.height),y&&r&&(b=BC(b,i,n,r));var w=s-b.left-b.right,O=f-b.top-b.bottom;return j(j({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},eF=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Qv=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,p=function(b,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,g=x.updateId,S=x.dataStartIndex,_=x.dataEndIndex,A=b.barSize,C=b.layout,T=b.barGap,P=b.barCategoryGap,D=b.maxBarSize,M=jp(C),E=M.numericAxisName,I=M.cateAxisName,N=JR(w),R=[];return w.forEach(function(U,K){var q=Ha(b.data,{graphicalItems:[U],dataStartIndex:S,dataEndIndex:_}),z=U.type.defaultProps!==void 0?j(j({},U.type.defaultProps),U.props):U.props,X=z.dataKey,ce=z.maxBarSize,ye=z["".concat(E,"Id")],Ne=z["".concat(I,"Id")],Tt={},Ce=c.reduce(function(jt,Et){var qa=x["".concat(Et.axisType,"Map")],qc=z["".concat(Et.axisType,"Id")];qa&&qa[qc]||Et.axisType==="zAxis"||Gt();var Xc=qa[qc];return j(j({},jt),{},H(H({},Et.axisType,Xc),"".concat(Et.axisType,"Ticks"),Lt(Xc)))},Tt),W=Ce[I],V=Ce["".concat(I,"Ticks")],Y=O&&O[ye]&&O[ye].hasStack&&JC(U,O[ye].stackGroups),k=lt(U.type).indexOf("Bar")>=0,he=Di(W,V),ee=[],be=N&&kC({barSize:A,stackGroups:O,totalSize:eF(Ce,I)});if(k){var xe,Ie,bt=Z(ce)?D:ce,Yt=(xe=(Ie=Di(W,V,!0))!==null&&Ie!==void 0?Ie:bt)!==null&&xe!==void 0?xe:0;ee=LC({barGap:T,barCategoryGap:P,bandSize:Yt!==he?Yt:he,sizeList:be[Ne],maxBarSize:bt}),Yt!==he&&(ee=ee.map(function(jt){return j(j({},jt),{},{position:j(j({},jt.position),{},{offset:jt.position.offset-Yt/2})})}))}var Hn=U&&U.type&&U.type.getComposedData;Hn&&R.push({props:j(j({},Hn(j(j({},Ce),{},{displayedData:q,props:b,dataKey:X,item:U,bandSize:he,barPosition:ee,offset:m,stackedData:Y,layout:C,dataStartIndex:S,dataEndIndex:_}))),{},H(H(H({key:U.key||"item-".concat(K)},E,Ce[E]),I,Ce[I]),"animationId",g)),childIndex:n0(U,b.children),item:U})}),R},h=function(b,x){var w=b.props,O=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!ls({props:w}))return null;var S=w.children,_=w.layout,A=w.stackOffset,C=w.data,T=w.reverseStackOrder,P=jp(_),D=P.numericAxisName,M=P.cateAxisName,E=He(S,n),I=VC(C,E,"".concat(D,"Id"),"".concat(M,"Id"),A,T),N=c.reduce(function(z,X){var ce="".concat(X.axisType,"Map");return j(j({},z),{},H({},ce,YR(w,j(j({},X),{},{graphicalItems:E,stackGroups:X.axisType===D&&I,dataStartIndex:O,dataEndIndex:m}))))},{}),R=QR(j(j({},N),{},{props:w,graphicalItems:E}),x==null?void 0:x.legendBBox);Object.keys(N).forEach(function(z){N[z]=f(w,N[z],R,z.replace("Map",""),r)});var U=N["".concat(M,"Map")],K=ZR(U),q=p(w,j(j({},N),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:E,stackGroups:I,offset:R}));return j(j({formattedGraphicalItems:q,graphicalItems:E,offset:R,stackGroups:I},K),N)},y=function(d){function b(x){var w,O,m;return IR(this,b),m=kR(this,b,[x]),H(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(m,"accessibilityManager",new bR),H(m,"handleLegendBBoxUpdate",function(g){if(g){var S=m.state,_=S.dataStartIndex,A=S.dataEndIndex,C=S.updateId;m.setState(j({legendBBox:g},h({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:C},j(j({},m.state),{},{legendBBox:g}))))}}),H(m,"handleReceiveSyncEvent",function(g,S,_){if(m.props.syncId===g){if(_===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(S)}}),H(m,"handleBrushChange",function(g){var S=g.startIndex,_=g.endIndex;if(S!==m.state.dataStartIndex||_!==m.state.dataEndIndex){var A=m.state.updateId;m.setState(function(){return j({dataStartIndex:S,dataEndIndex:_},h({props:m.props,dataStartIndex:S,dataEndIndex:_,updateId:A},m.state))}),m.triggerSyncEvent({dataStartIndex:S,dataEndIndex:_})}}),H(m,"handleMouseEnter",function(g){var S=m.getMouseInfo(g);if(S){var _=j(j({},S),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseEnter;J(A)&&A(_,g)}}),H(m,"triggeredAfterMouseMove",function(g){var S=m.getMouseInfo(g),_=S?j(j({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseMove;J(A)&&A(_,g)}),H(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),H(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),H(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),H(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var _=m.props.onMouseLeave;J(_)&&_(S,g)}),H(m,"handleOuterEvent",function(g){var S=r0(g),_=Ke(m.props,"".concat(S));if(S&&J(_)){var A,C;/.*touch.*/i.test(S)?C=m.getMouseInfo(g.changedTouches[0]):C=m.getMouseInfo(g),_((A=C)!==null&&A!==void 0?A:{},g)}}),H(m,"handleClick",function(g){var S=m.getMouseInfo(g);if(S){var _=j(j({},S),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var A=m.props.onClick;J(A)&&A(_,g)}}),H(m,"handleMouseDown",function(g){var S=m.props.onMouseDown;if(J(S)){var _=m.getMouseInfo(g);S(_,g)}}),H(m,"handleMouseUp",function(g){var S=m.props.onMouseUp;if(J(S)){var _=m.getMouseInfo(g);S(_,g)}}),H(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),H(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),H(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),H(m,"handleDoubleClick",function(g){var S=m.props.onDoubleClick;if(J(S)){var _=m.getMouseInfo(g);S(_,g)}}),H(m,"handleContextMenu",function(g){var S=m.props.onContextMenu;if(J(S)){var _=m.getMouseInfo(g);S(_,g)}}),H(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&xo.emit(wo,m.props.syncId,g,m.eventEmitterSymbol)}),H(m,"applySyncEvent",function(g){var S=m.props,_=S.layout,A=S.syncMethod,C=m.state.updateId,T=g.dataStartIndex,P=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(j({dataStartIndex:T,dataEndIndex:P},h({props:m.props,dataStartIndex:T,dataEndIndex:P,updateId:C},m.state)));else if(g.activeTooltipIndex!==void 0){var D=g.chartX,M=g.chartY,E=g.activeTooltipIndex,I=m.state,N=I.offset,R=I.tooltipTicks;if(!N)return;if(typeof A=="function")E=A(R,g);else if(A==="value"){E=-1;for(var U=0;U<R.length;U++)if(R[U].value===g.activeLabel){E=U;break}}var K=j(j({},N),{},{x:N.left,y:N.top}),q=Math.min(D,K.x+K.width),z=Math.min(M,K.y+K.height),X=R[E]&&R[E].value,ce=Ku(m.state,m.props.data,E),ye=R[E]?{x:_==="horizontal"?R[E].coordinate:q,y:_==="horizontal"?z:R[E].coordinate}:Zv;m.setState(j(j({},g),{},{activeLabel:X,activeCoordinate:ye,activePayload:ce,activeTooltipIndex:E}))}else m.setState(g)}),H(m,"renderCursor",function(g){var S,_=m.state,A=_.isTooltipActive,C=_.activeCoordinate,T=_.activePayload,P=_.offset,D=_.activeTooltipIndex,M=_.tooltipAxisBandSize,E=m.getTooltipEventType(),I=(S=g.props.active)!==null&&S!==void 0?S:A,N=m.props.layout,R=g.key||"_recharts-cursor";return $.createElement(PR,{key:R,activeCoordinate:C,activePayload:T,activeTooltipIndex:D,chartName:r,element:g,isActive:I,layout:N,offset:P,tooltipAxisBandSize:M,tooltipEventType:E})}),H(m,"renderPolarAxis",function(g,S,_){var A=Ke(g,"type.axisType"),C=Ke(m.state,"".concat(A,"Map")),T=g.type.defaultProps,P=T!==void 0?j(j({},T),g.props):g.props,D=C&&C[P["".concat(A,"Id")]];return L.cloneElement(g,j(j({},D),{},{className:te(A,D.className),key:g.key||"".concat(S,"-").concat(_),ticks:Lt(D,!0)}))}),H(m,"renderPolarGrid",function(g){var S=g.props,_=S.radialLines,A=S.polarAngles,C=S.polarRadius,T=m.state,P=T.radiusAxisMap,D=T.angleAxisMap,M=tr(P),E=tr(D),I=E.cx,N=E.cy,R=E.innerRadius,U=E.outerRadius;return L.cloneElement(g,{polarAngles:Array.isArray(A)?A:Lt(E,!0).map(function(K){return K.coordinate}),polarRadius:Array.isArray(C)?C:Lt(M,!0).map(function(K){return K.coordinate}),cx:I,cy:N,innerRadius:R,outerRadius:U,key:g.key||"polar-grid",radialLines:_})}),H(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,S=m.props,_=S.children,A=S.width,C=S.height,T=m.props.margin||{},P=A-(T.left||0)-(T.right||0),D=Wd({children:_,formattedGraphicalItems:g,legendWidth:P,legendContent:s});if(!D)return null;var M=D.item,E=Ap(D,$R);return L.cloneElement(M,j(j({},E),{},{chartWidth:A,chartHeight:C,margin:T,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),H(m,"renderTooltip",function(){var g,S=m.props,_=S.children,A=S.accessibilityLayer,C=Be(_,Ze);if(!C)return null;var T=m.state,P=T.isTooltipActive,D=T.activeCoordinate,M=T.activePayload,E=T.activeLabel,I=T.offset,N=(g=C.props.active)!==null&&g!==void 0?g:P;return L.cloneElement(C,{viewBox:j(j({},I),{},{x:I.left,y:I.top}),active:N,label:E,payload:N?M:[],coordinate:D,accessibilityLayer:A})}),H(m,"renderBrush",function(g){var S=m.props,_=S.margin,A=S.data,C=m.state,T=C.offset,P=C.dataStartIndex,D=C.dataEndIndex,M=C.updateId;return L.cloneElement(g,{key:g.key||"_recharts-brush",onChange:ei(m.handleBrushChange,g.props.onChange),data:A,x:F(g.props.x)?g.props.x:T.left,y:F(g.props.y)?g.props.y:T.top+T.height+T.brushBottom-(_.bottom||0),width:F(g.props.width)?g.props.width:T.width,startIndex:P,endIndex:D,updateId:"brush-".concat(M)})}),H(m,"renderReferenceElement",function(g,S,_){if(!g)return null;var A=m,C=A.clipPathId,T=m.state,P=T.xAxisMap,D=T.yAxisMap,M=T.offset,E=g.type.defaultProps||{},I=g.props,N=I.xAxisId,R=N===void 0?E.xAxisId:N,U=I.yAxisId,K=U===void 0?E.yAxisId:U;return L.cloneElement(g,{key:g.key||"".concat(S,"-").concat(_),xAxis:P[R],yAxis:D[K],viewBox:{x:M.left,y:M.top,width:M.width,height:M.height},clipPathId:C})}),H(m,"renderActivePoints",function(g){var S=g.item,_=g.activePoint,A=g.basePoint,C=g.childIndex,T=g.isRange,P=[],D=S.props.key,M=S.item.type.defaultProps!==void 0?j(j({},S.item.type.defaultProps),S.item.props):S.item.props,E=M.activeDot,I=M.dataKey,N=j(j({index:C,dataKey:I,cx:_.x,cy:_.y,r:4,fill:Fc(S.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},Q(E,!1)),ui(E));return P.push(b.renderActiveDot(E,N,"".concat(D,"-activePoint-").concat(C))),A?P.push(b.renderActiveDot(E,j(j({},N),{},{cx:A.x,cy:A.y}),"".concat(D,"-basePoint-").concat(C))):T&&P.push(null),P}),H(m,"renderGraphicChild",function(g,S,_){var A=m.filterFormatItem(g,S,_);if(!A)return null;var C=m.getTooltipEventType(),T=m.state,P=T.isTooltipActive,D=T.tooltipAxis,M=T.activeTooltipIndex,E=T.activeLabel,I=m.props.children,N=Be(I,Ze),R=A.props,U=R.points,K=R.isRange,q=R.baseLine,z=A.item.type.defaultProps!==void 0?j(j({},A.item.type.defaultProps),A.item.props):A.item.props,X=z.activeDot,ce=z.hide,ye=z.activeBar,Ne=z.activeShape,Tt=!!(!ce&&P&&N&&(X||ye||Ne)),Ce={};C!=="axis"&&N&&N.props.trigger==="click"?Ce={onClick:ei(m.handleItemMouseEnter,g.props.onClick)}:C!=="axis"&&(Ce={onMouseLeave:ei(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:ei(m.handleItemMouseEnter,g.props.onMouseEnter)});var W=L.cloneElement(g,j(j({},A.props),Ce));function V(Et){return typeof D.dataKey=="function"?D.dataKey(Et.payload):null}if(Tt)if(M>=0){var Y,k;if(D.dataKey&&!D.allowDuplicatedCategory){var he=typeof D.dataKey=="function"?V:"payload.".concat(D.dataKey.toString());Y=oi(U,he,E),k=K&&q&&oi(q,he,E)}else Y=U==null?void 0:U[M],k=K&&q&&q[M];if(Ne||ye){var ee=g.props.activeIndex!==void 0?g.props.activeIndex:M;return[L.cloneElement(g,j(j(j({},A.props),Ce),{},{activeIndex:ee})),null,null]}if(!Z(Y))return[W].concat(Mr(m.renderActivePoints({item:A,activePoint:Y,basePoint:k,childIndex:M,isRange:K})))}else{var be,xe=(be=m.getItemByXY(m.state.activeCoordinate))!==null&&be!==void 0?be:{graphicalItem:W},Ie=xe.graphicalItem,bt=Ie.item,Yt=bt===void 0?g:bt,Hn=Ie.childIndex,jt=j(j(j({},A.props),Ce),{},{activeIndex:Hn});return[L.cloneElement(Yt,jt),null,null]}return K?[W,null,null]:[W,null]}),H(m,"renderCustomized",function(g,S,_){return L.cloneElement(g,j(j({key:"recharts-customized-".concat(_)},m.props),m.state))}),H(m,"renderMap",{CartesianGrid:{handler:ai,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:ai},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:ai},YAxis:{handler:ai},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:Un("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Kh(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return RR(b,d),NR(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,g=w.height,S=w.layout,_=Be(O,Ze);if(_){var A=_.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,T=Ku(this.state,m,A,C),P=this.state.tooltipTicks[A].coordinate,D=(this.state.offset.top+g)/2,M=S==="horizontal",E=M?{x:P,y:D}:{y:P,x:D},I=this.state.formattedGraphicalItems.find(function(R){var U=R.item;return U.type.name==="Scatter"});I&&(E=j(j({},E),I.props.points[A].tooltipPosition),T=I.props.points[A].tooltipPayload);var N={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:C,activePayload:T,activeCoordinate:E};this.setState(N),this.renderCursor(_),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(w){Ao([Be(w.children,Ze)],[Be(this.props.children,Ze)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Be(this.props.children,Ze);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),g=ET(m),S={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},_=m.width/O.offsetWidth||1,A=this.inRange(S.chartX,S.chartY,_);if(!A)return null;var C=this.state,T=C.xAxisMap,P=C.yAxisMap,D=this.getTooltipEventType(),M=$p(this.state,this.props.data,this.props.layout,A);if(D!=="axis"&&T&&P){var E=tr(T).scale,I=tr(P).scale,N=E&&E.invert?E.invert(S.chartX):null,R=I&&I.invert?I.invert(S.chartY):null;return j(j({},S),{},{xValue:N,yValue:R},M)}return M?j(j({},S),M):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,S=w/m,_=O/m;if(g==="horizontal"||g==="vertical"){var A=this.state.offset,C=S>=A.left&&S<=A.left+A.width&&_>=A.top&&_<=A.top+A.height;return C?{x:S,y:_}:null}var T=this.state,P=T.angleAxisMap,D=T.radiusAxisMap;if(P&&D){var M=tr(P);return hf({x:S,y:_},M)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=Be(w,Ze),g={};m&&O==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=ui(this.props,this.handleOuterEvent);return j(j({},S),g)}},{key:"addListener",value:function(){xo.on(wo,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){xo.removeListener(wo,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var g=this.state.formattedGraphicalItems,S=0,_=g.length;S<_;S++){var A=g[S];if(A.item===w||A.props.key===w.key||O===lt(A.item.type)&&m===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,g=O.top,S=O.height,_=O.width;return $.createElement("defs",null,$.createElement("clipPath",{id:w},$.createElement("rect",{x:m,y:g,height:S,width:_})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=_p(m,2),S=g[0],_=g[1];return j(j({},O),{},H({},S,_.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=_p(m,2),S=g[0],_=g[1];return j(j({},O),{},H({},S,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,g=O.activeItem;if(m&&m.length)for(var S=0,_=m.length;S<_;S++){var A=m[S],C=A.props,T=A.item,P=T.type.defaultProps!==void 0?j(j({},T.type.defaultProps),T.props):T.props,D=lt(T.type);if(D==="Bar"){var M=(C.data||[]).find(function(R){return qD(w,R)});if(M)return{graphicalItem:A,payload:M}}else if(D==="RadialBar"){var E=(C.data||[]).find(function(R){return hf(w,R)});if(E)return{graphicalItem:A,payload:E}}else if(Ba(A,g)||Ra(A,g)||Cn(A,g)){var I=YN({graphicalItem:A,activeTooltipItem:g,itemData:P.data}),N=P.activeIndex===void 0?I:P.activeIndex;return{graphicalItem:j(j({},A),{},{childIndex:N}),payload:Cn(A,g)?P.data[I]:A.props.data[I]}}}return null}},{key:"render",value:function(){var w=this;if(!ls(this))return null;var O=this.props,m=O.children,g=O.className,S=O.width,_=O.height,A=O.style,C=O.compact,T=O.title,P=O.desc,D=Ap(O,TR),M=Q(D,!1);if(C)return $.createElement(cp,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement($o,ir({},M,{width:S,height:_,title:T,desc:P}),this.renderClipPath(),ps(m,this.renderMap)));if(this.props.accessibilityLayer){var E,I;M.tabIndex=(E=this.props.tabIndex)!==null&&E!==void 0?E:0,M.role=(I=this.props.role)!==null&&I!==void 0?I:"application",M.onKeyDown=function(R){w.accessibilityManager.keyboardEvent(R)},M.onFocus=function(){w.accessibilityManager.focus()}}var N=this.parseEventsOfWrapper();return $.createElement(cp,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement("div",ir({className:te("recharts-wrapper",g),style:j({position:"relative",curs
70or:"default",width:S,height:_},A)},N,{ref:function(U){w.container=U}}),$.createElement($o,ir({},M,{width:S,height:_,title:T,desc:P,style:KR}),this.renderClipPath(),ps(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(L.Component);H(y,"displayName",r),H(y,"defaultProps",j({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(y,"getDerivedStateFromProps",function(d,b){var x=d.dataKey,w=d.data,O=d.children,m=d.width,g=d.height,S=d.layout,_=d.stackOffset,A=d.margin,C=b.dataStartIndex,T=b.dataEndIndex;if(b.updateId===void 0){var P=Tp(d);return j(j(j({},P),{},{updateId:0},h(j(j({props:d},P),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:S,prevStackOffset:_,prevMargin:A,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||m!==b.prevWidth||g!==b.prevHeight||S!==b.prevLayout||_!==b.prevStackOffset||!ar(A,b.prevMargin)){var D=Tp(d),M={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},E=j(j({},$p(b,w,S)),{},{updateId:b.updateId+1}),I=j(j(j({},D),M),E);return j(j(j({},I),h(j({props:d},I),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:S,prevStackOffset:_,prevMargin:A,prevChildren:O})}if(!Ao(O,b.prevChildren)){var N,R,U,K,q=Be(O,br),z=q&&(N=(R=q.props)===null||R===void 0?void 0:R.startIndex)!==null&&N!==void 0?N:C,X=q&&(U=(K=q.props)===null||K===void 0?void 0:K.endIndex)!==null&&U!==void 0?U:T,ce=z!==C||X!==T,ye=!Z(w),Ne=ye&&!ce?b.updateId:b.updateId+1;return j(j({updateId:Ne},h(j(j({props:d},b),{},{updateId:Ne,dataStartIndex:z,dataEndIndex:X}),b)),{},{prevChildren:O,dataStartIndex:z,dataEndIndex:X})}return null}),H(y,"renderActiveDot",function(d,b,x){var w;return L.isValidElement(d)?w=L.cloneElement(d,b):J(d)?w=d(b):w=$.createElement(Wc,b),$.createElement(ve,{className:"recharts-active-dot",key:x},w)});var v=L.forwardRef(function(b,x){return $.createElement(y,ir({},b,{ref:x}))});return v.displayName=y.displayName,v},tF=Qv({chartName:"LineChart",GraphicalChild:Ft,axisComponents:[{axisType:"xAxis",AxisComp:$r},{axisType:"yAxis",AxisComp:jr}],formatAxisMap:vv}),rF=Qv({chartName:"BarChart",GraphicalChild:Vt,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:$r},{axisType:"yAxis",AxisComp:jr}],formatAxisMap:vv});const Ep={total_views:0,total_engagement:0,total_published:0,total_scheduled:0,total_drafts:0,pending_approvals:0,platform_breakdown:{},recent_metrics:[],upcoming_schedules:[],recent_publishes:[],ga4:{connected:!1,last_sync_at:null,property_id:null,oauth_email:null,metrics:null,label:"Google Analytics"},campaign_roi:[],internal_metrics_label:"heyfilo activity"};function er({icon:e,label:t,value:r,accent:n}){return B.jsx("div",{className:"bg-claude-surface rounded-2xl border border-claude-border shadow-soft p-5 hover:shadow-card transition-shadow",children:B.jsxs("div",{className:"flex items-center gap-4",children:[B.jsx("div",{className:`p-2.5 rounded-xl ${n}`,children:B.jsx(e,{className:"h-5 w-5"})}),B.jsxs("div",{children:[B.jsx("p",{className:"text-xs font-medium text-claude-text-tertiary uppercase tracking-wider",children:t}),B.jsx("p",{className:"text-2xl font-semibold text-claude-text mt-0.5",children:r})]})]})})}function nF(e){const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function sF(){const e=ey(),{data:t,isLoading:r}=ty({queryKey:["dashboard"],queryFn:async()=>{try{const{data:l}=await sy.getDashboard();return l}catch{return Ep}},staleTime:0,refetchOnMount:"always",refetchInterval:3e4}),n=t??Ep,i=n.total_views>0||n.total_engagement>0,a=L.useMemo(()=>[...n.recent_metrics??[]].reverse().map(p=>({id:p.id,date:nF(p.date),views:p.total_views,engagement:p.total_engagement,published:p.total_published})),[n.recent_metrics]),o=L.useMemo(()=>Object.entries(n.platform_breakdown??{}).map(([l,p])=>({platform:l,count:p})),[n.platform_breakdown]),[u,c]=L.useState(!1),[s,f]=L.useState(!1);return L.useEffect(()=>{!r&&n.total_published===0?ry(async()=>{const{guidelinesApi:l}=await import("./index-BIdkve2-.js").then(p=>p.aE);return{guidelinesApi:l}},__vite__mapDeps([0,1])).then(({guidelinesApi:l})=>l.listBrandGuidelines()).then(l=>{var h;const p=Array.isArray(l.data)?l.data:((h=l.data)==null?void 0:h.results)||[];c(p.length===0)}).catch(()=>{}):r||c(!1)},[r,n.total_published]),r?B.jsx(ny,{}):B.jsxs("div",{children:[B.jsxs("div",{className:"mb-6",children:[B.jsx("h1",{className:"text-2xl font-semibold text-claude-text tracking-tight",children:"Dashboard"}),B.jsx("p",{className:"text-sm text-claude-text-tertiary mt-1",children:"Overview of your content pipeline"})]}),u&&!s&&B.jsxs("div",{className:"mb-6 flex items-start gap-3 rounded-2xl border border-claude-border bg-claude-bg-alt p-4",children:[B.jsx("div",{className:"p-2 rounded-xl bg-claude-info-light text-claude-info",children:B.jsx(iy,{className:"h-5 w-5"})}),B.jsxs("div",{className:"flex-1 min-w-0",children:[B.jsx("p",{className:"text-sm font-medium text-claude-text",children:"Set up your brand guidelines"}),B.jsx("p",{className:"text-xs text-claude-text-secondary mt-0.5",children:"Add your brand voice and content rules so AI generation matches your brand. Your dashboard fills in as you publish."})]}),B.jsx(ay,{size:"sm",onClick:()=>e("/guidelines?autofill=1"),children:"Set up guidelines"}),B.jsx("button",{onClick:()=>f(!0),className:"p-1.5 rounded-lg hover:bg-claude-surface text-claude-text-tertiary","aria-label":"Dismiss",children:B.jsx(oy,{className:"h-4 w-4"})})]}),B.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-4 mb-8",children:[B.jsxs(B.Fragment,{children:[B.jsx(er,{icon:uy,label:"Views",value:n.total_views.toLocaleStr
70ing(),accent:"bg-claude-info-light text-claude-info"}),B.jsx(er,{icon:Yc,label:"Engagement",value:n.total_engagement.toLocaleString(),accent:"bg-claude-success-light text-claude-success"})]}),B.jsx(er,{icon:Xa,label:"Published",value:n.total_published,accent:"bg-claude-accent-light text-claude-accent-text"}),B.jsx(er,{icon:Vc,label:"Scheduled",value:n.total_scheduled,accent:"bg-claude-bg-alt text-claude-text-secondary"}),B.jsx(er,{icon:Xa,label:"Drafts",value:n.total_drafts,accent:"bg-claude-bg-alt text-claude-text-secondary"}),B.jsx(er,{icon:cy,label:"Pending",value:n.pending_approvals,accent:"bg-claude-warning-light text-claude-warning"})]}),B.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6",children:[B.jsxs("div",{className:"bg-claude-surface rounded-2xl border border-claude-border shadow-soft p-6",children:[B.jsx("h2",{className:"text-base font-semibold text-claude-text mb-1",children:"Last 30 days"}),B.jsx("p",{className:"text-xs text-claude-text-tertiary mb-4",children:i?"Views and engagement (when metrics snapshots are available).":"Published trend (internal, always available)."}),a.length===0?B.jsxs("div",{className:"py-10 text-center",children:[B.jsx(Yc,{className:"h-8 w-8 text-claude-border mx-auto mb-3"}),B.jsx("p",{className:"text-sm text-claude-text-tertiary",children:"No recent activity."}),B.jsx("p",{className:"text-xs text-claude-text-tertiary mt-1",children:"Create and publish content to start seeing trends."})]}):B.jsx("div",{className:"h-56",children:B.jsx(sl,{width:"100%",height:"100%",children:B.jsxs(tF,{data:a,children:[B.jsx($r,{dataKey:"date",tick:{fontSize:12,fill:"var(--claude-text-tertiary, #6b7280)"}}),B.jsx(jr,{tick:{fontSize:12,fill:"var(--claude-text-tertiary, #6b7280)"}}),B.jsx(Ze,{contentStyle:{background:"white",border:"1px solid rgba(232, 224, 212, 1)",borderRadius:12,boxShadow:"0 8px 20px rgba(0,0,0,0.08)"},labelStyle:{color:"rgba(60, 55, 49, 1)",fontWeight:600}}),i?B.jsxs(B.Fragment,{children:[B.jsx(Ft,{type:"monotone",dataKey:"views",stroke:"rgba(80, 130, 190, 1)",strokeWidth:2,dot:!1}),B.jsx(Ft,{type:"monotone",dataKey:"engagement",stroke:"rgba(65, 140, 110, 1)",strokeWidth:2,dot:!1})]}):B.jsx(Ft,{type:"monotone",dataKey:"published",stroke:"rgba(201, 100, 66, 1)",strokeWidth:2,dot:!1})]})})})]}),B.jsxs("div",{className:"bg-claude-surface rounded-2xl border border-claude-border shadow-soft p-6",children:[B.jsx("h2",{className:"text-base font-semibold text-claude-text mb-1",children:"Platform Breakdown"}),B.jsx("p",{className:"text-xs text-claude-text-tertiary mb-4",children:"All publishes (last 30 days)."}),o.length===0?B.jsxs("div",{className:"py-10 text-center",children:[B.jsx(fy,{className:"h-8 w-8 text-claude-border mx-auto mb-3"}),B.jsx("p",{className:"text-sm text-claude-text-tertiary",children:"No platform data yet."}),B.jsx("p",{className:"text-xs text-claude-text-tertiary mt-1",children:"Connect platforms and publish content to see metrics."})]}):B.jsx("div",{className:"h-56",children:B.jsx(sl,{width:"100%",height:"100%",children:B.jsxs(rF,{data:o,children:[B.jsx($r,{dataKey:"platform",tick:{fontSize:12,fill:"var(--claude-text-tertiary, #6b7280)"}}),B.jsx(jr,{tick:{fontSize:12,fill:"var(--claude-text-tertiary, #6b7280)"}}),B.jsx(Ze,{contentStyle:{background:"white",border:"1px solid rgba(232, 224, 212, 1)",borderRadius:12,boxShadow:"0 8px 20px rgba(0,0,0,0.08)"},labelStyle:{color:"rgba(60, 55, 49, 1)",fontWeight:600}}),B.jsx(Vt,{dataKey:"count",fill:"rgba(201, 100, 66, 1)",radius:[8,8,0,0]})]})})})]})]}),B.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[B.jsxs("div",{className:"bg-claude-surface rounded-2xl border border-claude-border shadow-soft p-6",children:[B.jsx("h2",{className:"text-base font-semibold text-claude-text mb-4",children:"Upcoming scheduled"}),(n.upcoming_schedules??[]).length===0?B.jsxs("div",{className:"py-10 text-center",children:[B.jsx(Vc,{className:"h-8 w-8 text-claude-border mx-auto mb-3"}),B.jsx("p",{className:"text-sm text-claude-text-tertiary",children:"Nothing scheduled yet."}),B.jsx("p",{className:"text-xs text-claude-text-tertiary mt-1",children:"Schedule content to see the next queue here."})]}):B.jsx("div",{className:"space-y-1",children:(n.upcoming_schedules??[]).map(l
70=>B.jsxs("button",{type:"button",onClick:()=>e(`/content/${l.content_id}`),className:"w-full text-left flex items-center justify-between py-2 border-b border-claude-border last:border-0 hover:bg-claude-bg-alt/60 rounded-xl px-2 -mx-2 transition-colors",children:[B.jsxs("div",{className:"min-w-0",children:[B.jsx("p",{className:"text-sm text-claude-text truncate",children:l.title}),B.jsxs("p",{className:"text-xs text-claude-text-tertiary mt-0.5",children:[l.platform," • ",l.scheduled_at?new Date(l.scheduled_at).toLocaleString():"—",l.gate_blocked?" • blocked":""]})]}),B.jsx("span",{className:"text-xs text-claude-text-tertiary tabular-nums",children:l.status})]},l.id))})]}),B.jsxs("div",{className:"bg-claude-surface rounded-2xl border border-claude-border shadow-soft p-6",children:[B.jsx("h2",{className:"text-base font-semibold text-claude-text mb-4",children:"Recently published"}),(n.recent_publishes??[]).length===0?B.jsxs("div",{className:"py-10 text-center",children:[B.jsx(Xa,{className:"h-8 w-8 text-claude-border mx-auto mb-3"}),B.jsx("p",{className:"text-sm text-claude-text-tertiary",children:"No publishes yet."}),B.jsx("p",{className:"text-xs text-claude-text-tertiary mt-1",children:"Publish something to populate this list."})]}):B.jsx("div",{className:"space-y-1",children:(n.recent_publishes??[]).map(l=>B.jsxs("button",{type:"button",onClick:()=>e(`/content/${l.content_id}`),className:"w-full text-left flex items-center justify-between py-2 border-b border-claude-border last:border-0 hover:bg-claude-bg-alt/60 rounded-xl px-2 -mx-2 transition-colors",children:[B.jsxs("div",{className:"min-w-0",children:[B.jsx("p",{className:"text-sm text-claude-text truncate",children:l.title}),B.jsxs("p",{className:"text-xs text-claude-text-tertiary mt-0.5",children:[l.platform," • ",l.published_at?new Date(l.published_at).toLocaleString():"—"]})]}),B.jsx("span",{className:"text-xs text-claude-text-tertiary tabular-nums",children:l.status})]},l.id))})]})]})]})}export{sF as DashboardPage};

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.