- 先解析原始 YAML 再对象级剥离,避免 cleanYAML 破坏结构 - managedFields 从 METADATA_LINE_KEYS 移除,改整块删除含数组项 - YamlViewer 同步使用 parseEditableManifest
62 lines
385 KiB
JavaScript
62 lines
385 KiB
JavaScript
import{au as ee}from"./index-BBDEBVET.js";import{d as ti,g as ue,r as N,a as T}from"./vendor-codemirror-C7mXSpXt.js";var Wa,vh;function Re(){if(vh)return Wa;vh=1;var e=Array.isArray;return Wa=e,Wa}var Ua,yh;function Zg(){if(yh)return Ua;yh=1;var e=typeof ti=="object"&&ti&&ti.Object===Object&&ti;return Ua=e,Ua}var Ha,mh;function ot(){if(mh)return Ha;mh=1;var e=Zg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ha=r,Ha}var Ga,gh;function Gn(){if(gh)return Ga;gh=1;var e=ot(),t=e.Symbol;return Ga=t,Ga}var Ka,bh;function sw(){if(bh)return Ka;bh=1;var e=Gn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return Ka=a,Ka}var Va,xh;function lw(){if(xh)return Va;xh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Va=r,Va}var Xa,wh;function xt(){if(wh)return Xa;wh=1;var e=Gn(),t=sw(),r=lw(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return Xa=o,Xa}var Ya,Oh;function wt(){if(Oh)return Ya;Oh=1;function e(t){return t!=null&&typeof t=="object"}return Ya=e,Ya}var Za,_h;function Nr(){if(_h)return Za;_h=1;var e=xt(),t=wt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Za=n,Za}var Ja,Sh;function uf(){if(Sh)return Ja;Sh=1;var e=Re(),t=Nr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Ja=i,Ja}var Qa,Ah;function Ct(){if(Ah)return Qa;Ah=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Qa=e,Qa}var eo,Ph;function cf(){if(Ph)return eo;Ph=1;var e=xt(),t=Ct(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return eo=o,eo}var to,Th;function fw(){if(Th)return to;Th=1;var e=ot(),t=e["__core-js_shared__"];return to=t,to}var ro,Eh;function hw(){if(Eh)return ro;Eh=1;var e=fw(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return ro=r,ro}var no,jh;function Jg(){if(jh)return no;jh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return no=r,no}var io,Mh;function pw(){if(Mh)return io;Mh=1;var e=cf(),t=hw(),r=Ct(),n=Jg(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return io=l,io}var ao,Ch;function dw(){if(Ch)return ao;Ch=1;function e(t,r){return t?.[r]}return ao=e,ao}var oo,$h;function Qt(){if($h)return oo;$h=1;var e=pw(),t=dw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return oo=r,oo}var uo,Ih;function ha(){if(Ih)return uo;Ih=1;var e=Qt(),t=e(Object,"create");return uo=t,uo}var co,Rh;function vw(){if(Rh)return co;Rh=1;var e=ha();function t(){this.__data__=e?e(null):{},this.size=0}return co=t,co}var so,kh;function yw(){if(kh)return so;kh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return so=e,so}var lo,Dh;function mw(){if(Dh)return lo;Dh=1;var e=ha(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return lo=i,lo}var fo,Nh;function gw(){if(Nh)return fo;Nh=1;var e=ha(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return fo=n,fo}var ho,qh;function bw(){if(qh)return ho;qh=1;var e=ha(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return ho=r,ho}var po,Bh;function xw(){if(Bh)return po;Bh=1;var e=vw(),t=yw(),r=mw(),n=gw(),i=bw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,po=a,po}var vo,Lh;function ww(){if(Lh)return vo;Lh=1;function e(){this.__data__=[],this.size=0}return vo=e,vo}var yo,Fh;function sf(){if(Fh)return yo;Fh=1;function e(t,r){return t===r||t!==t&&r!==r}return yo=e,yo}var mo,zh;function pa(){if(zh)return mo;zh=1;var e=sf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return mo=t,mo}var go,Wh;function Ow(){if(Wh)return go;Wh=1;var e=pa(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return go=n,go}var bo,Uh;function _w(){if(Uh)return bo;Uh=1;var e=pa();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return bo=t,bo}var xo,Hh;function Sw(){if(Hh)return xo;Hh=1;var e=pa();function t(r){return e(this.__data__,r)>-1}return xo=t,xo}var wo,Gh;function Aw(){if(Gh)return wo;Gh=1;var e=pa();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return wo=t,wo}var Oo,Kh;function da(){if(Kh)return Oo;Kh=1;var e=ww(),t=Ow(),r=_w(),n=Sw(),i=Aw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Oo=a,Oo}var _o,Vh;function lf(){if(Vh)return _o;Vh=1;var e=Qt(),t=ot(),r=e(t,"Map");return _o=r,_o}var So,Xh;function Pw(){if(Xh)return So;Xh=1;var e=xw(),t=da(),r=lf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return So=n,So}var Ao,Yh;function Tw(){if(Yh)return Ao;Yh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Ao=e,Ao}var Po,Zh;function va(){if(Zh)return Po;Zh=1;var e=Tw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Po=t,Po}var To,Jh;function Ew(){if(Jh)return To;Jh=1;var e=va();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return To=t,To}var Eo,Qh;function jw(){if(Qh)return Eo;Qh=1;var e=va();function t(r){return e(this,r).get(r)}return Eo=t,Eo}var jo,ep;function Mw(){if(ep)return jo;ep=1;var e=va();function t(r){return e(this,r).has(r)}return jo=t,jo}var Mo,tp;function Cw(){if(tp)return Mo;tp=1;var e=va();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Mo=t,Mo}var Co,rp;function ff(){if(rp)return Co;rp=1;var e=Pw(),t=Ew(),r=jw(),n=Mw(),i=Cw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Co=a,Co}var $o,np;function Qg(){if(np)return $o;np=1;var e=ff(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,$o=r,$o}var Io,ip;function $w(){if(ip)return Io;ip=1;var e=Qg(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Io=r,Io}var Ro,ap;function Iw(){if(ap)return Ro;ap=1;var e=$w(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return Ro=n,Ro}var ko,op;function hf(){if(op)return ko;op=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return ko=e,ko}var Do,up;function Rw(){if(up)return Do;up=1;var e=Gn(),t=hf(),r=Re(),n=Nr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Do=o,Do}var No,cp;function eb(){if(cp)return No;cp=1;var e=Rw();function t(r){return r==null?"":e(r)}return No=t,No}var qo,sp;function tb(){if(sp)return qo;sp=1;var e=Re(),t=uf(),r=Iw(),n=eb();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return qo=i,qo}var Bo,lp;function ya(){if(lp)return Bo;lp=1;var e=Nr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Bo=t,Bo}var Lo,fp;function pf(){if(fp)return Lo;fp=1;var e=tb(),t=ya();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Lo=r,Lo}var Fo,hp;function rb(){if(hp)return Fo;hp=1;var e=pf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Fo=t,Fo}var kw=rb();const He=ue(kw);var zo,pp;function Dw(){if(pp)return zo;pp=1;function e(t){return t==null}return zo=e,zo}var Nw=Dw();const J=ue(Nw);var Wo,dp;function qw(){if(dp)return Wo;dp=1;var e=xt(),t=Re(),r=wt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Wo=i,Wo}var Bw=qw();const Xt=ue(Bw);var Lw=cf();const V=ue(Lw);var Fw=Ct();const qr=ue(Fw);var Uo={exports:{}},re={};var vp;function zw(){if(vp)return re;vp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case r:case i:case n:case s:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case c:case h:case l:case a:return p;default:return b}}case t:return b}}}return re.ContextConsumer=o,re.ContextProvider=a,re.Element=e,re.ForwardRef=c,re.Fragment=r,re.Lazy=h,re.Memo=l,re.Portal=t,re.Profiler=i,re.StrictMode=n,re.Suspense=s,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(p){return v(p)===o},re.isContextProvider=function(p){return v(p)===a},re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},re.isForwardRef=function(p){return v(p)===c},re.isFragment=function(p){return v(p)===r},re.isLazy=function(p){return v(p)===h},re.isMemo=function(p){return v(p)===l},re.isPortal=function(p){return v(p)===t},re.isProfiler=function(p){return v(p)===i},re.isStrictMode=function(p){return v(p)===n},re.isSuspense=function(p){return v(p)===s},re.isSuspenseList=function(p){return v(p)===f},re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===s||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===c||p.$$typeof===m||p.getModuleId!==void 0)},re.typeOf=v,re}var yp;function Ww(){return yp||(yp=1,Uo.exports=zw()),Uo.exports}var Uw=Ww(),Ho,mp;function nb(){if(mp)return Ho;mp=1;var e=xt(),t=wt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Ho=n,Ho}var Go,gp;function Hw(){if(gp)return Go;gp=1;var e=nb();function t(r){return e(r)&&r!=+r}return Go=t,Go}var Gw=Hw();const Br=ue(Gw);var Kw=nb();const Vw=ue(Kw);var Ze=function(t){return t===0?0:t>0?1:-1},zt=function(t){return Xt(t)&&t.indexOf("%")===t.length-1},q=function(t){return Vw(t)&&!Br(t)},Xw=function(t){return J(t)},we=function(t){return q(t)||Xt(t)},Yw=0,Kn=function(t){var r=++Yw;return"".concat(t||"").concat(r)},Je=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(!q(t)&&!Xt(t))return n;var a;if(zt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Br(a)&&(a=n),i&&a>r&&(a=r),a},Pt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Zw=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},We=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function vi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):He(n,t))===r})}var Jw=function(t,r){return q(t)&&q(r)?t-r:Xt(t)&&Xt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function fr(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 Us(e){"@babel/helpers - typeof";return Us=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},Us(e)}var Qw=["viewBox","children"],eO=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],bp=["points","pathLength"],Ko={svg:Qw,polygon:bp,polyline:bp},df=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],yi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!qr(n))return null;var i={};return Object.keys(n).forEach(function(a){df.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},tO=function(t,r,n){return function(i){return t(r,n,i),null}},mi=function(t,r,n){if(!qr(t)||Us(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];df.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=tO(o,r,n))}),i},rO=["children"],nO=["children"];function xp(e,t){if(e==null)return{};var r=iO(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 iO(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 Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}var wp={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"},pt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Op=null,Vo=null,vf=function e(t){if(t===Op&&Array.isArray(Vo))return Vo;var r=[];return N.Children.forEach(t,function(n){J(n)||(Uw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Vo=r,Op=t,r};function Qe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return pt(i)}):n=[pt(t)],vf(e).forEach(function(i){var a=He(i,"type.displayName")||He(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ne(e,t){var r=Qe(e,t);return r&&r[0]}var _p=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},aO=["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"],oO=function(t){return t&&t.type&&Xt(t.type)&&aO.indexOf(t.type)>=0},uO=function(t){return t&&Hs(t)==="object"&&"clipDot"in t},cO=function(t,r,n,i){var a,o=(a=Ko?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||eO.includes(r))||n&&df.includes(r)},Z=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!qr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;cO((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Gs=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Sp(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(!Sp(a,o))return!1}return!0},Sp=function(t,r){if(J(t)&&J(r))return!0;if(!J(t)&&!J(r)){var n=t.props||{},i=n.children,a=xp(n,rO),o=r.props||{},u=o.children,c=xp(o,nO);return i&&u?fr(a,c)&&Gs(i,u):!i&&!u?fr(a,c):!1}return!1},Ap=function(t,r){var n=[],i={};return vf(t).forEach(function(a,o){if(oO(a))n.push(a);else if(a){var u=pt(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},sO=function(t){var r=t&&t.type;return r&&wp[r]?wp[r]:null},lO=function(t,r){return vf(r).indexOf(t)},fO=["children","width","height","viewBox","className","style","title","desc"];function Ks(){return Ks=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},Ks.apply(this,arguments)}function hO(e,t){if(e==null)return{};var r=pO(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 pO(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 Vs(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=hO(e,fO),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return T.createElement("svg",Ks({},Z(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,c),t)}var dO=["children","className"];function Xs(){return Xs=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},Xs.apply(this,arguments)}function vO(e,t){if(e==null)return{};var r=yO(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 yO(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 fe=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=vO(e,dO),a=ee("recharts-layer",n);return T.createElement("g",Xs({className:a},Z(i,!0),{ref:t}),r)}),dt=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]},Xo,Pp;function mO(){if(Pp)return Xo;Pp=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Xo=e,Xo}var Yo,Tp;function gO(){if(Tp)return Yo;Tp=1;var e=mO();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Yo=t,Yo}var Zo,Ep;function ib(){if(Ep)return Zo;Ep=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function c(s){return u.test(s)}return Zo=c,Zo}var Jo,jp;function bO(){if(jp)return Jo;jp=1;function e(t){return t.split("")}return Jo=e,Jo}var Qo,Mp;function xO(){if(Mp)return Qo;Mp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",m=s+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+m+")*",b=v+m+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+b,"g");function O(y){return y.match(w)||[]}return Qo=O,Qo}var eu,Cp;function wO(){if(Cp)return eu;Cp=1;var e=bO(),t=ib(),r=xO();function n(i){return t(i)?r(i):e(i)}return eu=n,eu}var tu,$p;function OO(){if($p)return tu;$p=1;var e=gO(),t=ib(),r=wO(),n=eb();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?e(u,1).join(""):o.slice(1);return c[a]()+s}}return tu=i,tu}var ru,Ip;function _O(){if(Ip)return ru;Ip=1;var e=OO(),t=e("toUpperCase");return ru=t,ru}var SO=_O();const ma=ue(SO);function oe(e){return function(){return e}}const ab=Math.cos,gi=Math.sin,et=Math.sqrt,bi=Math.PI,ga=2*bi,Ys=Math.PI,Zs=2*Ys,Lt=1e-6,AO=Zs-Lt;function ob(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function PO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ob;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 TO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ob:PO(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},${+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,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Lt)if(!(Math.abs(l*c-s*f)>Lt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,m=i-u,v=c*c+s*s,p=d*d+m*m,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Ys-Math.acos((v+h-p)/(2*b*x)))/2),O=w/x,y=w/b;Math.abs(O-1)>Lt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*m)},${this._x1=t+y*c},${this._y1=r+y*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,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Lt||Math.abs(this._y1-f)>Lt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%Zs+Zs),h>AO?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>Lt&&this._append`A${n},${n},0,${+(h>=Ys)},${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 yf(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 TO(t)}function mf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ub(e){this._context=e}ub.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 ba(e){return new ub(e)}function cb(e){return e[0]}function sb(e){return e[1]}function lb(e,t){var r=oe(!0),n=null,i=ba,a=null,o=yf(u);e=typeof e=="function"?e:e===void 0?cb:oe(e),t=typeof t=="function"?t:t===void 0?sb:oe(t);function u(c){var s,f=(c=mf(c)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(d)return a=null,d+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:oe(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:oe(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:oe(!!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 ri(e,t,r){var n=null,i=oe(!0),a=null,o=ba,u=null,c=yf(s);e=typeof e=="function"?e:e===void 0?cb:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?sb:oe(+r);function s(l){var h,d,m,v=(l=mf(l)).length,p,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===b)if(b=!b)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),m=h-1;m>=d;--m)u.point(w[m],O[m]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return lb().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+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:oe(!!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 fb{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 EO(e){return new fb(e,!0)}function jO(e){return new fb(e,!1)}const gf={draw(e,t){const r=et(t/bi);e.moveTo(r,0),e.arc(0,0,r,0,ga)}},MO={draw(e,t){const r=et(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()}},hb=et(1/3),CO=hb*2,$O={draw(e,t){const r=et(t/CO),n=r*hb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},IO={draw(e,t){const r=et(t),n=-r/2;e.rect(n,n,r,r)}},RO=.8908130915292852,pb=gi(bi/10)/gi(7*bi/10),kO=gi(ga/10)*pb,DO=-ab(ga/10)*pb,NO={draw(e,t){const r=et(t*RO),n=kO*r,i=DO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ga*a/5,u=ab(o),c=gi(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},nu=et(3),qO={draw(e,t){const r=-et(t/(nu*3));e.moveTo(0,r*2),e.lineTo(-nu*r,-r),e.lineTo(nu*r,-r),e.closePath()}},Le=-.5,Fe=et(3)/2,Js=1/et(12),BO=(Js/2+1)*3,LO={draw(e,t){const r=et(t/BO),n=r/2,i=r*Js,a=n,o=r*Js+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Le*n-Fe*i,Fe*n+Le*i),e.lineTo(Le*a-Fe*o,Fe*a+Le*o),e.lineTo(Le*u-Fe*c,Fe*u+Le*c),e.lineTo(Le*n+Fe*i,Le*i-Fe*n),e.lineTo(Le*a+Fe*o,Le*o-Fe*a),e.lineTo(Le*u+Fe*c,Le*c-Fe*u),e.closePath()}};function FO(e,t){let r=null,n=yf(i);e=typeof e=="function"?e:oe(e||gf),t=typeof t=="function"?t:oe(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:oe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:oe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function xi(){}function wi(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 db(e){this._context=e}db.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:wi(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:wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zO(e){return new db(e)}function vb(e){this._context=e}vb.prototype={areaStart:xi,areaEnd:xi,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:wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WO(e){return new vb(e)}function yb(e){this._context=e}yb.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:wi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UO(e){return new yb(e)}function mb(e){this._context=e}mb.prototype={areaStart:xi,areaEnd:xi,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 HO(e){return new mb(e)}function Rp(e){return e<0?-1:1}function kp(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(Rp(a)+Rp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Dp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function iu(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 Oi(e){this._context=e}Oi.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:iu(this,this._t0,Dp(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,iu(this,Dp(this,r=kp(this,e,t)),r);break;default:iu(this,this._t0,r=kp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function gb(e){this._context=new bb(e)}(gb.prototype=Object.create(Oi.prototype)).point=function(e,t){Oi.prototype.point.call(this,t,e)};function bb(e){this._context=e}bb.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 GO(e){return new Oi(e)}function KO(e){return new gb(e)}function xb(e){this._context=e}xb.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=Np(e),i=Np(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 Np(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 VO(e){return new xb(e)}function xa(e,t){this._context=e,this._t=t}xa.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;default:{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 XO(e){return new xa(e,.5)}function YO(e){return new xa(e,0)}function ZO(e){return new xa(e,1)}function vr(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 Qs(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function JO(e,t){return e[t]}function QO(e){const t=[];return t.key=e,t}function e1(){var e=oe([]),t=Qs,r=vr,n=JO;function i(a){var o=Array.from(e.apply(this,arguments),QO),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=mf(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:oe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:oe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Qs:typeof a=="function"?a:oe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??vr,i):r},i}function t1(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}vr(e,t)}}function r1(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}vr(e,t)}}function n1(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,h=f[n-1][1]||0,d=(l-h)/2,m=0;m<u;++m){var v=e[t[m]],p=v[n][1]||0,b=v[n-1][1]||0;d+=p-b}c+=l,s+=d*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,vr(e,t)}}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)}var i1=["type","size","sizeType"];function el(){return el=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},el.apply(this,arguments)}function qp(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 Bp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qp(Object(r),!0).forEach(function(n){a1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a1(e,t,r){return t=o1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o1(e){var t=u1(e,"string");return ln(t)=="symbol"?t:t+""}function u1(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)}function c1(e,t){if(e==null)return{};var r=s1(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 s1(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 wb={symbolCircle:gf,symbolCross:MO,symbolDiamond:$O,symbolSquare:IO,symbolStar:NO,symbolTriangle:qO,symbolWye:LO},l1=Math.PI/180,f1=function(t){var r="symbol".concat(ma(t));return wb[r]||gf},h1=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*l1;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}},p1=function(t,r){wb["symbol".concat(ma(t))]=r},bf=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=c1(t,i1),s=Bp(Bp({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=f1(n),b=FO().type(p).size(h1(a,u,n));return b()},l=s.className,h=s.cx,d=s.cy,m=Z(s,!0);return h===+h&&d===+d&&a===+a?T.createElement("path",el({},m,{className:ee("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};bf.registerSymbol=p1;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 tl(){return tl=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},tl.apply(this,arguments)}function Lp(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 d1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lp(Object(r),!0).forEach(function(n){fn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_b(n.key),n)}}function m1(e,t,r){return t&&y1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g1(e,t,r){return t=_i(t),b1(e,Ob()?Reflect.construct(t,r||[],_i(e).constructor):t.apply(e,r))}function b1(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 x1(e)}function x1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ob(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ob=function(){return!!e})()}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_i(e)}function w1(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&&rl(e,t)}function rl(e,t){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rl(e,t)}function fn(e,t,r){return t=_b(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _b(e){var t=O1(e,"string");return yr(t)=="symbol"?t:t+""}function O1(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 ze=32,xf=(function(e){function t(){return v1(this,t),g1(this,t,arguments)}return w1(t,e),m1(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 T.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 T.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
||
H`).concat(ze,"M").concat(2*u,",").concat(a,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return T.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(T.isValidElement(n.legendIcon)){var s=d1({},n);return delete s.legendIcon,T.cloneElement(n.legendIcon,s)}return T.createElement(bf,{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},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,m){var v=d.formatter||c,p=ee(fn(fn({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",d.inactive));if(d.type==="none")return null;var b=V(d.value)?null:d.value;dt(!V(d.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=d.inactive?s:d.color;return T.createElement("li",tl({className:p,style:l,key:"legend-item-".concat(m)},mi(n.props,d,m)),T.createElement(Vs,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,d,m):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 T.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);fn(xf,"displayName","Legend");fn(xf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var au,Fp;function _1(){if(Fp)return au;Fp=1;var e=da();function t(){this.__data__=new e,this.size=0}return au=t,au}var ou,zp;function S1(){if(zp)return ou;zp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ou=e,ou}var uu,Wp;function A1(){if(Wp)return uu;Wp=1;function e(t){return this.__data__.get(t)}return uu=e,uu}var cu,Up;function P1(){if(Up)return cu;Up=1;function e(t){return this.__data__.has(t)}return cu=e,cu}var su,Hp;function T1(){if(Hp)return su;Hp=1;var e=da(),t=lf(),r=ff(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return su=i,su}var lu,Gp;function Sb(){if(Gp)return lu;Gp=1;var e=da(),t=_1(),r=S1(),n=A1(),i=P1(),a=T1();function o(u){var c=this.__data__=new e(u);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,lu=o,lu}var fu,Kp;function E1(){if(Kp)return fu;Kp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return fu=t,fu}var hu,Vp;function j1(){if(Vp)return hu;Vp=1;function e(t){return this.__data__.has(t)}return hu=e,hu}var pu,Xp;function Ab(){if(Xp)return pu;Xp=1;var e=ff(),t=E1(),r=j1();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,pu=n,pu}var du,Yp;function Pb(){if(Yp)return du;Yp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return du=e,du}var vu,Zp;function Tb(){if(Zp)return vu;Zp=1;function e(t,r){return t.has(r)}return vu=e,vu}var yu,Jp;function Eb(){if(Jp)return yu;Jp=1;var e=Ab(),t=Pb(),r=Tb(),n=1,i=2;function a(o,u,c,s,f,l){var h=c&n,d=o.length,m=u.length;if(d!=m&&!(h&&m>d))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var b=-1,x=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<d;){var O=o[b],y=u[b];if(s)var g=h?s(y,O,b,u,o,l):s(O,y,b,o,u,l);if(g!==void 0){if(g)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,c,s,l)))return w.push(S)})){x=!1;break}}else if(!(O===y||f(O,y,c,s,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return yu=a,yu}var mu,Qp;function M1(){if(Qp)return mu;Qp=1;var e=ot(),t=e.Uint8Array;return mu=t,mu}var gu,ed;function C1(){if(ed)return gu;ed=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return gu=e,gu}var bu,td;function wf(){if(td)return bu;td=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return bu=e,bu}var xu,rd;function $1(){if(rd)return xu;rd=1;var e=Gn(),t=M1(),r=sf(),n=Eb(),i=C1(),a=wf(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",d="[object RegExp]",m="[object Set]",v="[object String]",p="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function y(g,_,S,P,M,A,E){switch(S){case x:if(g.byteLength!=_.byteLength||g.byteOffset!=_.byteOffset)return!1;g=g.buffer,_=_.buffer;case b:return!(g.byteLength!=_.byteLength||!A(new t(g),new t(_)));case c:case s:case h:return r(+g,+_);case f:return g.name==_.name&&g.message==_.message;case d:case v:return g==_+"";case l:var j=i;case m:var I=P&o;if(j||(j=a),g.size!=_.size&&!I)return!1;var C=E.get(g);if(C)return C==_;P|=u,E.set(g,_);var R=n(j(g),j(_),P,M,A,E);return E.delete(g),R;case p:if(O)return O.call(g)==O.call(_)}return!1}return xu=y,xu}var wu,nd;function jb(){if(nd)return wu;nd=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return wu=e,wu}var Ou,id;function I1(){if(id)return Ou;id=1;var e=jb(),t=Re();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Ou=r,Ou}var _u,ad;function R1(){if(ad)return _u;ad=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return _u=e,_u}var Su,od;function k1(){if(od)return Su;od=1;function e(){return[]}return Su=e,Su}var Au,ud;function D1(){if(ud)return Au;ud=1;var e=R1(),t=k1(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Au=a,Au}var Pu,cd;function N1(){if(cd)return Pu;cd=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Pu=e,Pu}var Tu,sd;function q1(){if(sd)return Tu;sd=1;var e=xt(),t=wt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Tu=n,Tu}var Eu,ld;function Of(){if(ld)return Eu;ld=1;var e=q1(),t=wt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Eu=a,Eu}var tn={exports:{}},ju,fd;function B1(){if(fd)return ju;fd=1;function e(){return!1}return ju=e,ju}tn.exports;var hd;function Mb(){return hd||(hd=1,(function(e,t){var r=ot(),n=B1(),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})(tn,tn.exports)),tn.exports}var Mu,pd;function _f(){if(pd)return Mu;pd=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Mu=r,Mu}var Cu,dd;function Sf(){if(dd)return Cu;dd=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Cu=t,Cu}var $u,vd;function L1(){if(vd)return $u;vd=1;var e=xt(),t=Sf(),r=wt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",d="[object Set]",m="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",y="[object Int16Array]",g="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",P="[object Uint16Array]",M="[object Uint32Array]",A={};A[x]=A[w]=A[O]=A[y]=A[g]=A[_]=A[S]=A[P]=A[M]=!0,A[n]=A[i]=A[p]=A[a]=A[b]=A[o]=A[u]=A[c]=A[s]=A[f]=A[l]=A[h]=A[d]=A[m]=A[v]=!1;function E(j){return r(j)&&t(j.length)&&!!A[e(j)]}return $u=E,$u}var Iu,yd;function Cb(){if(yd)return Iu;yd=1;function e(t){return function(r){return t(r)}}return Iu=e,Iu}var rn={exports:{}};rn.exports;var md;function F1(){return md||(md=1,(function(e,t){var r=Zg(),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})(rn,rn.exports)),rn.exports}var Ru,gd;function $b(){if(gd)return Ru;gd=1;var e=L1(),t=Cb(),r=F1(),n=r&&r.isTypedArray,i=n?t(n):e;return Ru=i,Ru}var ku,bd;function z1(){if(bd)return ku;bd=1;var e=N1(),t=Of(),r=Re(),n=Mb(),i=_f(),a=$b(),o=Object.prototype,u=o.hasOwnProperty;function c(s,f){var l=r(s),h=!l&&t(s),d=!l&&!h&&n(s),m=!l&&!h&&!d&&a(s),v=l||h||d||m,p=v?e(s.length,String):[],b=p.length;for(var x in s)(f||u.call(s,x))&&!(v&&(x=="length"||d&&(x=="offset"||x=="parent")||m&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&p.push(x);return p}return ku=c,ku}var Du,xd;function W1(){if(xd)return Du;xd=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Du=t,Du}var Nu,wd;function Ib(){if(wd)return Nu;wd=1;function e(t,r){return function(n){return t(r(n))}}return Nu=e,Nu}var qu,Od;function U1(){if(Od)return qu;Od=1;var e=Ib(),t=e(Object.keys,Object);return qu=t,qu}var Bu,_d;function H1(){if(_d)return Bu;_d=1;var e=W1(),t=U1(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Bu=i,Bu}var Lu,Sd;function Vn(){if(Sd)return Lu;Sd=1;var e=cf(),t=Sf();function r(n){return n!=null&&t(n.length)&&!e(n)}return Lu=r,Lu}var Fu,Ad;function wa(){if(Ad)return Fu;Ad=1;var e=z1(),t=H1(),r=Vn();function n(i){return r(i)?e(i):t(i)}return Fu=n,Fu}var zu,Pd;function G1(){if(Pd)return zu;Pd=1;var e=I1(),t=D1(),r=wa();function n(i){return e(i,r,t)}return zu=n,zu}var Wu,Td;function K1(){if(Td)return Wu;Td=1;var e=G1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&t,h=e(a),d=h.length,m=e(o),v=m.length;if(d!=v&&!l)return!1;for(var p=d;p--;){var b=h[p];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var y=l;++p<d;){b=h[p];var g=a[b],_=o[b];if(c)var S=l?c(_,g,b,o,a,f):c(g,_,b,a,o,f);if(!(S===void 0?g===_||s(g,_,u,c,f):S)){O=!1;break}y||(y=b=="constructor")}if(O&&!y){var P=a.constructor,M=o.constructor;P!=M&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof M=="function"&&M instanceof M)&&(O=!1)}return f.delete(a),f.delete(o),O}return Wu=i,Wu}var Uu,Ed;function V1(){if(Ed)return Uu;Ed=1;var e=Qt(),t=ot(),r=e(t,"DataView");return Uu=r,Uu}var Hu,jd;function X1(){if(jd)return Hu;jd=1;var e=Qt(),t=ot(),r=e(t,"Promise");return Hu=r,Hu}var Gu,Md;function Rb(){if(Md)return Gu;Md=1;var e=Qt(),t=ot(),r=e(t,"Set");return Gu=r,Gu}var Ku,Cd;function Y1(){if(Cd)return Ku;Cd=1;var e=Qt(),t=ot(),r=e(t,"WeakMap");return Ku=r,Ku}var Vu,$d;function Z1(){if($d)return Vu;$d=1;var e=V1(),t=lf(),r=X1(),n=Rb(),i=Y1(),a=xt(),o=Jg(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",d=o(e),m=o(t),v=o(r),p=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=s||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),y=O==c?w.constructor:void 0,g=y?o(y):"";if(g)switch(g){case d:return h;case m:return u;case v:return s;case p:return f;case b:return l}return O}),Vu=x,Vu}var Xu,Id;function J1(){if(Id)return Xu;Id=1;var e=Sb(),t=Eb(),r=$1(),n=K1(),i=Z1(),a=Re(),o=Mb(),u=$b(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function m(v,p,b,x,w,O){var y=a(v),g=a(p),_=y?f:i(v),S=g?f:i(p);_=_==s?l:_,S=S==s?l:S;var P=_==l,M=S==l,A=_==S;if(A&&o(v)){if(!o(p))return!1;y=!0,P=!1}if(A&&!P)return O||(O=new e),y||u(v)?t(v,p,b,x,w,O):r(v,p,_,b,x,w,O);if(!(b&c)){var E=P&&d.call(v,"__wrapped__"),j=M&&d.call(p,"__wrapped__");if(E||j){var I=E?v.value():v,C=j?p.value():p;return O||(O=new e),w(I,C,b,x,O)}}return A?(O||(O=new e),n(v,p,b,x,w,O)):!1}return Xu=m,Xu}var Yu,Rd;function Af(){if(Rd)return Yu;Rd=1;var e=J1(),t=wt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return Yu=r,Yu}var Zu,kd;function Q1(){if(kd)return Zu;kd=1;var e=Sb(),t=Af(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var h=u[s];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++s<f;){h=u[s];var d=h[0],m=a[d],v=h[1];if(l&&h[2]){if(m===void 0&&!(d in a))return!1}else{var p=new e;if(c)var b=c(m,v,d,a,o,p);if(!(b===void 0?t(v,m,r|n,c,p):b))return!1}}return!0}return Zu=i,Zu}var Ju,Dd;function kb(){if(Dd)return Ju;Dd=1;var e=Ct();function t(r){return r===r&&!e(r)}return Ju=t,Ju}var Qu,Nd;function e_(){if(Nd)return Qu;Nd=1;var e=kb(),t=wa();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return Qu=r,Qu}var ec,qd;function Db(){if(qd)return ec;qd=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return ec=e,ec}var tc,Bd;function t_(){if(Bd)return tc;Bd=1;var e=Q1(),t=e_(),r=Db();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return tc=n,tc}var rc,Ld;function r_(){if(Ld)return rc;Ld=1;function e(t,r){return t!=null&&r in Object(t)}return rc=e,rc}var nc,Fd;function n_(){if(Fd)return nc;Fd=1;var e=tb(),t=Of(),r=Re(),n=_f(),i=Sf(),a=ya();function o(u,c,s){c=e(c,u);for(var f=-1,l=c.length,h=!1;++f<l;){var d=a(c[f]);if(!(h=u!=null&&s(u,d)))break;u=u[d]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||t(u)))}return nc=o,nc}var ic,zd;function i_(){if(zd)return ic;zd=1;var e=r_(),t=n_();function r(n,i){return n!=null&&t(n,i,e)}return ic=r,ic}var ac,Wd;function a_(){if(Wd)return ac;Wd=1;var e=Af(),t=rb(),r=i_(),n=uf(),i=kb(),a=Db(),o=ya(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var d=t(h,f);return d===void 0&&d===l?r(h,f):e(l,d,u|c)}}return ac=s,ac}var oc,Ud;function Lr(){if(Ud)return oc;Ud=1;function e(t){return t}return oc=e,oc}var uc,Hd;function o_(){if(Hd)return uc;Hd=1;function e(t){return function(r){return r?.[t]}}return uc=e,uc}var cc,Gd;function u_(){if(Gd)return cc;Gd=1;var e=pf();function t(r){return function(n){return e(n,r)}}return cc=t,cc}var sc,Kd;function c_(){if(Kd)return sc;Kd=1;var e=o_(),t=u_(),r=uf(),n=ya();function i(a){return r(a)?e(n(a)):t(a)}return sc=i,sc}var lc,Vd;function $t(){if(Vd)return lc;Vd=1;var e=t_(),t=a_(),r=Lr(),n=Re(),i=c_();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return lc=a,lc}var fc,Xd;function Nb(){if(Xd)return fc;Xd=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return fc=e,fc}var hc,Yd;function s_(){if(Yd)return hc;Yd=1;function e(t){return t!==t}return hc=e,hc}var pc,Zd;function l_(){if(Zd)return pc;Zd=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return pc=e,pc}var dc,Jd;function f_(){if(Jd)return dc;Jd=1;var e=Nb(),t=s_(),r=l_();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return dc=n,dc}var vc,Qd;function h_(){if(Qd)return vc;Qd=1;var e=f_();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return vc=t,vc}var yc,ev;function p_(){if(ev)return yc;ev=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return yc=e,yc}var mc,tv;function d_(){if(tv)return mc;tv=1;function e(){}return mc=e,mc}var gc,rv;function v_(){if(rv)return gc;rv=1;var e=Rb(),t=d_(),r=wf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return gc=i,gc}var bc,nv;function y_(){if(nv)return bc;nv=1;var e=Ab(),t=h_(),r=p_(),n=Tb(),i=v_(),a=wf(),o=200;function u(c,s,f){var l=-1,h=t,d=c.length,m=!0,v=[],p=v;if(f)m=!1,h=r;else if(d>=o){var b=s?null:i(c);if(b)return a(b);m=!1,h=n,p=new e}else p=s?[]:v;e:for(;++l<d;){var x=c[l],w=s?s(x):x;if(x=f||x!==0?x:0,m&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;s&&p.push(w),v.push(x)}else h(p,w,f)||(p!==v&&p.push(w),v.push(x))}return v}return bc=u,bc}var xc,iv;function m_(){if(iv)return xc;iv=1;var e=$t(),t=y_();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return xc=r,xc}var g_=m_();const av=ue(g_);function qb(e,t,r){return t===!0?av(e,r):V(t)?av(e,t):e}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 b_=["ref"];function ov(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?ov(Object(r),!0).forEach(function(n){Oa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ov(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uv(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,Lb(n.key),n)}}function w_(e,t,r){return t&&uv(e.prototype,t),r&&uv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function O_(e,t,r){return t=Si(t),__(e,Bb()?Reflect.construct(t,r||[],Si(e).constructor):t.apply(e,r))}function __(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 S_(e)}function S_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bb=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Si(e)}function A_(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&&nl(e,t)}function nl(e,t){return nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nl(e,t)}function Oa(e,t,r){return t=Lb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lb(e){var t=P_(e,"string");return mr(t)=="symbol"?t:t+""}function P_(e,t){if(mr(e)!="object"||!e)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 String(e)}function T_(e,t){if(e==null)return{};var r=E_(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 E_(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 j_(e){return e.value}function M_(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=T_(t,b_);return T.createElement(xf,r)}var cv=1,hr=(function(e){function t(){var r;x_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=O_(this,t,[].concat(i)),Oa(r,"lastBoundingBox",{width:-1,height:-1}),r}return A_(t,e),w_(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)>cv||Math.abs(i.height-this.lastBoundingBox.height)>cv)&&(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,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((s||0)-d.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 m=this.getBBoxSnapshot();h={top:((f||0)-m.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return ut(ut({},l),h)}},{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 T.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},M_(a,ut(ut({},this.props),{},{payload:qb(f,s,j_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ut(ut({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);Oa(hr,"displayName","Legend");Oa(hr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var wc,sv;function C_(){if(sv)return wc;sv=1;var e=Gn(),t=Of(),r=Re(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return wc=i,wc}var Oc,lv;function Fb(){if(lv)return Oc;lv=1;var e=jb(),t=C_();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=t),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Oc=r,Oc}var _c,fv;function $_(){if(fv)return _c;fv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[t?c:++a];if(n(o[s],s,o)===!1)break}return r}}return _c=e,_c}var Sc,hv;function I_(){if(hv)return Sc;hv=1;var e=$_(),t=e();return Sc=t,Sc}var Ac,pv;function zb(){if(pv)return Ac;pv=1;var e=I_(),t=wa();function r(n,i){return n&&e(n,i,t)}return Ac=r,Ac}var Pc,dv;function R_(){if(dv)return Pc;dv=1;var e=Vn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return Pc=t,Pc}var Tc,vv;function Pf(){if(vv)return Tc;vv=1;var e=zb(),t=R_(),r=t(e);return Tc=r,Tc}var Ec,yv;function Wb(){if(yv)return Ec;yv=1;var e=Pf(),t=Vn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return Ec=r,Ec}var jc,mv;function k_(){if(mv)return jc;mv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return jc=e,jc}var Mc,gv;function D_(){if(gv)return Mc;gv=1;var e=Nr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),c=n!==void 0,s=n===null,f=n===n,l=e(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return Mc=t,Mc}var Cc,bv;function N_(){if(bv)return Cc;bv=1;var e=D_();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=e(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Cc=t,Cc}var $c,xv;function q_(){if(xv)return $c;xv=1;var e=hf(),t=pf(),r=$t(),n=Wb(),i=k_(),a=Cb(),o=N_(),u=Lr(),c=Re();function s(f,l,h){l.length?l=e(l,function(v){return c(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var d=-1;l=e(l,a(r));var m=n(f,function(v,p,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++d,value:v}});return i(m,function(v,p){return o(v,p,h)})}return $c=s,$c}var Ic,wv;function B_(){if(wv)return Ic;wv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ic=e,Ic}var Rc,Ov;function L_(){if(Ov)return Rc;Ov=1;var e=B_(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,c=t(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),e(n,this,f)}}return Rc=r,Rc}var kc,_v;function F_(){if(_v)return kc;_v=1;function e(t){return function(){return t}}return kc=e,kc}var Dc,Sv;function Ub(){if(Sv)return Dc;Sv=1;var e=Qt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Dc=t,Dc}var Nc,Av;function z_(){if(Av)return Nc;Av=1;var e=F_(),t=Ub(),r=Lr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Nc=n,Nc}var qc,Pv;function W_(){if(Pv)return qc;Pv=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=t-(u-o);if(o=u,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return qc=n,qc}var Bc,Tv;function U_(){if(Tv)return Bc;Tv=1;var e=z_(),t=W_(),r=t(e);return Bc=r,Bc}var Lc,Ev;function H_(){if(Ev)return Lc;Ev=1;var e=Lr(),t=L_(),r=U_();function n(i,a){return r(t(i,a,e),i+"")}return Lc=n,Lc}var Fc,jv;function _a(){if(jv)return Fc;jv=1;var e=sf(),t=Vn(),r=_f(),n=Ct();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?t(u)&&r(o,u.length):c=="string"&&o in u)?e(u[o],a):!1}return Fc=i,Fc}var zc,Mv;function G_(){if(Mv)return zc;Mv=1;var e=Fb(),t=q_(),r=H_(),n=_a(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return zc=i,zc}var K_=G_();const Tf=ue(K_);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 il(){return il=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},il.apply(this,arguments)}function V_(e,t){return J_(e)||Z_(e,t)||Y_(e,t)||X_()}function X_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y_(e,t){if(e){if(typeof e=="string")return Cv(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 Cv(e,t)}}function Cv(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 Z_(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 J_(e){if(Array.isArray(e))return e}function $v(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 Wc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$v(Object(r),!0).forEach(function(n){Q_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q_(e,t,r){return t=eS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eS(e){var t=tS(e,"string");return hn(t)=="symbol"?t:t+""}function tS(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(t==="string"?String:Number)(e)}function rS(e){return Array.isArray(e)&&we(e[0])&&we(e[1])?e.join(" ~ "):e}var nS=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,h=t.itemSorter,d=t.wrapperClassName,m=t.labelClassName,v=t.label,p=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var E={padding:0,margin:0},j=(h?Tf(f,h):f).map(function(I,C){if(I.type==="none")return null;var R=Wc({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),D=I.formatter||l||rS,B=I.value,L=I.name,U=B,G=L;if(D&&U!=null&&G!=null){var z=D(B,L,I,C,f);if(Array.isArray(z)){var K=V_(z,2);U=K[0],G=K[1]}else U=z}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:R},we(G)?T.createElement("span",{className:"recharts-tooltip-item-name"},G):null,we(G)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},U),T.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:E},j)}return null},O=Wc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),y=Wc({margin:0},s),g=!J(v),_=g?v:"",S=ee("recharts-default-tooltip",d),P=ee("recharts-tooltip-label",m);g&&p&&f!==void 0&&f!==null&&(_=p(v,f));var M=x?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",il({className:S,style:O},M),T.createElement("p",{className:P,style:y},T.isValidElement(_)?_:"".concat(_)),w())};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 ni(e,t,r){return t=iS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iS(e){var t=aS(e,"string");return pn(t)=="symbol"?t:t+""}function aS(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 Gr="recharts-tooltip-wrapper",oS={visibility:"hidden"};function uS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ee(Gr,ni(ni(ni(ni({},"".concat(Gr,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(Gr,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(Gr,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(Gr,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function Iv(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&&q(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 h=f,d=c[n];return h<d?Math.max(l,c[n]):Math.max(f,c[n])}var m=l+u,v=c[n]+s;return m>v?Math.max(f,c[n]):Math.max(l,c[n])}function cS(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 sS(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=Iv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=Iv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=cS({translateX:f,translateY:l,useTranslate3d:u})):s=oS,{cssProperties:s,cssClasses:uS({translateX:f,translateY:l,coordinate:r})}}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 Rv(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 kv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rv(Object(r),!0).forEach(function(n){ol(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fS(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,Gb(n.key),n)}}function hS(e,t,r){return t&&fS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pS(e,t,r){return t=Ai(t),dS(e,Hb()?Reflect.construct(t,r||[],Ai(e).constructor):t.apply(e,r))}function dS(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 vS(e)}function vS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hb=function(){return!!e})()}function Ai(e){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ai(e)}function yS(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&&al(e,t)}function al(e,t){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},al(e,t)}function ol(e,t,r){return t=Gb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gb(e){var t=mS(e,"string");return gr(t)=="symbol"?t:t+""}function mS(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 Dv=1,gS=(function(e){function t(){var r;lS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=pS(this,t,[].concat(i)),ol(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ol(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 yS(t,e),hS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Dv||Math.abs(n.height-this.state.lastBoundingBox.height)>Dv)&&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,h=i.isAnimationActive,d=i.offset,m=i.position,v=i.reverseDirection,p=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=sS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:b}),O=w.cssClasses,y=w.cssProperties,g=kv(kv({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return T.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(S){n.wrapperNode=S}},s)}}])})(N.PureComponent),bS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Fr={isSsr:bS()};function br(e){"@babel/helpers - typeof";return br=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},br(e)}function Nv(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 qv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nv(Object(r),!0).forEach(function(n){Ef(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xS(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,Vb(n.key),n)}}function OS(e,t,r){return t&&wS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _S(e,t,r){return t=Pi(t),SS(e,Kb()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}function SS(e,t){if(t&&(br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AS(e)}function AS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kb=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pi(e)}function PS(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&&ul(e,t)}function ul(e,t){return ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ul(e,t)}function Ef(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=TS(e,"string");return br(t)=="symbol"?t:t+""}function TS(e,t){if(br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ES(e){return e.dataKey}function jS(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(nS,t)}var ct=(function(e){function t(){return xS(this,t),_S(this,t,arguments)}return PS(t,e),OS(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,h=i.isAnimationActive,d=i.offset,m=i.payload,v=i.payloadUniqBy,p=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,y=m??[];l&&y.length&&(y=qb(m.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,ES));var g=y.length>0;return T.createElement(gS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:g,offset:d,position:p,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},jS(s,qv(qv({},this.props),{},{payload:y})))}}])})(N.PureComponent);Ef(ct,"displayName","Tooltip");Ef(ct,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Fr.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 Uc,Bv;function MS(){if(Bv)return Uc;Bv=1;var e=ot(),t=function(){return e.Date.now()};return Uc=t,Uc}var Hc,Lv;function CS(){if(Lv)return Hc;Lv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Hc=t,Hc}var Gc,Fv;function $S(){if(Fv)return Gc;Fv=1;var e=CS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Gc=r,Gc}var Kc,zv;function Xb(){if(zv)return Kc;zv=1;var e=$S(),t=Ct(),r=Nr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(t(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=t(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return Kc=c,Kc}var Vc,Wv;function IS(){if(Wv)return Vc;Wv=1;var e=Ct(),t=MS(),r=Xb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,d,m,v,p=0,b=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(b=!!s.leading,x="maxWait"in s,h=x?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(j){var I=f,C=l;return f=l=void 0,p=j,d=u.apply(C,I),d}function y(j){return p=j,m=setTimeout(S,c),b?O(j):d}function g(j){var I=j-v,C=j-p,R=c-I;return x?a(R,h-C):R}function _(j){var I=j-v,C=j-p;return v===void 0||I>=c||I<0||x&&C>=h}function S(){var j=t();if(_(j))return P(j);m=setTimeout(S,g(j))}function P(j){return m=void 0,w&&f?O(j):(f=l=void 0,d)}function M(){m!==void 0&&clearTimeout(m),p=0,f=v=l=m=void 0}function A(){return m===void 0?d:P(t())}function E(){var j=t(),I=_(j);if(f=arguments,l=this,v=j,I){if(m===void 0)return y(v);if(x)return clearTimeout(m),m=setTimeout(S,c),O(v)}return m===void 0&&(m=setTimeout(S,c)),d}return E.cancel=M,E.flush=A,E}return Vc=o,Vc}var Xc,Uv;function RS(){if(Uv)return Xc;Uv=1;var e=IS(),t=Ct(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:u,maxWait:a,trailing:c})}return Xc=n,Xc}var kS=RS();const Yb=ue(kS);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 Hv(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?Hv(Object(r),!0).forEach(function(n){DS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DS(e,t,r){return t=NS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NS(e){var t=qS(e,"string");return dn(t)=="symbol"?t:t+""}function qS(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 BS(e,t){return WS(e)||zS(e,t)||FS(e,t)||LS()}function LS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FS(e,t){if(e){if(typeof e=="string")return Gv(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 Gv(e,t)}}function Gv(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 zS(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 WS(e){if(Array.isArray(e))return e}var uN=N.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,h=e.maxHeight,d=e.children,m=e.debounce,v=m===void 0?0:m,p=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,y=N.useRef(null),g=N.useRef();g.current=x,N.useImperativeHandle(t,function(){return Object.defineProperty(y.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),y.current},configurable:!0})});var _=N.useState({containerWidth:i.width,containerHeight:i.height}),S=BS(_,2),P=S[0],M=S[1],A=N.useCallback(function(j,I){M(function(C){var R=Math.round(j),D=Math.round(I);return C.containerWidth===R&&C.containerHeight===D?C:{containerWidth:R,containerHeight:D}})},[]);N.useEffect(function(){var j=function(L){var U,G=L[0].contentRect,z=G.width,K=G.height;A(z,K),(U=g.current)===null||U===void 0||U.call(g,z,K)};v>0&&(j=Yb(j,v,{trailing:!0,leading:!1}));var I=new ResizeObserver(j),C=y.current.getBoundingClientRect(),R=C.width,D=C.height;return A(R,D),I.observe(y.current),function(){I.disconnect()}},[A,v]);var E=N.useMemo(function(){var j=P.containerWidth,I=P.containerHeight;if(j<0||I<0)return null;dt(zt(o)||zt(c),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,o,c),dt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=zt(o)?j:o,R=zt(c)?I:c;r&&r>0&&(C?R=C/r:R&&(C=R*r),h&&R>h&&(R=h)),dt(C>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||
please check the style of container, or the props width(%s) and height(%s),
|
||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
height and width.`,C,R,o,c,f,l,r);var D=!Array.isArray(d)&&pt(d.type).endsWith("Chart");return T.Children.map(d,function(B){return T.isValidElement(B)?N.cloneElement(B,ii({width:C,height:R},D?{style:ii({height:"100%",width:"100%",maxHeight:R,maxWidth:C},B.props.style)}:{})):B})},[r,d,c,h,l,f,P,o]);return T.createElement("div",{id:p?"".concat(p):void 0,className:ee("recharts-responsive-container",b),style:ii(ii({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:y},E)}),Zb=function(t){return null};Zb.displayName="Cell";function vn(e){"@babel/helpers - typeof";return vn=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},vn(e)}function Kv(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 cl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kv(Object(r),!0).forEach(function(n){US(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function US(e,t,r){return t=HS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HS(e){var t=GS(e,"string");return vn(t)=="symbol"?t:t+""}function GS(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ar={widthCache:{},cacheCount:0},KS=2e3,VS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Vv="recharts_measurement_span";function XS(e){var t=cl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var an=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Fr.isSsr)return{width:0,height:0};var n=XS(r),i=JSON.stringify({text:t,copyStyle:n});if(ar.widthCache[i])return ar.widthCache[i];try{var a=document.getElementById(Vv);a||(a=document.createElement("span"),a.setAttribute("id",Vv),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=cl(cl({},VS),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return ar.widthCache[i]=c,++ar.cacheCount>KS&&(ar.cacheCount=0,ar.widthCache={}),c}catch{return{width:0,height:0}}},YS=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function yn(e){"@babel/helpers - typeof";return yn=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},yn(e)}function Ti(e,t){return eA(e)||QS(e,t)||JS(e,t)||ZS()}function ZS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JS(e,t){if(e){if(typeof e=="string")return Xv(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 Xv(e,t)}}function Xv(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 QS(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 eA(e){if(Array.isArray(e))return e}function tA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yv(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,nA(n.key),n)}}function rA(e,t,r){return t&&Yv(e.prototype,t),r&&Yv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nA(e){var t=iA(e,"string");return yn(t)=="symbol"?t:t+""}function iA(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Jv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,aA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,oA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Jb={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},uA=Object.keys(Jb),cr="NaN";function cA(e,t){return e*Jb[t]}var ai=(function(){function e(t,r){tA(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!aA.test(r)&&(this.num=NaN,this.unit=""),uA.includes(r)&&(this.num=cA(t,r),this.unit="px")}return rA(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=oA.exec(r))!==null&&n!==void 0?n:[],a=Ti(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function Qb(e){if(e.includes(cr))return cr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Zv.exec(t))!==null&&r!==void 0?r:[],i=Ti(n,4),a=i[1],o=i[2],u=i[3],c=ai.parse(a??""),s=ai.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return cr;t=t.replace(Zv,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Jv.exec(t))!==null&&l!==void 0?l:[],d=Ti(h,4),m=d[1],v=d[2],p=d[3],b=ai.parse(m??""),x=ai.parse(p??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return cr;t=t.replace(Jv,w.toString())}return t}var Qv=/\(([^()]*)\)/;function sA(e){for(var t=e;t.includes("(");){var r=Qv.exec(t),n=Ti(r,2),i=n[1];t=t.replace(Qv,Qb(i))}return t}function lA(e){var t=e.replace(/\s+/g,"");return t=sA(t),t=Qb(t),t}function fA(e){try{return lA(e)}catch{return cr}}function Yc(e){var t=fA(e.slice(5,-1));return t===cr?"":t}var hA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],pA=["dx","dy","angle","className","breakAll"];function sl(){return sl=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},sl.apply(this,arguments)}function ey(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 ty(e,t){return gA(e)||mA(e,t)||yA(e,t)||vA()}function vA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yA(e,t){if(e){if(typeof e=="string")return ry(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 ry(e,t)}}function ry(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 mA(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 gA(e){if(Array.isArray(e))return e}var e0=/[ \f\n\r\t\v\u2028\u2029]+/,t0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];J(r)||(n?a=r.toString().split(""):a=r.toString().split(e0));var o=a.map(function(c){return{word:c,width:an(c,i).width}}),u=n?0:an(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},bA=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=q(o),l=u,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(R,D){var B=D.word,L=D.width,U=R[R.length-1];if(U&&(i==null||a||U.width+L+n<Number(i)))U.words.push(B),U.width+=L+n;else{var G={words:[B],width:L};R.push(G)}return R},[])},d=h(r),m=function(C){return C.reduce(function(R,D){return R.width>D.width?R:D})};if(!f)return d;for(var v="…",p=function(C){var R=l.slice(0,C),D=t0({breakAll:s,style:c,children:R+v}).wordsWithComputedWidth,B=h(D),L=B.length>o||m(B).width>Number(i);return[L,B]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var y=Math.floor((b+x)/2),g=y-1,_=p(g),S=ty(_,2),P=S[0],M=S[1],A=p(y),E=ty(A,1),j=E[0];if(!P&&!j&&(b=y+1),P&&j&&(x=y-1),!P&&j){O=M;break}w++}return O||d},ny=function(t){var r=J(t)?[]:t.toString().split(e0);return[{words:r}]},xA=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Fr.isSsr){var c,s,f=t0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return ny(i);return bA({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return ny(i)},iy="#808080",Ei=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,h=t.textAnchor,d=h===void 0?"start":h,m=t.verticalAnchor,v=m===void 0?"end":m,p=t.fill,b=p===void 0?iy:p,x=ey(t,hA),w=N.useMemo(function(){return xA({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,y=x.dy,g=x.angle,_=x.className,S=x.breakAll,P=ey(x,pA);if(!we(n)||!we(a))return null;var M=n+(q(O)?O:0),A=a+(q(y)?y:0),E;switch(v){case"start":E=Yc("calc(".concat(s,")"));break;case"middle":E=Yc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:E=Yc("calc(".concat(w.length-1," * -").concat(u,")"));break}var j=[];if(l){var I=w[0].width,C=x.width;j.push("scale(".concat((q(C)?C/I:1)/I,")"))}return g&&j.push("rotate(".concat(g,", ").concat(M,", ").concat(A,")")),j.length&&(P.transform=j.join(" ")),T.createElement("text",sl({},Z(P,!0),{x:M,y:A,className:ee("recharts-text",_),textAnchor:d,fill:b.includes("url")?iy:b}),w.map(function(R,D){var B=R.words.join(S?"":" ");return T.createElement("tspan",{x:M,dy:D===0?E:u,key:"".concat(B,"-").concat(D)},B)}))};function jt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function jf(e){let t,r,n;e.length!==2?(t=jt,r=(u,c)=>jt(e(u),c),n=(u,c)=>e(u)-c):(t=e===jt||e===wA?e:OA,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 OA(){return 0}function r0(e){return e===null?NaN:+e}function*_A(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const SA=jf(jt),Xn=SA.right;jf(r0).center;class ay extends Map{constructor(t,r=TA){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(oy(this,t))}has(t){return super.has(oy(this,t))}set(t,r){return super.set(AA(this,t),r)}delete(t){return super.delete(PA(this,t))}}function oy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function AA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function PA({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function TA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function EA(e=jt){if(e===jt)return n0;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 n0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const jA=Math.sqrt(50),MA=Math.sqrt(10),CA=Math.sqrt(2);function ji(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>=jA?10:a>=MA?5:a>=CA?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?ji(e,t,r*2):[u,c,s]}function ll(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?ji(t,e,r):ji(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 fl(e,t,r){return t=+t,e=+e,r=+r,ji(e,t,r)[2]}function hl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?fl(t,e,r):fl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function uy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function cy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function i0(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?n0:EA(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),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),d=Math.max(r,Math.floor(t-s*l/c+h)),m=Math.min(n,Math.floor(t+(c-s)*l/c+h));i0(e,t,d,m,i)}const a=e[t];let o=r,u=n;for(Kr(e,r,t),i(e[n],a)>0&&Kr(e,r,n);o<u;){for(Kr(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Kr(e,r,u):(++u,Kr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Kr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function $A(e,t,r){if(e=Float64Array.from(_A(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return cy(e);if(t>=1)return uy(e);var n,i=(n-1)*t,a=Math.floor(i),o=uy(i0(e,a).subarray(0,a+1)),u=cy(e.subarray(a+1));return o+(u-o)*(i-a)}}function IA(e,t,r=r0){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 RA(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 Ke(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ot(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 pl=Symbol("implicit");function Mf(){var e=new ay,t=[],r=[],n=pl;function i(a){let o=e.get(a);if(o===void 0){if(n!==pl)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 ay;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 Mf(t,r).unknown(n)},Ke.apply(i,arguments),i}function mn(){var e=Mf().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 h=t().length,d=i<n,m=d?i:n,v=d?n:i;a=(v-m)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),m+=(v-m-a*(h-c))*f,o=a*(1-c),u&&(m=Math.round(m),o=Math.round(o));var p=RA(h).map(function(b){return m+a*b});return r(d?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return mn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Ke.apply(l(),arguments)}function a0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return a0(t())},e}function on(){return a0(mn.apply(null,arguments).paddingInner(1))}function Cf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function o0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Yn(){}var gn=.7,Mi=1/gn,pr="\\s*([+-]?\\d+)\\s*",bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kA=/^#([0-9a-f]{3,8})$/,DA=new RegExp(`^rgb\\(${pr},${pr},${pr}\\)$`),NA=new RegExp(`^rgb\\(${nt},${nt},${nt}\\)$`),qA=new RegExp(`^rgba\\(${pr},${pr},${pr},${bn}\\)$`),BA=new RegExp(`^rgba\\(${nt},${nt},${nt},${bn}\\)$`),LA=new RegExp(`^hsl\\(${bn},${nt},${nt}\\)$`),FA=new RegExp(`^hsla\\(${bn},${nt},${nt},${bn}\\)$`),sy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Cf(Yn,xn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ly,formatHex:ly,formatHex8:zA,formatHsl:WA,formatRgb:fy,toString:fy});function ly(){return this.rgb().formatHex()}function zA(){return this.rgb().formatHex8()}function WA(){return u0(this).formatHsl()}function fy(){return this.rgb().formatRgb()}function xn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=kA.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?hy(t):r===3?new Ie(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?oi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?oi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=DA.exec(e))?new Ie(t[1],t[2],t[3],1):(t=NA.exec(e))?new Ie(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qA.exec(e))?oi(t[1],t[2],t[3],t[4]):(t=BA.exec(e))?oi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=LA.exec(e))?vy(t[1],t[2]/100,t[3]/100,1):(t=FA.exec(e))?vy(t[1],t[2]/100,t[3]/100,t[4]):sy.hasOwnProperty(e)?hy(sy[e]):e==="transparent"?new Ie(NaN,NaN,NaN,0):null}function hy(e){return new Ie(e>>16&255,e>>8&255,e&255,1)}function oi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ie(e,t,r,n)}function UA(e){return e instanceof Yn||(e=xn(e)),e?(e=e.rgb(),new Ie(e.r,e.g,e.b,e.opacity)):new Ie}function dl(e,t,r,n){return arguments.length===1?UA(e):new Ie(e,t,r,n??1)}function Ie(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Cf(Ie,dl,o0(Yn,{brighter(e){return e=e==null?Mi:Math.pow(Mi,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gn:Math.pow(gn,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(Kt(this.r),Kt(this.g),Kt(this.b),Ci(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:py,formatHex:py,formatHex8:HA,formatRgb:dy,toString:dy}));function py(){return`#${Wt(this.r)}${Wt(this.g)}${Wt(this.b)}`}function HA(){return`#${Wt(this.r)}${Wt(this.g)}${Wt(this.b)}${Wt((isNaN(this.opacity)?1:this.opacity)*255)}`}function dy(){const e=Ci(this.opacity);return`${e===1?"rgb(":"rgba("}${Kt(this.r)}, ${Kt(this.g)}, ${Kt(this.b)}${e===1?")":`, ${e})`}`}function Ci(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wt(e){return e=Kt(e),(e<16?"0":"")+e.toString(16)}function vy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ye(e,t,r,n)}function u0(e){if(e instanceof Ye)return new Ye(e.h,e.s,e.l,e.opacity);if(e instanceof Yn||(e=xn(e)),!e)return new Ye;if(e instanceof Ye)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new Ye(o,u,c,e.opacity)}function GA(e,t,r,n){return arguments.length===1?u0(e):new Ye(e,t,r,n??1)}function Ye(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Cf(Ye,GA,o0(Yn,{brighter(e){return e=e==null?Mi:Math.pow(Mi,e),new Ye(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gn:Math.pow(gn,e),new Ye(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ie(Zc(e>=240?e-240:e+120,i,n),Zc(e,i,n),Zc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ye(yy(this.h),ui(this.s),ui(this.l),Ci(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ci(this.opacity);return`${e===1?"hsl(":"hsla("}${yy(this.h)}, ${ui(this.s)*100}%, ${ui(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yy(e){return e=(e||0)%360,e<0?e+360:e}function ui(e){return Math.max(0,Math.min(1,e||0))}function Zc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const $f=e=>()=>e;function KA(e,t){return function(r){return e+r*t}}function VA(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function XA(e){return(e=+e)==1?c0:function(t,r){return r-t?VA(t,r,e):$f(isNaN(t)?r:t)}}function c0(e,t){var r=t-e;return r?KA(e,r):$f(isNaN(e)?t:e)}const my=(function e(t){var r=XA(t);function n(i,a){var o=r((i=dl(i)).r,(a=dl(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=c0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n})(1);function YA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function ZA(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function JA(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=zr(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function QA(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function $i(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function eP(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=zr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var vl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jc=new RegExp(vl.source,"g");function tP(e){return function(){return e}}function rP(e){return function(t){return e(t)+""}}function nP(e,t){var r=vl.lastIndex=Jc.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=vl.exec(e))&&(i=Jc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:$i(n,i)})),r=Jc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?rP(c[0].x):tP(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function zr(e,t){var r=typeof t,n;return t==null||r==="boolean"?$f(t):(r==="number"?$i:r==="string"?(n=xn(t))?(t=n,my):nP:t instanceof xn?my:t instanceof Date?QA:ZA(t)?YA:Array.isArray(t)?JA:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?eP:$i)(e,t)}function If(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function iP(e,t){t===void 0&&(t=e,e=zr);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 aP(e){return function(){return e}}function Ii(e){return+e}var gy=[0,1];function Me(e){return e}function yl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:aP(isNaN(t)?NaN:.5)}function oP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function uP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=yl(i,n),a=r(o,a)):(n=yl(n,i),a=r(a,o)),function(u){return a(n(u))}}function cP(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]=yl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=Xn(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 Sa(){var e=gy,t=gy,r=zr,n,i,a,o=Me,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Me&&(o=oP(e[0],e[h-1])),u=h>2?cP:uP,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),$i)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Ii),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=If,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Me,f()):o!==Me},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,d){return n=h,i=d,f()}}function Rf(){return Sa()(Me,Me)}function sP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ri(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function xr(e){return e=Ri(Math.abs(e)),e?e[1]:NaN}function lP(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 fP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var hP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wn(e){if(!(t=hP.exec(e)))throw new Error("invalid format: "+e);var t;return new kf({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]})}wn.prototype=kf.prototype;function kf(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+""}kf.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 pP(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 s0;function dP(e,t){var r=Ri(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(s0=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")+Ri(e,Math.max(0,t+a-1))[0]}function by(e,t){var r=Ri(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 xy={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:sP,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)=>by(e*100,t),r:by,s:dP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wy(e){return e}var Oy=Array.prototype.map,_y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function vP(e){var t=e.grouping===void 0||e.thousands===void 0?wy:lP(Oy.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?wy:fP(Oy.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){l=wn(l);var h=l.fill,d=l.align,m=l.sign,v=l.symbol,p=l.zero,b=l.width,x=l.comma,w=l.precision,O=l.trim,y=l.type;y==="n"?(x=!0,y="g"):xy[y]||(w===void 0&&(w=12),O=!0,y="g"),(p||h==="0"&&d==="=")&&(p=!0,h="0",d="=");var g=v==="$"?r:v==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_=v==="$"?n:/[%p]/.test(y)?o:"",S=xy[y],P=/[defgprs%]/.test(y);w=w===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(A){var E=g,j=_,I,C,R;if(y==="c")j=S(A)+j,A="";else{A=+A;var D=A<0||1/A<0;if(A=isNaN(A)?c:S(Math.abs(A),w),O&&(A=pP(A)),D&&+A==0&&m!=="+"&&(D=!1),E=(D?m==="("?m:u:m==="-"||m==="("?"":m)+E,j=(y==="s"?_y[8+s0/3]:"")+j+(D&&m==="("?")":""),P){for(I=-1,C=A.length;++I<C;)if(R=A.charCodeAt(I),48>R||R>57){j=(R===46?i+A.slice(I+1):A.slice(I))+j,A=A.slice(0,I);break}}}x&&!p&&(A=t(A,1/0));var B=E.length+A.length+j.length,L=B<b?new Array(b-B+1).join(h):"";switch(x&&p&&(A=t(L+A,L.length?b-j.length:1/0),L=""),d){case"<":A=E+A+j+L;break;case"=":A=E+L+A+j;break;case"^":A=L.slice(0,B=L.length>>1)+E+A+j+L.slice(B);break;default:A=L+E+A+j;break}return a(A)}return M.toString=function(){return l+""},M}function f(l,h){var d=s((l=wn(l),l.type="f",l)),m=Math.max(-8,Math.min(8,Math.floor(xr(h)/3)))*3,v=Math.pow(10,-m),p=_y[8+m/3];return function(b){return d(v*b)+p}}return{format:s,formatPrefix:f}}var ci,Df,l0;yP({thousands:",",grouping:[3],currency:["$",""]});function yP(e){return ci=vP(e),Df=ci.format,l0=ci.formatPrefix,ci}function mP(e){return Math.max(0,-xr(Math.abs(e)))}function gP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xr(t)/3)))*3-xr(Math.abs(e)))}function bP(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xr(t)-xr(e))+1}function f0(e,t,r,n){var i=hl(e,t,r),a;switch(n=wn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=gP(i,o))&&(n.precision=a),l0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=bP(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=mP(i))&&(n.precision=a-(n.type==="%")*2);break}}return Df(n)}function It(e){var t=e.domain;return e.ticks=function(r){var n=t();return ll(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return f0(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=fl(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 ki(){var e=Rf();return e.copy=function(){return Zn(e,ki())},Ke.apply(e,arguments),It(e)}function h0(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,Ii),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return h0(e).unknown(t)},e=arguments.length?Array.from(e,Ii):[0,1],It(r)}function p0(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 Sy(e){return Math.log(e)}function Ay(e){return Math.exp(e)}function xP(e){return-Math.log(-e)}function wP(e){return-Math.exp(-e)}function OP(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _P(e){return e===10?OP:e===Math.E?Math.exp:t=>Math.pow(e,t)}function SP(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 Py(e){return(t,r)=>-e(-t,r)}function Nf(e){const t=e(Sy,Ay),r=t.domain;let n=10,i,a;function o(){return i=SP(n),a=_P(n),r()[0]<0?(i=Py(i),a=Py(a),e(xP,wP)):e(Sy,Ay),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 h=i(s),d=i(f),m,v;const p=u==null?10:+u;let b=[];if(!(n%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),s>0){for(;h<=d;++h)for(m=1;m<n;++m)if(v=h<0?m/a(-h):m*a(h),!(v<s)){if(v>f)break;b.push(v)}}else for(;h<=d;++h)for(m=n-1;m>=1;--m)if(v=h>0?m/a(-h):m*a(h),!(v<s)){if(v>f)break;b.push(v)}b.length*2<p&&(b=ll(s,f,p))}else b=ll(h,d,Math.min(d-h,p)).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=wn(c)).precision==null&&(c.trim=!0),c=Df(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(p0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function d0(){const e=Nf(Sa()).domain([1,10]);return e.copy=()=>Zn(e,d0()).base(e.base()),Ke.apply(e,arguments),e}function Ty(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ey(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qf(e){var t=1,r=e(Ty(t),Ey(t));return r.constant=function(n){return arguments.length?e(Ty(t=+n),Ey(t)):t},It(r)}function v0(){var e=qf(Sa());return e.copy=function(){return Zn(e,v0()).constant(e.constant())},Ke.apply(e,arguments)}function jy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function AP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function PP(e){return e<0?-e*e:e*e}function Bf(e){var t=e(Me,Me),r=1;function n(){return r===1?e(Me,Me):r===.5?e(AP,PP):e(jy(r),jy(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},It(t)}function Lf(){var e=Bf(Sa());return e.copy=function(){return Zn(e,Lf()).exponent(e.exponent())},Ke.apply(e,arguments),e}function TP(){return Lf.apply(null,arguments).exponent(.5)}function My(e){return Math.sign(e)*e*e}function EP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function y0(){var e=Rf(),t=[0,1],r=!1,n;function i(a){var o=EP(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(My(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,Ii)).map(My)),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 y0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ke.apply(i,arguments),It(i)}function m0(){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]=IA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Xn(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]]},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(jt),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 m0().domain(e).range(t).unknown(n)},Ke.apply(a,arguments)}function g0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Xn(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 g0().domain([e,t]).range(i).unknown(a)},Ke.apply(It(o),arguments)}function b0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Xn(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 b0().domain(e).range(t).unknown(r)},Ke.apply(i,arguments)}const Qc=new Date,es=new Date;function Oe(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=>Oe(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)=>(Qc.setTime(+a),es.setTime(+o),e(Qc),e(es),Math.floor(r(Qc,es))),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 Di=Oe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Di.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Oe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Di);Di.range;const lt=1e3,Ue=lt*60,ft=Ue*60,yt=ft*24,Ff=yt*7,Cy=yt*30,ts=yt*365,Ut=Oe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCSeconds());Ut.range;const zf=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getMinutes());zf.range;const Wf=Oe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getUTCMinutes());Wf.range;const Uf=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lt-e.getMinutes()*Ue)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getHours());Uf.range;const Hf=Oe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCHours());Hf.range;const Jn=Oe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ue)/yt,e=>e.getDate()-1);Jn.range;const Aa=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yt,e=>e.getUTCDate()-1);Aa.range;const x0=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yt,e=>Math.floor(e/yt));x0.range;function er(e){return Oe(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())*Ue)/Ff)}const Pa=er(0),Ni=er(1),jP=er(2),MP=er(3),wr=er(4),CP=er(5),$P=er(6);Pa.range;Ni.range;jP.range;MP.range;wr.range;CP.range;$P.range;function tr(e){return Oe(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)/Ff)}const Ta=tr(0),qi=tr(1),IP=tr(2),RP=tr(3),Or=tr(4),kP=tr(5),DP=tr(6);Ta.range;qi.range;IP.range;RP.range;Or.range;kP.range;DP.range;const Gf=Oe(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());Gf.range;const Kf=Oe(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());Kf.range;const mt=Oe(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());mt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(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)});mt.range;const gt=Oe(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());gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(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)});gt.range;function w0(e,t,r,n,i,a){const o=[[Ut,1,lt],[Ut,5,5*lt],[Ut,15,15*lt],[Ut,30,30*lt],[a,1,Ue],[a,5,5*Ue],[a,15,15*Ue],[a,30,30*Ue],[i,1,ft],[i,3,3*ft],[i,6,6*ft],[i,12,12*ft],[n,1,yt],[n,2,2*yt],[r,1,Ff],[t,1,Cy],[t,3,3*Cy],[e,1,ts]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const d=l&&typeof l.range=="function"?l:c(s,f,l),m=d?d.range(s,+f+1):[];return h?m.reverse():m}function c(s,f,l){const h=Math.abs(f-s)/l,d=jf(([,,p])=>p).right(o,h);if(d===o.length)return e.every(hl(s/ts,f/ts,l));if(d===0)return Di.every(Math.max(hl(s,f,l),1));const[m,v]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return m.every(v)}return[u,c]}const[NP,qP]=w0(gt,Kf,Ta,x0,Hf,Wf),[BP,LP]=w0(mt,Gf,Pa,Jn,Uf,zf);function rs(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 ns(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 Vr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function FP(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=Yr(i),l=Xr(a),h=Yr(a),d=Xr(o),m=Yr(o),v=Xr(u),p=Yr(u),b=Xr(c),x=Yr(c),w={a:D,A:B,b:L,B:U,c:null,d:Ny,e:Ny,f:lT,g:xT,G:OT,H:uT,I:cT,j:sT,L:O0,m:fT,M:hT,p:G,q:z,Q:Ly,s:Fy,S:pT,u:dT,U:vT,V:yT,w:mT,W:gT,x:null,X:null,y:bT,Y:wT,Z:_T,"%":By},O={a:K,A:ce,b:de,B:ke,c:null,d:qy,e:qy,f:TT,g:NT,G:BT,H:ST,I:AT,j:PT,L:S0,m:ET,M:jT,p:Dt,q:Ce,Q:Ly,s:Fy,S:MT,u:CT,U:$T,V:IT,w:RT,W:kT,x:null,X:null,y:DT,Y:qT,Z:LT,"%":By},y={a:M,A,b:E,B:j,c:I,d:ky,e:ky,f:nT,g:Ry,G:Iy,H:Dy,I:Dy,j:QP,L:rT,m:JP,M:eT,p:P,q:ZP,Q:aT,s:oT,S:tT,u:GP,U:KP,V:VP,w:HP,W:XP,x:C,X:R,y:Ry,Y:Iy,Z:YP,"%":iT};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(F,X){return function(Y){var k=[],he=-1,Q=0,me=F.length,ge,$e,_t;for(Y instanceof Date||(Y=new Date(+Y));++he<me;)F.charCodeAt(he)===37&&(k.push(F.slice(Q,he)),($e=$y[ge=F.charAt(++he)])!=null?ge=F.charAt(++he):$e=ge==="e"?" ":"0",(_t=X[ge])&&(ge=_t(Y,$e)),k.push(ge),Q=he+1);return k.push(F.slice(Q,he)),k.join("")}}function _(F,X){return function(Y){var k=Vr(1900,void 0,1),he=S(k,F,Y+="",0),Q,me;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(X&&!("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?(Q=ns(Vr(k.y,0,1)),me=Q.getUTCDay(),Q=me>4||me===0?qi.ceil(Q):qi(Q),Q=Aa.offset(Q,(k.V-1)*7),k.y=Q.getUTCFullYear(),k.m=Q.getUTCMonth(),k.d=Q.getUTCDate()+(k.w+6)%7):(Q=rs(Vr(k.y,0,1)),me=Q.getDay(),Q=me>4||me===0?Ni.ceil(Q):Ni(Q),Q=Jn.offset(Q,(k.V-1)*7),k.y=Q.getFullYear(),k.m=Q.getMonth(),k.d=Q.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),me="Z"in k?ns(Vr(k.y,0,1)).getUTCDay():rs(Vr(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(me+5)%7:k.w+k.U*7-(me+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,ns(k)):rs(k)}}function S(F,X,Y,k){for(var he=0,Q=X.length,me=Y.length,ge,$e;he<Q;){if(k>=me)return-1;if(ge=X.charCodeAt(he++),ge===37){if(ge=X.charAt(he++),$e=y[ge in $y?X.charAt(he++):ge],!$e||(k=$e(F,Y,k))<0)return-1}else if(ge!=Y.charCodeAt(k++))return-1}return k}function P(F,X,Y){var k=s.exec(X.slice(Y));return k?(F.p=f.get(k[0].toLowerCase()),Y+k[0].length):-1}function M(F,X,Y){var k=d.exec(X.slice(Y));return k?(F.w=m.get(k[0].toLowerCase()),Y+k[0].length):-1}function A(F,X,Y){var k=l.exec(X.slice(Y));return k?(F.w=h.get(k[0].toLowerCase()),Y+k[0].length):-1}function E(F,X,Y){var k=b.exec(X.slice(Y));return k?(F.m=x.get(k[0].toLowerCase()),Y+k[0].length):-1}function j(F,X,Y){var k=v.exec(X.slice(Y));return k?(F.m=p.get(k[0].toLowerCase()),Y+k[0].length):-1}function I(F,X,Y){return S(F,t,X,Y)}function C(F,X,Y){return S(F,r,X,Y)}function R(F,X,Y){return S(F,n,X,Y)}function D(F){return o[F.getDay()]}function B(F){return a[F.getDay()]}function L(F){return c[F.getMonth()]}function U(F){return u[F.getMonth()]}function G(F){return i[+(F.getHours()>=12)]}function z(F){return 1+~~(F.getMonth()/3)}function K(F){return o[F.getUTCDay()]}function ce(F){return a[F.getUTCDay()]}function de(F){return c[F.getUTCMonth()]}function ke(F){return u[F.getUTCMonth()]}function Dt(F){return i[+(F.getUTCHours()>=12)]}function Ce(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var X=g(F+="",w);return X.toString=function(){return F},X},parse:function(F){var X=_(F+="",!1);return X.toString=function(){return F},X},utcFormat:function(F){var X=g(F+="",O);return X.toString=function(){return F},X},utcParse:function(F){var X=_(F+="",!0);return X.toString=function(){return F},X}}}var $y={"-":"",_:" ",0:"0"},Se=/^\s*\d+/,zP=/^%/,WP=/[\\^$*+?|[\]().{}]/g;function te(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 UP(e){return e.replace(WP,"\\$&")}function Xr(e){return new RegExp("^(?:"+e.map(UP).join("|")+")","i")}function Yr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function HP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function GP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function KP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function VP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function XP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Iy(e,t,r){var n=Se.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Ry(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function YP(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 ZP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function JP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ky(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function QP(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Dy(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function eT(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function tT(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function rT(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function nT(e,t,r){var n=Se.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function iT(e,t,r){var n=zP.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function aT(e,t,r){var n=Se.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function oT(e,t,r){var n=Se.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ny(e,t){return te(e.getDate(),t,2)}function uT(e,t){return te(e.getHours(),t,2)}function cT(e,t){return te(e.getHours()%12||12,t,2)}function sT(e,t){return te(1+Jn.count(mt(e),e),t,3)}function O0(e,t){return te(e.getMilliseconds(),t,3)}function lT(e,t){return O0(e,t)+"000"}function fT(e,t){return te(e.getMonth()+1,t,2)}function hT(e,t){return te(e.getMinutes(),t,2)}function pT(e,t){return te(e.getSeconds(),t,2)}function dT(e){var t=e.getDay();return t===0?7:t}function vT(e,t){return te(Pa.count(mt(e)-1,e),t,2)}function _0(e){var t=e.getDay();return t>=4||t===0?wr(e):wr.ceil(e)}function yT(e,t){return e=_0(e),te(wr.count(mt(e),e)+(mt(e).getDay()===4),t,2)}function mT(e){return e.getDay()}function gT(e,t){return te(Ni.count(mt(e)-1,e),t,2)}function bT(e,t){return te(e.getFullYear()%100,t,2)}function xT(e,t){return e=_0(e),te(e.getFullYear()%100,t,2)}function wT(e,t){return te(e.getFullYear()%1e4,t,4)}function OT(e,t){var r=e.getDay();return e=r>=4||r===0?wr(e):wr.ceil(e),te(e.getFullYear()%1e4,t,4)}function _T(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+te(t/60|0,"0",2)+te(t%60,"0",2)}function qy(e,t){return te(e.getUTCDate(),t,2)}function ST(e,t){return te(e.getUTCHours(),t,2)}function AT(e,t){return te(e.getUTCHours()%12||12,t,2)}function PT(e,t){return te(1+Aa.count(gt(e),e),t,3)}function S0(e,t){return te(e.getUTCMilliseconds(),t,3)}function TT(e,t){return S0(e,t)+"000"}function ET(e,t){return te(e.getUTCMonth()+1,t,2)}function jT(e,t){return te(e.getUTCMinutes(),t,2)}function MT(e,t){return te(e.getUTCSeconds(),t,2)}function CT(e){var t=e.getUTCDay();return t===0?7:t}function $T(e,t){return te(Ta.count(gt(e)-1,e),t,2)}function A0(e){var t=e.getUTCDay();return t>=4||t===0?Or(e):Or.ceil(e)}function IT(e,t){return e=A0(e),te(Or.count(gt(e),e)+(gt(e).getUTCDay()===4),t,2)}function RT(e){return e.getUTCDay()}function kT(e,t){return te(qi.count(gt(e)-1,e),t,2)}function DT(e,t){return te(e.getUTCFullYear()%100,t,2)}function NT(e,t){return e=A0(e),te(e.getUTCFullYear()%100,t,2)}function qT(e,t){return te(e.getUTCFullYear()%1e4,t,4)}function BT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Or(e):Or.ceil(e),te(e.getUTCFullYear()%1e4,t,4)}function LT(){return"+0000"}function By(){return"%"}function Ly(e){return+e}function Fy(e){return Math.floor(+e/1e3)}var or,P0,T0;FT({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 FT(e){return or=FP(e),P0=or.format,or.parse,T0=or.utcFormat,or.utcParse,or}function zT(e){return new Date(e)}function WT(e){return e instanceof Date?+e:+new Date(+e)}function Vf(e,t,r,n,i,a,o,u,c,s){var f=Rf(),l=f.invert,h=f.domain,d=s(".%L"),m=s(":%S"),v=s("%I:%M"),p=s("%I %p"),b=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function y(g){return(c(g)<g?d:u(g)<g?m:o(g)<g?v:a(g)<g?p: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?h(Array.from(g,WT)):h().map(zT)},f.ticks=function(g){var _=h();return e(_[0],_[_.length-1],g??10)},f.tickFormat=function(g,_){return _==null?y:s(_)},f.nice=function(g){var _=h();return(!g||typeof g.range!="function")&&(g=t(_[0],_[_.length-1],g??10)),g?h(p0(_,g)):f},f.copy=function(){return Zn(f,Vf(e,t,r,n,i,a,o,u,c,s))},f}function UT(){return Ke.apply(Vf(BP,LP,mt,Gf,Pa,Jn,Uf,zf,Ut,P0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function HT(){return Ke.apply(Vf(NP,qP,gt,Kf,Ta,Aa,Hf,Wf,Ut,T0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ea(){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(h){var d,m;return arguments.length?([d,m]=h,o=l(d,m),s):[o(0),o(1)]}}return s.range=f(zr),s.rangeRound=f(If),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 Rt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function E0(){var e=It(Ea()(Me));return e.copy=function(){return Rt(e,E0())},Ot.apply(e,arguments)}function j0(){var e=Nf(Ea()).domain([1,10]);return e.copy=function(){return Rt(e,j0()).base(e.base())},Ot.apply(e,arguments)}function M0(){var e=qf(Ea());return e.copy=function(){return Rt(e,M0()).constant(e.constant())},Ot.apply(e,arguments)}function Xf(){var e=Bf(Ea());return e.copy=function(){return Rt(e,Xf()).exponent(e.exponent())},Ot.apply(e,arguments)}function GT(){return Xf.apply(null,arguments).exponent(.5)}function C0(){var e=[],t=Me;function r(n){if(n!=null&&!isNaN(n=+n))return t((Xn(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(jt),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)=>$A(e,a/n))},r.copy=function(){return C0(t).domain(e)},Ot.apply(r,arguments)}function ja(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Me,f,l=!1,h;function d(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}d.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,d):[e,t,r]},d.clamp=function(v){return arguments.length?(l=!!v,d):l},d.interpolator=function(v){return arguments.length?(s=v,d):s};function m(v){return function(p){var b,x,w;return arguments.length?([b,x,w]=p,s=iP(v,[b,x,w]),d):[s(0),s(.5),s(1)]}}return d.range=m(zr),d.rangeRound=m(If),d.unknown=function(v){return arguments.length?(h=v,d):h},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,d}}function $0(){var e=It(ja()(Me));return e.copy=function(){return Rt(e,$0())},Ot.apply(e,arguments)}function I0(){var e=Nf(ja()).domain([.1,1,10]);return e.copy=function(){return Rt(e,I0()).base(e.base())},Ot.apply(e,arguments)}function R0(){var e=qf(ja());return e.copy=function(){return Rt(e,R0()).constant(e.constant())},Ot.apply(e,arguments)}function Yf(){var e=Bf(ja());return e.copy=function(){return Rt(e,Yf()).exponent(e.exponent())},Ot.apply(e,arguments)}function KT(){return Yf.apply(null,arguments).exponent(.5)}const zy=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:mn,scaleDiverging:$0,scaleDivergingLog:I0,scaleDivergingPow:Yf,scaleDivergingSqrt:KT,scaleDivergingSymlog:R0,scaleIdentity:h0,scaleImplicit:pl,scaleLinear:ki,scaleLog:d0,scaleOrdinal:Mf,scalePoint:on,scalePow:Lf,scaleQuantile:m0,scaleQuantize:g0,scaleRadial:y0,scaleSequential:E0,scaleSequentialLog:j0,scaleSequentialPow:Xf,scaleSequentialQuantile:C0,scaleSequentialSqrt:GT,scaleSequentialSymlog:M0,scaleSqrt:TP,scaleSymlog:v0,scaleThreshold:b0,scaleTime:UT,scaleUtc:HT,tickFormat:f0},Symbol.toStringTag,{value:"Module"}));var is,Wy;function k0(){if(Wy)return is;Wy=1;var e=Nr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!e(c):i(c,s)))var s=c,f=u}return f}return is=t,is}var as,Uy;function VT(){if(Uy)return as;Uy=1;function e(t,r){return t>r}return as=e,as}var os,Hy;function XT(){if(Hy)return os;Hy=1;var e=k0(),t=VT(),r=Lr();function n(i){return i&&i.length?e(i,r,t):void 0}return os=n,os}var YT=XT();const Tt=ue(YT);var us,Gy;function ZT(){if(Gy)return us;Gy=1;function e(t,r){return t<r}return us=e,us}var cs,Ky;function JT(){if(Ky)return cs;Ky=1;var e=k0(),t=ZT(),r=Lr();function n(i){return i&&i.length?e(i,r,t):void 0}return cs=n,cs}var QT=JT();const Ma=ue(QT);var ss,Vy;function eE(){if(Vy)return ss;Vy=1;var e=hf(),t=$t(),r=Wb(),n=Re();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return ss=i,ss}var ls,Xy;function tE(){if(Xy)return ls;Xy=1;var e=Fb(),t=eE();function r(n,i){return e(t(n,i),1)}return ls=r,ls}var rE=tE();const nE=ue(rE);var fs,Yy;function iE(){if(Yy)return fs;Yy=1;var e=Af();function t(r,n){return e(r,n)}return fs=t,fs}var aE=iE();const On=ue(aE);var Wr=1e9,oE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Jf,le=!0,Ge="[DecimalError] ",Vt=Ge+"Invalid argument: ",Zf=Ge+"Exponent out of range: ",Ur=Math.floor,Ft=Math.pow,uE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qe,_e=1e7,se=7,D0=9007199254740991,Bi=Ur(D0/se),W={};W.absoluteValue=W.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};W.comparedTo=W.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};W.decimalPlaces=W.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};W.dividedBy=W.div=function(e){return vt(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return ae(vt(t,new r(e),0,1),r.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return ye(this)};W.greaterThan=W.gt=function(e){return this.cmp(e)>0};W.greaterThanOrEqualTo=W.gte=function(e){return this.cmp(e)>=0};W.isInteger=W.isint=function(){return this.e>this.d.length-2};W.isNegative=W.isneg=function(){return this.s<0};W.isPositive=W.ispos=function(){return this.s>0};W.isZero=function(){return this.s===0};W.lessThan=W.lt=function(e){return this.cmp(e)<0};W.lessThanOrEqualTo=W.lte=function(e){return this.cmp(e)<1};W.logarithm=W.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(qe))throw Error(Ge+"NaN");if(r.s<1)throw Error(Ge+(r.s?"NaN":"-Infinity"));return r.eq(qe)?new n(0):(le=!1,t=vt(_n(r,a),_n(e,a),a),le=!0,ae(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?B0(t,e):N0(t,(e.s=-e.s,e))};W.modulo=W.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ge+"NaN");return r.s?(le=!1,t=vt(r,e,0,1).times(e),le=!0,r.minus(t)):ae(new n(r),i)};W.naturalExponential=W.exp=function(){return q0(this)};W.naturalLogarithm=W.ln=function(){return _n(this)};W.negated=W.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};W.plus=W.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?N0(t,e):B0(t,(e.s=-e.s,e))};W.precision=W.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Vt+e);if(t=ye(i)+1,n=i.d.length-1,r=n*se+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};W.squareRoot=W.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(Ge+"NaN")}for(e=ye(u),le=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=tt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ur((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(vt(u,a,o+2)).times(.5),tt(a.d).slice(0,o)===(t=tt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ae(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return le=!0,ae(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,d=(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=h.length,s=d.length,c<s&&(a=h,h=d,d=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]+d[n]*h[i-n-1]+t,a[i--]=u%_e|0,t=u/_e|0;a[i]=(a[i]+t)%_e|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,le?ae(e,l.precision):e};W.toDecimalPlaces=W.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),ae(r,e+ye(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Yt(n,!0):(at(e,0,Wr),t===void 0?t=i.rounding:at(t,0,8),n=ae(new i(n),e+1,t),r=Yt(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Yt(i):(at(e,0,Wr),t===void 0?t=a.rounding:at(t,0,8),n=ae(new a(i),e+ye(i)+1,t),r=Yt(n.abs(),!1,e+ye(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return ae(new t(e),ye(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.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(qe);if(u=new c(u),!u.s){if(e.s<1)throw Error(Ge+"Infinity");return u}if(u.eq(qe))return u;if(n=c.precision,e.eq(qe))return ae(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=D0){for(i=new c(qe),t=Math.ceil(n/se+4),le=!1;r%2&&(i=i.times(u),Jy(i.d,t)),r=Ur(r/2),r!==0;)u=u.times(u),Jy(u.d,t);return le=!0,e.s<0?new c(qe).div(i):ae(i,n)}}else if(a<0)throw Error(Ge+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,le=!1,i=e.times(_n(u,n+s)),le=!0,i=q0(i),i.s=a,i};W.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ye(i),n=Yt(i,r<=a.toExpNeg||r>=a.toExpPos)):(at(e,1,Wr),t===void 0?t=a.rounding:at(t,0,8),i=ae(new a(i),e,t),r=ye(i),n=Yt(i,e<=r||r<=a.toExpNeg,e)),n};W.toSignificantDigits=W.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)),ae(new n(r),e,t)};W.toString=W.valueOf=W.val=W.toJSON=W[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ye(e),r=e.constructor;return Yt(e,t<=r.toExpNeg||t>=r.toExpPos)};function N0(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)),le?ae(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/se),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)/_e|0,c[a]%=_e;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,le?ae(t,l):t}function at(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Vt+e)}function tt(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=se-n.length,r&&(a+=At(r)),a+=n;o=e[t],n=o+"",r=se-n.length,r&&(a+=At(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var vt=(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%_e|0,o=a/_e|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*_e+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,d,m,v,p,b,x,w,O,y,g,_,S,P=n.constructor,M=n.s==i.s?1:-1,A=n.d,E=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Ge+"Division by zero");for(c=n.e-i.e,_=E.length,y=A.length,d=new P(M),m=d.d=[],s=0;E[s]==(A[s]||0);)++s;if(E[s]>(A[s]||0)&&--c,a==null?x=a=P.precision:o?x=a+(ye(n)-ye(i))+1:x=a,x<0)return new P(0);if(x=x/se+2|0,s=0,_==1)for(f=0,E=E[0],x++;(s<y||f)&&x--;s++)w=f*_e+(A[s]||0),m[s]=w/E|0,f=w%E|0;else{for(f=_e/(E[0]+1)|0,f>1&&(E=e(E,f),A=e(A,f),_=E.length,y=A.length),O=_,v=A.slice(0,_),p=v.length;p<_;)v[p++]=0;S=E.slice(),S.unshift(0),g=E[0],E[1]>=_e/2&&++g;do f=0,u=t(E,v,_,p),u<0?(b=v[0],_!=p&&(b=b*_e+(v[1]||0)),f=b/g|0,f>1?(f>=_e&&(f=_e-1),l=e(E,f),h=l.length,p=v.length,u=t(l,v,h,p),u==1&&(f--,r(l,_<h?S:E,h))):(f==0&&(u=f=1),l=E.slice()),h=l.length,h<p&&l.unshift(0),r(v,l,p),u==-1&&(p=v.length,u=t(E,v,_,p),u<1&&(f++,r(v,_<p?S:E,p))),p=v.length):u===0&&(f++,v=[0]),m[s++]=f,u&&v[0]?v[p++]=A[O]||0:(v=[A[O]],p=1);while((O++<y||v[0]!==void 0)&&x--)}return m[0]||m.shift(),d.e=c,ae(d,o?a+ye(d)+1:a)}})();function q0(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(ye(e)>16)throw Error(Zf+ye(e));if(!e.s)return new f(qe);for(le=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Ft(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(qe),f.precision=u;;){if(i=ae(i.times(e),u),r=r.times(++c),o=a.plus(vt(i,r,u)),tt(o.d).slice(0,u)===tt(a.d).slice(0,u)){for(;s--;)a=ae(a.times(a),u);return f.precision=l,t==null?(le=!0,ae(a,l)):a}a=o}}function ye(e){for(var t=e.e*se,r=e.d[0];r>=10;r/=10)t++;return t}function hs(e,t,r){if(t>e.LN10.sd())throw le=!0,r&&(e.precision=r),Error(Ge+"LN10 precision limit exceeded");return ae(new e(e.LN10),t)}function At(e){for(var t="";e--;)t+="0";return t}function _n(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,d=e,m=d.d,v=d.constructor,p=v.precision;if(d.s<1)throw Error(Ge+(d.s?"NaN":"-Infinity"));if(d.eq(qe))return new v(0);if(t==null?(le=!1,s=p):s=t,d.eq(10))return t==null&&(le=!0),hs(v,s);if(s+=h,v.precision=s,r=tt(m),n=r.charAt(0),a=ye(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=tt(d.d),n=r.charAt(0),l++;a=ye(d),n>1?(d=new v("0."+r),a++):d=new v(n+"."+r.slice(1))}else return c=hs(v,s+2,p).times(a+""),d=_n(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=p,t==null?(le=!0,ae(d,p)):d;for(u=o=d=vt(d.minus(qe),d.plus(qe),s),f=ae(d.times(d),s),i=3;;){if(o=ae(o.times(f),s),c=u.plus(vt(o,new v(i),s)),tt(c.d).slice(0,s)===tt(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(hs(v,s+2,p).times(a+""))),u=vt(u,new v(l),s),v.precision=p,t==null?(le=!0,ae(u,p)):u;u=c,i+=2}}function Zy(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=Ur(r/se),e.d=[],n=(r+1)%se,r<0&&(n+=se),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=se;n<i;)e.d.push(+t.slice(n,n+=se));t=t.slice(n),n=se-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),le&&(e.e>Bi||e.e<-Bi))throw Error(Zf+r)}else e.s=0,e.e=0,e.d=[0];return e}function ae(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+=se,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/se),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=se,i=n-se+o}if(r!==void 0&&(a=Ft(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/Ft(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=ye(e),l.length=1,t=t-a-1,l[0]=Ft(10,(se-t%se)%se),e.e=Ur(-t/se)||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=Ft(10,se-n),l[f]=i>0?(s/Ft(10,o-i)%Ft(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==_e&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=_e)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(le&&(e.e>Bi||e.e<-Bi))throw Error(Zf+ye(e));return e}function B0(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),le?ae(t,d):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(d/se),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]=_e-1;--c[a],c[i]+=_e}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,le?ae(t,d):t):new h(0)}function Yt(e,t,r){var n,i=ye(e),a=tt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+At(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+At(-i-1)+a,r&&(n=r-o)>0&&(a+=At(n))):i>=o?(a+=At(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+At(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=At(n))),e.s<0?"-"+a:a}function Jy(e,t){if(e.length>t)return e.length=t,!0}function L0(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(Vt+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 Zy(o,a.toString())}else if(typeof a!="string")throw Error(Vt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,uE.test(a))Zy(o,a);else throw Error(Vt+a)}if(i.prototype=W,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=L0,i.config=i.set=cE,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 cE(e){if(!e||typeof e!="object")throw Error(Ge+"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(Ur(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Vt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Vt+r+": "+n);return this}var Jf=L0(oE);qe=new Jf(1);const ie=Jf;function sE(e){return pE(e)||hE(e)||fE(e)||lE()}function lE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fE(e,t){if(e){if(typeof e=="string")return ml(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 ml(e,t)}}function hE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function pE(e){if(Array.isArray(e))return ml(e)}function ml(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 dE=function(t){return t},F0={},z0=function(t){return t===F0},Qy=function(t){return function r(){return arguments.length===0||arguments.length===1&&z0(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},vE=function e(t,r){return t===1?r:Qy(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!==F0}).length;return o>=t?r.apply(void 0,i):e(t-o,Qy(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 z0(l)?c.shift():l});return r.apply(void 0,sE(f).concat(c))}))})},Ca=function(t){return vE(t.length,t)},gl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},yE=Ca(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),mE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return dE;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))}},bl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},W0=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 gE(e){var t;return e===0?t=1:t=Math.floor(new ie(e).abs().log(10).toNumber())+1,t}function bE(e,t,r){for(var n=new ie(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var xE=Ca(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),wE=Ca(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),OE=Ca(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const $a={rangeStep:bE,getDigitCount:gE,interpolateNumber:xE,uninterpolateNumber:wE,uninterpolateTruncation:OE};function xl(e){return AE(e)||SE(e)||U0(e)||_E()}function _E(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function AE(e){if(Array.isArray(e))return wl(e)}function Sn(e,t){return EE(e)||TE(e,t)||U0(e,t)||PE()}function PE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U0(e,t){if(e){if(typeof e=="string")return wl(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 wl(e,t)}}function wl(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 TE(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 EE(e){if(Array.isArray(e))return e}function H0(e){var t=Sn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function G0(e,t,r){if(e.lte(0))return new ie(0);var n=$a.getDigitCount(e.toNumber()),i=new ie(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ie(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ie(Math.ceil(c))}function jE(e,t,r){var n=1,i=new ie(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ie(10).pow($a.getDigitCount(e)-1),i=new ie(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ie(Math.floor(e)))}else e===0?i=new ie(Math.floor((t-1)/2)):r||(i=new ie(Math.floor(e)));var o=Math.floor((t-1)/2),u=mE(yE(function(c){return i.add(new ie(c-o).mul(n)).toNumber()}),gl);return u(0,t)}function K0(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 ie(0),tickMin:new ie(0),tickMax:new ie(0)};var a=G0(new ie(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ie(0):(o=new ie(e).add(t).div(2),o=o.sub(new ie(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ie(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?K0(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 ie(u).mul(a)),tickMax:o.add(new ie(c).mul(a))})}function ME(e){var t=Sn(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=H0([r,n]),c=Sn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(xl(gl(0,i-1).map(function(){return 1/0}))):[].concat(xl(gl(0,i-1).map(function(){return-1/0})),[f]);return r>n?bl(l):l}if(s===f)return jE(s,i,a);var h=K0(s,f,o,a),d=h.step,m=h.tickMin,v=h.tickMax,p=$a.rangeStep(m,v.add(new ie(.1).mul(d)),d);return r>n?bl(p):p}function CE(e,t){var r=Sn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=H0([n,i]),u=Sn(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=G0(new ie(s).sub(c).div(f-1),a,0),h=[].concat(xl($a.rangeStep(new ie(c),new ie(s).sub(new ie(.99).mul(l)),l)),[s]);return n>i?bl(h):h}var $E=W0(ME),IE=W0(CE),RE="Invariant failed";function Zt(e,t){throw new Error(RE)}var kE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 Li(){return Li=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},Li.apply(this,arguments)}function DE(e,t){return LE(e)||BE(e,t)||qE(e,t)||NE()}function NE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qE(e,t){if(e){if(typeof e=="string")return em(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 em(e,t)}}function em(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 BE(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 LE(e){if(Array.isArray(e))return e}function FE(e,t){if(e==null)return{};var r=zE(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 zE(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 WE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UE(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,Y0(n.key),n)}}function HE(e,t,r){return t&&UE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GE(e,t,r){return t=Fi(t),KE(e,V0()?Reflect.construct(t,r||[],Fi(e).constructor):t.apply(e,r))}function KE(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 VE(e)}function VE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V0=function(){return!!e})()}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fi(e)}function XE(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&&Ol(e,t)}function Ol(e,t){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ol(e,t)}function X0(e,t,r){return t=Y0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y0(e){var t=YE(e,"string");return _r(t)=="symbol"?t:t+""}function YE(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 Ia=(function(e){function t(){return WE(this,t),GE(this,t,arguments)}return XE(t,e),HE(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,h=FE(n,kE),d=Z(h,!1);this.props.direction==="x"&&f.type!=="number"&&Zt();var m=c.map(function(v){var p=s(v,u),b=p.x,x=p.y,w=p.value,O=p.errorVal;if(!O)return null;var y=[],g,_;if(Array.isArray(O)){var S=DE(O,2);g=S[0],_=S[1]}else g=_=O;if(a==="vertical"){var P=f.scale,M=x+i,A=M+o,E=M-o,j=P(w-g),I=P(w+_);y.push({x1:I,y1:A,x2:I,y2:E}),y.push({x1:j,y1:M,x2:I,y2:M}),y.push({x1:j,y1:A,x2:j,y2:E})}else if(a==="horizontal"){var C=l.scale,R=b+i,D=R-o,B=R+o,L=C(w-g),U=C(w+_);y.push({x1:D,y1:U,x2:B,y2:U}),y.push({x1:R,y1:L,x2:R,y2:U}),y.push({x1:D,y1:L,x2:B,y2:L})}return T.createElement(fe,Li({className:"recharts-errorBar",key:"bar-".concat(y.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),y.map(function(G){return T.createElement("line",Li({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return T.createElement(fe,{className:"recharts-errorBars"},m)}}])})(T.Component);X0(Ia,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});X0(Ia,"displayName","ErrorBar");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 tm(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 Bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tm(Object(r),!0).forEach(function(n){ZE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZE(e,t,r){return t=JE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JE(e){var t=QE(e,"string");return An(t)=="symbol"?t:t+""}function QE(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 Z0=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ne(r,hr);if(!o)return null;var u=hr.defaultProps,c=u!==void 0?Bt(Bt({},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 h=l.item,d=l.props,m=d.sectors||d.data||[];return f.concat(m.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,d=h!==void 0?Bt(Bt({},h),l.props):{},m=d.dataKey,v=d.name,p=d.legendType,b=d.hide;return{inactive:b,dataKey:m,type:c.iconType||p||"square",color:Qf(l),value:v||m,payload:d}}),Bt(Bt(Bt({},c),hr.getWithHeight(o,i)),{},{payload:s,item:o})};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 rm(e){return nj(e)||rj(e)||tj(e)||ej()}function ej(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tj(e,t){if(e){if(typeof e=="string")return _l(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 _l(e,t)}}function rj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nj(e){if(Array.isArray(e))return _l(e)}function _l(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 nm(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 pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(r),!0).forEach(function(n){dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dr(e,t,r){return t=ij(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ij(e){var t=aj(e,"string");return Pn(t)=="symbol"?t:t+""}function aj(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)}function Be(e,t,r){return J(e)||J(t)?r:we(t)?He(e,t,r):V(t)?t(e):r}function un(e,t,r,n){var i=nE(e,function(u){return Be(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[Ma(a),Tt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!J(u)}):i;return o.map(function(u){return we(u)||u instanceof Date?u:""})}var oj=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?.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,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Ze(l-f)!==Ze(h-l)){var m=[];if(Ze(h-l)===Ze(c[1]-c[0])){d=h;var v=l+c[1]-c[0];m[0]=Math.min(v,(v+f)/2),m[1]=Math.max(v,(v+f)/2)}else{d=f;var p=h+c[1]-c[0];m[0]=Math.min(l,(p+l)/2),m[1]=Math.max(l,(p+l)/2)}var b=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>b[0]&&t<=b[1]||t>=m[0]&&t<=m[1]){o=i[s].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);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},Qf=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?pe(pe({},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},uj=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),h=0,d=l.length;h<d;h++){var m=f[l[h]],v=m.items,p=m.cateAxisId,b=v.filter(function(_){return pt(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?pe(pe({},x),b[0].props):b[0].props,O=w.barSize,y=w[p];o[y]||(o[y]=[]);var g=J(O)?r:O;o[y].push({item:b[0],stackList:b.slice(1),barSize:J(g)?void 0:Je(g,n,0)})}}return o},cj=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=Je(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/c,m=o.reduce(function(O,y){return O+y.barSize||0},0);m+=(c-1)*s,m>=i&&(m-=(c-1)*s,s=0),m>=i&&d>0&&(h=!0,d*=.9,m=c*d);var v=(i-m)/2>>0,p={offset:v-s,size:0};f=o.reduce(function(O,y){var g={item:y.item,position:{offset:p.offset+p.size+s,size:h?d:y.barSize}},_=[].concat(rm(O),[g]);return p=_[_.length-1].position,y.stackList&&y.stackList.length&&y.stackList.forEach(function(S){_.push({item:S,position:p})}),_},l)}else{var b=Je(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,y,g){var _=[].concat(rm(O),[{item:y.item,position:{offset:b+(x+s)*g+(x-w)/2,size:w}}]);return y.stackList&&y.stackList.length&&y.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},sj=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Z0({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,d=s.align,m=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&d!=="center"&&q(t[d]))return pe(pe({},t),{},dr({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&m!=="middle"&&q(t[m]))return pe(pe({},t),{},dr({},m,t[m]+(h||0)))}return t},lj=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},J0=function(t,r,n,i,a){var o=r.props.children,u=Qe(o,Ia).filter(function(s){return lj(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=Be(f,n);if(J(l))return s;var h=Array.isArray(l)?[Ma(l),Tt(l)]:[l,l],d=c.reduce(function(m,v){var p=Be(f,v,0),b=h[0]-Math.abs(Array.isArray(p)?p[0]:p),x=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(b,m[0]),Math.max(x,m[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},fj=function(t,r,n,i,a){var o=r.map(function(u){return J0(t,u,n,a,i)}).filter(function(u){return!J(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},Q0=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&J0(t,c,s,i)||un(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},[])},ex=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},tx=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},ht=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?.length>=2?Ze(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!Br(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,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,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},ps=new WeakMap,si=function(t,r){if(typeof r!="function")return t;ps.has(t)||ps.set(t,new WeakMap);var n=ps.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},rx=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:mn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:ki(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:on(),realScaleType:"point"}:a==="category"?{scale:mn(),realScaleType:"band"}:{scale:ki(),realScaleType:"linear"};if(Xt(i)){var c="scale".concat(ma(i));return{scale:(zy[c]||on)(),realScaleType:zy[c]?c:"point"}}return V(i)?{scale:i}:{scale:on(),realScaleType:"point"}},im=1e-4,nx=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])-im,o=Math.max(i[0],i[1])+im,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},hj=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},pj=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(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(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},dj=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=Br(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])}},vj=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=Br(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)}},yj={sign:dj,expand:t1,none:vr,silhouette:r1,wiggle:n1,positive:vj},mj=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=yj[n],o=e1().keys(i).value(function(u,c){return+Be(u,c,0)}).order(Qs).offset(a);return o(t)},gj=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var d,m=(d=h.type)!==null&&d!==void 0&&d.defaultProps?pe(pe({},h.type.defaultProps),h.props):h.props,v=m.stackId,p=m.hide;if(p)return l;var b=m[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(we(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[Kn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return pe(pe({},l),{},dr({},b,x))},c),f={};return Object.keys(s).reduce(function(l,h){var d=s[h];if(d.hasStack){var m={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(v,p){var b=d.stackGroups[p];return pe(pe({},v),{},dr({},p,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:mj(t,b.items,a)}))},m)}return pe(pe({},l),{},dr({},h,d))},f)},ix=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=$E(s,a,u);return t.domain([Ma(f),Tt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=IE(l,a,u);return{niceTicks:h}}return null};function am(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&&!J(i[t.dataKey])){var u=vi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Be(i,J(o)?t.dataKey:o);return J(c)?null:t.scale(c)}var om=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=Be(o,r.dataKey,r.domain[u]);return J(c)?null:r.scale(c)-a/2+i},bj=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]},xj=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?pe(pe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(we(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},wj=function(t){return t.reduce(function(r,n){return[Ma(n.concat([r[0]]).filter(q)),Tt(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},ax=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=wj(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})},um=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Sl=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(um.test(t[0])){var a=+um.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(cm.test(t[1])){var o=+cm.exec(t[1])[1];i[1]=r[1]+o}else V(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},zi=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=Tf(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},sm=function(t,r,n){return!t||!t.length||On(t,He(n,"type.defaultProps.domain"))?r:t},ox=function(t,r){var n=t.type.defaultProps?pe(pe({},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 pe(pe({},Z(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Qf(t),value:Be(r,i),type:c,payload:r,chartType:s,hide:f})};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 lm(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 st(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lm(Object(r),!0).forEach(function(n){ux(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ux(e,t,r){return t=Oj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oj(e){var t=_j(e,"string");return Tn(t)=="symbol"?t:t+""}function _j(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)}function Sj(e,t){return Ej(e)||Tj(e,t)||Pj(e,t)||Aj()}function Aj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pj(e,t){if(e){if(typeof e=="string")return fm(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 fm(e,t)}}function fm(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 Tj(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 Ej(e){if(Array.isArray(e))return e}var Wi=Math.PI/180,jj=function(t){return t*180/Math.PI},Pe=function(t,r,n,i){return{x:t+Math.cos(-Wi*i)*n,y:r+Math.sin(-Wi*i)*n}},Mj=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},cN=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=Je(t.cx,o,o/2),l=Je(t.cy,u,u/2),h=Mj(o,u,n),d=Je(t.innerRadius,h,0),m=Je(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(p,b){var x=r[b],w=x.domain,O=x.reversed,y;if(J(x.range))i==="angleAxis"?y=[c,s]:i==="radiusAxis"&&(y=[d,m]),O&&(y=[y[1],y[0]]);else{y=x.range;var g=y,_=Sj(g,2);c=_[0],s=_[1]}var S=rx(x,a),P=S.realScaleType,M=S.scale;M.domain(w).range(y),nx(M);var A=ix(M,st(st({},x),{},{realScaleType:P})),E=st(st(st({},x),A),{},{range:y,radius:m,realScaleType:P,scale:M,cx:f,cy:l,innerRadius:d,outerRadius:m,startAngle:c,endAngle:s});return st(st({},p),{},ux({},b,E))},{})},Cj=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))},$j=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=Cj({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:jj(s),angleInRadian:s}},Ij=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}},Rj=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},hm=function(t,r){var n=t.x,i=t.y,a=$j({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=Ij(r),l=f.startAngle,h=f.endAngle,d=u,m;if(l<=h){for(;d>h;)d-=360;for(;d<l;)d+=360;m=d>=l&&d<=h}else{for(;d>l;)d-=360;for(;d<h;)d+=360;m=d>=h&&d<=l}return m?st(st({},r),{},{radius:o,angle:Rj(d,r)}):null},sN=function(t){return!N.isValidElement(t)&&!V(t)&&typeof t!="boolean"?t.className:""};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)}var kj=["offset"];function Dj(e){return Lj(e)||Bj(e)||qj(e)||Nj()}function Nj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qj(e,t){if(e){if(typeof e=="string")return Al(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 Al(e,t)}}function Bj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lj(e){if(Array.isArray(e))return Al(e)}function Al(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 Fj(e,t){if(e==null)return{};var r=zj(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 zj(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 pm(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 xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pm(Object(r),!0).forEach(function(n){Wj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wj(e,t,r){return t=Uj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uj(e){var t=Hj(e,"string");return En(t)=="symbol"?t:t+""}function Hj(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)}function jn(){return jn=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},jn.apply(this,arguments)}var Gj=function(t){var r=t.value,n=t.formatter,i=J(t.children)?r:t.children;return V(n)?n(i):i},Kj=function(t,r){var n=Ze(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Vj=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,h=c.outerRadius,d=c.startAngle,m=c.endAngle,v=c.clockWise,p=(l+h)/2,b=Kj(d,m),x=b>=0?1:-1,w,O;i==="insideStart"?(w=d+x*o,O=v):i==="insideEnd"?(w=m-x*o,O=!v):i==="end"&&(w=m+x*o,O=v),O=b<=0?O:!O;var y=Pe(s,f,p,w),g=Pe(s,f,p,w+(O?1:-1)*359),_="M".concat(y.x,",").concat(y.y,`
|
||
A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
|
||
`).concat(g.x,",").concat(g.y),S=J(t.id)?Kn("recharts-radial-line-"):t.id;return T.createElement("text",jn({},n,{dominantBaseline:"central",className:ee("recharts-radial-bar-label",u)}),T.createElement("defs",null,T.createElement("path",{id:S,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(S)},r))},Xj=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,h=(f+l)/2;if(i==="outside"){var d=Pe(o,u,s+n,h),m=d.x,v=d.y;return{x:m,y:v,textAnchor:m>=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 p=(c+s)/2,b=Pe(o,u,p,h),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Yj=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,h=l*i,d=l>0?"end":"start",m=l>0?"start":"end",v=s>=0?1:-1,p=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:d};return xe(xe({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:m};return xe(xe({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var y={x:u-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return xe(xe({},y),n?{width:Math.max(y.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+s+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return xe(xe({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?xe({x:u+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?xe({x:u+s-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?xe({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:m},_):a==="insideBottom"?xe({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?xe({x:u+p,y:c+h,textAnchor:x,verticalAnchor:m},_):a==="insideTopRight"?xe({x:u+s-p,y:c+h,textAnchor:b,verticalAnchor:m},_):a==="insideBottomLeft"?xe({x:u+p,y:c+f-h,textAnchor:x,verticalAnchor:d},_):a==="insideBottomRight"?xe({x:u+s-p,y:c+f-h,textAnchor:b,verticalAnchor:d},_):qr(a)&&(q(a.x)||zt(a.x))&&(q(a.y)||zt(a.y))?xe({x:u+Je(a.x,s),y:c+Je(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):xe({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},Zj=function(t){return"cx"in t&&q(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=Fj(e,kj),i=xe({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,h=i.textBreakAll;if(!a||J(u)&&J(c)&&!N.isValidElement(s)&&!V(s))return null;if(N.isValidElement(s))return N.cloneElement(s,i);var d;if(V(s)){if(d=N.createElement(s,i),N.isValidElement(d))return d}else d=Gj(i);var m=Zj(a),v=Z(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Vj(i,d,v);var p=m?Xj(i):Yj(i);return T.createElement(Ei,jn({className:ee("recharts-label",l)},v,p,{breakAll:h}),d)}Ee.displayName="Label";var cx=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,h=t.y,d=t.top,m=t.left,v=t.width,p=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(q(v)&&q(p)){if(q(l)&&q(h))return{x:l,y:h,width:v,height:p};if(q(d)&&q(m))return{x:d,y:m,width:v,height:p}}return q(l)&&q(h)?{x:l,y:h,width:0,height:0}:q(r)&&q(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:{}},Jj=function(t,r){return t?t===!0?T.createElement(Ee,{key:"label-implicit",viewBox:r}):we(t)?T.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Ee?N.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):V(t)?T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):qr(t)?T.createElement(Ee,jn({viewBox:r},t,{key:"label-implicit"})):null:null},Qj=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=cx(t),o=Qe(i,Ee).map(function(c,s){return N.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=Jj(t.label,r||a);return[u].concat(Dj(o))};Ee.parseViewBox=cx;Ee.renderCallByParent=Qj;var ds,dm;function eM(){if(dm)return ds;dm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return ds=e,ds}var tM=eM();const rM=ue(tM);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)}var nM=["valueAccessor"],iM=["data","dataKey","clockWise","id","textBreakAll"];function aM(e){return sM(e)||cM(e)||uM(e)||oM()}function oM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uM(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 cM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sM(e){if(Array.isArray(e))return Pl(e)}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 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 vm(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 ym(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vm(Object(r),!0).forEach(function(n){lM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lM(e,t,r){return t=fM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fM(e){var t=hM(e,"string");return Mn(t)=="symbol"?t:t+""}function hM(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 mm(e,t){if(e==null)return{};var r=pM(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 pM(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 dM=function(t){return Array.isArray(t.value)?rM(t.value):t.value};function Mt(e){var t=e.valueAccessor,r=t===void 0?dM:t,n=mm(e,nM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=mm(n,iM);return!i||!i.length?null:T.createElement(fe,{className:"recharts-label-list"},i.map(function(f,l){var h=J(a)?r(f,l):Be(f&&f.payload,a),d=J(u)?{}:{id:"".concat(u,"-").concat(l)};return T.createElement(Ee,Ui({},Z(f,!0),s,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Ee.parseViewBox(J(o)?f:ym(ym({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Mt.displayName="LabelList";function vM(e,t){return e?e===!0?T.createElement(Mt,{key:"labelList-implicit",data:t}):T.isValidElement(e)||V(e)?T.createElement(Mt,{key:"labelList-implicit",data:t,content:e}):qr(e)?T.createElement(Mt,Ui({data:t},e,{key:"labelList-implicit"})):null:null}function yM(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=Qe(n,Mt).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=vM(e.label,t);return[a].concat(aM(i))}Mt.renderCallByParent=yM;function Cn(e){"@babel/helpers - typeof";return Cn=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},Cn(e)}function Tl(){return Tl=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},Tl.apply(this,arguments)}function gm(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 bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gm(Object(r),!0).forEach(function(n){mM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mM(e,t,r){return t=gM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gM(e){var t=bM(e,"string");return Cn(t)=="symbol"?t:t+""}function bM(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xM=function(t,r){var n=Ze(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},li=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)/Wi,h=s?a:a+o*l,d=Pe(r,n,f,h),m=Pe(r,n,i,h),v=s?a-o*l:a,p=Pe(r,n,f*Math.cos(l*Wi),v);return{center:d,circleTangency:m,lineTangency:p,theta:l}},sx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=xM(o,u),s=o+c,f=Pe(r,n,a,o),l=Pe(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
|
||
`).concat(l.x,",").concat(l.y,`
|
||
`);if(i>0){var d=Pe(r,n,i,o),m=Pe(r,n,i,s);h+="L ".concat(m.x,",").concat(m.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
|
||
`).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},wM=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=Ze(f-s),h=li({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=h.circleTangency,m=h.lineTangency,v=h.theta,p=li({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=p.circleTangency,x=p.lineTangency,w=p.theta,O=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(O<0)return u?"M ".concat(m.x,",").concat(m.y,`
|
||
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
||
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
||
`):sx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var y="M ".concat(m.x,",").concat(m.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,`
|
||
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
|
||
`);if(i>0){var g=li({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=g.circleTangency,S=g.lineTangency,P=g.theta,M=li({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=M.circleTangency,E=M.lineTangency,j=M.theta,I=c?Math.abs(s-f):Math.abs(s-f)-P-j;if(I<0&&o===0)return"".concat(y,"L").concat(r,",").concat(n,"Z");y+="L".concat(E.x,",").concat(E.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else y+="L".concat(r,",").concat(n,"Z");return y},OM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},lx=function(t){var r=bm(bm({},OM),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,h=r.className;if(o<a||f===l)return null;var d=ee("recharts-sector",h),m=o-a,v=Je(u,m,0,!0),p;return v>0&&Math.abs(f-l)<360?p=wM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):p=sx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),T.createElement("path",Tl({},Z(r,!0),{className:d,d:p,role:"img"}))};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 El(){return El=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},El.apply(this,arguments)}function xm(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 wm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xm(Object(r),!0).forEach(function(n){_M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _M(e,t,r){return t=SM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SM(e){var t=AM(e,"string");return $n(t)=="symbol"?t:t+""}function AM(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 Om={curveBasisClosed:WO,curveBasisOpen:UO,curveBasis:zO,curveBumpX:EO,curveBumpY:jO,curveLinearClosed:HO,curveLinear:ba,curveMonotoneX:GO,curveMonotoneY:KO,curveNatural:VO,curveStep:XO,curveStepAfter:ZO,curveStepBefore:YO},fi=function(t){return t.x===+t.x&&t.y===+t.y},Zr=function(t){return t.x},Jr=function(t){return t.y},PM=function(t,r){if(V(t))return t;var n="curve".concat(ma(t));return(n==="curveMonotone"||n==="curveBump")&&r?Om["".concat(n).concat(r==="vertical"?"Y":"X")]:Om[n]||ba},TM=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=PM(n,u),l=s?a.filter(function(v){return fi(v)}):a,h;if(Array.isArray(o)){var d=s?o.filter(function(v){return fi(v)}):o,m=l.map(function(v,p){return wm(wm({},v),{},{base:d[p]})});return u==="vertical"?h=ri().y(Jr).x1(Zr).x0(function(v){return v.base.x}):h=ri().x(Zr).y1(Jr).y0(function(v){return v.base.y}),h.defined(fi).curve(f),h(m)}return u==="vertical"&&q(o)?h=ri().y(Jr).x1(Zr).x0(o):q(o)?h=ri().x(Zr).y1(Jr).y0(o):h=lb().x(Zr).y(Jr),h.defined(fi).curve(f),h(l)},cn=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?TM(t):i;return N.createElement("path",El({},Z(t,!1),yi(t),{className:ee("recharts-curve",r),d:o,ref:a}))},vs={exports:{}},ys,_m;function EM(){if(_m)return ys;_m=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ys=e,ys}var ms,Sm;function jM(){if(Sm)return ms;Sm=1;var e=EM();function t(){}function r(){}return r.resetWarningCache=t,ms=function(){function n(o,u,c,s,f,l){if(l!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},ms}var Am;function MM(){return Am||(Am=1,vs.exports=jM()()),vs.exports}var CM=MM();const ne=ue(CM),{getOwnPropertyNames:$M,getOwnPropertySymbols:IM}=Object,{hasOwnProperty:RM}=Object.prototype;function gs(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function hi(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 kM(e){return e?.[Symbol.toStringTag]}function Pm(e){return $M(e).concat(IM(e))}const DM=Object.hasOwn||((e,t)=>RM.call(e,t));function rr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const NM="__v",qM="__o",BM="_owner",{getOwnPropertyDescriptor:Tm,keys:Em}=Object;function LM(e,t){return e.byteLength===t.byteLength&&Hi(new Uint8Array(e),new Uint8Array(t))}function FM(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 zM(e,t){return e.byteLength===t.byteLength&&Hi(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function WM(e,t){return rr(e.getTime(),t.getTime())}function UM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function HM(e,t){return e===t}function jm(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 h=o.value,d=u.value;if(r.equals(h[0],d[0],c,l,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const GM=rr;function KM(e,t,r){const n=Em(e);let i=n.length;if(Em(t).length!==i)return!1;for(;i-- >0;)if(!fx(e,t,r,n[i]))return!1;return!0}function Qr(e,t,r){const n=Pm(e);let i=n.length;if(Pm(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!fx(e,t,r,a)||(o=Tm(e,a),u=Tm(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function VM(e,t){return rr(e.valueOf(),t.valueOf())}function XM(e,t){return e.source===t.source&&e.flags===t.flags}function Mm(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 Hi(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 YM(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 fx(e,t,r,n){return(n===BM||n===qM||n===NM)&&(e.$$typeof||t.$$typeof)?!0:DM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const ZM="[object ArrayBuffer]",JM="[object Arguments]",QM="[object Boolean]",eC="[object DataView]",tC="[object Date]",rC="[object Error]",nC="[object Map]",iC="[object Number]",aC="[object Object]",oC="[object RegExp]",uC="[object Set]",cC="[object String]",sC={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},lC="[object URL]",fC=Object.prototype.toString;function hC({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:h,areUrlsEqual:d,unknownTagComparators:m}){return function(p,b,x){if(p===b)return!0;if(p==null||b==null)return!1;const w=typeof p;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(p,b,x):w==="function"?a(p,b,x):!1;const O=p.constructor;if(O!==b.constructor)return!1;if(O===Object)return c(p,b,x);if(Array.isArray(p))return t(p,b,x);if(O===Date)return n(p,b,x);if(O===RegExp)return f(p,b,x);if(O===Map)return o(p,b,x);if(O===Set)return l(p,b,x);const y=fC.call(p);if(y===tC)return n(p,b,x);if(y===oC)return f(p,b,x);if(y===nC)return o(p,b,x);if(y===uC)return l(p,b,x);if(y===aC)return typeof p.then!="function"&&typeof b.then!="function"&&c(p,b,x);if(y===lC)return d(p,b,x);if(y===rC)return i(p,b,x);if(y===JM)return c(p,b,x);if(sC[y])return h(p,b,x);if(y===ZM)return e(p,b,x);if(y===eC)return r(p,b,x);if(y===QM||y===iC||y===cC)return s(p,b,x);if(m){let g=m[y];if(!g){const _=kM(p);_&&(g=m[_])}if(g)return g(p,b,x)}return!1}}function pC({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:LM,areArraysEqual:r?Qr:FM,areDataViewsEqual:zM,areDatesEqual:WM,areErrorsEqual:UM,areFunctionsEqual:HM,areMapsEqual:r?gs(jm,Qr):jm,areNumbersEqual:GM,areObjectsEqual:r?Qr:KM,arePrimitiveWrappersEqual:VM,areRegExpsEqual:XM,areSetsEqual:r?gs(Mm,Qr):Mm,areTypedArraysEqual:r?gs(Hi,Qr):Hi,areUrlsEqual:YM,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=hi(n.areArraysEqual),a=hi(n.areMapsEqual),o=hi(n.areObjectsEqual),u=hi(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function dC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function vC({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 yC=kt();kt({strict:!0});kt({circular:!0});kt({circular:!0,strict:!0});kt({createInternalComparator:()=>rr});kt({strict:!0,createInternalComparator:()=>rr});kt({circular:!0,createInternalComparator:()=>rr});kt({circular:!0,createInternalComparator:()=>rr,strict:!0});function kt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=pC(e),o=hC(a),u=r?r(o):dC(o);return vC({circular:t,comparator:o,createState:n,equals:u,strict:i})}function mC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Cm(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):mC(i)};requestAnimationFrame(n)}function jl(e){"@babel/helpers - typeof";return jl=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},jl(e)}function gC(e){return OC(e)||wC(e)||xC(e)||bC()}function bC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xC(e,t){if(e){if(typeof e=="string")return $m(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 $m(e,t)}}function $m(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 wC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OC(e){if(Array.isArray(e))return e}function _C(){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=gC(o),c=u[0],s=u.slice(1);if(typeof c=="number"){Cm(i.bind(null,s),c);return}i(c),Cm(i.bind(null,s));return}jl(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 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 Im(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 Rm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Im(Object(r),!0).forEach(function(n){hx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Im(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hx(e,t,r){return t=SC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SC(e){var t=AC(e,"string");return In(t)==="symbol"?t:String(t)}function AC(e,t){if(In(e)!=="object"||e===null)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 PC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},TC=function(t){return t},EC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},sn=function(t,r){return Object.keys(r).reduce(function(n,i){return Rm(Rm({},n),{},hx({},i,t(i,r[i])))},{})},km=function(t,r,n){return t.map(function(i){return"".concat(EC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function jC(e,t){return $C(e)||CC(e,t)||px(e,t)||MC()}function MC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CC(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 $C(e){if(Array.isArray(e))return e}function IC(e){return DC(e)||kC(e)||px(e)||RC()}function RC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function px(e,t){if(e){if(typeof e=="string")return Ml(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 Ml(e,t)}}function kC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DC(e){if(Array.isArray(e))return Ml(e)}function Ml(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 Gi=1e-4,dx=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},vx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Dm=function(t,r){return function(n){var i=dx(t,r);return vx(i,n)}},NC=function(t,r){return function(n){var i=dx(t,r),a=[].concat(IC(i.map(function(o,u){return o*u}).slice(1)),[0]);return vx(a,n)}},Nm=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(p){return parseFloat(p)}),f=jC(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Dm(i,o),h=Dm(a,u),d=NC(i,o),m=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 y=l(w)-x,g=d(w);if(Math.abs(y-x)<Gi||g<Gi)return h(w);w=m(w-y/g)}return h(w)};return v.isStepper=!1,v},qC=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,h){var d=-(f-l)*n,m=h*a,v=h+(d-m)*u/1e3,p=h*u/1e3+f;return Math.abs(p-l)<Gi&&Math.abs(v)<Gi?[l,0]:[p,v]};return c.isStepper=!0,c.dt=u,c},BC=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 Nm(i);case"spring":return qC();default:if(i.split("(")[0]==="cubic-bezier")return Nm(i)}return typeof i=="function"?i:null};function Rn(e){"@babel/helpers - typeof";return Rn=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},Rn(e)}function qm(e){return zC(e)||FC(e)||yx(e)||LC()}function LC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zC(e){if(Array.isArray(e))return $l(e)}function Bm(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 Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bm(Object(r),!0).forEach(function(n){Cl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cl(e,t,r){return t=WC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WC(e){var t=UC(e,"string");return Rn(t)==="symbol"?t:String(t)}function UC(e,t){if(Rn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HC(e,t){return VC(e)||KC(e,t)||yx(e,t)||GC()}function GC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yx(e,t){if(e){if(typeof e=="string")return $l(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 $l(e,t)}}function $l(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 KC(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}var Ki=function(t,r,n){return t+(r-t)*n},Il=function(t){var r=t.from,n=t.to;return r!==n},XC=function e(t,r,n){var i=sn(function(a,o){if(Il(o)){var u=t(o.from,o.to,o.velocity),c=HC(u,2),s=c[0],f=c[1];return Ae(Ae({},o),{},{from:s,velocity:f})}return o},r);return n<1?sn(function(a,o){return Il(o)?Ae(Ae({},o),{},{velocity:Ki(o.velocity,i[a].velocity,n),from:Ki(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const YC=(function(e,t,r,n,i){var a=PC(e,t),o=a.reduce(function(p,b){return Ae(Ae({},p),{},Cl({},b,[e[b],t[b]]))},{}),u=a.reduce(function(p,b){return Ae(Ae({},p),{},Cl({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return sn(function(b,x){return x.from},u)},d=function(){return!Object.values(u).filter(Il).length},m=function(b){s||(s=b);var x=b-s,w=x/r.dt;u=XC(r,u,w),i(Ae(Ae(Ae({},e),t),h())),s=b,d()||(c=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=sn(function(y,g){return Ki.apply(void 0,qm(g).concat([r(x)]))},o);if(i(Ae(Ae(Ae({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=sn(function(y,g){return Ki.apply(void 0,qm(g).concat([r(1)]))},o);i(Ae(Ae(Ae({},e),t),O))}};return l=r.isStepper?m:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});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)}var ZC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function JC(e,t){if(e==null)return{};var r=QC(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 QC(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 bs(e){return n$(e)||r$(e)||t$(e)||e$()}function e$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$(e,t){if(e){if(typeof e=="string")return Rl(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 Rl(e,t)}}function r$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n$(e){if(Array.isArray(e))return Rl(e)}function Rl(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 Lm(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 Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lm(Object(r),!0).forEach(function(n){nn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nn(e,t,r){return t=mx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mx(n.key),n)}}function o$(e,t,r){return t&&a$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mx(e){var t=u$(e,"string");return Sr(t)==="symbol"?t:String(t)}function u$(e,t){if(Sr(e)!=="object"||e===null)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(t==="string"?String:Number)(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&&kl(e,t)}function kl(e,t){return kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kl(e,t)}function s$(e){var t=l$();return function(){var n=Vi(e),i;if(t){var a=Vi(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Dl(this,i)}}function Dl(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 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 l$(){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 Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}var bt=(function(e){c$(r,e);var t=s$(r);function r(n,i){var a;i$(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,h=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Nl(a)),a.changeStyle=a.changeStyle.bind(Nl(a)),!u||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Dl(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},Dl(a);a.state={style:c?nn({},c,s):s}}else a.state={style:{}};return a}return o$(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,h=this.state.style;if(u){if(!o){var d={style:c?nn({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(d);return}if(!(yC(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||s?l:i.to;if(this.state&&h){var p={style:c?nn({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(p)}this.runAnimation(Ve(Ve({},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,h=i.onAnimationStart,d=YC(o,u,BC(s),c,this.changeStyle),m=function(){a.stopJSAnimation=d()};this.manager.start([h,f,m,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,h=l===void 0?0:l,d=function(v,p,b){if(b===0)return v;var x=p.duration,w=p.easing,O=w===void 0?"ease":w,y=p.style,g=p.properties,_=p.onAnimationEnd,S=b>0?o[b-1]:p,P=g||Object.keys(y);if(typeof O=="function"||O==="spring")return[].concat(bs(v),[a.runJSAnimation.bind(a,{from:S.style,to:y,duration:x,easing:O}),x]);var M=km(P,x,O),A=Ve(Ve(Ve({},S.style),y),{},{transition:M});return[].concat(bs(v),[A,x,_]).filter(TC)};return this.manager.start([c].concat(bs(o.reduce(d,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=_C());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,d=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof s=="function"||typeof d=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?nn({},u,c):c,p=km(Object.keys(v),o,s);m.start([f,a,Ve(Ve({},v),{},{transition:p}),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=JC(i,ZC),s=N.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(d){var m=d.props,v=m.style,p=v===void 0?{}:v,b=m.className,x=N.cloneElement(d,Ve(Ve({},c),{},{style:Ve(Ve({},p),f),className:b}));return x};return s===1?l(N.Children.only(a)):T.createElement("div",null,N.Children.map(a,function(h){return l(h)}))}}]),r})(N.PureComponent);bt.displayName="Animate";bt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};bt.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 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 Xi(){return Xi=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},Xi.apply(this,arguments)}function f$(e,t){return v$(e)||d$(e,t)||p$(e,t)||h$()}function h$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p$(e,t){if(e){if(typeof e=="string")return Fm(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 Fm(e,t)}}function Fm(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 d$(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 v$(e){if(Array.isArray(e))return e}function zm(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 Wm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zm(Object(r),!0).forEach(function(n){y$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y$(e,t,r){return t=m$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m$(e){var t=g$(e,"string");return kn(t)=="symbol"?t:t+""}function g$(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)}var Um=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],h=0,d=4;h<d;h++)l[h]=a[h]>o?o:a[h];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,`,
|
||
`).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,`,
|
||
`).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,`,
|
||
`).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+u*m,`
|
||
A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+c*m,",").concat(r,`
|
||
L `).concat(t+n-c*m,",").concat(r,`
|
||
A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*m,`
|
||
L `).concat(t+n,",").concat(r+i-u*m,`
|
||
A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+n-c*m,",").concat(r+i,`
|
||
L `).concat(t+c*m,",").concat(r+i,`
|
||
A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},b$=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),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},x$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},eh=function(t){var r=Wm(Wm({},x$),t),n=N.useRef(),i=N.useState(-1),a=f$(i,2),o=a[0],u=a[1];N.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,h=r.radius,d=r.className,m=r.animationEasing,v=r.animationDuration,p=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=ee("recharts-rectangle",d);return x?T.createElement(bt,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:m,isActive:x},function(O){var y=O.width,g=O.height,_=O.x,S=O.y;return T.createElement(bt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:b,easing:m},T.createElement("path",Xi({},Z(r,!0),{className:w,d:Um(_,S,y,g,h),ref:n})))}):T.createElement("path",Xi({},Z(r,!0),{className:w,d:Um(c,s,f,l,h)}))};function ql(){return ql=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},ql.apply(this,arguments)}var th=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ee("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",ql({},Z(t,!1),yi(t),{className:o,cx:r,cy:n,r:i})):null};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)}var w$=["x","y","top","left","width","height","className"];function Bl(){return Bl=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},Bl.apply(this,arguments)}function Hm(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 O$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hm(Object(r),!0).forEach(function(n){_$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _$(e,t,r){return t=S$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S$(e){var t=A$(e,"string");return Dn(t)=="symbol"?t:t+""}function A$(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 P$(e,t){if(e==null)return{};var r=T$(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 T$(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 E$=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},j$=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,h=t.height,d=h===void 0?0:h,m=t.className,v=P$(t,w$),p=O$({x:n,y:a,top:u,left:s,width:l,height:d},v);return!q(n)||!q(a)||!q(l)||!q(d)||!q(u)||!q(s)?null:T.createElement("path",Bl({},Z(p,!0),{className:ee("recharts-cross",m),d:E$(n,a,l,d,u,s)}))},xs,Gm;function M$(){if(Gm)return xs;Gm=1;var e=Ib(),t=e(Object.getPrototypeOf,Object);return xs=t,xs}var ws,Km;function C$(){if(Km)return ws;Km=1;var e=xt(),t=M$(),r=wt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==c}return ws=s,ws}var $$=C$();const I$=ue($$);var Os,Vm;function R$(){if(Vm)return Os;Vm=1;var e=xt(),t=wt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Os=n,Os}var k$=R$();const D$=ue(k$);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 Yi(){return Yi=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},Yi.apply(this,arguments)}function N$(e,t){return F$(e)||L$(e,t)||B$(e,t)||q$()}function q$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B$(e,t){if(e){if(typeof e=="string")return Xm(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 Xm(e,t)}}function Xm(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 L$(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 F$(e){if(Array.isArray(e))return e}function Ym(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 Zm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ym(Object(r),!0).forEach(function(n){z$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z$(e,t,r){return t=W$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W$(e){var t=U$(e,"string");return Nn(t)=="symbol"?t:t+""}function U$(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 Jm=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},H$={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},G$=function(t){var r=Zm(Zm({},H$),t),n=N.useRef(),i=N.useState(-1),a=N$(i,2),o=a[0],u=a[1];N.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,h=r.height,d=r.className,m=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=ee("recharts-trapezoid",d);return b?T.createElement(bt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:m,isActive:b},function(w){var O=w.upperWidth,y=w.lowerWidth,g=w.height,_=w.x,S=w.y;return T.createElement(bt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:m},T.createElement("path",Yi({},Z(r,!0),{className:x,d:Jm(_,S,O,y,g),ref:n})))}):T.createElement("g",null,T.createElement("path",Yi({},Z(r,!0),{className:x,d:Jm(c,s,f,l,h)})))},K$=["option","shapeType","propTransformer","activeClassName","isActive"];function qn(e){"@babel/helpers - typeof";return qn=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},qn(e)}function V$(e,t){if(e==null)return{};var r=X$(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 X$(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 Qm(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?Qm(Object(r),!0).forEach(function(n){Y$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y$(e,t,r){return t=Z$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z$(e){var t=J$(e,"string");return qn(t)=="symbol"?t:t+""}function J$(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q$(e,t){return Zi(Zi({},t),e)}function eI(e,t){return e==="symbols"}function eg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(eh,r);case"trapezoid":return T.createElement(G$,r);case"sector":return T.createElement(lx,r);case"symbols":if(eI(t))return T.createElement(bf,r);break;default:return null}}function tI(e){return N.isValidElement(e)?e.props:e}function rI(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Q$:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=V$(e,K$),s;if(N.isValidElement(t))s=N.cloneElement(t,Zi(Zi({},c),tI(t)));else if(V(t))s=t(c);else if(I$(t)&&!D$(t)){var f=i(t,c);s=T.createElement(eg,{shapeType:r,elementProps:f})}else{var l=c;s=T.createElement(eg,{shapeType:r,elementProps:l})}return u?T.createElement(fe,{className:o},s):s}function Ra(e,t){return t!=null&&"trapezoids"in e.props}function ka(e,t){return t!=null&&"sectors"in e.props}function Bn(e,t){return t!=null&&"points"in e.props}function nI(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 iI(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function aI(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function oI(e,t){var r;return Ra(e,t)?r=nI:ka(e,t)?r=iI:Bn(e,t)&&(r=aI),r}function uI(e,t){var r;return Ra(e,t)?r="trapezoids":ka(e,t)?r="sectors":Bn(e,t)&&(r="points"),r}function cI(e,t){if(Ra(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(ka(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 Bn(e,t)?t.payload:{}}function sI(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=uI(r,t),a=cI(r,t),o=n.filter(function(c,s){var f=On(a,c),l=r.props[i].filter(function(m){var v=oI(r,t);return v(m,t)}),h=r.props[i].indexOf(l[l.length-1]),d=s===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var _s,tg;function lI(){if(tg)return _s;tg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return _s=r,_s}var Ss,rg;function gx(){if(rg)return Ss;rg=1;var e=Xb(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Ss=n,Ss}var As,ng;function fI(){if(ng)return As;ng=1;var e=lI(),t=_a(),r=gx();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return As=n,As}var Ps,ig;function hI(){if(ig)return Ps;ig=1;var e=fI(),t=e();return Ps=t,Ps}var pI=hI();const Ji=ue(pI);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 ag(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 og(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ag(Object(r),!0).forEach(function(n){bx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bx(e,t,r){return t=dI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dI(e){var t=vI(e,"string");return Ln(t)=="symbol"?t:t+""}function vI(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 yI=["Webkit","Moz","O","ms"],mI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=yI.reduce(function(a,o){return og(og({},a),{},bx({},o+n,r))},{});return i[t]=r,i};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 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 ug(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 Ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ug(Object(r),!0).forEach(function(n){De(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cg(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,wx(n.key),n)}}function bI(e,t,r){return t&&cg(e.prototype,t),r&&cg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xI(e,t,r){return t=ea(t),wI(e,xx()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function wI(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 OI(e)}function OI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xx=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}function _I(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&&Ll(e,t)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ll(e,t)}function De(e,t,r){return t=wx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wx(e){var t=SI(e,"string");return Ar(t)=="symbol"?t:t+""}function SI(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 AI=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=on().domain(Ji(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}},sg=function(t){return t.changedTouches&&!!t.changedTouches.length},Pr=(function(e){function t(r){var n;return gI(this,t),n=xI(this,t,[r]),De(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),De(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),De(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),De(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),De(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),De(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),De(n,"handleSlideDragStart",function(i){var a=sg(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 _I(t,e),bI(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),h=Math.max(i,a),d=t.getIndexInRange(o,l),m=t.getIndexInRange(o,h);return{startIndex:d-d%c,endIndex:m===f?f:m-m%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Be(a[n],u,n);return V(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,h=c.startIndex,d=c.endIndex,m=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 p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==h||p.endIndex!==d)&&m&&m(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=sg(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,h=f.width,d=f.travellerWidth,m=f.onChange,v=f.gap,p=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-d-s):x<0&&(x=Math.max(x,l-s)),b[o]=s+x;var w=this.getIndex(b),O=w.startIndex,y=w.endIndex,g=function(){var S=p.length-1;return o==="startX"&&(u>c?O%v===0:y%v===0)||u<c&&y===S||o==="endX"&&(u>c?y%v===0:O%v===0)||u>c&&y===S};this.setState(De(De({},o,s+x),"brushMoveStartX",n.pageX),function(){m&&g()&&m(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 h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(De({},i,d),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 T.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=N.Children.only(s);return l?T.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,h=c.traveller,d=c.ariaLabel,m=c.data,v=c.startIndex,p=c.endIndex,b=Math.max(n,this.props.x),x=Ts(Ts({},Z(this.props,!1)),{},{x:b,y:s,width:f,height:l}),w=d||"Min value: ".concat((a=m[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[p])===null||o===void 0?void 0:o.name);return T.createElement(fe,{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(y){["ArrowLeft","ArrowRight"].includes(y.key)&&(y.preventDefault(),y.stopPropagation(),u.handleTravellerMoveKeyboard(y.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,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 T.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,h=f.endX,d=5,m={pointerEvents:"none",fill:s};return T.createElement(fe,{className:"recharts-brush-texts"},T.createElement(Ei,Qi({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},m),this.getTextOfTick(i)),T.createElement(Ei,Qi({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+d,y:o+u/2},m),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,h=this.state,d=h.startX,m=h.endX,v=h.isTextActive,p=h.isSlideMoving,b=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!q(u)||!q(c)||!q(s)||!q(f)||s<=0||f<=0)return null;var w=ee("recharts-brush",a),O=T.Children.count(o)===1,y=mI("userSelect","none");return T.createElement(fe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,m),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(m,"endX"),(v||p||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 T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),T.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),T.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 T.isValidElement(n)?a=T.cloneElement(n,i):V(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 Ts({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?AI({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 h=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}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}}])})(N.PureComponent);De(Pr,"displayName","Brush");De(Pr,"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 Es,lg;function PI(){if(lg)return Es;lg=1;var e=Pf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Es=t,Es}var js,fg;function TI(){if(fg)return js;fg=1;var e=Pb(),t=$t(),r=PI(),n=Re(),i=_a();function a(o,u,c){var s=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),s(o,t(u,3))}return js=a,js}var EI=TI();const jI=ue(EI);var it=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Ms,hg;function MI(){if(hg)return Ms;hg=1;var e=Ub();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Ms=t,Ms}var Cs,pg;function CI(){if(pg)return Cs;pg=1;var e=MI(),t=zb(),r=$t();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,s){e(o,c,a(u,c,s))}),o}return Cs=n,Cs}var $I=CI();const II=ue($I);var $s,dg;function RI(){if(dg)return $s;dg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return $s=e,$s}var Is,vg;function kI(){if(vg)return Is;vg=1;var e=Pf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Is=t,Is}var Rs,yg;function DI(){if(yg)return Rs;yg=1;var e=RI(),t=kI(),r=$t(),n=Re(),i=_a();function a(o,u,c){var s=n(o)?e:t;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return Rs=a,Rs}var NI=DI();const Ox=ue(NI);var qI=["x","y"];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 Fl(){return Fl=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},Fl.apply(this,arguments)}function mg(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 en(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mg(Object(r),!0).forEach(function(n){BI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BI(e,t,r){return t=LI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LI(e){var t=FI(e,"string");return Fn(t)=="symbol"?t:t+""}function FI(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 zI(e,t){if(e==null)return{};var r=WI(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 WI(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 UI(e,t){var r=e.x,n=e.y,i=zI(e,qI),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),h=parseInt(l,10);return en(en(en(en(en({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function gg(e){return T.createElement(rI,Fl({shapeType:"rectangle",propTransformer:UI,activeClassName:"recharts-active-bar"},e))}var HI=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=q(n)||Xw(n);return a?t(n,i):(a||Zt(),r)}},GI=["value","background"],_x;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 KI(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 ta(){return ta=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},ta.apply(this,arguments)}function bg(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 ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){Et(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xg(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,Ax(n.key),n)}}function YI(e,t,r){return t&&xg(e.prototype,t),r&&xg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZI(e,t,r){return t=ra(t),JI(e,Sx()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function JI(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 QI(e)}function QI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sx=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function eR(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&&zl(e,t)}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zl(e,t)}function Et(e,t,r){return t=Ax(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ax(e){var t=tR(e,"string");return Tr(t)=="symbol"?t:t+""}function tR(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)}var Qn=(function(e){function t(){var r;XI(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ZI(this,t,[].concat(i)),Et(r,"state",{isAnimationFinished:!1}),Et(r,"id",Kn("recharts-bar-")),Et(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Et(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return eR(t,e),YI(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=Z(this.props,!1);return n&&n.map(function(l,h){var d=h===c,m=d?s:o,v=ve(ve(ve({},f),l),{},{isActive:d,option:m,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(fe,ta({className:"recharts-bar-rectangle"},mi(i.props,l,h),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(h)}),T.createElement(gg,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,h=this.state.prevData;return T.createElement(bt,{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(d){var m=d.t,v=a.map(function(p,b){var x=h&&h[b];if(x){var w=We(x.x,p.x),O=We(x.y,p.y),y=We(x.width,p.width),g=We(x.height,p.height);return ve(ve({},p),{},{x:w(m),y:O(m),width:y(m),height:g(m)})}if(o==="horizontal"){var _=We(0,p.height),S=_(m);return ve(ve({},p),{},{y:p.y+p.height-S,height:S})}var P=We(0,p.width),M=P(m);return ve(ve({},p),{},{width:M})});return T.createElement(fe,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||!On(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=Z(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=KI(s,GI);if(!l)return null;var d=ve(ve(ve(ve(ve({},h),{},{fill:"#eee"},l),c),mi(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(gg,ta({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{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=Qe(f,Ia);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,d=function(p,b){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:Be(p,b)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(fe,m,l.map(function(v){return T.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,dataPointFormatter:d})}))}},{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,h=n.height,d=n.isAnimationActive,m=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,b=ee("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,y=J(v)?this.id:v;return T.createElement(fe,{className:b},x||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(y)},T.createElement("rect",{x:x?s:s-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,T.createElement(fe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(y,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,y),(!d||p)&&Mt.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}}])})(N.PureComponent);_x=Qn;Et(Qn,"displayName","Bar");Et(Qn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Fr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Et(Qn,"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,h=e.offset,d=hj(n,r);if(!d)return null;var m=t.layout,v=r.type.defaultProps,p=v!==void 0?ve(ve({},v),r.props):r.props,b=p.dataKey,x=p.children,w=p.minPointSize,O=m==="horizontal"?o:a,y=s?O.scale.domain():null,g=bj({numericAxis:O}),_=Qe(x,Zb),S=l.map(function(P,M){var A,E,j,I,C,R;s?A=pj(s[f+M],y):(A=Be(P,b),Array.isArray(A)||(A=[g,A]));var D=HI(w,_x.defaultProps.minPointSize)(A[1],M);if(m==="horizontal"){var B,L=[o.scale(A[0]),o.scale(A[1])],U=L[0],G=L[1];E=om({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:P,index:M}),j=(B=G??U)!==null&&B!==void 0?B:void 0,I=d.size;var z=U-G;if(C=Number.isNaN(z)?0:z,R={x:E,y:o.y,width:I,height:o.height},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var K=Ze(C||D)*(Math.abs(D)-Math.abs(C));j-=K,C+=K}}else{var ce=[a.scale(A[0]),a.scale(A[1])],de=ce[0],ke=ce[1];if(E=de,j=om({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:P,index:M}),I=ke-de,C=d.size,R={x:a.x,y:j,width:a.width,height:C},Math.abs(D)>0&&Math.abs(I)<Math.abs(D)){var Dt=Ze(I||D)*(Math.abs(D)-Math.abs(I));I+=Dt}}return ve(ve(ve({},P),{},{x:E,y:j,width:I,height:C,value:s?A:A[1],payload:P,background:R},_&&_[M]&&_[M].props),{},{tooltipPayload:[ox(r,P)],tooltipPosition:{x:E+I/2,y:j+C/2}})});return ve({data:S,layout:m},h)});function zn(e){"@babel/helpers - typeof";return zn=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},zn(e)}function rR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wg(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,Px(n.key),n)}}function nR(e,t,r){return t&&wg(e.prototype,t),r&&wg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Og(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 Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Og(Object(r),!0).forEach(function(n){Da(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Da(e,t,r){return t=Px(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Px(e){var t=iR(e,"string");return zn(t)=="symbol"?t:t+""}function iR(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aR=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},h=!!Ne(s,Qn);return f.reduce(function(d,m){var v=r[m],p=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,y=v.reversed,g="".concat(p).concat(O?"Mirror":""),_,S,P,M,A;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=b[1]-b[0],j=1/0,I=v.categoricalDomain.sort(Jw);if(I.forEach(function(ce,de){de>0&&(j=Math.min((ce||0)-(I[de-1]||0),j))}),Number.isFinite(j)){var C=j/E,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*R/2),v.padding==="no-gap"){var D=Je(t.barCategoryGap,C*R),B=C*R/2;_=B-D-(B-D)/R*D}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,y&&(S=[S[1],S[0]]);var L=rx(v,a,h),U=L.scale,G=L.realScaleType;U.domain(b).range(S),nx(U);var z=ix(U,Xe(Xe({},v),{},{realScaleType:G}));i==="xAxis"?(A=p==="top"&&!O||p==="bottom"&&O,P=n.left,M=l[g]-A*v.height):i==="yAxis"&&(A=p==="left"&&!O||p==="right"&&O,P=l[g]-A*v.width,M=n.top);var K=Xe(Xe(Xe({},v),z),{},{realScaleType:G,x:P,y:M,scale:U,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return K.bandSize=zi(K,z),!v.hide&&i==="xAxis"?l[g]+=(A?-1:1)*K.height:v.hide||(l[g]+=(A?-1:1)*K.width),Xe(Xe({},d),{},Da({},m,K))},{})},Tx=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)}},oR=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Tx({x:r,y:n},{x:i,y:a})},Ex=(function(){function e(t){rR(this,e),this.scale=t}return nR(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)}}])})();Da(Ex,"EPS",1e-4);var rh=function(t){var r=Object.keys(t).reduce(function(n,i){return Xe(Xe({},n),{},Da({},i,Ex.create(t[i])))},{});return Xe(Xe({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return II(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return Ox(i,function(a,o){return r[o].isInRange(a)})}})};function uR(e){return(e%180+180)%180}var cR=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=uR(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)},ks,_g;function sR(){if(_g)return ks;_g=1;var e=$t(),t=Vn(),r=wa();function n(i){return function(a,o,u){var c=Object(a);if(!t(a)){var s=e(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return ks=n,ks}var Ds,Sg;function lR(){if(Sg)return Ds;Sg=1;var e=gx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Ds=t,Ds}var Ns,Ag;function fR(){if(Ag)return Ns;Ag=1;var e=Nb(),t=$t(),r=lR(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),e(a,t(o,3),s)}return Ns=i,Ns}var qs,Pg;function hR(){if(Pg)return qs;Pg=1;var e=sR(),t=fR(),r=e(t);return qs=r,qs}var pR=hR();const dR=ue(pR);var vR=Qg();const yR=ue(vR);var mR=yR(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("")}),nh=N.createContext(void 0),ih=N.createContext(void 0),jx=N.createContext(void 0),Mx=N.createContext({}),Cx=N.createContext(void 0),$x=N.createContext(0),Ix=N.createContext(0),Tg=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=mR(a);return T.createElement(nh.Provider,{value:n},T.createElement(ih.Provider,{value:i},T.createElement(Mx.Provider,{value:a},T.createElement(jx.Provider,{value:f},T.createElement(Cx.Provider,{value:o},T.createElement($x.Provider,{value:s},T.createElement(Ix.Provider,{value:c},u)))))))},gR=function(){return N.useContext(Cx)},Rx=function(t){var r=N.useContext(nh);r==null&&Zt();var n=r[t];return n==null&&Zt(),n},bR=function(){var t=N.useContext(nh);return Pt(t)},xR=function(){var t=N.useContext(ih),r=dR(t,function(n){return Ox(n.domain,Number.isFinite)});return r||Pt(t)},kx=function(t){var r=N.useContext(ih);r==null&&Zt();var n=r[t];return n==null&&Zt(),n},wR=function(){var t=N.useContext(jx);return t},OR=function(){return N.useContext(Mx)},ah=function(){return N.useContext(Ix)},oh=function(){return N.useContext($x)};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 _R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SR(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,Nx(n.key),n)}}function AR(e,t,r){return t&&SR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PR(e,t,r){return t=na(t),TR(e,Dx()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function TR(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 ER(e)}function ER(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dx=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function jR(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&&Wl(e,t)}function Wl(e,t){return Wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wl(e,t)}function Eg(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 jg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eg(Object(r),!0).forEach(function(n){uh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uh(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=MR(e,"string");return Er(t)=="symbol"?t:t+""}function MR(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 String(e)}function CR(e,t){return kR(e)||RR(e,t)||IR(e,t)||$R()}function $R(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IR(e,t){if(e){if(typeof e=="string")return Mg(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 Mg(e,t)}}function Mg(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 RR(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 kR(e){if(Array.isArray(e))return e}function Ul(){return Ul=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},Ul.apply(this,arguments)}var DR=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):V(t)?n=t(r):n=T.createElement("line",Ul({},r,{className:"recharts-reference-line-line"})),n},NR=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,d=a.height;if(n){var m=s.y,v=t.y.apply(m,{position:o});if(it(s,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+h,y:v},{x:f,y:v}];return c==="left"?p.reverse():p}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+d},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,y=O.map(function(g){return t.apply(g,{position:o})});return it(s,"discard")&&jI(y,function(g){return!t.isInRange(g)})?null:y}return null};function qR(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=gR(),f=Rx(i),l=kx(a),h=wR();if(!s||!h)return null;dt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=rh({x:f.scale,y:l.scale}),m=we(t),v=we(r),p=n&&n.length===2,b=NR(d,m,v,p,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=CR(b,2),w=x[0],O=w.x,y=w.y,g=x[1],_=g.x,S=g.y,P=it(e,"hidden")?"url(#".concat(s,")"):void 0,M=jg(jg({clipPath:P},Z(e,!0)),{},{x1:O,y1:y,x2:_,y2:S});return T.createElement(fe,{className:ee("recharts-reference-line",u)},DR(o,M),Ee.renderCallByParent(e,oR({x1:O,y1:y,x2:_,y2:S})))}var ch=(function(e){function t(){return _R(this,t),PR(this,t,arguments)}return jR(t,e),AR(t,[{key:"render",value:function(){return T.createElement(qR,this.props)}}])})(T.Component);uh(ch,"displayName","ReferenceLine");uh(ch,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Hl(){return Hl=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},Hl.apply(this,arguments)}function jr(e){"@babel/helpers - typeof";return jr=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},jr(e)}function Cg(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 $g(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(r),!0).forEach(function(n){Na(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LR(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,Bx(n.key),n)}}function FR(e,t,r){return t&&LR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zR(e,t,r){return t=ia(t),WR(e,qx()?Reflect.construct(t,r||[],ia(e).constructor):t.apply(e,r))}function WR(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UR(e)}function UR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qx=function(){return!!e})()}function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ia(e)}function HR(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&&Gl(e,t)}function Gl(e,t){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gl(e,t)}function Na(e,t,r){return t=Bx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bx(e){var t=GR(e,"string");return jr(t)=="symbol"?t:t+""}function GR(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KR=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=rh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return it(t,"discard")&&!o.isInRange(u)?null:u},qa=(function(e){function t(){return BR(this,t),zR(this,t,arguments)}return HR(t,e),FR(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=we(i),f=we(a);if(dt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=KR(this.props);if(!l)return null;var h=l.x,d=l.y,m=this.props,v=m.shape,p=m.className,b=it(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=$g($g({clipPath:b},Z(this.props,!0)),{},{cx:h,cy:d});return T.createElement(fe,{className:ee("recharts-reference-dot",p)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(T.Component);Na(qa,"displayName","ReferenceDot");Na(qa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Na(qa,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):V(e)?r=e(t):r=T.createElement(th,Hl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Kl(){return Kl=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},Kl.apply(this,arguments)}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)}function Ig(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 Rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ig(Object(r),!0).forEach(function(n){Ba(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XR(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,Fx(n.key),n)}}function YR(e,t,r){return t&&XR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZR(e,t,r){return t=aa(t),JR(e,Lx()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function JR(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 QR(e)}function QR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lx=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(e)}function ek(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&&Vl(e,t)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vl(e,t)}function Ba(e,t,r){return t=Fx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fx(e){var t=tk(e,"string");return Mr(t)=="symbol"?t:t+""}function tk(e,t){if(Mr(e)!="object"||!e)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 String(e)}var rk=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 h=rh({x:f.scale,y:l.scale}),d={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},m={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return it(a,"discard")&&(!h.isInRange(d)||!h.isInRange(m))?null:Tx(d,m)},La=(function(e){function t(){return VR(this,t),ZR(this,t,arguments)}return ek(t,e),YR(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;dt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=we(i),h=we(a),d=we(o),m=we(u),v=this.props.shape;if(!l&&!h&&!d&&!m&&!v)return null;var p=rk(l,h,d,m,this.props);if(!p&&!v)return null;var b=it(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(fe,{className:ee("recharts-reference-area",c)},t.renderRect(v,Rg(Rg({clipPath:b},Z(this.props,!0)),p)),Ee.renderCallByParent(this.props,p))}}])})(T.Component);Ba(La,"displayName","ReferenceArea");Ba(La,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ba(La,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):V(e)?r=e(t):r=T.createElement(eh,Kl({},t,{className:"recharts-reference-area-rect"})),r});function zx(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 nk(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return cR(n,r)}function ik(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 oa(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 ak(e,t){return zx(e,t+1)}function ok(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 m=n?.[c];if(m===void 0)return{v:zx(n,s)};var v=c,p,b=function(){return p===void 0&&(p=r(m,v)),p},x=m.coordinate,w=c===0||oa(e,x,b,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(b()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}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)}function kg(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 Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){uk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uk(e,t,r){return t=ck(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ck(e){var t=sk(e,"string");return Wn(t)=="symbol"?t:t+""}function sk(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 lk(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var d=a[h],m,v=function(){return m===void 0&&(m=r(d,h)),m};if(h===o-1){var p=e*(d.coordinate+e*v()/2-c);a[h]=d=Te(Te({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=Te(Te({},d),{},{tickCoord:d.coordinate});var b=oa(e,d.tickCoord,v,u,c);b&&(c=d.tickCoord-e*(v()/2+i),a[h]=Te(Te({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function fk(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),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Te(Te({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=oa(e,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Te(Te({},f),{},{isShow:!0}))}for(var m=a?u-1:u,v=function(x){var w=o[x],O,y=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var g=e*(w.coordinate-e*y()/2-c);o[x]=w=Te(Te({},w),{},{tickCoord:g<0?w.coordinate-g*e:w.coordinate})}else o[x]=w=Te(Te({},w),{},{tickCoord:w.coordinate});var _=oa(e,w.tickCoord,y,c,s);_&&(c=w.tickCoord+e*(y()/2+i),o[x]=Te(Te({},w),{},{isShow:!0}))},p=0;p<m;p++)v(p);return o}function sh(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(q(c)||Fr.isSsr)return ak(i,typeof c=="number"&&q(c)?c:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",m=f&&d==="width"?an(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var y=V(s)?s(w.value,O):w.value;return d==="width"?nk(an(y,{fontSize:t,letterSpacing:r}),m,l):an(y,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Ze(i[1].coordinate-i[0].coordinate):1,b=ik(a,p,d);return c==="equidistantPreserveStart"?ok(p,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=fk(p,b,v,i,o,c==="preserveStartEnd"):h=lk(p,b,v,i,o),h.filter(function(x){return x.isShow}))}var hk=["viewBox"],pk=["viewBox"],dk=["ticks"];function Cr(e){"@babel/helpers - typeof";return Cr=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},Cr(e)}function sr(){return sr=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},sr.apply(this,arguments)}function Dg(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 be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dg(Object(r),!0).forEach(function(n){lh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bs(e,t){if(e==null)return{};var r=vk(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 vk(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 yk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ng(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,Ux(n.key),n)}}function mk(e,t,r){return t&&Ng(e.prototype,t),r&&Ng(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gk(e,t,r){return t=ua(t),bk(e,Wx()?Reflect.construct(t,r||[],ua(e).constructor):t.apply(e,r))}function bk(e,t){if(t&&(Cr(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 Wx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wx=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ua(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&&Xl(e,t)}function Xl(e,t){return Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xl(e,t)}function lh(e,t,r){return t=Ux(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ux(e){var t=Ok(e,"string");return Cr(t)=="symbol"?t:t+""}function Ok(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hr=(function(e){function t(r){var n;return yk(this,t),n=gk(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return wk(t,e),mk(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Bs(n,hk),u=this.props,c=u.viewBox,s=Bs(u,pk);return!fr(a,c)||!fr(o,s)||!fr(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,h=i.tickMargin,d,m,v,p,b,x,w=l?-1:1,O=n.tickSize||f,y=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":d=m=n.coordinate,p=o+ +!l*c,v=p-w*O,x=v-w*h,b=y;break;case"left":v=p=n.coordinate,m=a+ +!l*u,d=m-w*O,b=d-w*h,x=y;break;case"right":v=p=n.coordinate,m=a+ +l*u,d=m+w*O,b=d+w*h,x=y;break;default:d=m=n.coordinate,p=o+ +l*c,v=p+w*O,x=v+w*h,b=y;break}return{line:{x1:d,y1:v,x2:m,y2:p},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=be(be(be({},Z(this.props,!1)),Z(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=be(be({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=be(be({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return T.createElement("line",sr({},l,{className:ee("recharts-cartesian-axis-line",He(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,h=u.unit,d=sh(be(be({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=Z(this.props,!1),b=Z(f,!1),x=be(be({},p),{},{fill:"none"},Z(c,!1)),w=d.map(function(O,y){var g=o.getTickLineCoord(O),_=g.line,S=g.tick,P=be(be(be(be({textAnchor:m,verticalAnchor:v},p),{},{stroke:"none",fill:s},b),S),{},{index:y,payload:O,visibleTicksCount:d.length,tickFormatter:l});return T.createElement(fe,sr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},mi(o.props,O,y)),c&&T.createElement("line",sr({},x,_,{className:ee("recharts-cartesian-axis-tick-line",He(c,"className"))})),f&&t.renderTickItem(f,P,"".concat(V(l)?l(O.value,y):O.value).concat(h||"")))});return T.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,h=l.ticks,d=Bs(l,dk),m=h;return V(c)&&(m=h&&h.length>0?c(this.props):c(d)),o<=0||u<=0||!m||!m.length?null:T.createElement(fe,{className:ee("recharts-cartesian-axis",s),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ee(i.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(n)?o=T.cloneElement(n,be(be({},i),{},{className:u})):V(n)?o=n(be(be({},i),{},{className:u})):o=T.createElement(Ei,sr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);lh(Hr,"displayName","CartesianAxis");lh(Hr,"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 _k=["x1","y1","x2","y2","key"],Sk=["offset"];function Jt(e){"@babel/helpers - typeof";return Jt=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},Jt(e)}function qg(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?qg(Object(r),!0).forEach(function(n){Ak(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ak(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=Tk(e,"string");return Jt(t)=="symbol"?t:t+""}function Tk(e,t){if(Jt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ht.apply(this,arguments)}function Bg(e,t){if(e==null)return{};var r=Ek(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 Ek(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 jk=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return T.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Hx(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(V(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=Bg(t,_k),s=Z(c,!1);s.offset;var f=Bg(s,Sk);r=T.createElement("line",Ht({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function Mk(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=je(je({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Hx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Ck(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=je(je({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Hx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function $k(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,d){return h-d});i!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var m=!f[d+1],v=m?i+o-h:f[d+1]-h;if(v<=0)return null;var p=d%t.length;return T.createElement("rect",{key:"react-".concat(d),y:h,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function Ik(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,d){return h-d});a!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var m=!f[d+1],v=m?a+u-h:f[d+1]-h;if(v<=0)return null;var p=d%n.length;return T.createElement("rect",{key:"react-".concat(d),x:h,y:o,width:v,height:c,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var Rk=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return tx(sh(je(je(je({},Hr.defaultProps),n),{},{ticks:ht(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},kk=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return tx(sh(je(je(je({},Hr.defaultProps),n),{},{ticks:ht(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},ur={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Dk(e){var t,r,n,i,a,o,u=ah(),c=oh(),s=OR(),f=je(je({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ur.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:ur.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:ur.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ur.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:ur.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:ur.verticalFill,x:q(e.x)?e.x:s.left,y:q(e.y)?e.y:s.top,width:q(e.width)?e.width:s.width,height:q(e.height)?e.height:s.height}),l=f.x,h=f.y,d=f.width,m=f.height,v=f.syncWithTicks,p=f.horizontalValues,b=f.verticalValues,x=bR(),w=xR();if(!q(d)||d<=0||!q(m)||m<=0||!q(l)||l!==+l||!q(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||Rk,y=f.horizontalCoordinatesGenerator||kk,g=f.horizontalPoints,_=f.verticalPoints;if((!g||!g.length)&&V(y)){var S=p&&p.length,P=y({yAxis:w?je(je({},w),{},{ticks:S?p:w.ticks}):void 0,width:u,height:c,offset:s},S?!0:v);dt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Jt(P),"]")),Array.isArray(P)&&(g=P)}if((!_||!_.length)&&V(O)){var M=b&&b.length,A=O({xAxis:x?je(je({},x),{},{ticks:M?b:x.ticks}):void 0,width:u,height:c,offset:s},M?!0:v);dt(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Jt(A),"]")),Array.isArray(A)&&(_=A)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(jk,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(Mk,Ht({},f,{offset:s,horizontalPoints:g,xAxis:x,yAxis:w})),T.createElement(Ck,Ht({},f,{offset:s,verticalPoints:_,xAxis:x,yAxis:w})),T.createElement($k,Ht({},f,{horizontalPoints:g})),T.createElement(Ik,Ht({},f,{verticalPoints:_})))}Dk.displayName="CartesianGrid";var Nk=["layout","type","stroke","connectNulls","isRange","ref"],qk=["key"],Gx;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 Kx(e,t){if(e==null)return{};var r=Bk(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 Bk(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 Gt(){return Gt=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},Gt.apply(this,arguments)}function Lg(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 St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){rt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fg(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,Xx(n.key),n)}}function Fk(e,t,r){return t&&Fg(e.prototype,t),r&&Fg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zk(e,t,r){return t=ca(t),Wk(e,Vx()?Reflect.construct(t,r||[],ca(e).constructor):t.apply(e,r))}function Wk(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 Uk(e)}function Uk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vx=function(){return!!e})()}function ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ca(e)}function Hk(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&&Yl(e,t)}function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yl(e,t)}function rt(e,t,r){return t=Xx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xx(e){var t=Gk(e,"string");return $r(t)=="symbol"?t:t+""}function Gk(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 nr=(function(e){function t(){var r;Lk(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=zk(this,t,[].concat(i)),rt(r,"state",{isAnimationFinished:!0}),rt(r,"id",Kn("recharts-area-")),rt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),rt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),r}return Hk(t,e),Fk(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var c=this.props,s=c.dot,f=c.points,l=c.dataKey,h=Z(this.props,!1),d=Z(s,!0),m=f.map(function(p,b){var x=St(St(St({key:"dot-".concat(b),r:3},h),d),{},{index:b,cx:p.x,cy:p.y,dataKey:l,value:p.value,payload:p.payload,points:f});return t.renderDotItem(s,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return T.createElement(fe,Gt({className:"recharts-area-dots"},v),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].x,s=o[o.length-1].x,f=n*Math.abs(c-s),l=Tt(o.map(function(h){return h.y||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Tt(a.map(function(h){return h.y||0})),l)),q(l)?T.createElement("rect",{x:c<s?c:c-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].y,s=o[o.length-1].y,f=n*Math.abs(c-s),l=Tt(o.map(function(h){return h.x||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Tt(a.map(function(h){return h.x||0})),l)),q(l)?T.createElement("rect",{x:0,y:c<s?c:c-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,c=u.layout,s=u.type,f=u.stroke,l=u.connectNulls,h=u.isRange;u.ref;var d=Kx(u,Nk);return T.createElement(fe,{clipPath:a?"url(#clipPath-".concat(o,")"):null},T.createElement(cn,Gt({},Z(d,!0),{points:n,connectNulls:l,type:s,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&T.createElement(cn,Gt({},Z(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&T.createElement(cn,Gt({},Z(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.baseLine,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,d=o.animationId,m=this.state,v=m.prevPoints,p=m.prevBaseLine;return T.createElement(bt,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t;if(v){var w=v.length/u.length,O=u.map(function(S,P){var M=Math.floor(P*w);if(v[M]){var A=v[M],E=We(A.x,S.x),j=We(A.y,S.y);return St(St({},S),{},{x:E(x),y:j(x)})}return S}),y;if(q(c)&&typeof c=="number"){var g=We(p,c);y=g(x)}else if(J(c)||Br(c)){var _=We(p,0);y=_(x)}else y=c.map(function(S,P){var M=Math.floor(P*w);if(p[M]){var A=p[M],E=We(A.x,S.x),j=We(A.y,S.y);return St(St({},S),{},{x:E(x),y:j(x)})}return S});return a.renderAreaStatically(O,y,n,i)}return T.createElement(fe,null,T.createElement("defs",null,T.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),T.createElement(fe,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,c=a.isAnimationActive,s=this.state,f=s.prevPoints,l=s.prevBaseLine,h=s.totalLength;return c&&o&&o.length&&(!f&&h>0||!On(f,o)||!On(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,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.top,f=i.left,l=i.xAxis,h=i.yAxis,d=i.width,m=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=ee("recharts-area",c),O=l&&l.allowDataOverflow,y=h&&h.allowDataOverflow,g=O||y,_=J(p)?this.id:p,S=(n=Z(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=S.r,M=P===void 0?3:P,A=S.strokeWidth,E=A===void 0?2:A,j=uO(o)?o:{},I=j.clipDot,C=I===void 0?!0:I,R=M*2+E;return T.createElement(fe,{className:w},O||y?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(_)},T.createElement("rect",{x:O?f:f-d/2,y:y?s:s-m/2,width:O?d:d*2,height:y?m:m*2})),!C&&T.createElement("clipPath",{id:"clipPath-dots-".concat(_)},T.createElement("rect",{x:f-R/2,y:s-R/2,width:d+R,height:m+R}))):null,x?null:this.renderArea(g,_),(o||x)&&this.renderDots(g,C,_),(!v||b)&&Mt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(N.PureComponent);Gx=nr;rt(nr,"displayName","Area");rt(nr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Fr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});rt(nr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(q(u)&&typeof u=="number")return u;var c=i==="horizontal"?n:r,s=c.scale.domain();if(c.type==="number"){var f=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(s[0],s[1]),0)}return u==="dataMin"?s[0]:u==="dataMax"?s[1]:s[0]});rt(nr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,c=e.dataKey,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=t.layout,m=s&&s.length,v=Gx.getBaseValue(t,r,n,i),p=d==="horizontal",b=!1,x=l.map(function(O,y){var g;m?g=s[f+y]:(g=Be(O,c),Array.isArray(g)?b=!0:g=[v,g]);var _=g[1]==null||m&&Be(O,c)==null;return p?{x:am({axis:n,ticks:a,bandSize:u,entry:O,index:y}),y:_?null:i.scale(g[1]),value:g,payload:O}:{x:_?null:n.scale(g[1]),y:am({axis:i,ticks:o,bandSize:u,entry:O,index:y}),value:g,payload:O}}),w;return m||b?w=x.map(function(O){var y=Array.isArray(O.value)?O.value[0]:null;return p?{x:O.x,y:y!=null&&O.y!=null?i.scale(y):null}:{x:y!=null?n.scale(y):null,y:O.y}}):w=p?i.scale(v):n.scale(v),St({points:x,baseLine:w,layout:d,isRange:b},h)});rt(nr,"renderDotItem",function(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(V(e))r=e(t);else{var n=ee("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=Kx(t,qk);r=T.createElement(th,Gt({},a,{key:i,className:n}))}return r});function Ir(e){"@babel/helpers - typeof";return Ir=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},Ir(e)}function Kk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vk(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,Jx(n.key),n)}}function Xk(e,t,r){return t&&Vk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yk(e,t,r){return t=sa(t),Zk(e,Yx()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function Zk(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jk(e)}function Jk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yx=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function Qk(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&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(e,t)}function Zx(e,t,r){return t=Jx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jx(e){var t=eD(e,"string");return Ir(t)=="symbol"?t:t+""}function eD(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Jl(){return Jl=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},Jl.apply(this,arguments)}function tD(e){var t=e.xAxisId,r=ah(),n=oh(),i=Rx(t);return i==null?null:N.createElement(Hr,Jl({},i,{className:ee("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ht(o,!0)}}))}var fh=(function(e){function t(){return Kk(this,t),Yk(this,t,arguments)}return Qk(t,e),Xk(t,[{key:"render",value:function(){return N.createElement(tD,this.props)}}])})(N.Component);Zx(fh,"displayName","XAxis");Zx(fh,"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 Rr(e){"@babel/helpers - typeof";return Rr=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},Rr(e)}function rD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nD(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,tw(n.key),n)}}function iD(e,t,r){return t&&nD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aD(e,t,r){return t=la(t),oD(e,Qx()?Reflect.construct(t,r||[],la(e).constructor):t.apply(e,r))}function oD(e,t){if(t&&(Rr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uD(e)}function uD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qx=function(){return!!e})()}function la(e){return la=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},la(e)}function cD(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&&Ql(e,t)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(e,t)}function ew(e,t,r){return t=tw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tw(e){var t=sD(e,"string");return Rr(t)=="symbol"?t:t+""}function sD(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ef(){return ef=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},ef.apply(this,arguments)}var lD=function(t){var r=t.yAxisId,n=ah(),i=oh(),a=kx(r);return a==null?null:N.createElement(Hr,ef({},a,{className:ee("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return ht(u,!0)}}))},hh=(function(e){function t(){return rD(this,t),aD(this,t,arguments)}return cD(t,e),iD(t,[{key:"render",value:function(){return N.createElement(lD,this.props)}}])})(N.Component);ew(hh,"displayName","YAxis");ew(hh,"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 zg(e){return dD(e)||pD(e)||hD(e)||fD()}function fD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hD(e,t){if(e){if(typeof e=="string")return tf(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 tf(e,t)}}function pD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dD(e){if(Array.isArray(e))return tf(e)}function tf(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 rf=function(t,r,n,i,a){var o=Qe(t,ch),u=Qe(t,qa),c=[].concat(zg(o),zg(u)),s=Qe(t,La),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,p){if(p.props[f]===n&&it(p.props,"extendDomain")&&q(p.props[l])){var b=p.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},h)),s.length){var d="".concat(l,"1"),m="".concat(l,"2");h=s.reduce(function(v,p){if(p.props[f]===n&&it(p.props,"extendDomain")&&q(p.props[d])&&q(p.props[m])){var b=p.props[d],x=p.props[m];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,p){return q(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},h)),h},Ls={exports:{}},Wg;function vD(){return Wg||(Wg=1,(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,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||c,h),m=r?r+s:s;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],d]:c._events[m].push(d):(c._events[m]=d,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 h=0,d=l.length,m=new Array(d);h<d;h++)m[h]=l[h].fn;return m},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,h,d,m){var v=r?r+s:s;if(!this._events[v])return!1;var p=this._events[v],b=arguments.length,x,w;if(p.fn){switch(p.once&&this.removeListener(s,p.fn,void 0,!0),b){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,h),!0;case 5:return p.fn.call(p.context,f,l,h,d),!0;case 6:return p.fn.call(p.context,f,l,h,d,m),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];p.fn.apply(p.context,x)}else{var O=p.length,y;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(s,p[w].fn,void 0,!0),b){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,f);break;case 3:p[w].fn.call(p[w].context,f,l);break;case 4:p[w].fn.call(p[w].context,f,l,h);break;default:if(!x)for(y=1,x=new Array(b-1);y<b;y++)x[y-1]=arguments[y];p[w].fn.apply(p[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,h){var d=r?r+s:s;if(!this._events[d])return this;if(!f)return o(this,d),this;var m=this._events[d];if(m.fn)m.fn===f&&(!h||m.once)&&(!l||m.context===l)&&o(this,d);else{for(var v=0,p=[],b=m.length;v<b;v++)(m[v].fn!==f||h&&!m[v].once||l&&m[v].context!==l)&&p.push(m[v]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}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})(Ls)),Ls.exports}var yD=vD();const mD=ue(yD);var Fs=new mD,zs="recharts.syncMouseEvents";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)}function gD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bD(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,rw(n.key),n)}}function xD(e,t,r){return t&&bD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ws(e,t,r){return t=rw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rw(e){var t=wD(e,"string");return Un(t)=="symbol"?t:t+""}function wD(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 String(e)}var OD=(function(){function e(){gD(this,e),Ws(this,"activeIndex",0),Ws(this,"coordinateList",[]),Ws(this,"layout","horizontal")}return xD(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,h=r.mouseHandlerCallback,d=h===void 0?null:h;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=d??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,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function _D(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&q(n)&&q(i))return!0}return!1}function SD(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 nw(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Pe(t,r,n,i),u=Pe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function AD(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,h=Pe(u,c,s,l),d=Pe(u,c,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return nw(t);return[{x:n,y:i},{x:a,y:o}]}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 Ug(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 pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ug(Object(r),!0).forEach(function(n){PD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PD(e,t,r){return t=TD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TD(e){var t=ED(e,"string");return Hn(t)=="symbol"?t:t+""}function ED(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(t==="string"?String:Number)(e)}function jD(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,h=e.chartName,d=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var m,v=cn;if(h==="ScatterChart")m=o,v=j$;else if(h==="BarChart")m=SD(l,o,c,f),v=eh;else if(l==="radial"){var p=nw(o),b=p.cx,x=p.cy,w=p.radius,O=p.startAngle,y=p.endAngle;m={cx:b,cy:x,startAngle:O,endAngle:y,innerRadius:w,outerRadius:w},v=lx}else m={points:AD(l,o,c)},v=cn;var g=pi(pi(pi(pi({stroke:"#ccc",pointerEvents:"none"},c),m),Z(d,!1)),{},{payload:u,payloadIndex:s,className:ee("recharts-tooltip-cursor",d.className)});return N.isValidElement(d)?N.cloneElement(d,g):N.createElement(v,g)}var MD=["item"],CD=["children","className","width","height","style","compact","title","desc"];function kr(e){"@babel/helpers - typeof";return kr=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},kr(e)}function lr(){return lr=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},lr.apply(this,arguments)}function Hg(e,t){return RD(e)||ID(e,t)||aw(e,t)||$D()}function $D(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ID(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 RD(e){if(Array.isArray(e))return e}function Gg(e,t){if(e==null)return{};var r=kD(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 kD(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 DD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ND(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,ow(n.key),n)}}function qD(e,t,r){return t&&ND(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BD(e,t,r){return t=fa(t),LD(e,iw()?Reflect.construct(t,r||[],fa(e).constructor):t.apply(e,r))}function LD(e,t){if(t&&(kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FD(e)}function FD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iw=function(){return!!e})()}function fa(e){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fa(e)}function zD(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&&nf(e,t)}function nf(e,t){return nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nf(e,t)}function Dr(e){return HD(e)||UD(e)||aw(e)||WD()}function WD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aw(e,t){if(e){if(typeof e=="string")return af(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 af(e,t)}}function UD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HD(e){if(Array.isArray(e))return af(e)}function af(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 Kg(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){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=ow(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ow(e){var t=GD(e,"string");return kr(t)=="symbol"?t:t+""}function GD(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KD={xAxis:["bottom","top"],yAxis:["left","right"]},VD={width:"100%",height:"100%"},uw={x:0,y:0};function di(e){return e}var XD=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},YD=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 $($($({},i),Pe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return $($($({},i),Pe(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return uw},Fa=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(Dr(u),Dr(s)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function cw(e){return e==="number"?[0,"auto"]:void 0}var of=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Fa(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 h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;h=vi(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Dr(c),[ox(s,h)]):c},[])},Vg=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=XD(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=oj(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=of(t,r,f,l),d=YD(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},ZD=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,h=t.stackOffset,d=ex(f,a);return n.reduce(function(m,v){var p,b=v.type.defaultProps!==void 0?$($({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,y=b.allowDuplicatedCategory,g=b.scale,_=b.ticks,S=b.includeHidden,P=b[o];if(m[P])return m;var M=Fa(t.data,{graphicalItems:i.filter(function(z){var K,ce=o in z.props?z.props[o]:(K=z.type.defaultProps)===null||K===void 0?void 0:K[o];return ce===P}),dataStartIndex:c,dataEndIndex:s}),A=M.length,E,j,I;_D(b.domain,O,x)&&(E=Sl(b.domain,null,O),d&&(x==="number"||g!=="auto")&&(I=un(M,w,"category")));var C=cw(x);if(!E||E.length===0){var R,D=(R=b.domain)!==null&&R!==void 0?R:C;if(w){if(E=un(M,w,x),x==="category"&&d){var B=Zw(E);y&&B?(j=E,E=Ji(0,A)):y||(E=sm(D,E,v).reduce(function(z,K){return z.indexOf(K)>=0?z:[].concat(Dr(z),[K])},[]))}else if(x==="category")y?E=E.filter(function(z){return z!==""&&!J(z)}):E=sm(D,E,v).reduce(function(z,K){return z.indexOf(K)>=0||K===""||J(K)?z:[].concat(Dr(z),[K])},[]);else if(x==="number"){var L=fj(M,i.filter(function(z){var K,ce,de=o in z.props?z.props[o]:(K=z.type.defaultProps)===null||K===void 0?void 0:K[o],ke="hide"in z.props?z.props.hide:(ce=z.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return de===P&&(S||!ke)}),w,a,f);L&&(E=L)}d&&(x==="number"||g!=="auto")&&(I=un(M,w,"category"))}else d?E=Ji(0,A):u&&u[P]&&u[P].hasStack&&x==="number"?E=h==="expand"?[0,1]:ax(u[P].stackGroups,c,s):E=Q0(M,i.filter(function(z){var K=o in z.props?z.props[o]:z.type.defaultProps[o],ce="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return K===P&&(S||!ce)}),x,f,!0);if(x==="number")E=rf(l,E,P,a,_),D&&(E=Sl(D,E,O));else if(x==="category"&&D){var U=D,G=E.every(function(z){return U.indexOf(z)>=0});G&&(E=U)}}return $($({},m),{},H({},P,$($({},b),{},{axisType:a,domain:E,categoricalDomain:I,duplicateDomain:j,originalDomain:(p=b.domain)!==null&&p!==void 0?p:C,isCategorical:d,layout:f})))},{})},JD=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,h=Fa(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,m=ex(f,a),v=-1;return n.reduce(function(p,b){var x=b.type.defaultProps!==void 0?$($({},b.type.defaultProps),b.props):b.props,w=x[o],O=cw("number");if(!p[w]){v++;var y;return m?y=Ji(0,d):u&&u[w]&&u[w].hasStack?(y=ax(u[w].stackGroups,c,s),y=rf(l,y,w,a)):(y=Sl(O,Q0(h,n.filter(function(g){var _,S,P=o in g.props?g.props[o]:(_=g.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in g.props?g.props.hide:(S=g.type.defaultProps)===null||S===void 0?void 0:S.hide;return P===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),y=rf(l,y,w,a)),$($({},p),{},H({},w,$($({axisType:a},i.defaultProps),{},{hide:!0,orientation:He(KD,"".concat(a,".").concat(v%2),null),domain:y,originalDomain:O,isCategorical:m,layout:f})))}return p},{})},QD=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"),h=Qe(f,a),d={};return h&&h.length?d=ZD(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=JD(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},eN=function(t){var r=Pt(t),n=ht(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Tf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:zi(r,n)}},Xg=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ne(r,Pr),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}},tN=function(t){return!t||!t.length?!1:t.some(function(r){var n=pt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Yg=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"}},rN=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,h=n.margin||{},d=Ne(l,Pr),m=Ne(l,hr),v=Object.keys(c).reduce(function(y,g){var _=c[g],S=_.orientation;return!_.mirror&&!_.hide?$($({},y),{},H({},S,y[S]+_.width)):y},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(y,g){var _=o[g],S=_.orientation;return!_.mirror&&!_.hide?$($({},y),{},H({},S,He(y,"".concat(S))+_.height)):y},{top:h.top||0,bottom:h.bottom||0}),b=$($({},p),v),x=b.bottom;d&&(b.bottom+=d.props.height||Pr.defaultProps.height),m&&r&&(b=sj(b,i,n,r));var w=s-b.left-b.right,O=f-b.top-b.bottom;return $($({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},nN=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},iN=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,h=function(b,x){var w=x.graphicalItems,O=x.stackGroups,y=x.offset,g=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,P=b.barSize,M=b.layout,A=b.barGap,E=b.barCategoryGap,j=b.maxBarSize,I=Yg(M),C=I.numericAxisName,R=I.cateAxisName,D=tN(w),B=[];return w.forEach(function(L,U){var G=Fa(b.data,{graphicalItems:[L],dataStartIndex:_,dataEndIndex:S}),z=L.type.defaultProps!==void 0?$($({},L.type.defaultProps),L.props):L.props,K=z.dataKey,ce=z.maxBarSize,de=z["".concat(C,"Id")],ke=z["".concat(R,"Id")],Dt={},Ce=c.reduce(function(Nt,qt){var za=x["".concat(qt.axisType,"Map")],ph=z["".concat(qt.axisType,"Id")];za&&za[ph]||qt.axisType==="zAxis"||Zt();var dh=za[ph];return $($({},Nt),{},H(H({},qt.axisType,dh),"".concat(qt.axisType,"Ticks"),ht(dh)))},Dt),F=Ce[R],X=Ce["".concat(R,"Ticks")],Y=O&&O[de]&&O[de].hasStack&&xj(L,O[de].stackGroups),k=pt(L.type).indexOf("Bar")>=0,he=zi(F,X),Q=[],me=D&&uj({barSize:P,stackGroups:O,totalSize:nN(Ce,R)});if(k){var ge,$e,_t=J(ce)?j:ce,ir=(ge=($e=zi(F,X,!0))!==null&&$e!==void 0?$e:_t)!==null&&ge!==void 0?ge:0;Q=cj({barGap:A,barCategoryGap:E,bandSize:ir!==he?ir:he,sizeList:me[ke],maxBarSize:_t}),ir!==he&&(Q=Q.map(function(Nt){return $($({},Nt),{},{position:$($({},Nt.position),{},{offset:Nt.position.offset-ir/2})})}))}var ei=L&&L.type&&L.type.getComposedData;ei&&B.push({props:$($({},ei($($({},Ce),{},{displayedData:G,props:b,dataKey:K,item:L,bandSize:he,barPosition:Q,offset:y,stackedData:Y,layout:M,dataStartIndex:_,dataEndIndex:S}))),{},H(H(H({key:L.key||"item-".concat(U)},C,Ce[C]),R,Ce[R]),"animationId",g)),childIndex:lO(L,b.children),item:L})}),B},d=function(b,x){var w=b.props,O=b.dataStartIndex,y=b.dataEndIndex,g=b.updateId;if(!_p({props:w}))return null;var _=w.children,S=w.layout,P=w.stackOffset,M=w.data,A=w.reverseStackOrder,E=Yg(S),j=E.numericAxisName,I=E.cateAxisName,C=Qe(_,n),R=gj(M,C,"".concat(j,"Id"),"".concat(I,"Id"),P,A),D=c.reduce(function(z,K){var ce="".concat(K.axisType,"Map");return $($({},z),{},H({},ce,QD(w,$($({},K),{},{graphicalItems:C,stackGroups:K.axisType===j&&R,dataStartIndex:O,dataEndIndex:y}))))},{}),B=rN($($({},D),{},{props:w,graphicalItems:C}),x?.legendBBox);Object.keys(D).forEach(function(z){D[z]=f(w,D[z],B,z.replace("Map",""),r)});var L=D["".concat(I,"Map")],U=eN(L),G=h(w,$($({},D),{},{dataStartIndex:O,dataEndIndex:y,updateId:g,graphicalItems:C,stackGroups:R,offset:B}));return $($({formattedGraphicalItems:G,graphicalItems:C,offset:B,stackGroups:R},U),D)},m=(function(p){function b(x){var w,O,y;return DD(this,b),y=BD(this,b,[x]),H(y,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(y,"accessibilityManager",new OD),H(y,"handleLegendBBoxUpdate",function(g){if(g){var _=y.state,S=_.dataStartIndex,P=_.dataEndIndex,M=_.updateId;y.setState($({legendBBox:g},d({props:y.props,dataStartIndex:S,dataEndIndex:P,updateId:M},$($({},y.state),{},{legendBBox:g}))))}}),H(y,"handleReceiveSyncEvent",function(g,_,S){if(y.props.syncId===g){if(S===y.eventEmitterSymbol&&typeof y.props.syncMethod!="function")return;y.applySyncEvent(_)}}),H(y,"handleBrushChange",function(g){var _=g.startIndex,S=g.endIndex;if(_!==y.state.dataStartIndex||S!==y.state.dataEndIndex){var P=y.state.updateId;y.setState(function(){return $({dataStartIndex:_,dataEndIndex:S},d({props:y.props,dataStartIndex:_,dataEndIndex:S,updateId:P},y.state))}),y.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),H(y,"handleMouseEnter",function(g){var _=y.getMouseInfo(g);if(_){var S=$($({},_),{},{isTooltipActive:!0});y.setState(S),y.triggerSyncEvent(S);var P=y.props.onMouseEnter;V(P)&&P(S,g)}}),H(y,"triggeredAfterMouseMove",function(g){var _=y.getMouseInfo(g),S=_?$($({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};y.setState(S),y.triggerSyncEvent(S);var P=y.props.onMouseMove;V(P)&&P(S,g)}),H(y,"handleItemMouseEnter",function(g){y.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),H(y,"handleItemMouseLeave",function(){y.setState(function(){return{isTooltipActive:!1}})}),H(y,"handleMouseMove",function(g){g.persist(),y.throttleTriggeredAfterMouseMove(g)}),H(y,"handleMouseLeave",function(g){y.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};y.setState(_),y.triggerSyncEvent(_);var S=y.props.onMouseLeave;V(S)&&S(_,g)}),H(y,"handleOuterEvent",function(g){var _=sO(g),S=He(y.props,"".concat(_));if(_&&V(S)){var P,M;/.*touch.*/i.test(_)?M=y.getMouseInfo(g.changedTouches[0]):M=y.getMouseInfo(g),S((P=M)!==null&&P!==void 0?P:{},g)}}),H(y,"handleClick",function(g){var _=y.getMouseInfo(g);if(_){var S=$($({},_),{},{isTooltipActive:!0});y.setState(S),y.triggerSyncEvent(S);var P=y.props.onClick;V(P)&&P(S,g)}}),H(y,"handleMouseDown",function(g){var _=y.props.onMouseDown;if(V(_)){var S=y.getMouseInfo(g);_(S,g)}}),H(y,"handleMouseUp",function(g){var _=y.props.onMouseUp;if(V(_)){var S=y.getMouseInfo(g);_(S,g)}}),H(y,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&y.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),H(y,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&y.handleMouseDown(g.changedTouches[0])}),H(y,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&y.handleMouseUp(g.changedTouches[0])}),H(y,"handleDoubleClick",function(g){var _=y.props.onDoubleClick;if(V(_)){var S=y.getMouseInfo(g);_(S,g)}}),H(y,"handleContextMenu",function(g){var _=y.props.onContextMenu;if(V(_)){var S=y.getMouseInfo(g);_(S,g)}}),H(y,"triggerSyncEvent",function(g){y.props.syncId!==void 0&&Fs.emit(zs,y.props.syncId,g,y.eventEmitterSymbol)}),H(y,"applySyncEvent",function(g){var _=y.props,S=_.layout,P=_.syncMethod,M=y.state.updateId,A=g.dataStartIndex,E=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)y.setState($({dataStartIndex:A,dataEndIndex:E},d({props:y.props,dataStartIndex:A,dataEndIndex:E,updateId:M},y.state)));else if(g.activeTooltipIndex!==void 0){var j=g.chartX,I=g.chartY,C=g.activeTooltipIndex,R=y.state,D=R.offset,B=R.tooltipTicks;if(!D)return;if(typeof P=="function")C=P(B,g);else if(P==="value"){C=-1;for(var L=0;L<B.length;L++)if(B[L].value===g.activeLabel){C=L;break}}var U=$($({},D),{},{x:D.left,y:D.top}),G=Math.min(j,U.x+U.width),z=Math.min(I,U.y+U.height),K=B[C]&&B[C].value,ce=of(y.state,y.props.data,C),de=B[C]?{x:S==="horizontal"?B[C].coordinate:G,y:S==="horizontal"?z:B[C].coordinate}:uw;y.setState($($({},g),{},{activeLabel:K,activeCoordinate:de,activePayload:ce,activeTooltipIndex:C}))}else y.setState(g)}),H(y,"renderCursor",function(g){var _,S=y.state,P=S.isTooltipActive,M=S.activeCoordinate,A=S.activePayload,E=S.offset,j=S.activeTooltipIndex,I=S.tooltipAxisBandSize,C=y.getTooltipEventType(),R=(_=g.props.active)!==null&&_!==void 0?_:P,D=y.props.layout,B=g.key||"_recharts-cursor";return T.createElement(jD,{key:B,activeCoordinate:M,activePayload:A,activeTooltipIndex:j,chartName:r,element:g,isActive:R,layout:D,offset:E,tooltipAxisBandSize:I,tooltipEventType:C})}),H(y,"renderPolarAxis",function(g,_,S){var P=He(g,"type.axisType"),M=He(y.state,"".concat(P,"Map")),A=g.type.defaultProps,E=A!==void 0?$($({},A),g.props):g.props,j=M&&M[E["".concat(P,"Id")]];return N.cloneElement(g,$($({},j),{},{className:ee(P,j.className),key:g.key||"".concat(_,"-").concat(S),ticks:ht(j,!0)}))}),H(y,"renderPolarGrid",function(g){var _=g.props,S=_.radialLines,P=_.polarAngles,M=_.polarRadius,A=y.state,E=A.radiusAxisMap,j=A.angleAxisMap,I=Pt(E),C=Pt(j),R=C.cx,D=C.cy,B=C.innerRadius,L=C.outerRadius;return N.cloneElement(g,{polarAngles:Array.isArray(P)?P:ht(C,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(M)?M:ht(I,!0).map(function(U){return U.coordinate}),cx:R,cy:D,innerRadius:B,outerRadius:L,key:g.key||"polar-grid",radialLines:S})}),H(y,"renderLegend",function(){var g=y.state.formattedGraphicalItems,_=y.props,S=_.children,P=_.width,M=_.height,A=y.props.margin||{},E=P-(A.left||0)-(A.right||0),j=Z0({children:S,formattedGraphicalItems:g,legendWidth:E,legendContent:s});if(!j)return null;var I=j.item,C=Gg(j,MD);return N.cloneElement(I,$($({},C),{},{chartWidth:P,chartHeight:M,margin:A,onBBoxUpdate:y.handleLegendBBoxUpdate}))}),H(y,"renderTooltip",function(){var g,_=y.props,S=_.children,P=_.accessibilityLayer,M=Ne(S,ct);if(!M)return null;var A=y.state,E=A.isTooltipActive,j=A.activeCoordinate,I=A.activePayload,C=A.activeLabel,R=A.offset,D=(g=M.props.active)!==null&&g!==void 0?g:E;return N.cloneElement(M,{viewBox:$($({},R),{},{x:R.left,y:R.top}),active:D,label:C,payload:D?I:[],coordinate:j,accessibilityLayer:P})}),H(y,"renderBrush",function(g){var _=y.props,S=_.margin,P=_.data,M=y.state,A=M.offset,E=M.dataStartIndex,j=M.dataEndIndex,I=M.updateId;return N.cloneElement(g,{key:g.key||"_recharts-brush",onChange:si(y.handleBrushChange,g.props.onChange),data:P,x:q(g.props.x)?g.props.x:A.left,y:q(g.props.y)?g.props.y:A.top+A.height+A.brushBottom-(S.bottom||0),width:q(g.props.width)?g.props.width:A.width,startIndex:E,endIndex:j,updateId:"brush-".concat(I)})}),H(y,"renderReferenceElement",function(g,_,S){if(!g)return null;var P=y,M=P.clipPathId,A=y.state,E=A.xAxisMap,j=A.yAxisMap,I=A.offset,C=g.type.defaultProps||{},R=g.props,D=R.xAxisId,B=D===void 0?C.xAxisId:D,L=R.yAxisId,U=L===void 0?C.yAxisId:L;return N.cloneElement(g,{key:g.key||"".concat(_,"-").concat(S),xAxis:E[B],yAxis:j[U],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:M})}),H(y,"renderActivePoints",function(g){var _=g.item,S=g.activePoint,P=g.basePoint,M=g.childIndex,A=g.isRange,E=[],j=_.props.key,I=_.item.type.defaultProps!==void 0?$($({},_.item.type.defaultProps),_.item.props):_.item.props,C=I.activeDot,R=I.dataKey,D=$($({index:M,dataKey:R,cx:S.x,cy:S.y,r:4,fill:Qf(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},Z(C,!1)),yi(C));return E.push(b.renderActiveDot(C,D,"".concat(j,"-activePoint-").concat(M))),P?E.push(b.renderActiveDot(C,$($({},D),{},{cx:P.x,cy:P.y}),"".concat(j,"-basePoint-").concat(M))):A&&E.push(null),E}),H(y,"renderGraphicChild",function(g,_,S){var P=y.filterFormatItem(g,_,S);if(!P)return null;var M=y.getTooltipEventType(),A=y.state,E=A.isTooltipActive,j=A.tooltipAxis,I=A.activeTooltipIndex,C=A.activeLabel,R=y.props.children,D=Ne(R,ct),B=P.props,L=B.points,U=B.isRange,G=B.baseLine,z=P.item.type.defaultProps!==void 0?$($({},P.item.type.defaultProps),P.item.props):P.item.props,K=z.activeDot,ce=z.hide,de=z.activeBar,ke=z.activeShape,Dt=!!(!ce&&E&&D&&(K||de||ke)),Ce={};M!=="axis"&&D&&D.props.trigger==="click"?Ce={onClick:si(y.handleItemMouseEnter,g.props.onClick)}:M!=="axis"&&(Ce={onMouseLeave:si(y.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:si(y.handleItemMouseEnter,g.props.onMouseEnter)});var F=N.cloneElement(g,$($({},P.props),Ce));function X(qt){return typeof j.dataKey=="function"?j.dataKey(qt.payload):null}if(Dt)if(I>=0){var Y,k;if(j.dataKey&&!j.allowDuplicatedCategory){var he=typeof j.dataKey=="function"?X:"payload.".concat(j.dataKey.toString());Y=vi(L,he,C),k=U&&G&&vi(G,he,C)}else Y=L?.[I],k=U&&G&&G[I];if(ke||de){var Q=g.props.activeIndex!==void 0?g.props.activeIndex:I;return[N.cloneElement(g,$($($({},P.props),Ce),{},{activeIndex:Q})),null,null]}if(!J(Y))return[F].concat(Dr(y.renderActivePoints({item:P,activePoint:Y,basePoint:k,childIndex:I,isRange:U})))}else{var me,ge=(me=y.getItemByXY(y.state.activeCoordinate))!==null&&me!==void 0?me:{graphicalItem:F},$e=ge.graphicalItem,_t=$e.item,ir=_t===void 0?g:_t,ei=$e.childIndex,Nt=$($($({},P.props),Ce),{},{activeIndex:ei});return[N.cloneElement(ir,Nt),null,null]}return U?[F,null,null]:[F,null]}),H(y,"renderCustomized",function(g,_,S){return N.cloneElement(g,$($({key:"recharts-customized-".concat(S)},y.props),y.state))}),H(y,"renderMap",{CartesianGrid:{handler:di,once:!0},ReferenceArea:{handler:y.renderReferenceElement},ReferenceLine:{handler:di},ReferenceDot:{handler:y.renderReferenceElement},XAxis:{handler:di},YAxis:{handler:di},Brush:{handler:y.renderBrush,once:!0},Bar:{handler:y.renderGraphicChild},Line:{handler:y.renderGraphicChild},Area:{handler:y.renderGraphicChild},Radar:{handler:y.renderGraphicChild},RadialBar:{handler:y.renderGraphicChild},Scatter:{handler:y.renderGraphicChild},Pie:{handler:y.renderGraphicChild},Funnel:{handler:y.renderGraphicChild},Tooltip:{handler:y.renderCursor,once:!0},PolarGrid:{handler:y.renderPolarGrid,once:!0},PolarAngleAxis:{handler:y.renderPolarAxis},PolarRadiusAxis:{handler:y.renderPolarAxis},Customized:{handler:y.renderCustomized}}),y.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:Kn("recharts"),"-clip"),y.throttleTriggeredAfterMouseMove=Yb(y.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),y.state={},y}return zD(b,p),qD(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,y=w.data,g=w.height,_=w.layout,S=Ne(O,ct);if(S){var P=S.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,A=of(this.state,y,P,M),E=this.state.tooltipTicks[P].coordinate,j=(this.state.offset.top+g)/2,I=_==="horizontal",C=I?{x:E,y:j}:{y:E,x:j},R=this.state.formattedGraphicalItems.find(function(B){var L=B.item;return L.type.name==="Scatter"});R&&(C=$($({},C),R.props.points[P].tooltipPosition),A=R.props.points[P].tooltipPayload);var D={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:M,activePayload:A,activeCoordinate:C};this.setState(D),this.renderCursor(S),this.accessibilityManager.setIndex(P)}}}},{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 y,g;this.accessibilityManager.setDetails({offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(w){Gs([Ne(w.children,ct)],[Ne(this.props.children,ct)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ne(this.props.children,ct);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,y=O.getBoundingClientRect(),g=YS(y),_={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},S=y.width/O.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,S);if(!P)return null;var M=this.state,A=M.xAxisMap,E=M.yAxisMap,j=this.getTooltipEventType(),I=Vg(this.state,this.props.data,this.props.layout,P);if(j!=="axis"&&A&&E){var C=Pt(A).scale,R=Pt(E).scale,D=C&&C.invert?C.invert(_.chartX):null,B=R&&R.invert?R.invert(_.chartY):null;return $($({},_),{},{xValue:D,yValue:B},I)}return I?$($({},_),I):null}},{key:"inRange",value:function(w,O){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,_=w/y,S=O/y;if(g==="horizontal"||g==="vertical"){var P=this.state.offset,M=_>=P.left&&_<=P.left+P.width&&S>=P.top&&S<=P.top+P.height;return M?{x:_,y:S}:null}var A=this.state,E=A.angleAxisMap,j=A.radiusAxisMap;if(E&&j){var I=Pt(E);return hm({x:_,y:S},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),y=Ne(w,ct),g={};y&&O==="axis"&&(y.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 _=yi(this.props,this.handleOuterEvent);return $($({},_),g)}},{key:"addListener",value:function(){Fs.on(zs,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Fs.removeListener(zs,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,y){for(var g=this.state.formattedGraphicalItems,_=0,S=g.length;_<S;_++){var P=g[_];if(P.item===w||P.props.key===w.key||O===pt(P.item.type)&&y===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,y=O.left,g=O.top,_=O.height,S=O.width;return T.createElement("defs",null,T.createElement("clipPath",{id:w},T.createElement("rect",{x:y,y:g,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,y){var g=Hg(y,2),_=g[0],S=g[1];return $($({},O),{},H({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,y){var g=Hg(y,2),_=g[0],S=g[1];return $($({},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,y=O.formattedGraphicalItems,g=O.activeItem;if(y&&y.length)for(var _=0,S=y.length;_<S;_++){var P=y[_],M=P.props,A=P.item,E=A.type.defaultProps!==void 0?$($({},A.type.defaultProps),A.props):A.props,j=pt(A.type);if(j==="Bar"){var I=(M.data||[]).find(function(B){return b$(w,B)});if(I)return{graphicalItem:P,payload:I}}else if(j==="RadialBar"){var C=(M.data||[]).find(function(B){return hm(w,B)});if(C)return{graphicalItem:P,payload:C}}else if(Ra(P,g)||ka(P,g)||Bn(P,g)){var R=sI({graphicalItem:P,activeTooltipItem:g,itemData:E.data}),D=E.activeIndex===void 0?R:E.activeIndex;return{graphicalItem:$($({},P),{},{childIndex:D}),payload:Bn(P,g)?E.data[R]:P.props.data[R]}}}return null}},{key:"render",value:function(){var w=this;if(!_p(this))return null;var O=this.props,y=O.children,g=O.className,_=O.width,S=O.height,P=O.style,M=O.compact,A=O.title,E=O.desc,j=Gg(O,CD),I=Z(j,!1);if(M)return T.createElement(Tg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Vs,lr({},I,{width:_,height:S,title:A,desc:E}),this.renderClipPath(),Ap(y,this.renderMap)));if(this.props.accessibilityLayer){var C,R;I.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,I.role=(R=this.props.role)!==null&&R!==void 0?R:"application",I.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},I.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return T.createElement(Tg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",lr({className:ee("recharts-wrapper",g),style:$({position:"relative",cursor:"default",width:_,height:S},P)},D,{ref:function(L){w.container=L}}),T.createElement(Vs,lr({},I,{width:_,height:S,title:A,desc:E,style:VD}),this.renderClipPath(),Ap(y,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);H(m,"displayName",r),H(m,"defaultProps",$({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(m,"getDerivedStateFromProps",function(p,b){var x=p.dataKey,w=p.data,O=p.children,y=p.width,g=p.height,_=p.layout,S=p.stackOffset,P=p.margin,M=b.dataStartIndex,A=b.dataEndIndex;if(b.updateId===void 0){var E=Xg(p);return $($($({},E),{},{updateId:0},d($($({props:p},E),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:y,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:P,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||y!==b.prevWidth||g!==b.prevHeight||_!==b.prevLayout||S!==b.prevStackOffset||!fr(P,b.prevMargin)){var j=Xg(p),I={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=$($({},Vg(b,w,_)),{},{updateId:b.updateId+1}),R=$($($({},j),I),C);return $($($({},R),d($({props:p},R),b)),{},{prevDataKey:x,prevData:w,prevWidth:y,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:P,prevChildren:O})}if(!Gs(O,b.prevChildren)){var D,B,L,U,G=Ne(O,Pr),z=G&&(D=(B=G.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:M,K=G&&(L=(U=G.props)===null||U===void 0?void 0:U.endIndex)!==null&&L!==void 0?L:A,ce=z!==M||K!==A,de=!J(w),ke=de&&!ce?b.updateId:b.updateId+1;return $($({updateId:ke},d($($({props:p},b),{},{updateId:ke,dataStartIndex:z,dataEndIndex:K}),b)),{},{prevChildren:O,dataStartIndex:z,dataEndIndex:K})}return null}),H(m,"renderActiveDot",function(p,b,x){var w;return N.isValidElement(p)?w=N.cloneElement(p,b):V(p)?w=p(b):w=T.createElement(th,b),T.createElement(fe,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(b,x){return T.createElement(m,lr({},b,{ref:x}))});return v.displayName=m.displayName,v},lN=iN({chartName:"AreaChart",GraphicalChild:nr,axisComponents:[{axisType:"xAxis",AxisComp:fh},{axisType:"yAxis",AxisComp:hh}],formatAxisMap:aR});export{lN as A,Pr as B,Dk as C,th as D,Je as E,dt as F,Fr as G,iN as H,Qn as I,aR as J,cN as K,fe as L,uN as R,rI as S,ct as T,fh as X,hh as Y,nr as a,VT as b,$t as c,ZT as d,Ei as e,Z as f,sN as g,mi as h,V as i,Ee as j,cn as k,J as l,Be as m,bt as n,He as o,Pe as p,We as q,k0 as r,On as s,q as t,Mt as u,Kn as v,Ze as w,Qe as x,Zb as y,Mj as z};
|