56 lines
359 KiB
JavaScript
56 lines
359 KiB
JavaScript
import{cC as Un,bo as ue,r as q,cD as ox,y as T,cz as cr,u as ux,j as it}from"./vendor-BKmmeuxg.js";import{C as sx}from"./card-D9_SJYq6.js";import{b as ee,s as cx}from"./utils-DxSsnXxD.js";var Ma,qf;function Ce(){if(qf)return Ma;qf=1;var e=Array.isArray;return Ma=e,Ma}var ja,Lf;function em(){if(Lf)return ja;Lf=1;var e=typeof Un=="object"&&Un&&Un.Object===Object&&Un;return ja=e,ja}var Ca,Bf;function nt(){if(Bf)return Ca;Bf=1;var e=em(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ca=r,Ca}var $a,Ff;function Dn(){if(Ff)return $a;Ff=1;var e=nt(),t=e.Symbol;return $a=t,$a}var Ia,zf;function lx(){if(zf)return Ia;zf=1;var e=Dn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return Ia=a,Ia}var ka,Wf;function fx(){if(Wf)return ka;Wf=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return ka=r,ka}var Da,Uf;function yt(){if(Uf)return Da;Uf=1;var e=Dn(),t=lx(),r=fx(),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 Da=o,Da}var Ra,Hf;function gt(){if(Hf)return Ra;Hf=1;function e(t){return t!=null&&typeof t=="object"}return Ra=e,Ra}var Na,Gf;function Cr(){if(Gf)return Na;Gf=1;var e=yt(),t=gt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Na=n,Na}var qa,Kf;function Cl(){if(Kf)return qa;Kf=1;var e=Ce(),t=Cr(),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 qa=i,qa}var La,Xf;function Tt(){if(Xf)return La;Xf=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return La=e,La}var Ba,Vf;function $l(){if(Vf)return Ba;Vf=1;var e=yt(),t=Tt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return Ba=o,Ba}var Fa,Yf;function hx(){if(Yf)return Fa;Yf=1;var e=nt(),t=e["__core-js_shared__"];return Fa=t,Fa}var za,Zf;function dx(){if(Zf)return za;Zf=1;var e=hx(),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 za=r,za}var Wa,Jf;function tm(){if(Jf)return Wa;Jf=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 Wa=r,Wa}var Ua,Qf;function px(){if(Qf)return Ua;Qf=1;var e=$l(),t=dx(),r=Tt(),n=tm(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).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 Ua=l,Ua}var Ha,eh;function vx(){if(eh)return Ha;eh=1;function e(t,r){return t==null?void 0:t[r]}return Ha=e,Ha}var Ga,th;function Vt(){if(th)return Ga;th=1;var e=px(),t=vx();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Ga=r,Ga}var Ka,rh;function Yi(){if(rh)return Ka;rh=1;var e=Vt(),t=e(Object,"create");return Ka=t,Ka}var Xa,nh;function yx(){if(nh)return Xa;nh=1;var e=Yi();function t(){this.__data__=e?e(null):{},this.size=0}return Xa=t,Xa}var Va,ih;function gx(){if(ih)return Va;ih=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Va=e,Va}var Ya,ah;function mx(){if(ah)return Ya;ah=1;var e=Yi(),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 Ya=i,Ya}var Za,oh;function bx(){if(oh)return Za;oh=1;var e=Yi(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Za=n,Za}var Ja,uh;function xx(){if(uh)return Ja;uh=1;var e=Yi(),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 Ja=r,Ja}var Qa,sh;function wx(){if(sh)return Qa;sh=1;var e=yx(),t=gx(),r=mx(),n=bx(),i=xx();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Qa=a,Qa}var eo,ch;function Ox(){if(ch)return eo;ch=1;function e(){this.__data__=[],this.size=0}return eo=e,eo}var to,lh;function Il(){if(lh)return to;lh=1;function e(t,r){return t===r||t!==t&&r!==r}return to=e,to}var ro,fh;function Zi(){if(fh)return ro;fh=1;var e=Il();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return ro=t,ro}var no,hh;function _x(){if(hh)return no;hh=1;var e=Zi(),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 no=n,no}var io,dh;function Sx(){if(dh)return io;dh=1;var e=Zi();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return io=t,io}var ao,ph;function Px(){if(ph)return ao;ph=1;var e=Zi();function t(r){return e(this.__data__,r)>-1}return ao=t,ao}var oo,vh;function Ax(){if(vh)return oo;vh=1;var e=Zi();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 oo=t,oo}var uo,yh;function Ji(){if(yh)return uo;yh=1;var e=Ox(),t=_x(),r=Sx(),n=Px(),i=Ax();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,uo=a,uo}var so,gh;function kl(){if(gh)return so;gh=1;var e=Vt(),t=nt(),r=e(t,"Map");return so=r,so}var co,mh;function Tx(){if(mh)return co;mh=1;var e=wx(),t=Ji(),r=kl();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return co=n,co}var lo,bh;function Ex(){if(bh)return lo;bh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return lo=e,lo}var fo,xh;function Qi(){if(xh)return fo;xh=1;var e=Ex();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return fo=t,fo}var ho,wh;function Mx(){if(wh)return ho;wh=1;var e=Qi();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ho=t,ho}var po,Oh;function jx(){if(Oh)return po;Oh=1;var e=Qi();function t(r){return e(this,r).get(r)}return po=t,po}var vo,_h;function Cx(){if(_h)return vo;_h=1;var e=Qi();function t(r){return e(this,r).has(r)}return vo=t,vo}var yo,Sh;function $x(){if(Sh)return yo;Sh=1;var e=Qi();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 yo=t,yo}var go,Ph;function Dl(){if(Ph)return go;Ph=1;var e=Tx(),t=Mx(),r=jx(),n=Cx(),i=$x();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,go=a,go}var mo,Ah;function rm(){if(Ah)return mo;Ah=1;var e=Dl(),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],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,mo=r,mo}var bo,Th;function Ix(){if(Th)return bo;Th=1;var e=rm(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return bo=r,bo}var xo,Eh;function kx(){if(Eh)return xo;Eh=1;var e=Ix(),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,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return xo=n,xo}var wo,Mh;function Rl(){if(Mh)return wo;Mh=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 wo=e,wo}var Oo,jh;function Dx(){if(jh)return Oo;jh=1;var e=Dn(),t=Rl(),r=Ce(),n=Cr(),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 s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Oo=o,Oo}var _o,Ch;function nm(){if(Ch)return _o;Ch=1;var e=Dx();function t(r){return r==null?"":e(r)}return _o=t,_o}var So,$h;function im(){if($h)return So;$h=1;var e=Ce(),t=Cl(),r=kx(),n=nm();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return So=i,So}var Po,Ih;function ea(){if(Ih)return Po;Ih=1;var e=Cr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Po=t,Po}var Ao,kh;function Nl(){if(kh)return Ao;kh=1;var e=im(),t=ea();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 Ao=r,Ao}var To,Dh;function am(){if(Dh)return To;Dh=1;var e=Nl();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return To=t,To}var Rx=am();const ze=ue(Rx);var Eo,Rh;function Nx(){if(Rh)return Eo;Rh=1;function e(t){return t==null}return Eo=e,Eo}var qx=Nx();const J=ue(qx);var Mo,Nh;function Lx(){if(Nh)return Mo;Nh=1;var e=yt(),t=Ce(),r=gt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Mo=i,Mo}var Bx=Lx();const Ht=ue(Bx);var Fx=$l();const X=ue(Fx);var zx=Tt();const $r=ue(zx);var jo,qh;function om(){if(qh)return jo;qh=1;var e=yt(),t=gt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return jo=n,jo}var Co,Lh;function Wx(){if(Lh)return Co;Lh=1;var e=om();function t(r){return e(r)&&r!=+r}return Co=t,Co}var Ux=Wx();const Ir=ue(Ux);var Hx=om();const Gx=ue(Hx);var Ke=function(t){return t===0?0:t>0?1:-1},qt=function(t){return Ht(t)&&t.indexOf("%")===t.length-1},N=function(t){return Gx(t)&&!Ir(t)},Kx=function(t){return J(t)},be=function(t){return N(t)||Ht(t)},Xx=0,Rn=function(t){var r=++Xx;return"".concat(t||"").concat(r)},Xe=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(!N(t)&&!Ht(t))return n;var a;if(qt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Ir(a)&&(a=n),i&&a>r&&(a=r),a},Ot=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Vx=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},Be=function(t,r){return N(t)&&N(r)?function(n){return t+n*(r-t)}:function(){return r}};function ni(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ze(n,t))===r})}var Yx=function(t,r){return N(t)&&N(r)?t-r:Ht(t)&&Ht(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function ar(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Sc(e){"@babel/helpers - typeof";return Sc=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},Sc(e)}var Zx=["viewBox","children"],Jx=["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"],Bh=["points","pathLength"],$o={svg:Zx,polygon:Bh,polyline:Bh},ql=["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"],ii=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(q.isValidElement(t)&&(n=t.props),!$r(n))return null;var i={};return Object.keys(n).forEach(function(a){ql.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Qx=function(t,r,n){return function(i){return t(r,n,i),null}},ai=function(t,r,n){if(!$r(t)||Sc(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];ql.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Qx(o,r,n))}),i},ew=["children"],tw=["children"];function Fh(e,t){if(e==null)return{};var r=rw(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 rw(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 Pc(e){"@babel/helpers - typeof";return Pc=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},Pc(e)}var zh={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},lt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Wh=null,Io=null,Ll=function e(t){if(t===Wh&&Array.isArray(Io))return Io;var r=[];return q.Children.forEach(t,function(n){J(n)||(ox.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Io=r,Wh=t,r};function Ve(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return lt(i)}):n=[lt(t)],Ll(e).forEach(function(i){var a=ze(i,"type.displayName")||ze(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ke(e,t){var r=Ve(e,t);return r&&r[0]}var Uh=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!N(n)||n<=0||!N(i)||i<=0)},nw=["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"],iw=function(t){return t&&t.type&&Ht(t.type)&&nw.indexOf(t.type)>=0},aw=function(t){return t&&Pc(t)==="object"&&"clipDot"in t},ow=function(t,r,n,i){var a,o=(a=$o==null?void 0:$o[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!X(t)&&(i&&o.includes(r)||Jx.includes(r))||n&&ql.includes(r)},Z=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(q.isValidElement(t)&&(i=t.props),!$r(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;ow((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Ac=function e(t,r){if(t===r)return!0;var n=q.Children.count(t);if(n!==q.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Hh(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(!Hh(a,o))return!1}return!0},Hh=function(t,r){if(J(t)&&J(r))return!0;if(!J(t)&&!J(r)){var n=t.props||{},i=n.children,a=Fh(n,ew),o=r.props||{},u=o.children,s=Fh(o,tw);return i&&u?ar(a,s)&&Ac(i,u):!i&&!u?ar(a,s):!1}return!1},Gh=function(t,r){var n=[],i={};return Ll(t).forEach(function(a,o){if(iw(a))n.push(a);else if(a){var u=lt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},uw=function(t){var r=t&&t.type;return r&&zh[r]?zh[r]:null},sw=function(t,r){return Ll(r).indexOf(t)},cw=["children","width","height","viewBox","className","style","title","desc"];function Tc(){return Tc=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},Tc.apply(this,arguments)}function lw(e,t){if(e==null)return{};var r=fw(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 fw(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 Ec(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=lw(e,cw),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return T.createElement("svg",Tc({},Z(c,!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,s),t)}var hw=["children","className"];function Mc(){return Mc=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},Mc.apply(this,arguments)}function dw(e,t){if(e==null)return{};var r=pw(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 pw(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 ce=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=dw(e,hw),a=ee("recharts-layer",n);return T.createElement("g",Mc({className:a},Z(i,!0),{ref:t}),r)}),ft=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]},ko,Kh;function vw(){if(Kh)return ko;Kh=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 ko=e,ko}var Do,Xh;function yw(){if(Xh)return Do;Xh=1;var e=vw();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 Do=t,Do}var Ro,Vh;function um(){if(Vh)return Ro;Vh=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 s(c){return u.test(c)}return Ro=s,Ro}var No,Yh;function gw(){if(Yh)return No;Yh=1;function e(t){return t.split("")}return No=e,No}var qo,Zh;function mw(){if(Zh)return qo;Zh=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+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",g=c+"?",p="["+a+"]?",v="(?:"+d+"(?:"+[f,l,h].join("|")+")"+p+g+")*",w=p+g+v,b="(?:"+[f+u+"?",u,l,h,o].join("|")+")",x=RegExp(s+"(?="+s+")|"+b+w,"g");function O(y){return y.match(x)||[]}return qo=O,qo}var Lo,Jh;function bw(){if(Jh)return Lo;Jh=1;var e=gw(),t=um(),r=mw();function n(i){return t(i)?r(i):e(i)}return Lo=n,Lo}var Bo,Qh;function xw(){if(Qh)return Bo;Qh=1;var e=yw(),t=um(),r=bw(),n=nm();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return Bo=i,Bo}var Fo,ed;function ww(){if(ed)return Fo;ed=1;var e=xw(),t=e("toUpperCase");return Fo=t,Fo}var Ow=ww();const ta=ue(Ow);function ie(e){return function(){return e}}const sm=Math.cos,oi=Math.sin,Ye=Math.sqrt,ui=Math.PI,ra=2*ui,jc=Math.PI,Cc=2*jc,Rt=1e-6,_w=Cc-Rt;function cm(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Sw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return cm;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 Pw{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?cm:Sw(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,s=n-t,c=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>Rt)if(!(Math.abs(l*s-c*f)>Rt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,g=i-u,p=s*s+c*c,v=d*d+g*g,w=Math.sqrt(p),b=Math.sqrt(h),x=a*Math.tan((jc-Math.acos((p+h-v)/(2*w*b)))/2),O=x/b,y=x/w;Math.abs(O-1)>Rt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*g)},${this._x1=t+y*s},${this._y1=r+y*c}`}}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),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Rt||Math.abs(this._y1-f)>Rt)&&this._append`L${c},${f}`,n&&(h<0&&(h=h%Cc+Cc),h>_w?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:h>Rt&&this._append`A${n},${n},0,${+(h>=jc)},${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 Bl(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 Pw(t)}function Fl(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function lm(e){this._context=e}lm.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 na(e){return new lm(e)}function fm(e){return e[0]}function hm(e){return e[1]}function dm(e,t){var r=ie(!0),n=null,i=na,a=null,o=Bl(u);e=typeof e=="function"?e:e===void 0?fm:ie(e),t=typeof t=="function"?t:t===void 0?hm:ie(t);function u(s){var c,f=(s=Fl(s)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,c,s),+t(l,c,s));if(d)return a=null,d+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:ie(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:ie(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:ie(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Hn(e,t,r){var n=null,i=ie(!0),a=null,o=na,u=null,s=Bl(c);e=typeof e=="function"?e:e===void 0?fm:ie(+e),t=typeof t=="function"?t:ie(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?hm:ie(+r);function c(l){var h,d,g,p=(l=Fl(l)).length,v,w=!1,b,x=new Array(p),O=new Array(p);for(a==null&&(u=o(b=s())),h=0;h<=p;++h){if(!(h<p&&i(v=l[h],h,l))===w)if(w=!w)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),g=h-1;g>=d;--g)u.point(x[g],O[g]);u.lineEnd(),u.areaEnd()}w&&(x[h]=+e(v,h,l),O[h]=+t(v,h,l),u.point(n?+n(v,h,l):x[h],r?+r(v,h,l):O[h]))}if(b)return u=null,b+""||null}function f(){return dm().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:ie(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:ie(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:ie(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:ie(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:ie(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ie(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:ie(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class pm{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 Aw(e){return new pm(e,!0)}function Tw(e){return new pm(e,!1)}const zl={draw(e,t){const r=Ye(t/ui);e.moveTo(r,0),e.arc(0,0,r,0,ra)}},Ew={draw(e,t){const r=Ye(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()}},vm=Ye(1/3),Mw=vm*2,jw={draw(e,t){const r=Ye(t/Mw),n=r*vm;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Cw={draw(e,t){const r=Ye(t),n=-r/2;e.rect(n,n,r,r)}},$w=.8908130915292852,ym=oi(ui/10)/oi(7*ui/10),Iw=oi(ra/10)*ym,kw=-sm(ra/10)*ym,Dw={draw(e,t){const r=Ye(t*$w),n=Iw*r,i=kw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ra*a/5,u=sm(o),s=oi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},zo=Ye(3),Rw={draw(e,t){const r=-Ye(t/(zo*3));e.moveTo(0,r*2),e.lineTo(-zo*r,-r),e.lineTo(zo*r,-r),e.closePath()}},Ne=-.5,qe=Ye(3)/2,$c=1/Ye(12),Nw=($c/2+1)*3,qw={draw(e,t){const r=Ye(t/Nw),n=r/2,i=r*$c,a=n,o=r*$c+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ne*n-qe*i,qe*n+Ne*i),e.lineTo(Ne*a-qe*o,qe*a+Ne*o),e.lineTo(Ne*u-qe*s,qe*u+Ne*s),e.lineTo(Ne*n+qe*i,Ne*i-qe*n),e.lineTo(Ne*a+qe*o,Ne*o-qe*a),e.lineTo(Ne*u+qe*s,Ne*s-qe*u),e.closePath()}};function Lw(e,t){let r=null,n=Bl(i);e=typeof e=="function"?e:ie(e||zl),t=typeof t=="function"?t:ie(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:ie(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ie(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function si(){}function ci(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 gm(e){this._context=e}gm.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:ci(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:ci(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bw(e){return new gm(e)}function mm(e){this._context=e}mm.prototype={areaStart:si,areaEnd:si,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:ci(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fw(e){return new mm(e)}function bm(e){this._context=e}bm.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:ci(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zw(e){return new bm(e)}function xm(e){this._context=e}xm.prototype={areaStart:si,areaEnd:si,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 Ww(e){return new xm(e)}function td(e){return e<0?-1:1}function rd(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(td(a)+td(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function nd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Wo(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 li(e){this._context=e}li.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:Wo(this,this._t0,nd(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,Wo(this,nd(this,r=rd(this,e,t)),r);break;default:Wo(this,this._t0,r=rd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function wm(e){this._context=new Om(e)}(wm.prototype=Object.create(li.prototype)).point=function(e,t){li.prototype.point.call(this,t,e)};function Om(e){this._context=e}Om.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 Uw(e){return new li(e)}function Hw(e){return new wm(e)}function _m(e){this._context=e}_m.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=id(e),i=id(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 id(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 Gw(e){return new _m(e)}function ia(e,t){this._context=e,this._t=t}ia.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 Kw(e){return new ia(e,.5)}function Xw(e){return new ia(e,0)}function Vw(e){return new ia(e,1)}function lr(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 Ic(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Yw(e,t){return e[t]}function Zw(e){const t=[];return t.key=e,t}function Jw(){var e=ie([]),t=Ic,r=lr,n=Yw;function i(a){var o=Array.from(e.apply(this,arguments),Zw),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Fl(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ie(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ie(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Ic:typeof a=="function"?a:ie(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??lr,i):r},i}function Qw(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}lr(e,t)}}function e1(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}lr(e,t)}}function t1(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,s=0,c=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,g=0;g<u;++g){var p=e[t[g]],v=p[n][1]||0,w=p[n-1][1]||0;d+=v-w}s+=l,c+=d*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,lr(e,t)}}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 r1=["type","size","sizeType"];function kc(){return kc=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},kc.apply(this,arguments)}function ad(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 od(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ad(Object(r),!0).forEach(function(n){n1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ad(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n1(e,t,r){return t=i1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i1(e){var t=a1(e,"string");return en(t)=="symbol"?t:t+""}function a1(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 o1(e,t){if(e==null)return{};var r=u1(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 u1(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 Sm={symbolCircle:zl,symbolCross:Ew,symbolDiamond:jw,symbolSquare:Cw,symbolStar:Dw,symbolTriangle:Rw,symbolWye:qw},s1=Math.PI/180,c1=function(t){var r="symbol".concat(ta(t));return Sm[r]||zl},l1=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*s1;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}},f1=function(t,r){Sm["symbol".concat(ta(t))]=r},Wl=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,s=o1(t,r1),c=od(od({},s),{},{type:n,size:a,sizeType:u}),f=function(){var v=c1(n),w=Lw().type(v).size(l1(a,u,n));return w()},l=c.className,h=c.cx,d=c.cy,g=Z(c,!0);return h===+h&&d===+d&&a===+a?T.createElement("path",kc({},g,{className:ee("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};Wl.registerSymbol=f1;function fr(e){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(e)}function Dc(){return Dc=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},Dc.apply(this,arguments)}function ud(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 h1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ud(Object(r),!0).forEach(function(n){tn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ud(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p1(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,Am(n.key),n)}}function v1(e,t,r){return t&&p1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function y1(e,t,r){return t=fi(t),g1(e,Pm()?Reflect.construct(t,r||[],fi(e).constructor):t.apply(e,r))}function g1(e,t){if(t&&(fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m1(e)}function m1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pm=function(){return!!e})()}function fi(e){return fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fi(e)}function b1(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&&Rc(e,t)}function Rc(e,t){return Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rc(e,t)}function tn(e,t,r){return t=Am(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Am(e){var t=x1(e,"string");return fr(t)=="symbol"?t:t+""}function x1(e,t){if(fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Le=32,Ul=(function(e){function t(){return d1(this,t),y1(this,t,arguments)}return b1(t,e),v1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Le/2,o=Le/6,u=Le/3,s=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Le,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
||
H`).concat(Le,"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:s,d:"M0,".concat(Le/8,"h").concat(Le,"v").concat(Le*3/4,"h").concat(-Le,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var c=h1({},n);return delete c.legendIcon,T.cloneElement(n.legendIcon,c)}return T.createElement(Wl,{fill:s,cx:a,cy:a,size:Le,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Le,height:Le},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,g){var p=d.formatter||s,v=ee(tn(tn({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",d.inactive));if(d.type==="none")return null;var w=X(d.value)?null:d.value;ft(!X(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 b=d.inactive?c:d.color;return T.createElement("li",Dc({className:v,style:l,key:"legend-item-".concat(g)},ai(n.props,d,g)),T.createElement(Ec,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},p?p(w,d,g):w))})}},{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())}}])})(q.PureComponent);tn(Ul,"displayName","Legend");tn(Ul,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Uo,sd;function w1(){if(sd)return Uo;sd=1;var e=Ji();function t(){this.__data__=new e,this.size=0}return Uo=t,Uo}var Ho,cd;function O1(){if(cd)return Ho;cd=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ho=e,Ho}var Go,ld;function _1(){if(ld)return Go;ld=1;function e(t){return this.__data__.get(t)}return Go=e,Go}var Ko,fd;function S1(){if(fd)return Ko;fd=1;function e(t){return this.__data__.has(t)}return Ko=e,Ko}var Xo,hd;function P1(){if(hd)return Xo;hd=1;var e=Ji(),t=kl(),r=Dl(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return Xo=i,Xo}var Vo,dd;function Tm(){if(dd)return Vo;dd=1;var e=Ji(),t=w1(),r=O1(),n=_1(),i=S1(),a=P1();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Vo=o,Vo}var Yo,pd;function A1(){if(pd)return Yo;pd=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Yo=t,Yo}var Zo,vd;function T1(){if(vd)return Zo;vd=1;function e(t){return this.__data__.has(t)}return Zo=e,Zo}var Jo,yd;function Em(){if(yd)return Jo;yd=1;var e=Dl(),t=A1(),r=T1();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,Jo=n,Jo}var Qo,gd;function Mm(){if(gd)return Qo;gd=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 Qo=e,Qo}var eu,md;function jm(){if(md)return eu;md=1;function e(t,r){return t.has(r)}return eu=e,eu}var tu,bd;function Cm(){if(bd)return tu;bd=1;var e=Em(),t=Mm(),r=jm(),n=1,i=2;function a(o,u,s,c,f,l){var h=s&n,d=o.length,g=u.length;if(d!=g&&!(h&&g>d))return!1;var p=l.get(o),v=l.get(u);if(p&&v)return p==u&&v==o;var w=-1,b=!0,x=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++w<d;){var O=o[w],y=u[w];if(c)var m=h?c(y,O,w,u,o,l):c(O,y,w,o,u,l);if(m!==void 0){if(m)continue;b=!1;break}if(x){if(!t(u,function(_,S){if(!r(x,S)&&(O===_||f(O,_,s,c,l)))return x.push(S)})){b=!1;break}}else if(!(O===y||f(O,y,s,c,l))){b=!1;break}}return l.delete(o),l.delete(u),b}return tu=a,tu}var ru,xd;function E1(){if(xd)return ru;xd=1;var e=nt(),t=e.Uint8Array;return ru=t,ru}var nu,wd;function M1(){if(wd)return nu;wd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return nu=e,nu}var iu,Od;function Hl(){if(Od)return iu;Od=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return iu=e,iu}var au,_d;function j1(){if(_d)return au;_d=1;var e=Dn(),t=E1(),r=Il(),n=Cm(),i=M1(),a=Hl(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",d="[object RegExp]",g="[object Set]",p="[object String]",v="[object Symbol]",w="[object ArrayBuffer]",b="[object DataView]",x=e?e.prototype:void 0,O=x?x.valueOf:void 0;function y(m,_,S,A,j,P,E){switch(S){case b:if(m.byteLength!=_.byteLength||m.byteOffset!=_.byteOffset)return!1;m=m.buffer,_=_.buffer;case w:return!(m.byteLength!=_.byteLength||!P(new t(m),new t(_)));case s:case c:case h:return r(+m,+_);case f:return m.name==_.name&&m.message==_.message;case d:case p:return m==_+"";case l:var M=i;case g:var I=A&o;if(M||(M=a),m.size!=_.size&&!I)return!1;var C=E.get(m);if(C)return C==_;A|=u,E.set(m,_);var k=n(M(m),M(_),A,j,P,E);return E.delete(m),k;case v:if(O)return O.call(m)==O.call(_)}return!1}return au=y,au}var ou,Sd;function $m(){if(Sd)return ou;Sd=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 ou=e,ou}var uu,Pd;function C1(){if(Pd)return uu;Pd=1;var e=$m(),t=Ce();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return uu=r,uu}var su,Ad;function $1(){if(Ad)return su;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 su=e,su}var cu,Td;function I1(){if(Td)return cu;Td=1;function e(){return[]}return cu=e,cu}var lu,Ed;function k1(){if(Ed)return lu;Ed=1;var e=$1(),t=I1(),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 lu=a,lu}var fu,Md;function D1(){if(Md)return fu;Md=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return fu=e,fu}var hu,jd;function R1(){if(jd)return hu;jd=1;var e=yt(),t=gt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return hu=n,hu}var du,Cd;function Gl(){if(Cd)return du;Cd=1;var e=R1(),t=gt(),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 du=a,du}var Xr={exports:{}},pu,$d;function N1(){if($d)return pu;$d=1;function e(){return!1}return pu=e,pu}Xr.exports;var Id;function Im(){return Id||(Id=1,(function(e,t){var r=nt(),n=N1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(Xr,Xr.exports)),Xr.exports}var vu,kd;function Kl(){if(kd)return vu;kd=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 vu=r,vu}var yu,Dd;function Xl(){if(Dd)return yu;Dd=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return yu=t,yu}var gu,Rd;function q1(){if(Rd)return gu;Rd=1;var e=yt(),t=Xl(),r=gt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",d="[object Set]",g="[object String]",p="[object WeakMap]",v="[object ArrayBuffer]",w="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",y="[object Int16Array]",m="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",j="[object Uint32Array]",P={};P[b]=P[x]=P[O]=P[y]=P[m]=P[_]=P[S]=P[A]=P[j]=!0,P[n]=P[i]=P[v]=P[a]=P[w]=P[o]=P[u]=P[s]=P[c]=P[f]=P[l]=P[h]=P[d]=P[g]=P[p]=!1;function E(M){return r(M)&&t(M.length)&&!!P[e(M)]}return gu=E,gu}var mu,Nd;function km(){if(Nd)return mu;Nd=1;function e(t){return function(r){return t(r)}}return mu=e,mu}var Vr={exports:{}};Vr.exports;var qd;function L1(){return qd||(qd=1,(function(e,t){var r=em(),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 s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Vr,Vr.exports)),Vr.exports}var bu,Ld;function Dm(){if(Ld)return bu;Ld=1;var e=q1(),t=km(),r=L1(),n=r&&r.isTypedArray,i=n?t(n):e;return bu=i,bu}var xu,Bd;function B1(){if(Bd)return xu;Bd=1;var e=D1(),t=Gl(),r=Ce(),n=Im(),i=Kl(),a=Dm(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),h=!l&&t(c),d=!l&&!h&&n(c),g=!l&&!h&&!d&&a(c),p=l||h||d||g,v=p?e(c.length,String):[],w=v.length;for(var b in c)(f||u.call(c,b))&&!(p&&(b=="length"||d&&(b=="offset"||b=="parent")||g&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,w)))&&v.push(b);return v}return xu=s,xu}var wu,Fd;function F1(){if(Fd)return wu;Fd=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return wu=t,wu}var Ou,zd;function Rm(){if(zd)return Ou;zd=1;function e(t,r){return function(n){return t(r(n))}}return Ou=e,Ou}var _u,Wd;function z1(){if(Wd)return _u;Wd=1;var e=Rm(),t=e(Object.keys,Object);return _u=t,_u}var Su,Ud;function W1(){if(Ud)return Su;Ud=1;var e=F1(),t=z1(),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 Su=i,Su}var Pu,Hd;function Nn(){if(Hd)return Pu;Hd=1;var e=$l(),t=Xl();function r(n){return n!=null&&t(n.length)&&!e(n)}return Pu=r,Pu}var Au,Gd;function aa(){if(Gd)return Au;Gd=1;var e=B1(),t=W1(),r=Nn();function n(i){return r(i)?e(i):t(i)}return Au=n,Au}var Tu,Kd;function U1(){if(Kd)return Tu;Kd=1;var e=C1(),t=k1(),r=aa();function n(i){return e(i,r,t)}return Tu=n,Tu}var Eu,Xd;function H1(){if(Xd)return Eu;Xd=1;var e=U1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,h=e(a),d=h.length,g=e(o),p=g.length;if(d!=p&&!l)return!1;for(var v=d;v--;){var w=h[v];if(!(l?w in o:n.call(o,w)))return!1}var b=f.get(a),x=f.get(o);if(b&&x)return b==o&&x==a;var O=!0;f.set(a,o),f.set(o,a);for(var y=l;++v<d;){w=h[v];var m=a[w],_=o[w];if(s)var S=l?s(_,m,w,o,a,f):s(m,_,w,a,o,f);if(!(S===void 0?m===_||c(m,_,u,s,f):S)){O=!1;break}y||(y=w=="constructor")}if(O&&!y){var A=a.constructor,j=o.constructor;A!=j&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof j=="function"&&j instanceof j)&&(O=!1)}return f.delete(a),f.delete(o),O}return Eu=i,Eu}var Mu,Vd;function G1(){if(Vd)return Mu;Vd=1;var e=Vt(),t=nt(),r=e(t,"DataView");return Mu=r,Mu}var ju,Yd;function K1(){if(Yd)return ju;Yd=1;var e=Vt(),t=nt(),r=e(t,"Promise");return ju=r,ju}var Cu,Zd;function Nm(){if(Zd)return Cu;Zd=1;var e=Vt(),t=nt(),r=e(t,"Set");return Cu=r,Cu}var $u,Jd;function X1(){if(Jd)return $u;Jd=1;var e=Vt(),t=nt(),r=e(t,"WeakMap");return $u=r,$u}var Iu,Qd;function V1(){if(Qd)return Iu;Qd=1;var e=G1(),t=kl(),r=K1(),n=Nm(),i=X1(),a=yt(),o=tm(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",d=o(e),g=o(t),p=o(r),v=o(n),w=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=h||t&&b(new t)!=u||r&&b(r.resolve())!=c||n&&b(new n)!=f||i&&b(new i)!=l)&&(b=function(x){var O=a(x),y=O==s?x.constructor:void 0,m=y?o(y):"";if(m)switch(m){case d:return h;case g:return u;case p:return c;case v:return f;case w:return l}return O}),Iu=b,Iu}var ku,ep;function Y1(){if(ep)return ku;ep=1;var e=Tm(),t=Cm(),r=j1(),n=H1(),i=V1(),a=Ce(),o=Im(),u=Dm(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function g(p,v,w,b,x,O){var y=a(p),m=a(v),_=y?f:i(p),S=m?f:i(v);_=_==c?l:_,S=S==c?l:S;var A=_==l,j=S==l,P=_==S;if(P&&o(p)){if(!o(v))return!1;y=!0,A=!1}if(P&&!A)return O||(O=new e),y||u(p)?t(p,v,w,b,x,O):r(p,v,_,w,b,x,O);if(!(w&s)){var E=A&&d.call(p,"__wrapped__"),M=j&&d.call(v,"__wrapped__");if(E||M){var I=E?p.value():p,C=M?v.value():v;return O||(O=new e),x(I,C,w,b,O)}}return P?(O||(O=new e),n(p,v,w,b,x,O)):!1}return ku=g,ku}var Du,tp;function Vl(){if(tp)return Du;tp=1;var e=Y1(),t=gt();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 Du=r,Du}var Ru,rp;function Z1(){if(rp)return Ru;rp=1;var e=Tm(),t=Vl(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var h=u[c];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<f;){h=u[c];var d=h[0],g=a[d],p=h[1];if(l&&h[2]){if(g===void 0&&!(d in a))return!1}else{var v=new e;if(s)var w=s(g,p,d,a,o,v);if(!(w===void 0?t(p,g,r|n,s,v):w))return!1}}return!0}return Ru=i,Ru}var Nu,np;function qm(){if(np)return Nu;np=1;var e=Tt();function t(r){return r===r&&!e(r)}return Nu=t,Nu}var qu,ip;function J1(){if(ip)return qu;ip=1;var e=qm(),t=aa();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 Lu,ap;function Lm(){if(ap)return Lu;ap=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Lu=e,Lu}var Bu,op;function Q1(){if(op)return Bu;op=1;var e=Z1(),t=J1(),r=Lm();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 Bu=n,Bu}var Fu,up;function eO(){if(up)return Fu;up=1;function e(t,r){return t!=null&&r in Object(t)}return Fu=e,Fu}var zu,sp;function tO(){if(sp)return zu;sp=1;var e=im(),t=Gl(),r=Ce(),n=Kl(),i=Xl(),a=ea();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,h=!1;++f<l;){var d=a(s[f]);if(!(h=u!=null&&c(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 zu=o,zu}var Wu,cp;function rO(){if(cp)return Wu;cp=1;var e=eO(),t=tO();function r(n,i){return n!=null&&t(n,i,e)}return Wu=r,Wu}var Uu,lp;function nO(){if(lp)return Uu;lp=1;var e=Vl(),t=am(),r=rO(),n=Cl(),i=qm(),a=Lm(),o=ea(),u=1,s=2;function c(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|s)}}return Uu=c,Uu}var Hu,fp;function kr(){if(fp)return Hu;fp=1;function e(t){return t}return Hu=e,Hu}var Gu,hp;function iO(){if(hp)return Gu;hp=1;function e(t){return function(r){return r==null?void 0:r[t]}}return Gu=e,Gu}var Ku,dp;function aO(){if(dp)return Ku;dp=1;var e=Nl();function t(r){return function(n){return e(n,r)}}return Ku=t,Ku}var Xu,pp;function oO(){if(pp)return Xu;pp=1;var e=iO(),t=aO(),r=Cl(),n=ea();function i(a){return r(a)?e(n(a)):t(a)}return Xu=i,Xu}var Vu,vp;function Et(){if(vp)return Vu;vp=1;var e=Q1(),t=nO(),r=kr(),n=Ce(),i=oO();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 Vu=a,Vu}var Yu,yp;function Bm(){if(yp)return Yu;yp=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 Yu=e,Yu}var Zu,gp;function uO(){if(gp)return Zu;gp=1;function e(t){return t!==t}return Zu=e,Zu}var Ju,mp;function sO(){if(mp)return Ju;mp=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 Ju=e,Ju}var Qu,bp;function cO(){if(bp)return Qu;bp=1;var e=Bm(),t=uO(),r=sO();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Qu=n,Qu}var es,xp;function lO(){if(xp)return es;xp=1;var e=cO();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return es=t,es}var ts,wp;function fO(){if(wp)return ts;wp=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 ts=e,ts}var rs,Op;function hO(){if(Op)return rs;Op=1;function e(){}return rs=e,rs}var ns,_p;function dO(){if(_p)return ns;_p=1;var e=Nm(),t=hO(),r=Hl(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return ns=i,ns}var is,Sp;function pO(){if(Sp)return is;Sp=1;var e=Em(),t=lO(),r=fO(),n=jm(),i=dO(),a=Hl(),o=200;function u(s,c,f){var l=-1,h=t,d=s.length,g=!0,p=[],v=p;if(f)g=!1,h=r;else if(d>=o){var w=c?null:i(s);if(w)return a(w);g=!1,h=n,v=new e}else v=c?[]:p;e:for(;++l<d;){var b=s[l],x=c?c(b):b;if(b=f||b!==0?b:0,g&&x===x){for(var O=v.length;O--;)if(v[O]===x)continue e;c&&v.push(x),p.push(b)}else h(v,x,f)||(v!==p&&v.push(x),p.push(b))}return p}return is=u,is}var as,Pp;function vO(){if(Pp)return as;Pp=1;var e=Et(),t=pO();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return as=r,as}var yO=vO();const Ap=ue(yO);function Fm(e,t,r){return t===!0?Ap(e,r):X(t)?Ap(e,t):e}function hr(e){"@babel/helpers - typeof";return hr=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},hr(e)}var gO=["ref"];function Tp(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 at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tp(Object(r),!0).forEach(function(n){oa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ep(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,Wm(n.key),n)}}function bO(e,t,r){return t&&Ep(e.prototype,t),r&&Ep(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xO(e,t,r){return t=hi(t),wO(e,zm()?Reflect.construct(t,r||[],hi(e).constructor):t.apply(e,r))}function wO(e,t){if(t&&(hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OO(e)}function OO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zm=function(){return!!e})()}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hi(e)}function _O(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&&Nc(e,t)}function Nc(e,t){return Nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nc(e,t)}function oa(e,t,r){return t=Wm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wm(e){var t=SO(e,"string");return hr(t)=="symbol"?t:t+""}function SO(e,t){if(hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function PO(e,t){if(e==null)return{};var r=AO(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 AO(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 TO(e){return e.value}function EO(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=PO(t,gO);return T.createElement(Ul,r)}var Mp=1,or=(function(e){function t(){var r;mO(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=xO(this,t,[].concat(i)),oa(r,"lastBoundingBox",{width:-1,height:-1}),r}return _O(t,e),bO(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)>Mp||Math.abs(i.height-this.lastBoundingBox.height)>Mp)&&(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?at({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=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:((c||0)-d.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var g=this.getBBoxSnapshot();h={top:((f||0)-g.height)/2}}else h=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return at(at({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=at(at({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return T.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},EO(a,at(at({},this.props),{},{payload:Fm(f,c,TO)})))}}],[{key:"getWithHeight",value:function(n,i){var a=at(at({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&N(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(q.PureComponent);oa(or,"displayName","Legend");oa(or,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var os,jp;function MO(){if(jp)return os;jp=1;var e=Dn(),t=Gl(),r=Ce(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return os=i,os}var us,Cp;function Um(){if(Cp)return us;Cp=1;var e=$m(),t=MO();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return us=r,us}var ss,$p;function jO(){if($p)return ss;$p=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return ss=e,ss}var cs,Ip;function CO(){if(Ip)return cs;Ip=1;var e=jO(),t=e();return cs=t,cs}var ls,kp;function Hm(){if(kp)return ls;kp=1;var e=CO(),t=aa();function r(n,i){return n&&e(n,i,t)}return ls=r,ls}var fs,Dp;function $O(){if(Dp)return fs;Dp=1;var e=Nn();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,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return fs=t,fs}var hs,Rp;function Yl(){if(Rp)return hs;Rp=1;var e=Hm(),t=$O(),r=t(e);return hs=r,hs}var ds,Np;function Gm(){if(Np)return ds;Np=1;var e=Yl(),t=Nn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return ds=r,ds}var ps,qp;function IO(){if(qp)return ps;qp=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return ps=e,ps}var vs,Lp;function kO(){if(Lp)return vs;Lp=1;var e=Cr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return vs=t,vs}var ys,Bp;function DO(){if(Bp)return ys;Bp=1;var e=kO();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return ys=t,ys}var gs,Fp;function RO(){if(Fp)return gs;Fp=1;var e=Rl(),t=Nl(),r=Et(),n=Gm(),i=IO(),a=km(),o=DO(),u=kr(),s=Ce();function c(f,l,h){l.length?l=e(l,function(p){return s(p)?function(v){return t(v,p.length===1?p[0]:p)}:p}):l=[u];var d=-1;l=e(l,a(r));var g=n(f,function(p,v,w){var b=e(l,function(x){return x(p)});return{criteria:b,index:++d,value:p}});return i(g,function(p,v){return o(p,v,h)})}return gs=c,gs}var ms,zp;function NO(){if(zp)return ms;zp=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 ms=e,ms}var bs,Wp;function qO(){if(Wp)return bs;Wp=1;var e=NO(),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,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return bs=r,bs}var xs,Up;function LO(){if(Up)return xs;Up=1;function e(t){return function(){return t}}return xs=e,xs}var ws,Hp;function Km(){if(Hp)return ws;Hp=1;var e=Vt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return ws=t,ws}var Os,Gp;function BO(){if(Gp)return Os;Gp=1;var e=LO(),t=Km(),r=kr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Os=n,Os}var _s,Kp;function FO(){if(Kp)return _s;Kp=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return _s=n,_s}var Ss,Xp;function zO(){if(Xp)return Ss;Xp=1;var e=BO(),t=FO(),r=t(e);return Ss=r,Ss}var Ps,Vp;function WO(){if(Vp)return Ps;Vp=1;var e=kr(),t=qO(),r=zO();function n(i,a){return r(t(i,a,e),i+"")}return Ps=n,Ps}var As,Yp;function ua(){if(Yp)return As;Yp=1;var e=Il(),t=Nn(),r=Kl(),n=Tt();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return As=i,As}var Ts,Zp;function UO(){if(Zp)return Ts;Zp=1;var e=Um(),t=RO(),r=WO(),n=ua(),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 Ts=i,Ts}var HO=UO();const Zl=ue(HO);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 qc(){return qc=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},qc.apply(this,arguments)}function GO(e,t){return YO(e)||VO(e,t)||XO(e,t)||KO()}function KO(){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 XO(e,t){if(e){if(typeof e=="string")return Jp(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 Jp(e,t)}}function Jp(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 VO(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function YO(e){if(Array.isArray(e))return e}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 Es(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){ZO(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 ZO(e,t,r){return t=JO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JO(e){var t=QO(e,"string");return rn(t)=="symbol"?t:t+""}function QO(e,t){if(rn(e)!="object"||!e)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 e_(e){return Array.isArray(e)&&be(e[0])&&be(e[1])?e.join(" ~ "):e}var t_=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,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,h=t.itemSorter,d=t.wrapperClassName,g=t.labelClassName,p=t.label,v=t.labelFormatter,w=t.accessibilityLayer,b=w===void 0?!1:w,x=function(){if(f&&f.length){var E={padding:0,margin:0},M=(h?Zl(f,h):f).map(function(I,C){if(I.type==="none")return null;var k=Es({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),R=I.formatter||l||e_,L=I.value,B=I.name,U=L,G=B;if(R&&U!=null&&G!=null){var z=R(L,B,I,C,f);if(Array.isArray(z)){var K=GO(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:k},be(G)?T.createElement("span",{className:"recharts-tooltip-item-name"},G):null,be(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},M)}return null},O=Es({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),y=Es({margin:0},c),m=!J(p),_=m?p:"",S=ee("recharts-default-tooltip",d),A=ee("recharts-tooltip-label",g);m&&v&&f!==void 0&&f!==null&&(_=v(p,f));var j=b?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",qc({className:S,style:O},j),T.createElement("p",{className:A,style:y},T.isValidElement(_)?_:"".concat(_)),x())};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 Gn(e,t,r){return t=r_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r_(e){var t=n_(e,"string");return nn(t)=="symbol"?t:t+""}function n_(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 Br="recharts-tooltip-wrapper",i_={visibility:"hidden"};function a_(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ee(Br,Gn(Gn(Gn(Gn({},"".concat(Br,"-right"),N(r)&&t&&N(t.x)&&r>=t.x),"".concat(Br,"-left"),N(r)&&t&&N(t.x)&&r<t.x),"".concat(Br,"-bottom"),N(n)&&t&&N(t.y)&&n>=t.y),"".concat(Br,"-top"),N(n)&&t&&N(t.y)&&n<t.y))}function ev(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&N(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=s[n];return h<d?Math.max(l,s[n]):Math.max(f,s[n])}var g=l+u,p=s[n]+c;return g>p?Math.max(f,s[n]):Math.max(l,s[n])}function o_(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 u_(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=ev({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=ev({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=o_({translateX:f,translateY:l,useTranslate3d:u})):c=i_,{cssProperties:c,cssClasses:a_({translateX:f,translateY:l,coordinate:r})}}function dr(e){"@babel/helpers - typeof";return dr=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},dr(e)}function tv(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 rv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tv(Object(r),!0).forEach(function(n){Bc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c_(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,Vm(n.key),n)}}function l_(e,t,r){return t&&c_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f_(e,t,r){return t=di(t),h_(e,Xm()?Reflect.construct(t,r||[],di(e).constructor):t.apply(e,r))}function h_(e,t){if(t&&(dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d_(e)}function d_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xm=function(){return!!e})()}function di(e){return di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},di(e)}function p_(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&&Lc(e,t)}function Lc(e,t){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lc(e,t)}function Bc(e,t,r){return t=Vm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vm(e){var t=v_(e,"string");return dr(t)=="symbol"?t:t+""}function v_(e,t){if(dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nv=1,y_=(function(e){function t(){var r;s_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=f_(this,t,[].concat(i)),Bc(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Bc(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return p_(t,e),l_(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>nv||Math.abs(n.height-this.state.lastBoundingBox.height)>nv)&&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,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,d=i.offset,g=i.position,p=i.reverseDirection,v=i.useTranslate3d,w=i.viewBox,b=i.wrapperStyle,x=u_({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:g,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:w}),O=x.cssClasses,y=x.cssProperties,m=rv(rv({transition:h&&a?"transform ".concat(u,"ms ").concat(s):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},b);return T.createElement("div",{tabIndex:-1,className:O,style:m,ref:function(S){n.wrapperNode=S}},c)}}])})(q.PureComponent),g_=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Dr={isSsr:g_()};function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function iv(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 av(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iv(Object(r),!0).forEach(function(n){Jl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zm(n.key),n)}}function x_(e,t,r){return t&&b_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function w_(e,t,r){return t=pi(t),O_(e,Ym()?Reflect.construct(t,r||[],pi(e).constructor):t.apply(e,r))}function O_(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return __(e)}function __(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ym(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ym=function(){return!!e})()}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pi(e)}function S_(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&&Fc(e,t)}function Fc(e,t){return Fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fc(e,t)}function Jl(e,t,r){return t=Zm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zm(e){var t=P_(e,"string");return pr(t)=="symbol"?t:t+""}function P_(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function A_(e){return e.dataKey}function T_(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(t_,t)}var Ze=(function(e){function t(){return m_(this,t),w_(this,t,arguments)}return S_(t,e),x_(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,d=i.offset,g=i.payload,p=i.payloadUniqBy,v=i.position,w=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,O=i.wrapperStyle,y=g??[];l&&y.length&&(y=Fm(g.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),p,A_));var m=y.length>0;return T.createElement(y_,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:h,active:a,coordinate:f,hasPayload:m,offset:d,position:v,reverseDirection:w,useTranslate3d:b,viewBox:x,wrapperStyle:O},T_(c,av(av({},this.props),{},{payload:y})))}}])})(q.PureComponent);Jl(Ze,"displayName","Tooltip");Jl(Ze,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Dr.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 Ms,ov;function E_(){if(ov)return Ms;ov=1;var e=nt(),t=function(){return e.Date.now()};return Ms=t,Ms}var js,uv;function M_(){if(uv)return js;uv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return js=t,js}var Cs,sv;function j_(){if(sv)return Cs;sv=1;var e=M_(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Cs=r,Cs}var $s,cv;function Jm(){if(cv)return $s;cv=1;var e=j_(),t=Tt(),r=Cr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return $s=s,$s}var Is,lv;function C_(){if(lv)return Is;lv=1;var e=Tt(),t=E_(),r=Jm(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,h,d,g,p,v=0,w=!1,b=!1,x=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(w=!!c.leading,b="maxWait"in c,h=b?i(r(c.maxWait)||0,s):h,x="trailing"in c?!!c.trailing:x);function O(M){var I=f,C=l;return f=l=void 0,v=M,d=u.apply(C,I),d}function y(M){return v=M,g=setTimeout(S,s),w?O(M):d}function m(M){var I=M-p,C=M-v,k=s-I;return b?a(k,h-C):k}function _(M){var I=M-p,C=M-v;return p===void 0||I>=s||I<0||b&&C>=h}function S(){var M=t();if(_(M))return A(M);g=setTimeout(S,m(M))}function A(M){return g=void 0,x&&f?O(M):(f=l=void 0,d)}function j(){g!==void 0&&clearTimeout(g),v=0,f=p=l=g=void 0}function P(){return g===void 0?d:A(t())}function E(){var M=t(),I=_(M);if(f=arguments,l=this,p=M,I){if(g===void 0)return y(p);if(b)return clearTimeout(g),g=setTimeout(S,s),O(p)}return g===void 0&&(g=setTimeout(S,s)),d}return E.cancel=j,E.flush=P,E}return Is=o,Is}var ks,fv;function $_(){if(fv)return ks;fv=1;var e=C_(),t=Tt(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return ks=n,ks}var I_=$_();const Qm=ue(I_);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 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 Kn(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){k_(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 k_(e,t,r){return t=D_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D_(e){var t=R_(e,"string");return an(t)=="symbol"?t:t+""}function R_(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)}function N_(e,t){return F_(e)||B_(e,t)||L_(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 L_(e,t){if(e){if(typeof e=="string")return dv(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 dv(e,t)}}function dv(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 B_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function F_(e){if(Array.isArray(e))return e}var z_=q.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,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,h=e.maxHeight,d=e.children,g=e.debounce,p=g===void 0?0:g,v=e.id,w=e.className,b=e.onResize,x=e.style,O=x===void 0?{}:x,y=q.useRef(null),m=q.useRef();m.current=b,q.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 _=q.useState({containerWidth:i.width,containerHeight:i.height}),S=N_(_,2),A=S[0],j=S[1],P=q.useCallback(function(M,I){j(function(C){var k=Math.round(M),R=Math.round(I);return C.containerWidth===k&&C.containerHeight===R?C:{containerWidth:k,containerHeight:R}})},[]);q.useEffect(function(){var M=function(B){var U,G=B[0].contentRect,z=G.width,K=G.height;P(z,K),(U=m.current)===null||U===void 0||U.call(m,z,K)};p>0&&(M=Qm(M,p,{trailing:!0,leading:!1}));var I=new ResizeObserver(M),C=y.current.getBoundingClientRect(),k=C.width,R=C.height;return P(k,R),I.observe(y.current),function(){I.disconnect()}},[P,p]);var E=q.useMemo(function(){var M=A.containerWidth,I=A.containerHeight;if(M<0||I<0)return null;ft(qt(o)||qt(s),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,o,s),ft(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=qt(o)?M:o,k=qt(s)?I:s;r&&r>0&&(C?k=C/r:k&&(C=k*r),h&&k>h&&(k=h)),ft(C>0||k>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,k,o,s,f,l,r);var R=!Array.isArray(d)&<(d.type).endsWith("Chart");return T.Children.map(d,function(L){return T.isValidElement(L)?q.cloneElement(L,Kn({width:C,height:k},R?{style:Kn({height:"100%",width:"100%",maxHeight:k,maxWidth:C},L.props.style)}:{})):L})},[r,d,s,h,l,f,A,o]);return T.createElement("div",{id:v?"".concat(v):void 0,className:ee("recharts-responsive-container",w),style:Kn(Kn({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:h}),ref:y},E)}),eb=function(t){return null};eb.displayName="Cell";function on(e){"@babel/helpers - typeof";return on=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},on(e)}function pv(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 zc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pv(Object(r),!0).forEach(function(n){W_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W_(e,t,r){return t=U_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U_(e){var t=H_(e,"string");return on(t)=="symbol"?t:t+""}function H_(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qt={widthCache:{},cacheCount:0},G_=2e3,K_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},vv="recharts_measurement_span";function X_(e){var t=zc({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Yr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Dr.isSsr)return{width:0,height:0};var n=X_(r),i=JSON.stringify({text:t,copyStyle:n});if(Qt.widthCache[i])return Qt.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=zc(zc({},K_),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return Qt.widthCache[i]=s,++Qt.cacheCount>G_&&(Qt.cacheCount=0,Qt.widthCache={}),s}catch{return{width:0,height:0}}},V_=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 vi(e,t){return Q_(e)||J_(e,t)||Z_(e,t)||Y_()}function Y_(){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 Z_(e,t){if(e){if(typeof e=="string")return yv(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 yv(e,t)}}function yv(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 J_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Q_(e){if(Array.isArray(e))return e}function eS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gv(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,rS(n.key),n)}}function tS(e,t,r){return t&&gv(e.prototype,t),r&&gv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rS(e){var t=nS(e,"string");return un(t)=="symbol"?t:t+""}function nS(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 mv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,iS=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,aS=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,tb={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},oS=Object.keys(tb),rr="NaN";function uS(e,t){return e*tb[t]}var Xn=(function(){function e(t,r){eS(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!iS.test(r)&&(this.num=NaN,this.unit=""),oS.includes(r)&&(this.num=uS(t,r),this.unit="px")}return tS(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=aS.exec(r))!==null&&n!==void 0?n:[],a=vi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function rb(e){if(e.includes(rr))return rr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=mv.exec(t))!==null&&r!==void 0?r:[],i=vi(n,4),a=i[1],o=i[2],u=i[3],s=Xn.parse(a??""),c=Xn.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return rr;t=t.replace(mv,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=bv.exec(t))!==null&&l!==void 0?l:[],d=vi(h,4),g=d[1],p=d[2],v=d[3],w=Xn.parse(g??""),b=Xn.parse(v??""),x=p==="+"?w.add(b):w.subtract(b);if(x.isNaN())return rr;t=t.replace(bv,x.toString())}return t}var xv=/\(([^()]*)\)/;function sS(e){for(var t=e;t.includes("(");){var r=xv.exec(t),n=vi(r,2),i=n[1];t=t.replace(xv,rb(i))}return t}function cS(e){var t=e.replace(/\s+/g,"");return t=sS(t),t=rb(t),t}function lS(e){try{return cS(e)}catch{return rr}}function Ds(e){var t=lS(e.slice(5,-1));return t===rr?"":t}var fS=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],hS=["dx","dy","angle","className","breakAll"];function Wc(){return Wc=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},Wc.apply(this,arguments)}function wv(e,t){if(e==null)return{};var r=dS(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 dS(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 Ov(e,t){return gS(e)||yS(e,t)||vS(e,t)||pS()}function pS(){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 vS(e,t){if(e){if(typeof e=="string")return _v(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 _v(e,t)}}function _v(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 yS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function gS(e){if(Array.isArray(e))return e}var nb=/[ \f\n\r\t\v\u2028\u2029]+/,ib=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(nb));var o=a.map(function(s){return{word:s,width:Yr(s,i).width}}),u=n?0:Yr(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},mS=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=N(o),l=u,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(k,R){var L=R.word,B=R.width,U=k[k.length-1];if(U&&(i==null||a||U.width+B+n<Number(i)))U.words.push(L),U.width+=B+n;else{var G={words:[L],width:B};k.push(G)}return k},[])},d=h(r),g=function(C){return C.reduce(function(k,R){return k.width>R.width?k:R})};if(!f)return d;for(var p="…",v=function(C){var k=l.slice(0,C),R=ib({breakAll:c,style:s,children:k+p}).wordsWithComputedWidth,L=h(R),B=L.length>o||g(L).width>Number(i);return[B,L]},w=0,b=l.length-1,x=0,O;w<=b&&x<=l.length-1;){var y=Math.floor((w+b)/2),m=y-1,_=v(m),S=Ov(_,2),A=S[0],j=S[1],P=v(y),E=Ov(P,1),M=E[0];if(!A&&!M&&(w=y+1),A&&M&&(b=y-1),!A&&M){O=j;break}x++}return O||d},Sv=function(t){var r=J(t)?[]:t.toString().split(nb);return[{words:r}]},bS=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Dr.isSsr){var s,c,f=ib({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;s=l,c=h}else return Sv(i);return mS({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return Sv(i)},Pv="#808080",yi=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,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,d=h===void 0?"start":h,g=t.verticalAnchor,p=g===void 0?"end":g,v=t.fill,w=v===void 0?Pv:v,b=wv(t,fS),x=q.useMemo(function(){return bS({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:l,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,l,b.style,b.width]),O=b.dx,y=b.dy,m=b.angle,_=b.className,S=b.breakAll,A=wv(b,hS);if(!be(n)||!be(a))return null;var j=n+(N(O)?O:0),P=a+(N(y)?y:0),E;switch(p){case"start":E=Ds("calc(".concat(c,")"));break;case"middle":E=Ds("calc(".concat((x.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:E=Ds("calc(".concat(x.length-1," * -").concat(u,")"));break}var M=[];if(l){var I=x[0].width,C=b.width;M.push("scale(".concat((N(C)?C/I:1)/I,")"))}return m&&M.push("rotate(".concat(m,", ").concat(j,", ").concat(P,")")),M.length&&(A.transform=M.join(" ")),T.createElement("text",Wc({},Z(A,!0),{x:j,y:P,className:ee("recharts-text",_),textAnchor:d,fill:w.includes("url")?Pv:w}),x.map(function(k,R){var L=k.words.join(S?"":" ");return T.createElement("tspan",{x:j,dy:R===0?E:u,key:"".concat(L,"-").concat(R)},L)}))};function Pt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xS(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ql(e){let t,r,n;e.length!==2?(t=Pt,r=(u,s)=>Pt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Pt||e===xS?e:wS,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function wS(){return 0}function ab(e){return e===null?NaN:+e}function*OS(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const _S=Ql(Pt),qn=_S.right;Ql(ab).center;class Av extends Map{constructor(t,r=AS){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(Tv(this,t))}has(t){return super.has(Tv(this,t))}set(t,r){return super.set(SS(this,t),r)}delete(t){return super.delete(PS(this,t))}}function Tv({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function SS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function PS({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function AS(e){return e!==null&&typeof e=="object"?e.valueOf():e}function TS(e=Pt){if(e===Pt)return ob;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 ob(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const ES=Math.sqrt(50),MS=Math.sqrt(10),jS=Math.sqrt(2);function gi(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>=ES?10:a>=MS?5:a>=jS?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?gi(e,t,r*2):[u,s,c]}function Uc(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?gi(t,e,r):gi(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function Hc(e,t,r){return t=+t,e=+e,r=+r,gi(e,t,r)[2]}function Gc(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Hc(t,e,r):Hc(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Ev(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Mv(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function ub(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?ob:TS(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),d=Math.max(r,Math.floor(t-c*l/s+h)),g=Math.min(n,Math.floor(t+(s-c)*l/s+h));ub(e,t,d,g,i)}const a=e[t];let o=r,u=n;for(Fr(e,r,t),i(e[n],a)>0&&Fr(e,r,n);o<u;){for(Fr(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Fr(e,r,u):(++u,Fr(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Fr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function CS(e,t,r){if(e=Float64Array.from(OS(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Mv(e);if(t>=1)return Ev(e);var n,i=(n-1)*t,a=Math.floor(i),o=Ev(ub(e,a).subarray(0,a+1)),u=Mv(e.subarray(a+1));return o+(u-o)*(i-a)}}function $S(e,t,r=ab){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 IS(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 Ue(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function mt(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 Kc=Symbol("implicit");function ef(){var e=new Av,t=[],r=[],n=Kc;function i(a){let o=e.get(a);if(o===void 0){if(n!==Kc)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 Av;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 ef(t,r).unknown(n)},Ue.apply(i,arguments),i}function sn(){var e=ef().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var h=t().length,d=i<n,g=d?i:n,p=d?n:i;a=(p-g)/Math.max(1,h-s+c*2),u&&(a=Math.floor(a)),g+=(p-g-a*(h-s))*f,o=a*(1-s),u&&(g=Math.round(g),o=Math.round(o));var v=IS(h).map(function(w){return g+a*w});return r(d?v.reverse():v)}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?(s=Math.min(1,c=+h),l()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),l()):s},e.paddingOuter=function(h){return arguments.length?(c=+h,l()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return sn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},Ue.apply(l(),arguments)}function sb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sb(t())},e}function Zr(){return sb(sn.apply(null,arguments).paddingInner(1))}function tf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function cb(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ln(){}var cn=.7,mi=1/cn,ur="\\s*([+-]?\\d+)\\s*",ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kS=/^#([0-9a-f]{3,8})$/,DS=new RegExp(`^rgb\\(${ur},${ur},${ur}\\)$`),RS=new RegExp(`^rgb\\(${et},${et},${et}\\)$`),NS=new RegExp(`^rgba\\(${ur},${ur},${ur},${ln}\\)$`),qS=new RegExp(`^rgba\\(${et},${et},${et},${ln}\\)$`),LS=new RegExp(`^hsl\\(${ln},${et},${et}\\)$`),BS=new RegExp(`^hsla\\(${ln},${et},${et},${ln}\\)$`),jv={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};tf(Ln,fn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Cv,formatHex:Cv,formatHex8:FS,formatHsl:zS,formatRgb:$v,toString:$v});function Cv(){return this.rgb().formatHex()}function FS(){return this.rgb().formatHex8()}function zS(){return lb(this).formatHsl()}function $v(){return this.rgb().formatRgb()}function fn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=kS.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Iv(t):r===3?new je(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Vn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Vn(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=DS.exec(e))?new je(t[1],t[2],t[3],1):(t=RS.exec(e))?new je(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=NS.exec(e))?Vn(t[1],t[2],t[3],t[4]):(t=qS.exec(e))?Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=LS.exec(e))?Rv(t[1],t[2]/100,t[3]/100,1):(t=BS.exec(e))?Rv(t[1],t[2]/100,t[3]/100,t[4]):jv.hasOwnProperty(e)?Iv(jv[e]):e==="transparent"?new je(NaN,NaN,NaN,0):null}function Iv(e){return new je(e>>16&255,e>>8&255,e&255,1)}function Vn(e,t,r,n){return n<=0&&(e=t=r=NaN),new je(e,t,r,n)}function WS(e){return e instanceof Ln||(e=fn(e)),e?(e=e.rgb(),new je(e.r,e.g,e.b,e.opacity)):new je}function Xc(e,t,r,n){return arguments.length===1?WS(e):new je(e,t,r,n??1)}function je(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}tf(je,Xc,cb(Ln,{brighter(e){return e=e==null?mi:Math.pow(mi,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cn:Math.pow(cn,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new je(Wt(this.r),Wt(this.g),Wt(this.b),bi(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:kv,formatHex:kv,formatHex8:US,formatRgb:Dv,toString:Dv}));function kv(){return`#${Lt(this.r)}${Lt(this.g)}${Lt(this.b)}`}function US(){return`#${Lt(this.r)}${Lt(this.g)}${Lt(this.b)}${Lt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Dv(){const e=bi(this.opacity);return`${e===1?"rgb(":"rgba("}${Wt(this.r)}, ${Wt(this.g)}, ${Wt(this.b)}${e===1?")":`, ${e})`}`}function bi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Lt(e){return e=Wt(e),(e<16?"0":"")+e.toString(16)}function Rv(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ge(e,t,r,n)}function lb(e){if(e instanceof Ge)return new Ge(e.h,e.s,e.l,e.opacity);if(e instanceof Ln||(e=fn(e)),!e)return new Ge;if(e instanceof Ge)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,s=(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/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Ge(o,u,s,e.opacity)}function HS(e,t,r,n){return arguments.length===1?lb(e):new Ge(e,t,r,n??1)}function Ge(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}tf(Ge,HS,cb(Ln,{brighter(e){return e=e==null?mi:Math.pow(mi,e),new Ge(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cn:Math.pow(cn,e),new Ge(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 je(Rs(e>=240?e-240:e+120,i,n),Rs(e,i,n),Rs(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ge(Nv(this.h),Yn(this.s),Yn(this.l),bi(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=bi(this.opacity);return`${e===1?"hsl(":"hsla("}${Nv(this.h)}, ${Yn(this.s)*100}%, ${Yn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Nv(e){return e=(e||0)%360,e<0?e+360:e}function Yn(e){return Math.max(0,Math.min(1,e||0))}function Rs(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 rf=e=>()=>e;function GS(e,t){return function(r){return e+r*t}}function KS(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 XS(e){return(e=+e)==1?fb:function(t,r){return r-t?KS(t,r,e):rf(isNaN(t)?r:t)}}function fb(e,t){var r=t-e;return r?GS(e,r):rf(isNaN(e)?t:e)}const qv=(function e(t){var r=XS(t);function n(i,a){var o=r((i=Xc(i)).r,(a=Xc(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=fb(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function VS(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 YS(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ZS(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]=Rr(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 JS(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function QS(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]=Rr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Vc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ns=new RegExp(Vc.source,"g");function eP(e){return function(){return e}}function tP(e){return function(t){return e(t)+""}}function rP(e,t){var r=Vc.lastIndex=Ns.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Vc.exec(e))&&(i=Ns.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,s.push({i:o,x:xi(n,i)})),r=Ns.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?tP(s[0].x):eP(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function Rr(e,t){var r=typeof t,n;return t==null||r==="boolean"?rf(t):(r==="number"?xi:r==="string"?(n=fn(t))?(t=n,qv):rP:t instanceof fn?qv:t instanceof Date?JS:YS(t)?VS:Array.isArray(t)?ZS:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?QS:xi)(e,t)}function nf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function nP(e,t){t===void 0&&(t=e,e=Rr);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 iP(e){return function(){return e}}function wi(e){return+e}var Lv=[0,1];function Te(e){return e}function Yc(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:iP(isNaN(t)?NaN:.5)}function aP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function oP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Yc(i,n),a=r(o,a)):(n=Yc(n,i),a=r(a,o)),function(u){return a(n(u))}}function uP(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]=Yc(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=qn(e,u,1,n)-1;return a[s](i[s](u))}}function Bn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sa(){var e=Lv,t=Lv,r=Rr,n,i,a,o=Te,u,s,c;function f(){var h=Math.min(e.length,t.length);return o!==Te&&(o=aP(e[0],e[h-1])),u=h>2?uP:oP,s=c=null,l}function l(h){return h==null||isNaN(h=+h)?a:(s||(s=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((c||(c=u(t,e.map(n),xi)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,wi),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=nf,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Te,f()):o!==Te},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 af(){return sa()(Te,Te)}function sP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Oi(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 vr(e){return e=Oi(Math.abs(e)),e?e[1]:NaN}function cP(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function lP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var fP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hn(e){if(!(t=fP.exec(e)))throw new Error("invalid format: "+e);var t;return new of({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]})}hn.prototype=of.prototype;function of(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+""}of.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 hP(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 hb;function dP(e,t){var r=Oi(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(hb=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")+Oi(e,Math.max(0,t+a-1))[0]}function Bv(e,t){var r=Oi(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 Fv={"%":(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)=>Bv(e*100,t),r:Bv,s:dP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function zv(e){return e}var Wv=Array.prototype.map,Uv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pP(e){var t=e.grouping===void 0||e.thousands===void 0?zv:cP(Wv.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?zv:lP(Wv.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l){l=hn(l);var h=l.fill,d=l.align,g=l.sign,p=l.symbol,v=l.zero,w=l.width,b=l.comma,x=l.precision,O=l.trim,y=l.type;y==="n"?(b=!0,y="g"):Fv[y]||(x===void 0&&(x=12),O=!0,y="g"),(v||h==="0"&&d==="=")&&(v=!0,h="0",d="=");var m=p==="$"?r:p==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_=p==="$"?n:/[%p]/.test(y)?o:"",S=Fv[y],A=/[defgprs%]/.test(y);x=x===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function j(P){var E=m,M=_,I,C,k;if(y==="c")M=S(P)+M,P="";else{P=+P;var R=P<0||1/P<0;if(P=isNaN(P)?s:S(Math.abs(P),x),O&&(P=hP(P)),R&&+P==0&&g!=="+"&&(R=!1),E=(R?g==="("?g:u:g==="-"||g==="("?"":g)+E,M=(y==="s"?Uv[8+hb/3]:"")+M+(R&&g==="("?")":""),A){for(I=-1,C=P.length;++I<C;)if(k=P.charCodeAt(I),48>k||k>57){M=(k===46?i+P.slice(I+1):P.slice(I))+M,P=P.slice(0,I);break}}}b&&!v&&(P=t(P,1/0));var L=E.length+P.length+M.length,B=L<w?new Array(w-L+1).join(h):"";switch(b&&v&&(P=t(B+P,B.length?w-M.length:1/0),B=""),d){case"<":P=E+P+M+B;break;case"=":P=E+B+P+M;break;case"^":P=B.slice(0,L=B.length>>1)+E+P+M+B.slice(L);break;default:P=B+E+P+M;break}return a(P)}return j.toString=function(){return l+""},j}function f(l,h){var d=c((l=hn(l),l.type="f",l)),g=Math.max(-8,Math.min(8,Math.floor(vr(h)/3)))*3,p=Math.pow(10,-g),v=Uv[8+g/3];return function(w){return d(p*w)+v}}return{format:c,formatPrefix:f}}var Zn,uf,db;vP({thousands:",",grouping:[3],currency:["$",""]});function vP(e){return Zn=pP(e),uf=Zn.format,db=Zn.formatPrefix,Zn}function yP(e){return Math.max(0,-vr(Math.abs(e)))}function gP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vr(t)/3)))*3-vr(Math.abs(e)))}function mP(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vr(t)-vr(e))+1}function pb(e,t,r,n){var i=Gc(e,t,r),a;switch(n=hn(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),db(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=mP(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=yP(i))&&(n.precision=a-(n.type==="%")*2);break}}return uf(n)}function Mt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Uc(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return pb(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],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=Hc(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function _i(){var e=af();return e.copy=function(){return Bn(e,_i())},Ue.apply(e,arguments),Mt(e)}function vb(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,wi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return vb(e).unknown(t)},e=arguments.length?Array.from(e,wi):[0,1],Mt(r)}function yb(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 Hv(e){return Math.log(e)}function Gv(e){return Math.exp(e)}function bP(e){return-Math.log(-e)}function xP(e){return-Math.exp(-e)}function wP(e){return isFinite(e)?+("1e"+e):e<0?0:e}function OP(e){return e===10?wP:e===Math.E?Math.exp:t=>Math.pow(e,t)}function _P(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 Kv(e){return(t,r)=>-e(-t,r)}function sf(e){const t=e(Hv,Gv),r=t.domain;let n=10,i,a;function o(){return i=_P(n),a=OP(n),r()[0]<0?(i=Kv(i),a=Kv(a),e(bP,xP)):e(Hv,Gv),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 s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let h=i(c),d=i(f),g,p;const v=u==null?10:+u;let w=[];if(!(n%1)&&d-h<v){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(g=1;g<n;++g)if(p=h<0?g/a(-h):g*a(h),!(p<c)){if(p>f)break;w.push(p)}}else for(;h<=d;++h)for(g=n-1;g>=1;--g)if(p=h>0?g/a(-h):g*a(h),!(p<c)){if(p>f)break;w.push(p)}w.length*2<v&&(w=Uc(c,f,v))}else w=Uc(h,d,Math.min(d-h,v)).map(a);return l?w.reverse():w},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=hn(s)).precision==null&&(s.trim=!0),s=uf(s)),u===1/0)return s;const c=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<=c?s(f):""}},t.nice=()=>r(yb(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function gb(){const e=sf(sa()).domain([1,10]);return e.copy=()=>Bn(e,gb()).base(e.base()),Ue.apply(e,arguments),e}function Xv(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Vv(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cf(e){var t=1,r=e(Xv(t),Vv(t));return r.constant=function(n){return arguments.length?e(Xv(t=+n),Vv(t)):t},Mt(r)}function mb(){var e=cf(sa());return e.copy=function(){return Bn(e,mb()).constant(e.constant())},Ue.apply(e,arguments)}function Yv(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function SP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function PP(e){return e<0?-e*e:e*e}function lf(e){var t=e(Te,Te),r=1;function n(){return r===1?e(Te,Te):r===.5?e(SP,PP):e(Yv(r),Yv(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Mt(t)}function ff(){var e=lf(sa());return e.copy=function(){return Bn(e,ff()).exponent(e.exponent())},Ue.apply(e,arguments),e}function AP(){return ff.apply(null,arguments).exponent(.5)}function Zv(e){return Math.sign(e)*e*e}function TP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function bb(){var e=af(),t=[0,1],r=!1,n;function i(a){var o=TP(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Zv(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,wi)).map(Zv)),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 bb(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ue.apply(i,arguments),Mt(i)}function xb(){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]=$S(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[qn(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(Pt),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 xb().domain(e).range(t).unknown(n)},Ue.apply(a,arguments)}function wb(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[qn(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return wb().domain([e,t]).range(i).unknown(a)},Ue.apply(Mt(o),arguments)}function Ob(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[qn(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 Ob().domain(e).range(t).unknown(r)},Ue.apply(i,arguments)}const qs=new Date,Ls=new Date;function xe(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 s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>xe(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)=>(qs.setTime(+a),Ls.setTime(+o),e(qs),e(Ls),Math.floor(r(qs,Ls))),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 Si=xe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Si.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Si);Si.range;const ut=1e3,Fe=ut*60,st=Fe*60,dt=st*24,hf=dt*7,Jv=dt*30,Bs=dt*365,Bt=xe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ut)},(e,t)=>(t-e)/ut,e=>e.getUTCSeconds());Bt.range;const df=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ut)},(e,t)=>{e.setTime(+e+t*Fe)},(e,t)=>(t-e)/Fe,e=>e.getMinutes());df.range;const pf=xe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Fe)},(e,t)=>(t-e)/Fe,e=>e.getUTCMinutes());pf.range;const vf=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ut-e.getMinutes()*Fe)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getHours());vf.range;const yf=xe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getUTCHours());yf.range;const Fn=xe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Fe)/dt,e=>e.getDate()-1);Fn.range;const ca=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dt,e=>e.getUTCDate()-1);ca.range;const _b=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dt,e=>Math.floor(e/dt));_b.range;function Yt(e){return xe(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())*Fe)/hf)}const la=Yt(0),Pi=Yt(1),EP=Yt(2),MP=Yt(3),yr=Yt(4),jP=Yt(5),CP=Yt(6);la.range;Pi.range;EP.range;MP.range;yr.range;jP.range;CP.range;function Zt(e){return xe(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)/hf)}const fa=Zt(0),Ai=Zt(1),$P=Zt(2),IP=Zt(3),gr=Zt(4),kP=Zt(5),DP=Zt(6);fa.range;Ai.range;$P.range;IP.range;gr.range;kP.range;DP.range;const gf=xe(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 mf=xe(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());mf.range;const pt=xe(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());pt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(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)});pt.range;const vt=xe(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());vt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(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)});vt.range;function Sb(e,t,r,n,i,a){const o=[[Bt,1,ut],[Bt,5,5*ut],[Bt,15,15*ut],[Bt,30,30*ut],[a,1,Fe],[a,5,5*Fe],[a,15,15*Fe],[a,30,30*Fe],[i,1,st],[i,3,3*st],[i,6,6*st],[i,12,12*st],[n,1,dt],[n,2,2*dt],[r,1,hf],[t,1,Jv],[t,3,3*Jv],[e,1,Bs]];function u(c,f,l){const h=f<c;h&&([c,f]=[f,c]);const d=l&&typeof l.range=="function"?l:s(c,f,l),g=d?d.range(c,+f+1):[];return h?g.reverse():g}function s(c,f,l){const h=Math.abs(f-c)/l,d=Ql(([,,v])=>v).right(o,h);if(d===o.length)return e.every(Gc(c/Bs,f/Bs,l));if(d===0)return Si.every(Math.max(Gc(c,f,l),1));const[g,p]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return g.every(p)}return[u,s]}const[RP,NP]=Sb(vt,mf,fa,_b,yf,pf),[qP,LP]=Sb(pt,gf,la,Fn,vf,df);function Fs(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 zs(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 zr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function BP(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=Wr(i),f=Ur(i),l=Wr(a),h=Ur(a),d=Wr(o),g=Ur(o),p=Wr(u),v=Ur(u),w=Wr(s),b=Ur(s),x={a:R,A:L,b:B,B:U,c:null,d:iy,e:iy,f:cA,g:bA,G:wA,H:oA,I:uA,j:sA,L:Pb,m:lA,M:fA,p:G,q:z,Q:uy,s:sy,S:hA,u:dA,U:pA,V:vA,w:yA,W:gA,x:null,X:null,y:mA,Y:xA,Z:OA,"%":oy},O={a:K,A:ae,b:he,B:$e,c:null,d:ay,e:ay,f:AA,g:RA,G:qA,H:_A,I:SA,j:PA,L:Tb,m:TA,M:EA,p:$t,q:Ee,Q:uy,s:sy,S:MA,u:jA,U:CA,V:$A,w:IA,W:kA,x:null,X:null,y:DA,Y:NA,Z:LA,"%":oy},y={a:j,A:P,b:E,B:M,c:I,d:ry,e:ry,f:rA,g:ty,G:ey,H:ny,I:ny,j:JP,L:tA,m:ZP,M:QP,p:A,q:YP,Q:iA,s:aA,S:eA,u:HP,U:GP,V:KP,w:UP,W:XP,x:C,X:k,y:ty,Y:ey,Z:VP,"%":nA};x.x=m(r,x),x.X=m(n,x),x.c=m(t,x),O.x=m(r,O),O.X=m(n,O),O.c=m(t,O);function m(F,V){return function(Y){var D=[],le=-1,Q=0,ve=F.length,ye,Me,bt;for(Y instanceof Date||(Y=new Date(+Y));++le<ve;)F.charCodeAt(le)===37&&(D.push(F.slice(Q,le)),(Me=Qv[ye=F.charAt(++le)])!=null?ye=F.charAt(++le):Me=ye==="e"?" ":"0",(bt=V[ye])&&(ye=bt(Y,Me)),D.push(ye),Q=le+1);return D.push(F.slice(Q,le)),D.join("")}}function _(F,V){return function(Y){var D=zr(1900,void 0,1),le=S(D,F,Y+="",0),Q,ve;if(le!=Y.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(V&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(Q=zs(zr(D.y,0,1)),ve=Q.getUTCDay(),Q=ve>4||ve===0?Ai.ceil(Q):Ai(Q),Q=ca.offset(Q,(D.V-1)*7),D.y=Q.getUTCFullYear(),D.m=Q.getUTCMonth(),D.d=Q.getUTCDate()+(D.w+6)%7):(Q=Fs(zr(D.y,0,1)),ve=Q.getDay(),Q=ve>4||ve===0?Pi.ceil(Q):Pi(Q),Q=Fn.offset(Q,(D.V-1)*7),D.y=Q.getFullYear(),D.m=Q.getMonth(),D.d=Q.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),ve="Z"in D?zs(zr(D.y,0,1)).getUTCDay():Fs(zr(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(ve+5)%7:D.w+D.U*7-(ve+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,zs(D)):Fs(D)}}function S(F,V,Y,D){for(var le=0,Q=V.length,ve=Y.length,ye,Me;le<Q;){if(D>=ve)return-1;if(ye=V.charCodeAt(le++),ye===37){if(ye=V.charAt(le++),Me=y[ye in Qv?V.charAt(le++):ye],!Me||(D=Me(F,Y,D))<0)return-1}else if(ye!=Y.charCodeAt(D++))return-1}return D}function A(F,V,Y){var D=c.exec(V.slice(Y));return D?(F.p=f.get(D[0].toLowerCase()),Y+D[0].length):-1}function j(F,V,Y){var D=d.exec(V.slice(Y));return D?(F.w=g.get(D[0].toLowerCase()),Y+D[0].length):-1}function P(F,V,Y){var D=l.exec(V.slice(Y));return D?(F.w=h.get(D[0].toLowerCase()),Y+D[0].length):-1}function E(F,V,Y){var D=w.exec(V.slice(Y));return D?(F.m=b.get(D[0].toLowerCase()),Y+D[0].length):-1}function M(F,V,Y){var D=p.exec(V.slice(Y));return D?(F.m=v.get(D[0].toLowerCase()),Y+D[0].length):-1}function I(F,V,Y){return S(F,t,V,Y)}function C(F,V,Y){return S(F,r,V,Y)}function k(F,V,Y){return S(F,n,V,Y)}function R(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function B(F){return s[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 ae(F){return a[F.getUTCDay()]}function he(F){return s[F.getUTCMonth()]}function $e(F){return u[F.getUTCMonth()]}function $t(F){return i[+(F.getUTCHours()>=12)]}function Ee(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var V=m(F+="",x);return V.toString=function(){return F},V},parse:function(F){var V=_(F+="",!1);return V.toString=function(){return F},V},utcFormat:function(F){var V=m(F+="",O);return V.toString=function(){return F},V},utcParse:function(F){var V=_(F+="",!0);return V.toString=function(){return F},V}}}var Qv={"-":"",_:" ",0:"0"},Oe=/^\s*\d+/,FP=/^%/,zP=/[\\^$*+?|[\]().{}]/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 WP(e){return e.replace(zP,"\\$&")}function Wr(e){return new RegExp("^(?:"+e.map(WP).join("|")+")","i")}function Ur(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function UP(e,t,r){var n=Oe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function HP(e,t,r){var n=Oe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function GP(e,t,r){var n=Oe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function KP(e,t,r){var n=Oe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function XP(e,t,r){var n=Oe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ey(e,t,r){var n=Oe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ty(e,t,r){var n=Oe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function VP(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 YP(e,t,r){var n=Oe.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function ZP(e,t,r){var n=Oe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ry(e,t,r){var n=Oe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function JP(e,t,r){var n=Oe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ny(e,t,r){var n=Oe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function QP(e,t,r){var n=Oe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function eA(e,t,r){var n=Oe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function tA(e,t,r){var n=Oe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function rA(e,t,r){var n=Oe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nA(e,t,r){var n=FP.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function iA(e,t,r){var n=Oe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function aA(e,t,r){var n=Oe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function iy(e,t){return te(e.getDate(),t,2)}function oA(e,t){return te(e.getHours(),t,2)}function uA(e,t){return te(e.getHours()%12||12,t,2)}function sA(e,t){return te(1+Fn.count(pt(e),e),t,3)}function Pb(e,t){return te(e.getMilliseconds(),t,3)}function cA(e,t){return Pb(e,t)+"000"}function lA(e,t){return te(e.getMonth()+1,t,2)}function fA(e,t){return te(e.getMinutes(),t,2)}function hA(e,t){return te(e.getSeconds(),t,2)}function dA(e){var t=e.getDay();return t===0?7:t}function pA(e,t){return te(la.count(pt(e)-1,e),t,2)}function Ab(e){var t=e.getDay();return t>=4||t===0?yr(e):yr.ceil(e)}function vA(e,t){return e=Ab(e),te(yr.count(pt(e),e)+(pt(e).getDay()===4),t,2)}function yA(e){return e.getDay()}function gA(e,t){return te(Pi.count(pt(e)-1,e),t,2)}function mA(e,t){return te(e.getFullYear()%100,t,2)}function bA(e,t){return e=Ab(e),te(e.getFullYear()%100,t,2)}function xA(e,t){return te(e.getFullYear()%1e4,t,4)}function wA(e,t){var r=e.getDay();return e=r>=4||r===0?yr(e):yr.ceil(e),te(e.getFullYear()%1e4,t,4)}function OA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+te(t/60|0,"0",2)+te(t%60,"0",2)}function ay(e,t){return te(e.getUTCDate(),t,2)}function _A(e,t){return te(e.getUTCHours(),t,2)}function SA(e,t){return te(e.getUTCHours()%12||12,t,2)}function PA(e,t){return te(1+ca.count(vt(e),e),t,3)}function Tb(e,t){return te(e.getUTCMilliseconds(),t,3)}function AA(e,t){return Tb(e,t)+"000"}function TA(e,t){return te(e.getUTCMonth()+1,t,2)}function EA(e,t){return te(e.getUTCMinutes(),t,2)}function MA(e,t){return te(e.getUTCSeconds(),t,2)}function jA(e){var t=e.getUTCDay();return t===0?7:t}function CA(e,t){return te(fa.count(vt(e)-1,e),t,2)}function Eb(e){var t=e.getUTCDay();return t>=4||t===0?gr(e):gr.ceil(e)}function $A(e,t){return e=Eb(e),te(gr.count(vt(e),e)+(vt(e).getUTCDay()===4),t,2)}function IA(e){return e.getUTCDay()}function kA(e,t){return te(Ai.count(vt(e)-1,e),t,2)}function DA(e,t){return te(e.getUTCFullYear()%100,t,2)}function RA(e,t){return e=Eb(e),te(e.getUTCFullYear()%100,t,2)}function NA(e,t){return te(e.getUTCFullYear()%1e4,t,4)}function qA(e,t){var r=e.getUTCDay();return e=r>=4||r===0?gr(e):gr.ceil(e),te(e.getUTCFullYear()%1e4,t,4)}function LA(){return"+0000"}function oy(){return"%"}function uy(e){return+e}function sy(e){return Math.floor(+e/1e3)}var er,Mb,jb;BA({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 BA(e){return er=BP(e),Mb=er.format,er.parse,jb=er.utcFormat,er.utcParse,er}function FA(e){return new Date(e)}function zA(e){return e instanceof Date?+e:+new Date(+e)}function bf(e,t,r,n,i,a,o,u,s,c){var f=af(),l=f.invert,h=f.domain,d=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),w=c("%a %d"),b=c("%b %d"),x=c("%B"),O=c("%Y");function y(m){return(s(m)<m?d:u(m)<m?g:o(m)<m?p:a(m)<m?v:n(m)<m?i(m)<m?w:b:r(m)<m?x:O)(m)}return f.invert=function(m){return new Date(l(m))},f.domain=function(m){return arguments.length?h(Array.from(m,zA)):h().map(FA)},f.ticks=function(m){var _=h();return e(_[0],_[_.length-1],m??10)},f.tickFormat=function(m,_){return _==null?y:c(_)},f.nice=function(m){var _=h();return(!m||typeof m.range!="function")&&(m=t(_[0],_[_.length-1],m??10)),m?h(yb(_,m)):f},f.copy=function(){return Bn(f,bf(e,t,r,n,i,a,o,u,s,c))},f}function WA(){return Ue.apply(bf(qP,LP,pt,gf,la,Fn,vf,df,Bt,Mb).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function UA(){return Ue.apply(bf(RP,NP,vt,mf,fa,ca,yf,pf,Bt,jb).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ha(){var e=0,t=1,r,n,i,a,o=Te,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(h){var d,g;return arguments.length?([d,g]=h,o=l(d,g),c):[o(0),o(1)]}}return c.range=f(Rr),c.rangeRound=f(nf),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function jt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Cb(){var e=Mt(ha()(Te));return e.copy=function(){return jt(e,Cb())},mt.apply(e,arguments)}function $b(){var e=sf(ha()).domain([1,10]);return e.copy=function(){return jt(e,$b()).base(e.base())},mt.apply(e,arguments)}function Ib(){var e=cf(ha());return e.copy=function(){return jt(e,Ib()).constant(e.constant())},mt.apply(e,arguments)}function xf(){var e=lf(ha());return e.copy=function(){return jt(e,xf()).exponent(e.exponent())},mt.apply(e,arguments)}function HA(){return xf.apply(null,arguments).exponent(.5)}function kb(){var e=[],t=Te;function r(n){if(n!=null&&!isNaN(n=+n))return t((qn(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(Pt),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)=>CS(e,a/n))},r.copy=function(){return kb(t).domain(e)},mt.apply(r,arguments)}function da(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Te,f,l=!1,h;function d(p){return isNaN(p=+p)?h:(p=.5+((p=+f(p))-a)*(n*p<n*a?u:s),c(l?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t,r]=p,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,d):[e,t,r]},d.clamp=function(p){return arguments.length?(l=!!p,d):l},d.interpolator=function(p){return arguments.length?(c=p,d):c};function g(p){return function(v){var w,b,x;return arguments.length?([w,b,x]=v,c=nP(p,[w,b,x]),d):[c(0),c(.5),c(1)]}}return d.range=g(Rr),d.rangeRound=g(nf),d.unknown=function(p){return arguments.length?(h=p,d):h},function(p){return f=p,i=p(e),a=p(t),o=p(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function Db(){var e=Mt(da()(Te));return e.copy=function(){return jt(e,Db())},mt.apply(e,arguments)}function Rb(){var e=sf(da()).domain([.1,1,10]);return e.copy=function(){return jt(e,Rb()).base(e.base())},mt.apply(e,arguments)}function Nb(){var e=cf(da());return e.copy=function(){return jt(e,Nb()).constant(e.constant())},mt.apply(e,arguments)}function wf(){var e=lf(da());return e.copy=function(){return jt(e,wf()).exponent(e.exponent())},mt.apply(e,arguments)}function GA(){return wf.apply(null,arguments).exponent(.5)}const cy=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:sn,scaleDiverging:Db,scaleDivergingLog:Rb,scaleDivergingPow:wf,scaleDivergingSqrt:GA,scaleDivergingSymlog:Nb,scaleIdentity:vb,scaleImplicit:Kc,scaleLinear:_i,scaleLog:gb,scaleOrdinal:ef,scalePoint:Zr,scalePow:ff,scaleQuantile:xb,scaleQuantize:wb,scaleRadial:bb,scaleSequential:Cb,scaleSequentialLog:$b,scaleSequentialPow:xf,scaleSequentialQuantile:kb,scaleSequentialSqrt:HA,scaleSequentialSymlog:Ib,scaleSqrt:AP,scaleSymlog:mb,scaleThreshold:Ob,scaleTime:WA,scaleUtc:UA,tickFormat:pb},Symbol.toStringTag,{value:"Module"}));var Ws,ly;function qb(){if(ly)return Ws;ly=1;var e=Cr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return Ws=t,Ws}var Us,fy;function KA(){if(fy)return Us;fy=1;function e(t,r){return t>r}return Us=e,Us}var Hs,hy;function XA(){if(hy)return Hs;hy=1;var e=qb(),t=KA(),r=kr();function n(i){return i&&i.length?e(i,r,t):void 0}return Hs=n,Hs}var VA=XA();const _t=ue(VA);var Gs,dy;function YA(){if(dy)return Gs;dy=1;function e(t,r){return t<r}return Gs=e,Gs}var Ks,py;function ZA(){if(py)return Ks;py=1;var e=qb(),t=YA(),r=kr();function n(i){return i&&i.length?e(i,r,t):void 0}return Ks=n,Ks}var JA=ZA();const pa=ue(JA);var Xs,vy;function QA(){if(vy)return Xs;vy=1;var e=Rl(),t=Et(),r=Gm(),n=Ce();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Xs=i,Xs}var Vs,yy;function eT(){if(yy)return Vs;yy=1;var e=Um(),t=QA();function r(n,i){return e(t(n,i),1)}return Vs=r,Vs}var tT=eT();const rT=ue(tT);var Ys,gy;function nT(){if(gy)return Ys;gy=1;var e=Vl();function t(r,n){return e(r,n)}return Ys=t,Ys}var iT=nT();const dn=ue(iT);var Nr=1e9,aT={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},_f,se=!0,We="[DecimalError] ",Ut=We+"Invalid argument: ",Of=We+"Exponent out of range: ",qr=Math.floor,Nt=Math.pow,oT=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,De,we=1e7,oe=7,Lb=9007199254740991,Ti=qr(Lb/oe),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)*oe;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 ht(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return ne(ht(t,new r(e),0,1),r.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return pe(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(De))throw Error(We+"NaN");if(r.s<1)throw Error(We+(r.s?"NaN":"-Infinity"));return r.eq(De)?new n(0):(se=!1,t=ht(pn(r,a),pn(e,a),a),se=!0,ne(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?zb(t,e):Bb(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(We+"NaN");return r.s?(se=!1,t=ht(r,e,0,1).times(e),se=!0,r.minus(t)):ne(new n(r),i)};W.naturalExponential=W.exp=function(){return Fb(this)};W.naturalLogarithm=W.ln=function(){return pn(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?Bb(t,e):zb(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(Ut+e);if(t=pe(i)+1,n=i.d.length-1,r=n*oe+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,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(We+"NaN")}for(e=pe(u),se=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Je(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=qr((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 s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(ht(u,a,o+2)).times(.5),Je(a.d).slice(0,o)===(t=Je(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ne(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return se=!0,ne(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,s,c,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,s=h.length,c=d.length,s<c&&(a=h,h=d,d=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+d[n]*h[i-n-1]+t,a[i--]=u%we|0,t=u/we|0;a[i]=(a[i]+t)%we|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,se?ne(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:(rt(e,0,Nr),t===void 0?t=n.rounding:rt(t,0,8),ne(r,e+pe(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Gt(n,!0):(rt(e,0,Nr),t===void 0?t=i.rounding:rt(t,0,8),n=ne(new i(n),e+1,t),r=Gt(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Gt(i):(rt(e,0,Nr),t===void 0?t=a.rounding:rt(t,0,8),n=ne(new a(i),e+pe(i)+1,t),r=Gt(n.abs(),!1,e+pe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return ne(new t(e),pe(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(De);if(u=new s(u),!u.s){if(e.s<1)throw Error(We+"Infinity");return u}if(u.eq(De))return u;if(n=s.precision,e.eq(De))return ne(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=Lb){for(i=new s(De),t=Math.ceil(n/oe+4),se=!1;r%2&&(i=i.times(u),by(i.d,t)),r=qr(r/2),r!==0;)u=u.times(u),by(u.d,t);return se=!0,e.s<0?new s(De).div(i):ne(i,n)}}else if(a<0)throw Error(We+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,se=!1,i=e.times(pn(u,n+c)),se=!0,i=Fb(i),i.s=a,i};W.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=pe(i),n=Gt(i,r<=a.toExpNeg||r>=a.toExpPos)):(rt(e,1,Nr),t===void 0?t=a.rounding:rt(t,0,8),i=ne(new a(i),e,t),r=pe(i),n=Gt(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):(rt(e,1,Nr),t===void 0?t=n.rounding:rt(t,0,8)),ne(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=pe(e),r=e.constructor;return Gt(e,t<=r.toExpNeg||t>=r.toExpPos)};function Bb(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),se?ne(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/oe),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/we|0,s[a]%=we;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,se?ne(t,l):t}function rt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ut+e)}function Je(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=oe-n.length,r&&(a+=wt(r)),a+=n;o=e[t],n=o+"",r=oe-n.length,r&&(a+=wt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ht=(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%we|0,o=a/we|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*we+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,h,d,g,p,v,w,b,x,O,y,m,_,S,A=n.constructor,j=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(We+"Division by zero");for(s=n.e-i.e,_=E.length,y=P.length,d=new A(j),g=d.d=[],c=0;E[c]==(P[c]||0);)++c;if(E[c]>(P[c]||0)&&--s,a==null?b=a=A.precision:o?b=a+(pe(n)-pe(i))+1:b=a,b<0)return new A(0);if(b=b/oe+2|0,c=0,_==1)for(f=0,E=E[0],b++;(c<y||f)&&b--;c++)x=f*we+(P[c]||0),g[c]=x/E|0,f=x%E|0;else{for(f=we/(E[0]+1)|0,f>1&&(E=e(E,f),P=e(P,f),_=E.length,y=P.length),O=_,p=P.slice(0,_),v=p.length;v<_;)p[v++]=0;S=E.slice(),S.unshift(0),m=E[0],E[1]>=we/2&&++m;do f=0,u=t(E,p,_,v),u<0?(w=p[0],_!=v&&(w=w*we+(p[1]||0)),f=w/m|0,f>1?(f>=we&&(f=we-1),l=e(E,f),h=l.length,v=p.length,u=t(l,p,h,v),u==1&&(f--,r(l,_<h?S:E,h))):(f==0&&(u=f=1),l=E.slice()),h=l.length,h<v&&l.unshift(0),r(p,l,v),u==-1&&(v=p.length,u=t(E,p,_,v),u<1&&(f++,r(p,_<v?S:E,v))),v=p.length):u===0&&(f++,p=[0]),g[c++]=f,u&&p[0]?p[v++]=P[O]||0:(p=[P[O]],v=1);while((O++<y||p[0]!==void 0)&&b--)}return g[0]||g.shift(),d.e=s,ne(d,o?a+pe(d)+1:a)}})();function Fb(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(pe(e)>16)throw Error(Of+pe(e));if(!e.s)return new f(De);for(se=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Nt(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(De),f.precision=u;;){if(i=ne(i.times(e),u),r=r.times(++s),o=a.plus(ht(i,r,u)),Je(o.d).slice(0,u)===Je(a.d).slice(0,u)){for(;c--;)a=ne(a.times(a),u);return f.precision=l,t==null?(se=!0,ne(a,l)):a}a=o}}function pe(e){for(var t=e.e*oe,r=e.d[0];r>=10;r/=10)t++;return t}function Zs(e,t,r){if(t>e.LN10.sd())throw se=!0,r&&(e.precision=r),Error(We+"LN10 precision limit exceeded");return ne(new e(e.LN10),t)}function wt(e){for(var t="";e--;)t+="0";return t}function pn(e,t){var r,n,i,a,o,u,s,c,f,l=1,h=10,d=e,g=d.d,p=d.constructor,v=p.precision;if(d.s<1)throw Error(We+(d.s?"NaN":"-Infinity"));if(d.eq(De))return new p(0);if(t==null?(se=!1,c=v):c=t,d.eq(10))return t==null&&(se=!0),Zs(p,c);if(c+=h,p.precision=c,r=Je(g),n=r.charAt(0),a=pe(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=Je(d.d),n=r.charAt(0),l++;a=pe(d),n>1?(d=new p("0."+r),a++):d=new p(n+"."+r.slice(1))}else return s=Zs(p,c+2,v).times(a+""),d=pn(new p(n+"."+r.slice(1)),c-h).plus(s),p.precision=v,t==null?(se=!0,ne(d,v)):d;for(u=o=d=ht(d.minus(De),d.plus(De),c),f=ne(d.times(d),c),i=3;;){if(o=ne(o.times(f),c),s=u.plus(ht(o,new p(i),c)),Je(s.d).slice(0,c)===Je(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(Zs(p,c+2,v).times(a+""))),u=ht(u,new p(l),c),p.precision=v,t==null?(se=!0,ne(u,v)):u;u=s,i+=2}}function my(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=qr(r/oe),e.d=[],n=(r+1)%oe,r<0&&(n+=oe),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=oe;n<i;)e.d.push(+t.slice(n,n+=oe));t=t.slice(n),n=oe-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),se&&(e.e>Ti||e.e<-Ti))throw Error(Of+r)}else e.s=0,e.e=0,e.d=[0];return e}function ne(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=oe,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/oe),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=oe,i=n-oe+o}if(r!==void 0&&(a=Nt(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/Nt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=pe(e),l.length=1,t=t-a-1,l[0]=Nt(10,(oe-t%oe)%oe),e.e=qr(-t/oe)||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=Nt(10,oe-n),l[f]=i>0?(c/Nt(10,o-i)%Nt(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==we&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=we)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(se&&(e.e>Ti||e.e<-Ti))throw Error(Of+pe(e));return e}function zb(e,t){var r,n,i,a,o,u,s,c,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),se?ne(t,d):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(d/oe),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=we-1;--s[a],s[i]+=we}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,se?ne(t,d):t):new h(0)}function Gt(e,t,r){var n,i=pe(e),a=Je(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+wt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+wt(-i-1)+a,r&&(n=r-o)>0&&(a+=wt(n))):i>=o?(a+=wt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+wt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=wt(n))),e.s<0?"-"+a:a}function by(e,t){if(e.length>t)return e.length=t,!0}function Wb(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(Ut+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 my(o,a.toString())}else if(typeof a!="string")throw Error(Ut+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,oT.test(a))my(o,a);else throw Error(Ut+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=Wb,i.config=i.set=uT,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 uT(e){if(!e||typeof e!="object")throw Error(We+"Object expected");var t,r,n,i=["precision",1,Nr,"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(qr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ut+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ut+r+": "+n);return this}var _f=Wb(aT);De=new _f(1);const re=_f;function sT(e){return hT(e)||fT(e)||lT(e)||cT()}function cT(){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 lT(e,t){if(e){if(typeof e=="string")return Zc(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 Zc(e,t)}}function fT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function hT(e){if(Array.isArray(e))return Zc(e)}function Zc(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 dT=function(t){return t},Ub={},Hb=function(t){return t===Ub},xy=function(t){return function r(){return arguments.length===0||arguments.length===1&&Hb(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},pT=function e(t,r){return t===1?r:xy(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!==Ub}).length;return o>=t?r.apply(void 0,i):e(t-o,xy(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return Hb(l)?s.shift():l});return r.apply(void 0,sT(f).concat(s))}))})},va=function(t){return pT(t.length,t)},Jc=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},vT=va(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),yT=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return dT;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Qc=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Gb=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,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function gT(e){var t;return e===0?t=1:t=Math.floor(new re(e).abs().log(10).toNumber())+1,t}function mT(e,t,r){for(var n=new re(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var bT=va(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),xT=va(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),wT=va(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const ya={rangeStep:mT,getDigitCount:gT,interpolateNumber:bT,uninterpolateNumber:xT,uninterpolateTruncation:wT};function el(e){return ST(e)||_T(e)||Kb(e)||OT()}function OT(){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){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ST(e){if(Array.isArray(e))return tl(e)}function vn(e,t){return TT(e)||AT(e,t)||Kb(e,t)||PT()}function PT(){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 Kb(e,t){if(e){if(typeof e=="string")return tl(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 tl(e,t)}}function tl(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 AT(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(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function TT(e){if(Array.isArray(e))return e}function Xb(e){var t=vn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Vb(e,t,r){if(e.lte(0))return new re(0);var n=ya.getDigitCount(e.toNumber()),i=new re(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new re(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new re(Math.ceil(s))}function ET(e,t,r){var n=1,i=new re(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new re(10).pow(ya.getDigitCount(e)-1),i=new re(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new re(Math.floor(e)))}else e===0?i=new re(Math.floor((t-1)/2)):r||(i=new re(Math.floor(e)));var o=Math.floor((t-1)/2),u=yT(vT(function(s){return i.add(new re(s-o).mul(n)).toNumber()}),Jc);return u(0,t)}function Yb(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 re(0),tickMin:new re(0),tickMax:new re(0)};var a=Vb(new re(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new re(0):(o=new re(e).add(t).div(2),o=o.sub(new re(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new re(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?Yb(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new re(u).mul(a)),tickMax:o.add(new re(s).mul(a))})}function MT(e){var t=vn(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=Xb([r,n]),s=vn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(el(Jc(0,i-1).map(function(){return 1/0}))):[].concat(el(Jc(0,i-1).map(function(){return-1/0})),[f]);return r>n?Qc(l):l}if(c===f)return ET(c,i,a);var h=Yb(c,f,o,a),d=h.step,g=h.tickMin,p=h.tickMax,v=ya.rangeStep(g,p.add(new re(.1).mul(d)),d);return r>n?Qc(v):v}function jT(e,t){var r=vn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Xb([n,i]),u=vn(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=Vb(new re(c).sub(s).div(f-1),a,0),h=[].concat(el(ya.rangeStep(new re(s),new re(c).sub(new re(.99).mul(l)),l)),[c]);return n>i?Qc(h):h}var CT=Gb(MT),$T=Gb(jT),IT="Invariant failed";function Kt(e,t){throw new Error(IT)}var kT=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 Ei(){return Ei=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},Ei.apply(this,arguments)}function DT(e,t){return LT(e)||qT(e,t)||NT(e,t)||RT()}function RT(){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 NT(e,t){if(e){if(typeof e=="string")return wy(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 wy(e,t)}}function wy(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 qT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function LT(e){if(Array.isArray(e))return e}function BT(e,t){if(e==null)return{};var r=FT(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 FT(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 zT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WT(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,Qb(n.key),n)}}function UT(e,t,r){return t&&WT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HT(e,t,r){return t=Mi(t),GT(e,Zb()?Reflect.construct(t,r||[],Mi(e).constructor):t.apply(e,r))}function GT(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 KT(e)}function KT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zb=function(){return!!e})()}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mi(e)}function XT(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 Jb(e,t,r){return t=Qb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qb(e){var t=VT(e,"string");return mr(t)=="symbol"?t:t+""}function VT(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 ga=(function(e){function t(){return zT(this,t),HT(this,t,arguments)}return XT(t,e),UT(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=BT(n,kT),d=Z(h,!1);this.props.direction==="x"&&f.type!=="number"&&Kt();var g=s.map(function(p){var v=c(p,u),w=v.x,b=v.y,x=v.value,O=v.errorVal;if(!O)return null;var y=[],m,_;if(Array.isArray(O)){var S=DT(O,2);m=S[0],_=S[1]}else m=_=O;if(a==="vertical"){var A=f.scale,j=b+i,P=j+o,E=j-o,M=A(x-m),I=A(x+_);y.push({x1:I,y1:P,x2:I,y2:E}),y.push({x1:M,y1:j,x2:I,y2:j}),y.push({x1:M,y1:P,x2:M,y2:E})}else if(a==="horizontal"){var C=l.scale,k=w+i,R=k-o,L=k+o,B=C(x-m),U=C(x+_);y.push({x1:R,y1:U,x2:L,y2:U}),y.push({x1:k,y1:B,x2:k,y2:U}),y.push({x1:R,y1:B,x2:L,y2:B})}return T.createElement(ce,Ei({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",Ei({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return T.createElement(ce,{className:"recharts-errorBars"},g)}}])})(T.Component);Jb(ga,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Jb(ga,"displayName","ErrorBar");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 Oy(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 Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oy(Object(r),!0).forEach(function(n){YT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YT(e,t,r){return t=ZT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZT(e){var t=JT(e,"string");return yn(t)=="symbol"?t:t+""}function JT(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(t==="string"?String:Number)(e)}var e0=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ke(r,or);if(!o)return null;var u=or.defaultProps,s=u!==void 0?Dt(Dt({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var h=l.item,d=l.props,g=d.sectors||d.data||[];return f.concat(g.map(function(p){return{type:o.props.iconType||h.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):c=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,d=h!==void 0?Dt(Dt({},h),l.props):{},g=d.dataKey,p=d.name,v=d.legendType,w=d.hide;return{inactive:w,dataKey:g,type:s.iconType||v||"square",color:Sf(l),value:p||g,payload:d}}),Dt(Dt(Dt({},s),or.getWithHeight(o,i)),{},{payload:c,item:o})};function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}function _y(e){return rE(e)||tE(e)||eE(e)||QT()}function QT(){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 eE(e,t){if(e){if(typeof e=="string")return nl(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 nl(e,t)}}function tE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rE(e){if(Array.isArray(e))return nl(e)}function nl(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 Sy(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 fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sy(Object(r),!0).forEach(function(n){sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sr(e,t,r){return t=nE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nE(e){var t=iE(e,"string");return gn(t)=="symbol"?t:t+""}function iE(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Re(e,t,r){return J(e)||J(t)?r:be(t)?ze(e,t,r):X(t)?t(e):r}function Jr(e,t,r,n){var i=rT(e,function(u){return Re(u,t)});if(r==="number"){var a=i.filter(function(u){return N(u)||parseFloat(u)});return a.length?[pa(a),_t(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!J(u)}):i;return o.map(function(u){return be(u)||u instanceof Date?u:""})}var aE=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,h=c>=u-1?i[0].coordinate:i[c+1].coordinate,d=void 0;if(Ke(l-f)!==Ke(h-l)){var g=[];if(Ke(h-l)===Ke(s[1]-s[0])){d=h;var p=l+s[1]-s[0];g[0]=Math.min(p,(p+f)/2),g[1]=Math.max(p,(p+f)/2)}else{d=f;var v=h+s[1]-s[0];g[0]=Math.min(l,(v+l)/2),g[1]=Math.max(l,(v+l)/2)}var w=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>w[0]&&t<=w[1]||t>=g[0]&&t<=g[1]){o=i[c].index;break}}else{var b=Math.min(f,h),x=Math.max(f,h);if(t>(b+l)/2&&t<=(x+l)/2){o=i[c].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},Sf=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?fe(fe({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},oE=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),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),h=0,d=l.length;h<d;h++){var g=f[l[h]],p=g.items,v=g.cateAxisId,w=p.filter(function(_){return lt(_.type).indexOf("Bar")>=0});if(w&&w.length){var b=w[0].type.defaultProps,x=b!==void 0?fe(fe({},b),w[0].props):w[0].props,O=x.barSize,y=x[v];o[y]||(o[y]=[]);var m=J(O)?r:O;o[y].push({item:w[0],stackList:w.slice(1),barSize:J(m)?void 0:Xe(m,n,0)})}}return o},uE=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Xe(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/s,g=o.reduce(function(O,y){return O+y.barSize||0},0);g+=(s-1)*c,g>=i&&(g-=(s-1)*c,c=0),g>=i&&d>0&&(h=!0,d*=.9,g=s*d);var p=(i-g)/2>>0,v={offset:p-c,size:0};f=o.reduce(function(O,y){var m={item:y.item,position:{offset:v.offset+v.size+c,size:h?d:y.barSize}},_=[].concat(_y(O),[m]);return v=_[_.length-1].position,y.stackList&&y.stackList.length&&y.stackList.forEach(function(S){_.push({item:S,position:v})}),_},l)}else{var w=Xe(n,i,0,!0);i-2*w-(s-1)*c<=0&&(c=0);var b=(i-2*w-(s-1)*c)/s;b>1&&(b>>=0);var x=u===+u?Math.min(b,u):b;f=o.reduce(function(O,y,m){var _=[].concat(_y(O),[{item:y.item,position:{offset:w+(b+c)*m+(b-x)/2,size:x}}]);return y.stackList&&y.stackList.length&&y.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},sE=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=e0({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,h=f.height,d=c.align,g=c.verticalAlign,p=c.layout;if((p==="vertical"||p==="horizontal"&&g==="middle")&&d!=="center"&&N(t[d]))return fe(fe({},t),{},sr({},d,t[d]+(l||0)));if((p==="horizontal"||p==="vertical"&&d==="center")&&g!=="middle"&&N(t[g]))return fe(fe({},t),{},sr({},g,t[g]+(h||0)))}return t},cE=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},t0=function(t,r,n,i,a){var o=r.props.children,u=Ve(o,ga).filter(function(c){return cE(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Re(f,n);if(J(l))return c;var h=Array.isArray(l)?[pa(l),_t(l)]:[l,l],d=s.reduce(function(g,p){var v=Re(f,p,0),w=h[0]-Math.abs(Array.isArray(v)?v[0]:v),b=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(w,g[0]),Math.max(b,g[1])]},[1/0,-1/0]);return[Math.min(d[0],c[0]),Math.max(d[1],c[1])]},[1/0,-1/0])}return null},lE=function(t,r,n,i,a){var o=r.map(function(u){return t0(t,u,n,a,i)}).filter(function(u){return!J(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},r0=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&t0(t,s,c,i)||Jr(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},n0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},i0=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},ct=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Ke(u[0]-u[1])*2*c:c,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)+c,value:l,offset:c}});return f.filter(function(l){return!Ir(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+c,value:l,index:h,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,h){return{coordinate:i(l)+c,value:a?a[l]:l,index:h,offset:c}})},Js=new WeakMap,Jn=function(t,r){if(typeof r!="function")return t;Js.has(t)||Js.set(t,new WeakMap);var n=Js.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},a0=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:sn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:_i(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Zr(),realScaleType:"point"}:a==="category"?{scale:sn(),realScaleType:"band"}:{scale:_i(),realScaleType:"linear"};if(Ht(i)){var s="scale".concat(ta(i));return{scale:(cy[s]||Zr)(),realScaleType:cy[s]?s:"point"}}return X(i)?{scale:i}:{scale:Zr(),realScaleType:"point"}},Py=1e-4,o0=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])-Py,o=Math.max(i[0],i[1])+Py,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},fE=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},hE=function(t,r){if(!r||r.length!==2||!N(r[0])||!N(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(!N(t[0])||t[0]<n)&&(a[0]=n),(!N(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},dE=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 s=Ir(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},pE=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=Ir(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)}},vE={sign:dE,expand:Qw,none:lr,silhouette:e1,wiggle:t1,positive:pE},yE=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=vE[n],o=Jw().keys(i).value(function(u,s){return+Re(u,s,0)}).order(Ic).offset(a);return o(t)},gE=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,h){var d,g=(d=h.type)!==null&&d!==void 0&&d.defaultProps?fe(fe({},h.type.defaultProps),h.props):h.props,p=g.stackId,v=g.hide;if(v)return l;var w=g[n],b=l[w]||{hasStack:!1,stackGroups:{}};if(be(p)){var x=b.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(h),b.hasStack=!0,b.stackGroups[p]=x}else b.stackGroups[Rn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return fe(fe({},l),{},sr({},w,b))},s),f={};return Object.keys(c).reduce(function(l,h){var d=c[h];if(d.hasStack){var g={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(p,v){var w=d.stackGroups[v];return fe(fe({},p),{},sr({},v,{numericAxisId:n,cateAxisId:i,items:w.items,stackedData:yE(t,w.items,a)}))},g)}return fe(fe({},l),{},sr({},h,d))},f)},u0=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=CT(c,a,u);return t.domain([pa(f),_t(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=$T(l,a,u);return{niceTicks:h}}return null};function Ay(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=ni(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=Re(i,J(o)?t.dataKey:o);return J(s)?null:t.scale(s)}var Ty=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 s=Re(o,r.dataKey,r.domain[u]);return J(s)?null:r.scale(s)-a/2+i},mE=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]},bE=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?fe(fe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(be(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},xE=function(t){return t.reduce(function(r,n){return[pa(n.concat([r[0]]).filter(N)),_t(n.concat([r[1]]).filter(N))]},[1/0,-1/0])},s0=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=xE(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Ey=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,My=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,il=function(t,r,n){if(X(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(N(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Ey.test(t[0])){var a=+Ey.exec(t[0])[1];i[0]=r[0]-a}else X(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(N(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(My.test(t[1])){var o=+My.exec(t[1])[1];i[1]=r[1]+o}else X(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ji=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=Zl(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},jy=function(t,r,n){return!t||!t.length||dn(t,ze(n,"type.defaultProps.domain"))?r:t},c0=function(t,r){var n=t.type.defaultProps?fe(fe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return fe(fe({},Z(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Sf(t),value:Re(r,i),type:s,payload:r,chartType:c,hide:f})};function mn(e){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(e)}function Cy(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 ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cy(Object(r),!0).forEach(function(n){l0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l0(e,t,r){return t=wE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wE(e){var t=OE(e,"string");return mn(t)=="symbol"?t:t+""}function OE(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 _E(e,t){return TE(e)||AE(e,t)||PE(e,t)||SE()}function SE(){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 PE(e,t){if(e){if(typeof e=="string")return $y(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 $y(e,t)}}function $y(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 AE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function TE(e){if(Array.isArray(e))return e}var Ci=Math.PI/180,EE=function(t){return t*180/Math.PI},_e=function(t,r,n,i){return{x:t+Math.cos(-Ci*i)*n,y:r+Math.sin(-Ci*i)*n}},ME=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},Pk=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=Xe(t.cx,o,o/2),l=Xe(t.cy,u,u/2),h=ME(o,u,n),d=Xe(t.innerRadius,h,0),g=Xe(t.outerRadius,h,h*.8),p=Object.keys(r);return p.reduce(function(v,w){var b=r[w],x=b.domain,O=b.reversed,y;if(J(b.range))i==="angleAxis"?y=[s,c]:i==="radiusAxis"&&(y=[d,g]),O&&(y=[y[1],y[0]]);else{y=b.range;var m=y,_=_E(m,2);s=_[0],c=_[1]}var S=a0(b,a),A=S.realScaleType,j=S.scale;j.domain(x).range(y),o0(j);var P=u0(j,ot(ot({},b),{},{realScaleType:A})),E=ot(ot(ot({},b),P),{},{range:y,radius:g,realScaleType:A,scale:j,cx:f,cy:l,innerRadius:d,outerRadius:g,startAngle:s,endAngle:c});return ot(ot({},v),{},l0({},w,E))},{})},jE=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))},CE=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=jE({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:EE(c),angleInRadian:c}},$E=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}},IE=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},Iy=function(t,r){var n=t.x,i=t.y,a=CE({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=$E(r),l=f.startAngle,h=f.endAngle,d=u,g;if(l<=h){for(;d>h;)d-=360;for(;d<l;)d+=360;g=d>=l&&d<=h}else{for(;d>l;)d-=360;for(;d<h;)d+=360;g=d>=h&&d<=l}return g?ot(ot({},r),{},{radius:o,angle:IE(d,r)}):null},Ak=function(t){return!q.isValidElement(t)&&!X(t)&&typeof t!="boolean"?t.className:""};function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}var kE=["offset"];function DE(e){return LE(e)||qE(e)||NE(e)||RE()}function RE(){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 NE(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 qE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LE(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 BE(e,t){if(e==null)return{};var r=FE(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 FE(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 ky(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ky(Object(r),!0).forEach(function(n){zE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ky(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zE(e,t,r){return t=WE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WE(e){var t=UE(e,"string");return bn(t)=="symbol"?t:t+""}function UE(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xn(){return xn=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},xn.apply(this,arguments)}var HE=function(t){var r=t.value,n=t.formatter,i=J(t.children)?r:t.children;return X(n)?n(i):i},GE=function(t,r){var n=Ke(r-t),i=Math.min(Math.abs(r-t),360);return n*i},KE=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,h=s.outerRadius,d=s.startAngle,g=s.endAngle,p=s.clockWise,v=(l+h)/2,w=GE(d,g),b=w>=0?1:-1,x,O;i==="insideStart"?(x=d+b*o,O=p):i==="insideEnd"?(x=g-b*o,O=!p):i==="end"&&(x=g+b*o,O=p),O=w<=0?O:!O;var y=_e(c,f,v,x),m=_e(c,f,v,x+(O?1:-1)*359),_="M".concat(y.x,",").concat(y.y,`
|
||
A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`,
|
||
`).concat(m.x,",").concat(m.y),S=J(t.id)?Rn("recharts-radial-line-"):t.id;return T.createElement("text",xn({},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))},XE=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var d=_e(o,u,c+n,h),g=d.x,p=d.y;return{x:g,y:p,textAnchor:g>=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 v=(s+c)/2,w=_e(o,u,v,h),b=w.x,x=w.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},VE=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,h=l*i,d=l>0?"end":"start",g=l>0?"start":"end",p=c>=0?1:-1,v=p*i,w=p>0?"end":"start",b=p>0?"start":"end";if(a==="top"){var x={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:d};return me(me({},x),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+h,textAnchor:"middle",verticalAnchor:g};return me(me({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var y={x:u-v,y:s+f/2,textAnchor:w,verticalAnchor:"middle"};return me(me({},y),n?{width:Math.max(y.x-n.x,0),height:f}:{})}if(a==="right"){var m={x:u+c+v,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return me(me({},m),n?{width:Math.max(n.x+n.width-m.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?me({x:u+v,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideRight"?me({x:u+c-v,y:s+f/2,textAnchor:w,verticalAnchor:"middle"},_):a==="insideTop"?me({x:u+c/2,y:s+h,textAnchor:"middle",verticalAnchor:g},_):a==="insideBottom"?me({x:u+c/2,y:s+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?me({x:u+v,y:s+h,textAnchor:b,verticalAnchor:g},_):a==="insideTopRight"?me({x:u+c-v,y:s+h,textAnchor:w,verticalAnchor:g},_):a==="insideBottomLeft"?me({x:u+v,y:s+f-h,textAnchor:b,verticalAnchor:d},_):a==="insideBottomRight"?me({x:u+c-v,y:s+f-h,textAnchor:w,verticalAnchor:d},_):$r(a)&&(N(a.x)||qt(a.x))&&(N(a.y)||qt(a.y))?me({x:u+Xe(a.x,c),y:s+Xe(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):me({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},YE=function(t){return"cx"in t&&N(t.cx)};function Pe(e){var t=e.offset,r=t===void 0?5:t,n=BE(e,kE),i=me({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||J(u)&&J(s)&&!q.isValidElement(c)&&!X(c))return null;if(q.isValidElement(c))return q.cloneElement(c,i);var d;if(X(c)){if(d=q.createElement(c,i),q.isValidElement(d))return d}else d=HE(i);var g=YE(a),p=Z(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return KE(i,d,p);var v=g?XE(i):VE(i);return T.createElement(yi,xn({className:ee("recharts-label",l)},p,v,{breakAll:h}),d)}Pe.displayName="Label";var f0=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,d=t.top,g=t.left,p=t.width,v=t.height,w=t.clockWise,b=t.labelViewBox;if(b)return b;if(N(p)&&N(v)){if(N(l)&&N(h))return{x:l,y:h,width:p,height:v};if(N(d)&&N(g))return{x:d,y:g,width:p,height:v}}return N(l)&&N(h)?{x:l,y:h,width:0,height:0}:N(r)&&N(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:w}:t.viewBox?t.viewBox:{}},ZE=function(t,r){return t?t===!0?T.createElement(Pe,{key:"label-implicit",viewBox:r}):be(t)?T.createElement(Pe,{key:"label-implicit",viewBox:r,value:t}):q.isValidElement(t)?t.type===Pe?q.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(Pe,{key:"label-implicit",content:t,viewBox:r}):X(t)?T.createElement(Pe,{key:"label-implicit",content:t,viewBox:r}):$r(t)?T.createElement(Pe,xn({viewBox:r},t,{key:"label-implicit"})):null:null},JE=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=f0(t),o=Ve(i,Pe).map(function(s,c){return q.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=ZE(t.label,r||a);return[u].concat(DE(o))};Pe.parseViewBox=f0;Pe.renderCallByParent=JE;var Qs,Dy;function QE(){if(Dy)return Qs;Dy=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Qs=e,Qs}var eM=QE();const tM=ue(eM);function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}var rM=["valueAccessor"],nM=["data","dataKey","clockWise","id","textBreakAll"];function iM(e){return sM(e)||uM(e)||oM(e)||aM()}function aM(){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 oM(e,t){if(e){if(typeof e=="string")return ol(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 ol(e,t)}}function uM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sM(e){if(Array.isArray(e))return ol(e)}function ol(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 $i(){return $i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$i.apply(this,arguments)}function Ry(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 Ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ry(Object(r),!0).forEach(function(n){cM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cM(e,t,r){return t=lM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lM(e){var t=fM(e,"string");return wn(t)=="symbol"?t:t+""}function fM(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 qy(e,t){if(e==null)return{};var r=hM(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 hM(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)?tM(t.value):t.value};function At(e){var t=e.valueAccessor,r=t===void 0?dM:t,n=qy(e,rM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=qy(n,nM);return!i||!i.length?null:T.createElement(ce,{className:"recharts-label-list"},i.map(function(f,l){var h=J(a)?r(f,l):Re(f&&f.payload,a),d=J(u)?{}:{id:"".concat(u,"-").concat(l)};return T.createElement(Pe,$i({},Z(f,!0),c,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:s,viewBox:Pe.parseViewBox(J(o)?f:Ny(Ny({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}At.displayName="LabelList";function pM(e,t){return e?e===!0?T.createElement(At,{key:"labelList-implicit",data:t}):T.isValidElement(e)||X(e)?T.createElement(At,{key:"labelList-implicit",data:t,content:e}):$r(e)?T.createElement(At,$i({data:t},e,{key:"labelList-implicit"})):null:null}function vM(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=Ve(n,At).map(function(o,u){return q.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=pM(e.label,t);return[a].concat(iM(i))}At.renderCallByParent=vM;function On(e){"@babel/helpers - typeof";return On=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},On(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)}function Ly(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 By(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ly(Object(r),!0).forEach(function(n){yM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yM(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=mM(e,"string");return On(t)=="symbol"?t:t+""}function mM(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bM=function(t,r){var n=Ke(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Qn=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/Ci,h=c?a:a+o*l,d=_e(r,n,f,h),g=_e(r,n,i,h),p=c?a-o*l:a,v=_e(r,n,f*Math.cos(l*Ci),p);return{center:d,circleTangency:g,lineTangency:v,theta:l}},h0=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=bM(o,u),c=o+s,f=_e(r,n,a,o),l=_e(r,n,a,c),h="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
|
||
`).concat(l.x,",").concat(l.y,`
|
||
`);if(i>0){var d=_e(r,n,i,o),g=_e(r,n,i,c);h+="L ".concat(g.x,",").concat(g.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
|
||
`).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},xM=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Ke(f-c),h=Qn({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),d=h.circleTangency,g=h.lineTangency,p=h.theta,v=Qn({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),w=v.circleTangency,b=v.lineTangency,x=v.theta,O=s?Math.abs(c-f):Math.abs(c-f)-p-x;if(O<0)return u?"M ".concat(g.x,",").concat(g.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
|
||
`):h0({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var y="M ".concat(g.x,",").concat(g.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(w.x,",").concat(w.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
|
||
`);if(i>0){var m=Qn({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=m.circleTangency,S=m.lineTangency,A=m.theta,j=Qn({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),P=j.circleTangency,E=j.lineTangency,M=j.theta,I=s?Math.abs(c-f):Math.abs(c-f)-A-M;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(P.x,",").concat(P.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},wM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},d0=function(t){var r=By(By({},wM),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var d=ee("recharts-sector",h),g=o-a,p=Xe(u,g,0,!0),v;return p>0&&Math.abs(f-l)<360?v=xM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):v=h0({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),T.createElement("path",ul({},Z(r,!0),{className:d,d:v,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 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 Fy(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 zy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fy(Object(r),!0).forEach(function(n){OM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OM(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=SM(e,"string");return _n(t)=="symbol"?t:t+""}function SM(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 Wy={curveBasisClosed:Fw,curveBasisOpen:zw,curveBasis:Bw,curveBumpX:Aw,curveBumpY:Tw,curveLinearClosed:Ww,curveLinear:na,curveMonotoneX:Uw,curveMonotoneY:Hw,curveNatural:Gw,curveStep:Kw,curveStepAfter:Vw,curveStepBefore:Xw},ei=function(t){return t.x===+t.x&&t.y===+t.y},Hr=function(t){return t.x},Gr=function(t){return t.y},PM=function(t,r){if(X(t))return t;var n="curve".concat(ta(t));return(n==="curveMonotone"||n==="curveBump")&&r?Wy["".concat(n).concat(r==="vertical"?"Y":"X")]:Wy[n]||na},AM=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,s=t.connectNulls,c=s===void 0?!1:s,f=PM(n,u),l=c?a.filter(function(p){return ei(p)}):a,h;if(Array.isArray(o)){var d=c?o.filter(function(p){return ei(p)}):o,g=l.map(function(p,v){return zy(zy({},p),{},{base:d[v]})});return u==="vertical"?h=Hn().y(Gr).x1(Hr).x0(function(p){return p.base.x}):h=Hn().x(Hr).y1(Gr).y0(function(p){return p.base.y}),h.defined(ei).curve(f),h(g)}return u==="vertical"&&N(o)?h=Hn().y(Gr).x1(Hr).x0(o):N(o)?h=Hn().x(Hr).y1(Gr).y0(o):h=dm().x(Hr).y(Gr),h.defined(ei).curve(f),h(l)},Qr=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?AM(t):i;return q.createElement("path",sl({},Z(t,!1),ii(t),{className:ee("recharts-curve",r),d:o,ref:a}))};function Sn(e){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(e)}function Ii(){return Ii=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},Ii.apply(this,arguments)}function TM(e,t){return CM(e)||jM(e,t)||MM(e,t)||EM()}function EM(){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 MM(e,t){if(e){if(typeof e=="string")return Uy(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 Uy(e,t)}}function Uy(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 jM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function CM(e){if(Array.isArray(e))return e}function Hy(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 Gy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hy(Object(r),!0).forEach(function(n){$M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $M(e,t,r){return t=IM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IM(e){var t=kM(e,"string");return Sn(t)=="symbol"?t:t+""}function kM(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ky=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=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(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
|
||
`).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(c,`,
|
||
`).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
|
||
`).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);f="M ".concat(t,",").concat(r+u*g,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t+s*g,",").concat(r,`
|
||
L `).concat(t+n-s*g,",").concat(r,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*g,`
|
||
L `).concat(t+n,",").concat(r+i-u*g,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t+n-s*g,",").concat(r+i,`
|
||
L `).concat(t+s*g,",").concat(r+i,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*g," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},DM=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),h=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=h}return!1},RM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Pf=function(t){var r=Gy(Gy({},RM),t),n=q.useRef(),i=q.useState(-1),a=TM(i,2),o=a[0],u=a[1];q.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,h=r.radius,d=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,w=r.isAnimationActive,b=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var x=ee("recharts-rectangle",d);return b?T.createElement(cr,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:p,animationEasing:g,isActive:b},function(O){var y=O.width,m=O.height,_=O.x,S=O.y;return T.createElement(cr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:w,easing:g},T.createElement("path",Ii({},Z(r,!0),{className:x,d:Ky(_,S,y,m,h),ref:n})))}):T.createElement("path",Ii({},Z(r,!0),{className:x,d:Ky(s,c,f,l,h)}))};function cl(){return cl=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},cl.apply(this,arguments)}var Af=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?q.createElement("circle",cl({},Z(t,!1),ii(t),{className:o,cx:r,cy:n,r:i})):null};function Pn(e){"@babel/helpers - typeof";return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(e)}var NM=["x","y","top","left","width","height","className"];function ll(){return ll=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},ll.apply(this,arguments)}function Xy(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 qM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xy(Object(r),!0).forEach(function(n){LM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LM(e,t,r){return t=BM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BM(e){var t=FM(e,"string");return Pn(t)=="symbol"?t:t+""}function FM(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 zM(e,t){if(e==null)return{};var r=WM(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 WM(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 UM=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},HM=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,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,h=t.height,d=h===void 0?0:h,g=t.className,p=zM(t,NM),v=qM({x:n,y:a,top:u,left:c,width:l,height:d},p);return!N(n)||!N(a)||!N(l)||!N(d)||!N(u)||!N(c)?null:T.createElement("path",ll({},Z(v,!0),{className:ee("recharts-cross",g),d:UM(n,a,l,d,u,c)}))},ec,Vy;function GM(){if(Vy)return ec;Vy=1;var e=Rm(),t=e(Object.getPrototypeOf,Object);return ec=t,ec}var tc,Yy;function KM(){if(Yy)return tc;Yy=1;var e=yt(),t=GM(),r=gt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(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)==s}return tc=c,tc}var XM=KM();const VM=ue(XM);var rc,Zy;function YM(){if(Zy)return rc;Zy=1;var e=yt(),t=gt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return rc=n,rc}var ZM=YM();const JM=ue(ZM);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 ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ki.apply(this,arguments)}function QM(e,t){return nj(e)||rj(e,t)||tj(e,t)||ej()}function ej(){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 tj(e,t){if(e){if(typeof e=="string")return Jy(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 Jy(e,t)}}function Jy(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 rj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function nj(e){if(Array.isArray(e))return e}function Qy(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 eg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qy(Object(r),!0).forEach(function(n){ij(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ij(e,t,r){return t=aj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aj(e){var t=oj(e,"string");return An(t)=="symbol"?t:t+""}function oj(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 tg=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},uj={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sj=function(t){var r=eg(eg({},uj),t),n=q.useRef(),i=q.useState(-1),a=QM(i,2),o=a[0],u=a[1];q.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&u(x)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,d=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,w=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var b=ee("recharts-trapezoid",d);return w?T.createElement(cr,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:h,x:s,y:c},duration:p,animationEasing:g,isActive:w},function(x){var O=x.upperWidth,y=x.lowerWidth,m=x.height,_=x.x,S=x.y;return T.createElement(cr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:g},T.createElement("path",ki({},Z(r,!0),{className:b,d:tg(_,S,O,y,m),ref:n})))}):T.createElement("g",null,T.createElement("path",ki({},Z(r,!0),{className:b,d:tg(s,c,f,l,h)})))},cj=["option","shapeType","propTransformer","activeClassName","isActive"];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 lj(e,t){if(e==null)return{};var r=fj(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 fj(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 rg(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 Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rg(Object(r),!0).forEach(function(n){hj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hj(e,t,r){return t=dj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dj(e){var t=pj(e,"string");return Tn(t)=="symbol"?t:t+""}function pj(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 vj(e,t){return Di(Di({},t),e)}function yj(e,t){return e==="symbols"}function ng(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(Pf,r);case"trapezoid":return T.createElement(sj,r);case"sector":return T.createElement(d0,r);case"symbols":if(yj(t))return T.createElement(Wl,r);break;default:return null}}function gj(e){return q.isValidElement(e)?e.props:e}function mj(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?vj:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=lj(e,cj),c;if(q.isValidElement(t))c=q.cloneElement(t,Di(Di({},s),gj(t)));else if(X(t))c=t(s);else if(VM(t)&&!JM(t)){var f=i(t,s);c=T.createElement(ng,{shapeType:r,elementProps:f})}else{var l=s;c=T.createElement(ng,{shapeType:r,elementProps:l})}return u?T.createElement(ce,{className:o},c):c}function ma(e,t){return t!=null&&"trapezoids"in e.props}function ba(e,t){return t!=null&&"sectors"in e.props}function En(e,t){return t!=null&&"points"in e.props}function bj(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 xj(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function wj(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Oj(e,t){var r;return ma(e,t)?r=bj:ba(e,t)?r=xj:En(e,t)&&(r=wj),r}function _j(e,t){var r;return ma(e,t)?r="trapezoids":ba(e,t)?r="sectors":En(e,t)&&(r="points"),r}function Sj(e,t){if(ma(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(ba(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 En(e,t)?t.payload:{}}function Pj(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=_j(r,t),a=Sj(r,t),o=n.filter(function(s,c){var f=dn(a,s),l=r.props[i].filter(function(g){var p=Oj(r,t);return p(g,t)}),h=r.props[i].indexOf(l[l.length-1]),d=c===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var nc,ig;function Aj(){if(ig)return nc;ig=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return nc=r,nc}var ic,ag;function p0(){if(ag)return ic;ag=1;var e=Jm(),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 ic=n,ic}var ac,og;function Tj(){if(og)return ac;og=1;var e=Aj(),t=ua(),r=p0();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 ac=n,ac}var oc,ug;function Ej(){if(ug)return oc;ug=1;var e=Tj(),t=e();return oc=t,oc}var Mj=Ej();const Ri=ue(Mj);function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function sg(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 cg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sg(Object(r),!0).forEach(function(n){v0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v0(e,t,r){return t=jj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jj(e){var t=Cj(e,"string");return Mn(t)=="symbol"?t:t+""}function Cj(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)}var $j=["Webkit","Moz","O","ms"],Ij=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=$j.reduce(function(a,o){return cg(cg({},a),{},v0({},o+n,r))},{});return i[t]=r,i};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 Ni(){return Ni=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},Ni.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 uc(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){Ie(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 kj(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,g0(n.key),n)}}function Dj(e,t,r){return t&&fg(e.prototype,t),r&&fg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rj(e,t,r){return t=qi(t),Nj(e,y0()?Reflect.construct(t,r||[],qi(e).constructor):t.apply(e,r))}function Nj(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 qj(e)}function qj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y0=function(){return!!e})()}function qi(e){return qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qi(e)}function Lj(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&&fl(e,t)}function fl(e,t){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fl(e,t)}function Ie(e,t,r){return t=g0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g0(e){var t=Bj(e,"string");return br(t)=="symbol"?t:t+""}function Bj(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)}var Fj=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 s=r.length,c=Zr().domain(Ri(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},hg=function(t){return t.changedTouches&&!!t.changedTouches.length},xr=(function(e){function t(r){var n;return kj(this,t),n=Rj(this,t,[r]),Ie(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ie(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ie(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ie(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ie(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ie(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ie(n,"handleSlideDragStart",function(i){var a=hg(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 Lj(t,e),Dj(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,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),h=Math.max(i,a),d=t.getIndexInRange(o,l),g=t.getIndexInRange(o,h);return{startIndex:d-d%s,endIndex:g===f?f:g-g%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Re(a[n],u,n);return X(o)?o(s,n):s}},{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,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,h=s.startIndex,d=s.endIndex,g=s.onChange,p=n.pageX-a;p>0?p=Math.min(p,c+f-l-u,c+f-l-o):p<0&&(p=Math.max(p,c-o,c-u));var v=this.getIndex({startX:o+p,endX:u+p});(v.startIndex!==h||v.endIndex!==d)&&g&&g(v),this.setState({startX:o+p,endX:u+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=hg(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,s=i.startX,c=this.state[o],f=this.props,l=f.x,h=f.width,d=f.travellerWidth,g=f.onChange,p=f.gap,v=f.data,w={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,l+h-d-c):b<0&&(b=Math.max(b,l-c)),w[o]=c+b;var x=this.getIndex(w),O=x.startIndex,y=x.endIndex,m=function(){var S=v.length-1;return o==="startX"&&(u>s?O%p===0:y%p===0)||u<s&&y===S||o==="endX"&&(u>s?y%p===0:O%p===0)||u>s&&y===S};this.setState(Ie(Ie({},o,c+b),"brushMoveStartX",n.pageX),function(){g&&m()&&g(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=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>=c||i==="endX"&&d<=s||this.setState(Ie({},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,s=n.fill,c=n.stroke;return T.createElement("rect",{stroke:c,fill:s,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,s=n.data,c=n.children,f=n.padding,l=q.Children.only(c);return l?T.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,h=s.traveller,d=s.ariaLabel,g=s.data,p=s.startIndex,v=s.endIndex,w=Math.max(n,this.props.x),b=uc(uc({},Z(this.props,!1)),{},{x:w,y:c,width:f,height:l}),x=d||"Min value: ".concat((a=g[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=g[v])===null||o===void 0?void 0:o.name);return T.createElement(ce,{tabIndex:0,role:"slider","aria-label":x,"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,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,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:s,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,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,h=f.endX,d=5,g={pointerEvents:"none",fill:c};return T.createElement(ce,{className:"recharts-brush-texts"},T.createElement(yi,Ni({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},g),this.getTextOfTick(i)),T.createElement(yi,Ni({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+s+d,y:o+u/2},g),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,h=this.state,d=h.startX,g=h.endX,p=h.isTextActive,v=h.isSlideMoving,w=h.isTravellerMoving,b=h.isTravellerFocused;if(!i||!i.length||!N(u)||!N(s)||!N(c)||!N(f)||c<=0||f<=0)return null;var x=ee("recharts-brush",a),O=T.Children.count(o)===1,y=Ij("userSelect","none");return T.createElement(ce,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,g),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(g,"endX"),(p||v||w||b||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),T.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):X(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,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return uc({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?Fj({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var h=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,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 s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(q.PureComponent);Ie(xr,"displayName","Brush");Ie(xr,"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 sc,dg;function zj(){if(dg)return sc;dg=1;var e=Yl();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return sc=t,sc}var cc,pg;function Wj(){if(pg)return cc;pg=1;var e=Mm(),t=Et(),r=zj(),n=Ce(),i=ua();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return cc=a,cc}var Uj=Wj();const Hj=ue(Uj);var tt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},lc,vg;function Gj(){if(vg)return lc;vg=1;var e=Km();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return lc=t,lc}var fc,yg;function Kj(){if(yg)return fc;yg=1;var e=Gj(),t=Hm(),r=Et();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return fc=n,fc}var Xj=Kj();const Vj=ue(Xj);var hc,gg;function Yj(){if(gg)return hc;gg=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 hc=e,hc}var dc,mg;function Zj(){if(mg)return dc;mg=1;var e=Yl();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return dc=t,dc}var pc,bg;function Jj(){if(bg)return pc;bg=1;var e=Yj(),t=Zj(),r=Et(),n=Ce(),i=ua();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return pc=a,pc}var Qj=Jj();const m0=ue(Qj);var eC=["x","y"];function jn(e){"@babel/helpers - typeof";return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}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 xg(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 Kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){tC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tC(e,t,r){return t=rC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rC(e){var t=nC(e,"string");return jn(t)=="symbol"?t:t+""}function nC(e,t){if(jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iC(e,t){if(e==null)return{};var r=aC(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 aC(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 oC(e,t){var r=e.x,n=e.y,i=iC(e,eC),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Kr(Kr(Kr(Kr(Kr({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function wg(e){return T.createElement(mj,hl({shapeType:"rectangle",propTransformer:oC,activeClassName:"recharts-active-bar"},e))}var uC=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=N(n)||Kx(n);return a?t(n,i):(a||Kt(),r)}},sC=["value","background"],b0;function wr(e){"@babel/helpers - typeof";return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function cC(e,t){if(e==null)return{};var r=lC(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 lC(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 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 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 de(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){St(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 fC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _g(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,w0(n.key),n)}}function hC(e,t,r){return t&&_g(e.prototype,t),r&&_g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dC(e,t,r){return t=Bi(t),pC(e,x0()?Reflect.construct(t,r||[],Bi(e).constructor):t.apply(e,r))}function pC(e,t){if(t&&(wr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vC(e)}function vC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x0=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bi(e)}function yC(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&&dl(e,t)}function dl(e,t){return dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dl(e,t)}function St(e,t,r){return t=w0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w0(e){var t=gC(e,"string");return wr(t)=="symbol"?t:t+""}function gC(e,t){if(wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zn=(function(e){function t(){var r;fC(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=dC(this,t,[].concat(i)),St(r,"state",{isAnimationFinished:!1}),St(r,"id",Rn("recharts-bar-")),St(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),St(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return yC(t,e),hC(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=Z(this.props,!1);return n&&n.map(function(l,h){var d=h===s,g=d?c:o,p=de(de(de({},f),l),{},{isActive:d,option:g,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(ce,Li({className:"recharts-bar-rectangle"},ai(i.props,l,h),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(h)}),T.createElement(wg,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return T.createElement(cr,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var g=d.t,p=a.map(function(v,w){var b=h&&h[w];if(b){var x=Be(b.x,v.x),O=Be(b.y,v.y),y=Be(b.width,v.width),m=Be(b.height,v.height);return de(de({},v),{},{x:x(g),y:O(g),width:y(g),height:m(g)})}if(o==="horizontal"){var _=Be(0,v.height),S=_(g);return de(de({},v),{},{y:v.y+v.height-S,height:S})}var A=Be(0,v.width),j=A(g);return de(de({},v),{},{width:j})});return T.createElement(ce,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!dn(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,s=Z(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,h=cC(c,sC);if(!l)return null;var d=de(de(de(de(de({},h),{},{fill:"#eee"},l),s),ai(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(wg,Li({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,s=a.yAxis,c=a.layout,f=a.children,l=Ve(f,ga);if(!l)return null;var h=c==="vertical"?o[0].height/2:o[0].width/2,d=function(v,w){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:Re(v,w)}},g={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(ce,g,l.map(function(p){return T.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:h,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,h=n.height,d=n.isAnimationActive,g=n.background,p=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,w=ee("recharts-bar",o),b=u&&u.allowDataOverflow,x=s&&s.allowDataOverflow,O=b||x,y=J(p)?this.id:p;return T.createElement(ce,{className:w},b||x?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(y)},T.createElement("rect",{x:b?c:c-l/2,y:x?f:f-h/2,width:b?l:l*2,height:x?h:h*2}))):null,T.createElement(ce,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(y,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,y),(!d||v)&&At.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}}])})(q.PureComponent);b0=zn;St(zn,"displayName","Bar");St(zn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Dr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});St(zn,"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,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=fE(n,r);if(!d)return null;var g=t.layout,p=r.type.defaultProps,v=p!==void 0?de(de({},p),r.props):r.props,w=v.dataKey,b=v.children,x=v.minPointSize,O=g==="horizontal"?o:a,y=c?O.scale.domain():null,m=mE({numericAxis:O}),_=Ve(b,eb),S=l.map(function(A,j){var P,E,M,I,C,k;c?P=hE(c[f+j],y):(P=Re(A,w),Array.isArray(P)||(P=[m,P]));var R=uC(x,b0.defaultProps.minPointSize)(P[1],j);if(g==="horizontal"){var L,B=[o.scale(P[0]),o.scale(P[1])],U=B[0],G=B[1];E=Ty({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:A,index:j}),M=(L=G??U)!==null&&L!==void 0?L:void 0,I=d.size;var z=U-G;if(C=Number.isNaN(z)?0:z,k={x:E,y:o.y,width:I,height:o.height},Math.abs(R)>0&&Math.abs(C)<Math.abs(R)){var K=Ke(C||R)*(Math.abs(R)-Math.abs(C));M-=K,C+=K}}else{var ae=[a.scale(P[0]),a.scale(P[1])],he=ae[0],$e=ae[1];if(E=he,M=Ty({axis:o,ticks:s,bandSize:i,offset:d.offset,entry:A,index:j}),I=$e-he,C=d.size,k={x:a.x,y:M,width:a.width,height:C},Math.abs(R)>0&&Math.abs(I)<Math.abs(R)){var $t=Ke(I||R)*(Math.abs(R)-Math.abs(I));I+=$t}}return de(de(de({},A),{},{x:E,y:M,width:I,height:C,value:c?P:P[1],payload:A,background:k},_&&_[j]&&_[j].props),{},{tooltipPayload:[c0(r,A)],tooltipPosition:{x:E+I/2,y:M+C/2}})});return de({data:S,layout:g},h)});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 mC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sg(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,O0(n.key),n)}}function bC(e,t,r){return t&&Sg(e.prototype,t),r&&Sg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pg(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 He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pg(Object(r),!0).forEach(function(n){xa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xa(e,t,r){return t=O0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O0(e){var t=xC(e,"string");return Cn(t)=="symbol"?t:t+""}function xC(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 wC=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=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=!!ke(c,zn);return f.reduce(function(d,g){var p=r[g],v=p.orientation,w=p.domain,b=p.padding,x=b===void 0?{}:b,O=p.mirror,y=p.reversed,m="".concat(v).concat(O?"Mirror":""),_,S,A,j,P;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var E=w[1]-w[0],M=1/0,I=p.categoricalDomain.sort(Yx);if(I.forEach(function(ae,he){he>0&&(M=Math.min((ae||0)-(I[he-1]||0),M))}),Number.isFinite(M)){var C=M/E,k=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(_=C*k/2),p.padding==="no-gap"){var R=Xe(t.barCategoryGap,C*k),L=C*k/2;_=L-R-(L-R)/k*R}}}i==="xAxis"?S=[n.left+(x.left||0)+(_||0),n.left+n.width-(x.right||0)-(_||0)]:i==="yAxis"?S=s==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(_||0),n.top+n.height-(x.bottom||0)-(_||0)]:S=p.range,y&&(S=[S[1],S[0]]);var B=a0(p,a,h),U=B.scale,G=B.realScaleType;U.domain(w).range(S),o0(U);var z=u0(U,He(He({},p),{},{realScaleType:G}));i==="xAxis"?(P=v==="top"&&!O||v==="bottom"&&O,A=n.left,j=l[m]-P*p.height):i==="yAxis"&&(P=v==="left"&&!O||v==="right"&&O,A=l[m]-P*p.width,j=n.top);var K=He(He(He({},p),z),{},{realScaleType:G,x:A,y:j,scale:U,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return K.bandSize=ji(K,z),!p.hide&&i==="xAxis"?l[m]+=(P?-1:1)*K.height:p.hide||(l[m]+=(P?-1:1)*K.width),He(He({},d),{},xa({},g,K))},{})},_0=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)}},OC=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return _0({x:r,y:n},{x:i,y:a})},S0=(function(){function e(t){mC(this,e),this.scale=t}return bC(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 s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}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)}}])})();xa(S0,"EPS",1e-4);var Tf=function(t){var r=Object.keys(t).reduce(function(n,i){return He(He({},n),{},xa({},i,S0.create(t[i])))},{});return He(He({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return Vj(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return m0(i,function(a,o){return r[o].isInRange(a)})}})};function _C(e){return(e%180+180)%180}var SC=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=_C(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},vc,Ag;function PC(){if(Ag)return vc;Ag=1;var e=Et(),t=Nn(),r=aa();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return vc=n,vc}var yc,Tg;function AC(){if(Tg)return yc;Tg=1;var e=p0();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return yc=t,yc}var gc,Eg;function TC(){if(Eg)return gc;Eg=1;var e=Bm(),t=Et(),r=AC(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return gc=i,gc}var mc,Mg;function EC(){if(Mg)return mc;Mg=1;var e=PC(),t=TC(),r=e(t);return mc=r,mc}var MC=EC();const jC=ue(MC);var CC=rm();const $C=ue(CC);var IC=$C(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("")}),Ef=q.createContext(void 0),Mf=q.createContext(void 0),P0=q.createContext(void 0),A0=q.createContext({}),T0=q.createContext(void 0),E0=q.createContext(0),M0=q.createContext(0),jg=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=IC(a);return T.createElement(Ef.Provider,{value:n},T.createElement(Mf.Provider,{value:i},T.createElement(A0.Provider,{value:a},T.createElement(P0.Provider,{value:f},T.createElement(T0.Provider,{value:o},T.createElement(E0.Provider,{value:c},T.createElement(M0.Provider,{value:s},u)))))))},kC=function(){return q.useContext(T0)},j0=function(t){var r=q.useContext(Ef);r==null&&Kt();var n=r[t];return n==null&&Kt(),n},DC=function(){var t=q.useContext(Ef);return Ot(t)},RC=function(){var t=q.useContext(Mf),r=jC(t,function(n){return m0(n.domain,Number.isFinite)});return r||Ot(t)},C0=function(t){var r=q.useContext(Mf);r==null&&Kt();var n=r[t];return n==null&&Kt(),n},NC=function(){var t=q.useContext(P0);return t},qC=function(){return q.useContext(A0)},jf=function(){return q.useContext(M0)},Cf=function(){return q.useContext(E0)};function Or(e){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(e)}function LC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I0(n.key),n)}}function FC(e,t,r){return t&&BC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zC(e,t,r){return t=Fi(t),WC(e,$0()?Reflect.construct(t,r||[],Fi(e).constructor):t.apply(e,r))}function WC(e,t){if(t&&(Or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UC(e)}function UC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($0=function(){return!!e})()}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fi(e)}function HC(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&&pl(e,t)}function pl(e,t){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pl(e,t)}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){$f(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 $f(e,t,r){return t=I0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I0(e){var t=GC(e,"string");return Or(t)=="symbol"?t:t+""}function GC(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KC(e,t){return ZC(e)||YC(e,t)||VC(e,t)||XC()}function XC(){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 VC(e,t){if(e){if(typeof e=="string")return Ig(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 Ig(e,t)}}function Ig(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 YC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function ZC(e){if(Array.isArray(e))return e}function vl(){return vl=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},vl.apply(this,arguments)}var JC=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):X(t)?n=t(r):n=T.createElement("line",vl({},r,{className:"recharts-reference-line-line"})),n},QC=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,h=a.width,d=a.height;if(n){var g=c.y,p=t.y.apply(g,{position:o});if(tt(c,"discard")&&!t.y.isInRange(p))return null;var v=[{x:f+h,y:p},{x:f,y:p}];return s==="left"?v.reverse():v}if(r){var w=c.x,b=t.x.apply(w,{position:o});if(tt(c,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:l+d},{x:b,y:l}];return u==="top"?x.reverse():x}if(i){var O=c.segment,y=O.map(function(m){return t.apply(m,{position:o})});return tt(c,"discard")&&Hj(y,function(m){return!t.isInRange(m)})?null:y}return null};function e$(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=kC(),f=j0(i),l=C0(a),h=NC();if(!c||!h)return null;ft(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Tf({x:f.scale,y:l.scale}),g=be(t),p=be(r),v=n&&n.length===2,w=QC(d,g,p,v,h,e.position,f.orientation,l.orientation,e);if(!w)return null;var b=KC(w,2),x=b[0],O=x.x,y=x.y,m=b[1],_=m.x,S=m.y,A=tt(e,"hidden")?"url(#".concat(c,")"):void 0,j=$g($g({clipPath:A},Z(e,!0)),{},{x1:O,y1:y,x2:_,y2:S});return T.createElement(ce,{className:ee("recharts-reference-line",u)},JC(o,j),Pe.renderCallByParent(e,OC({x1:O,y1:y,x2:_,y2:S})))}var If=(function(e){function t(){return LC(this,t),zC(this,t,arguments)}return HC(t,e),FC(t,[{key:"render",value:function(){return T.createElement(e$,this.props)}}])})(T.Component);$f(If,"displayName","ReferenceLine");$f(If,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function yl(){return yl=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},yl.apply(this,arguments)}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 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 Dg(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){wa(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 t$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D0(n.key),n)}}function n$(e,t,r){return t&&r$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function i$(e,t,r){return t=zi(t),a$(e,k0()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function a$(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 o$(e)}function o$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k0=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(e)}function u$(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 wa(e,t,r){return t=D0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D0(e){var t=s$(e,"string");return _r(t)=="symbol"?t:t+""}function s$(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 c$=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Tf({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return tt(t,"discard")&&!o.isInRange(u)?null:u},Oa=(function(e){function t(){return t$(this,t),i$(this,t,arguments)}return u$(t,e),n$(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=be(i),f=be(a);if(ft(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=c$(this.props);if(!l)return null;var h=l.x,d=l.y,g=this.props,p=g.shape,v=g.className,w=tt(this.props,"hidden")?"url(#".concat(s,")"):void 0,b=Dg(Dg({clipPath:w},Z(this.props,!0)),{},{cx:h,cy:d});return T.createElement(ce,{className:ee("recharts-reference-dot",v)},t.renderDot(p,b),Pe.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(T.Component);wa(Oa,"displayName","ReferenceDot");wa(Oa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});wa(Oa,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):X(e)?r=e(t):r=T.createElement(Af,yl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function ml(){return ml=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},ml.apply(this,arguments)}function Sr(e){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function Rg(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 Ng(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rg(Object(r),!0).forEach(function(n){_a(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N0(n.key),n)}}function h$(e,t,r){return t&&f$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d$(e,t,r){return t=Wi(t),p$(e,R0()?Reflect.construct(t,r||[],Wi(e).constructor):t.apply(e,r))}function p$(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 v$(e)}function v$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R0=function(){return!!e})()}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wi(e)}function y$(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&&bl(e,t)}function bl(e,t){return bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bl(e,t)}function _a(e,t,r){return t=N0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N0(e){var t=g$(e,"string");return Sr(t)=="symbol"?t:t+""}function g$(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var m$=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=Tf({x:f.scale,y:l.scale}),d={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(s,{position:"start"}):h.y.rangeMin},g={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(c,{position:"end"}):h.y.rangeMax};return tt(a,"discard")&&(!h.isInRange(d)||!h.isInRange(g))?null:_0(d,g)},Sa=(function(e){function t(){return l$(this,t),d$(this,t,arguments)}return y$(t,e),h$(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;ft(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=be(i),h=be(a),d=be(o),g=be(u),p=this.props.shape;if(!l&&!h&&!d&&!g&&!p)return null;var v=m$(l,h,d,g,this.props);if(!v&&!p)return null;var w=tt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(ce,{className:ee("recharts-reference-area",s)},t.renderRect(p,Ng(Ng({clipPath:w},Z(this.props,!0)),v)),Pe.renderCallByParent(this.props,v))}}])})(T.Component);_a(Sa,"displayName","ReferenceArea");_a(Sa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});_a(Sa,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):X(e)?r=e(t):r=T.createElement(Pf,ml({},t,{className:"recharts-reference-area-rect"})),r});function q0(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 b$(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return SC(n,r)}function x$(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 Ui(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 w$(e,t){return q0(e,t+1)}function O$(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var g=n==null?void 0:n[s];if(g===void 0)return{v:q0(n,c)};var p=s,v,w=function(){return v===void 0&&(v=r(g,p)),v},b=g.coordinate,x=s===0||Ui(e,b,w,f,u);x||(s=0,f=o,c+=1),x&&(f=b+e*(w()/2+i),s+=c)},h;c<=a.length;)if(h=l(),h)return h.v;return[]}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 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 Se(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){_$(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 _$(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=P$(e,"string");return $n(t)=="symbol"?t:t+""}function P$(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)}function A$(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(h){var d=a[h],g,p=function(){return g===void 0&&(g=r(d,h)),g};if(h===o-1){var v=e*(d.coordinate+e*p()/2-s);a[h]=d=Se(Se({},d),{},{tickCoord:v>0?d.coordinate-v*e:d.coordinate})}else a[h]=d=Se(Se({},d),{},{tickCoord:d.coordinate});var w=Ui(e,d.tickCoord,p,u,s);w&&(s=d.tickCoord-e*(p()/2+i),a[h]=Se(Se({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function T$(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-c);o[u-1]=f=Se(Se({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=Ui(e,f.tickCoord,function(){return l},s,c);d&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Se(Se({},f),{},{isShow:!0}))}for(var g=a?u-1:u,p=function(b){var x=o[b],O,y=function(){return O===void 0&&(O=r(x,b)),O};if(b===0){var m=e*(x.coordinate-e*y()/2-s);o[b]=x=Se(Se({},x),{},{tickCoord:m<0?x.coordinate-m*e:x.coordinate})}else o[b]=x=Se(Se({},x),{},{tickCoord:x.coordinate});var _=Ui(e,x.tickCoord,y,s,c);_&&(s=x.tickCoord+e*(y()/2+i),o[b]=Se(Se({},x),{},{isShow:!0}))},v=0;v<g;v++)p(v);return o}function kf(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(N(s)||Dr.isSsr)return w$(i,typeof s=="number"&&N(s)?s:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",g=f&&d==="width"?Yr(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(x,O){var y=X(c)?c(x.value,O):x.value;return d==="width"?b$(Yr(y,{fontSize:t,letterSpacing:r}),g,l):Yr(y,{fontSize:t,letterSpacing:r})[d]},v=i.length>=2?Ke(i[1].coordinate-i[0].coordinate):1,w=x$(a,v,d);return s==="equidistantPreserveStart"?O$(v,w,p,i,o):(s==="preserveStart"||s==="preserveStartEnd"?h=T$(v,w,p,i,o,s==="preserveStartEnd"):h=A$(v,w,p,i,o),h.filter(function(b){return b.isShow}))}var E$=["viewBox"],M$=["viewBox"],j$=["ticks"];function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nr.apply(this,arguments)}function 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 ge(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){Df(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 bc(e,t){if(e==null)return{};var r=C$(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 C$(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 $$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bg(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,B0(n.key),n)}}function I$(e,t,r){return t&&Bg(e.prototype,t),r&&Bg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k$(e,t,r){return t=Hi(t),D$(e,L0()?Reflect.construct(t,r||[],Hi(e).constructor):t.apply(e,r))}function D$(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R$(e)}function R$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L0=function(){return!!e})()}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hi(e)}function N$(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 Df(e,t,r){return t=B0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B0(e){var t=q$(e,"string");return Pr(t)=="symbol"?t:t+""}function q$(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lr=(function(e){function t(r){var n;return $$(this,t),n=k$(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return N$(t,e),I$(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=bc(n,E$),u=this.props,s=u.viewBox,c=bc(u,M$);return!ar(a,s)||!ar(o,c)||!ar(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,d,g,p,v,w,b,x=l?-1:1,O=n.tickSize||f,y=N(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":d=g=n.coordinate,v=o+ +!l*s,p=v-x*O,b=p-x*h,w=y;break;case"left":p=v=n.coordinate,g=a+ +!l*u,d=g-x*O,w=d-x*h,b=y;break;case"right":p=v=n.coordinate,g=a+ +l*u,d=g+x*O,w=d+x*h,b=y;break;default:d=g=n.coordinate,v=o+ +l*s,p=v+x*O,b=p+x*h,w=y;break}return{line:{x1:d,y1:p,x2:g,y2:v},tick:{x:w,y:b}}}},{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,s=n.orientation,c=n.mirror,f=n.axisLine,l=ge(ge(ge({},Z(this.props,!1)),Z(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!c||s==="bottom"&&c);l=ge(ge({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(s==="left"&&!c||s==="right"&&c);l=ge(ge({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return T.createElement("line",nr({},l,{className:ee("recharts-cartesian-axis-line",ze(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,d=kf(ge(ge({},this.props),{},{ticks:n}),i,a),g=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=Z(this.props,!1),w=Z(f,!1),b=ge(ge({},v),{},{fill:"none"},Z(s,!1)),x=d.map(function(O,y){var m=o.getTickLineCoord(O),_=m.line,S=m.tick,A=ge(ge(ge(ge({textAnchor:g,verticalAnchor:p},v),{},{stroke:"none",fill:c},w),S),{},{index:y,payload:O,visibleTicksCount:d.length,tickFormatter:l});return T.createElement(ce,nr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},ai(o.props,O,y)),s&&T.createElement("line",nr({},b,_,{className:ee("recharts-cartesian-axis-tick-line",ze(s,"className"))})),f&&t.renderTickItem(f,A,"".concat(X(l)?l(O.value,y):O.value).concat(h||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,d=bc(l,j$),g=h;return X(s)&&(g=h&&h.length>0?s(this.props):s(d)),o<=0||u<=0||!g||!g.length?null:T.createElement(ce,{className:ee("recharts-cartesian-axis",c),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),Pe.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,ge(ge({},i),{},{className:u})):X(n)?o=n(ge(ge({},i),{},{className:u})):o=T.createElement(yi,nr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(q.Component);Df(Lr,"displayName","CartesianAxis");Df(Lr,"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 L$=["x1","y1","x2","y2","key"],B$=["offset"];function Xt(e){"@babel/helpers - typeof";return Xt=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},Xt(e)}function Fg(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?Fg(Object(r),!0).forEach(function(n){F$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F$(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=W$(e,"string");return Xt(t)=="symbol"?t:t+""}function W$(e,t){if(Xt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ft(){return Ft=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},Ft.apply(this,arguments)}function zg(e,t){if(e==null)return{};var r=U$(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 U$(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 H$=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,s=t.ry;return T.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function F0(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(X(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=zg(t,L$),c=Z(s,!1);c.offset;var f=zg(c,B$);r=T.createElement("line",Ft({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function G$(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,s){var c=Ae(Ae({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return F0(i,c)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function K$(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,s){var c=Ae(Ae({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return F0(i,c)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function X$(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!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 g=!f[d+1],p=g?i+o-h:f[d+1]-h;if(p<=0)return null;var v=d%t.length;return T.createElement("rect",{key:"react-".concat(d),y:h,x:n,height:p,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function V$(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,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.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 g=!f[d+1],p=g?a+u-h:f[d+1]-h;if(p<=0)return null;var v=d%n.length;return T.createElement("rect",{key:"react-".concat(d),x:h,y:o,width:p,height:s,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var Y$=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return i0(kf(Ae(Ae(Ae({},Lr.defaultProps),n),{},{ticks:ct(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Z$=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return i0(kf(Ae(Ae(Ae({},Lr.defaultProps),n),{},{ticks:ct(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},tr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function z0(e){var t,r,n,i,a,o,u=jf(),s=Cf(),c=qC(),f=Ae(Ae({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:tr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:tr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:tr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:tr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:tr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:tr.verticalFill,x:N(e.x)?e.x:c.left,y:N(e.y)?e.y:c.top,width:N(e.width)?e.width:c.width,height:N(e.height)?e.height:c.height}),l=f.x,h=f.y,d=f.width,g=f.height,p=f.syncWithTicks,v=f.horizontalValues,w=f.verticalValues,b=DC(),x=RC();if(!N(d)||d<=0||!N(g)||g<=0||!N(l)||l!==+l||!N(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||Y$,y=f.horizontalCoordinatesGenerator||Z$,m=f.horizontalPoints,_=f.verticalPoints;if((!m||!m.length)&&X(y)){var S=v&&v.length,A=y({yAxis:x?Ae(Ae({},x),{},{ticks:S?v:x.ticks}):void 0,width:u,height:s,offset:c},S?!0:p);ft(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Xt(A),"]")),Array.isArray(A)&&(m=A)}if((!_||!_.length)&&X(O)){var j=w&&w.length,P=O({xAxis:b?Ae(Ae({},b),{},{ticks:j?w:b.ticks}):void 0,width:u,height:s,offset:c},j?!0:p);ft(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Xt(P),"]")),Array.isArray(P)&&(_=P)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(H$,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(G$,Ft({},f,{offset:c,horizontalPoints:m,xAxis:b,yAxis:x})),T.createElement(K$,Ft({},f,{offset:c,verticalPoints:_,xAxis:b,yAxis:x})),T.createElement(X$,Ft({},f,{horizontalPoints:m})),T.createElement(V$,Ft({},f,{verticalPoints:_})))}z0.displayName="CartesianGrid";var J$=["layout","type","stroke","connectNulls","isRange","ref"],Q$=["key"],W0;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 U0(e,t){if(e==null)return{};var r=eI(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 eI(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 zt(){return zt=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},zt.apply(this,arguments)}function Wg(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 xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(r),!0).forEach(function(n){Qe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ug(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,G0(n.key),n)}}function rI(e,t,r){return t&&Ug(e.prototype,t),r&&Ug(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nI(e,t,r){return t=Gi(t),iI(e,H0()?Reflect.construct(t,r||[],Gi(e).constructor):t.apply(e,r))}function iI(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 aI(e)}function aI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H0=function(){return!!e})()}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(e)}function oI(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 Qe(e,t,r){return t=G0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G0(e){var t=uI(e,"string");return Ar(t)=="symbol"?t:t+""}function uI(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 Ct=(function(e){function t(){var r;tI(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=nI(this,t,[].concat(i)),Qe(r,"state",{isAnimationFinished:!0}),Qe(r,"id",Rn("recharts-area-")),Qe(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),X(o)&&o()}),Qe(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),X(o)&&o()}),r}return oI(t,e),rI(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,h=Z(this.props,!1),d=Z(c,!0),g=f.map(function(v,w){var b=xt(xt(xt({key:"dot-".concat(w),r:3},h),d),{},{index:w,cx:v.x,cy:v.y,dataKey:l,value:v.value,payload:v.payload,points:f});return t.renderDotItem(c,b)}),p={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return T.createElement(ce,zt({className:"recharts-area-dots"},p),g)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=_t(o.map(function(h){return h.y||0}));return N(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(_t(a.map(function(h){return h.y||0})),l)),N(l)?T.createElement("rect",{x:s<c?s:s-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,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=_t(o.map(function(h){return h.x||0}));return N(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(_t(a.map(function(h){return h.x||0})),l)),N(l)?T.createElement("rect",{x:0,y:s<c?s:s-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,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,h=u.isRange;u.ref;var d=U0(u,J$);return T.createElement(ce,{clipPath:a?"url(#clipPath-".concat(o,")"):null},T.createElement(Qr,zt({},Z(d,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&T.createElement(Qr,zt({},Z(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&T.createElement(Qr,zt({},Z(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,d=o.animationId,g=this.state,p=g.prevPoints,v=g.prevBaseLine;return T.createElement(cr,{begin:f,duration:l,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var b=w.t;if(p){var x=p.length/u.length,O=u.map(function(S,A){var j=Math.floor(A*x);if(p[j]){var P=p[j],E=Be(P.x,S.x),M=Be(P.y,S.y);return xt(xt({},S),{},{x:E(b),y:M(b)})}return S}),y;if(N(s)&&typeof s=="number"){var m=Be(v,s);y=m(b)}else if(J(s)||Ir(s)){var _=Be(v,0);y=_(b)}else y=s.map(function(S,A){var j=Math.floor(A*x);if(v[j]){var P=v[j],E=Be(P.x,S.x),M=Be(P.y,S.y);return xt(xt({},S),{},{x:E(b),y:M(b)})}return S});return a.renderAreaStatically(O,y,n,i)}return T.createElement(ce,null,T.createElement("defs",null,T.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),T.createElement(ce,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,h=c.totalLength;return s&&o&&o.length&&(!f&&h>0||!dn(f,o)||!dn(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,s=i.className,c=i.top,f=i.left,l=i.xAxis,h=i.yAxis,d=i.width,g=i.height,p=i.isAnimationActive,v=i.id;if(a||!u||!u.length)return null;var w=this.state.isAnimationFinished,b=u.length===1,x=ee("recharts-area",s),O=l&&l.allowDataOverflow,y=h&&h.allowDataOverflow,m=O||y,_=J(v)?this.id:v,S=(n=Z(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=S.r,j=A===void 0?3:A,P=S.strokeWidth,E=P===void 0?2:P,M=aw(o)?o:{},I=M.clipDot,C=I===void 0?!0:I,k=j*2+E;return T.createElement(ce,{className:x},O||y?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(_)},T.createElement("rect",{x:O?f:f-d/2,y:y?c:c-g/2,width:O?d:d*2,height:y?g:g*2})),!C&&T.createElement("clipPath",{id:"clipPath-dots-".concat(_)},T.createElement("rect",{x:f-k/2,y:c-k/2,width:d+k,height:g+k}))):null,b?null:this.renderArea(m,_),(o||b)&&this.renderDots(m,C,_),(!p||w)&&At.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}}])})(q.PureComponent);W0=Ct;Qe(Ct,"displayName","Area");Qe(Ct,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Dr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Qe(Ct,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(N(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});Qe(Ct,"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,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=t.layout,g=c&&c.length,p=W0.getBaseValue(t,r,n,i),v=d==="horizontal",w=!1,b=l.map(function(O,y){var m;g?m=c[f+y]:(m=Re(O,s),Array.isArray(m)?w=!0:m=[p,m]);var _=m[1]==null||g&&Re(O,s)==null;return v?{x:Ay({axis:n,ticks:a,bandSize:u,entry:O,index:y}),y:_?null:i.scale(m[1]),value:m,payload:O}:{x:_?null:n.scale(m[1]),y:Ay({axis:i,ticks:o,bandSize:u,entry:O,index:y}),value:m,payload:O}}),x;return g||w?x=b.map(function(O){var y=Array.isArray(O.value)?O.value[0]:null;return v?{x:O.x,y:y!=null&&O.y!=null?i.scale(y):null}:{x:y!=null?n.scale(y):null,y:O.y}}):x=v?i.scale(p):n.scale(p),xt({points:b,baseLine:x,layout:d,isRange:w},h)});Qe(Ct,"renderDotItem",function(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(X(e))r=e(t);else{var n=ee("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=U0(t,Q$);r=T.createElement(Af,zt({},a,{key:i,className:n}))}return r});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 sI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cI(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,V0(n.key),n)}}function lI(e,t,r){return t&&cI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fI(e,t,r){return t=Ki(t),hI(e,K0()?Reflect.construct(t,r||[],Ki(e).constructor):t.apply(e,r))}function hI(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 dI(e)}function dI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K0=function(){return!!e})()}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(e)}function pI(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=V0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V0(e){var t=vI(e,"string");return Tr(t)=="symbol"?t:t+""}function vI(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_l.apply(this,arguments)}function yI(e){var t=e.xAxisId,r=jf(),n=Cf(),i=j0(t);return i==null?null:q.createElement(Lr,_l({},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 ct(o,!0)}}))}var Pa=(function(e){function t(){return sI(this,t),fI(this,t,arguments)}return pI(t,e),lI(t,[{key:"render",value:function(){return q.createElement(yI,this.props)}}])})(q.Component);X0(Pa,"displayName","XAxis");X0(Pa,"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 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 gI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mI(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,J0(n.key),n)}}function bI(e,t,r){return t&&mI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xI(e,t,r){return t=Xi(t),wI(e,Y0()?Reflect.construct(t,r||[],Xi(e).constructor):t.apply(e,r))}function wI(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 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 Y0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y0=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(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&&Sl(e,t)}function Sl(e,t){return Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sl(e,t)}function Z0(e,t,r){return t=J0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J0(e){var t=SI(e,"string");return Er(t)=="symbol"?t:t+""}function SI(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 Pl(){return Pl=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},Pl.apply(this,arguments)}var PI=function(t){var r=t.yAxisId,n=jf(),i=Cf(),a=C0(r);return a==null?null:q.createElement(Lr,Pl({},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 ct(u,!0)}}))},Aa=(function(e){function t(){return gI(this,t),xI(this,t,arguments)}return _I(t,e),bI(t,[{key:"render",value:function(){return q.createElement(PI,this.props)}}])})(q.Component);Z0(Aa,"displayName","YAxis");Z0(Aa,"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 Hg(e){return MI(e)||EI(e)||TI(e)||AI()}function AI(){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 TI(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 EI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MI(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}var Tl=function(t,r,n,i,a){var o=Ve(t,If),u=Ve(t,Oa),s=[].concat(Hg(o),Hg(u)),c=Ve(t,Sa),f="".concat(i,"Id"),l=i[0],h=r;if(s.length&&(h=s.reduce(function(p,v){if(v.props[f]===n&&tt(v.props,"extendDomain")&&N(v.props[l])){var w=v.props[l];return[Math.min(p[0],w),Math.max(p[1],w)]}return p},h)),c.length){var d="".concat(l,"1"),g="".concat(l,"2");h=c.reduce(function(p,v){if(v.props[f]===n&&tt(v.props,"extendDomain")&&N(v.props[d])&&N(v.props[g])){var w=v.props[d],b=v.props[g];return[Math.min(p[0],w,b),Math.max(p[1],w,b)]}return p},h)}return a&&a.length&&(h=a.reduce(function(p,v){return N(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},h)),h},xc={exports:{}},Gg;function jI(){return Gg||(Gg=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(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||s,h),g=r?r+c:c;return s._events[g]?s._events[g].fn?s._events[g]=[s._events[g],d]:s._events[g].push(d):(s._events[g]=d,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,d=l.length,g=new Array(d);h<d;h++)g[h]=l[h].fn;return g},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,h,d,g){var p=r?r+c:c;if(!this._events[p])return!1;var v=this._events[p],w=arguments.length,b,x;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),w){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,l),!0;case 4:return v.fn.call(v.context,f,l,h),!0;case 5:return v.fn.call(v.context,f,l,h,d),!0;case 6:return v.fn.call(v.context,f,l,h,d,g),!0}for(x=1,b=new Array(w-1);x<w;x++)b[x-1]=arguments[x];v.fn.apply(v.context,b)}else{var O=v.length,y;for(x=0;x<O;x++)switch(v[x].once&&this.removeListener(c,v[x].fn,void 0,!0),w){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,f);break;case 3:v[x].fn.call(v[x].context,f,l);break;case 4:v[x].fn.call(v[x].context,f,l,h);break;default:if(!b)for(y=1,b=new Array(w-1);y<w;y++)b[y-1]=arguments[y];v[x].fn.apply(v[x].context,b)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,h){var d=r?r+c:c;if(!this._events[d])return this;if(!f)return o(this,d),this;var g=this._events[d];if(g.fn)g.fn===f&&(!h||g.once)&&(!l||g.context===l)&&o(this,d);else{for(var p=0,v=[],w=g.length;p<w;p++)(g[p].fn!==f||h&&!g[p].once||l&&g[p].context!==l)&&v.push(g[p]);v.length?this._events[d]=v.length===1?v[0]:v:o(this,d)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,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})(xc)),xc.exports}var CI=jI();const $I=ue(CI);var wc=new $I,Oc="recharts.syncMouseEvents";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 II(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kI(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,Q0(n.key),n)}}function DI(e,t,r){return t&&kI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _c(e,t,r){return t=Q0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q0(e){var t=RI(e,"string");return In(t)=="symbol"?t:t+""}function RI(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var NI=(function(){function e(){II(this,e),_c(this,"activeIndex",0),_c(this,"coordinateList",[]),_c(this,"layout","horizontal")}return DI(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,s=r.layout,c=s===void 0?null:s,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=c??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,s=this.coordinateList[this.activeIndex].coordinate,c=((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+s+c,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function qI(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&N(n)&&N(i))return!0}return!1}function LI(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 ex(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=_e(t,r,n,i),u=_e(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function BI(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,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,h=_e(u,s,c,l),d=_e(u,s,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return ex(t);return[{x:n,y:i},{x:a,y:o}]}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 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 ti(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){FI(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 FI(e,t,r){return t=zI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zI(e){var t=WI(e,"string");return kn(t)=="symbol"?t:t+""}function WI(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UI(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=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 g,p=Qr;if(h==="ScatterChart")g=o,p=HM;else if(h==="BarChart")g=LI(l,o,s,f),p=Pf;else if(l==="radial"){var v=ex(o),w=v.cx,b=v.cy,x=v.radius,O=v.startAngle,y=v.endAngle;g={cx:w,cy:b,startAngle:O,endAngle:y,innerRadius:x,outerRadius:x},p=d0}else g={points:BI(l,o,s)},p=Qr;var m=ti(ti(ti(ti({stroke:"#ccc",pointerEvents:"none"},s),g),Z(d,!1)),{},{payload:u,payloadIndex:c,className:ee("recharts-tooltip-cursor",d.className)});return q.isValidElement(d)?q.cloneElement(d,m):q.createElement(p,m)}var HI=["item"],GI=["children","className","width","height","style","compact","title","desc"];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 ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}function Xg(e,t){return VI(e)||XI(e,t)||rx(e,t)||KI()}function KI(){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 XI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function VI(e){if(Array.isArray(e))return e}function Vg(e,t){if(e==null)return{};var r=YI(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 YI(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 ZI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JI(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 QI(e,t,r){return t&&JI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ek(e,t,r){return t=Vi(t),tk(e,tx()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function tk(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 rk(e)}function rk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tx=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function nk(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&&El(e,t)}function El(e,t){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},El(e,t)}function jr(e){return ok(e)||ak(e)||rx(e)||ik()}function ik(){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 rx(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 ak(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ok(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}function Yg(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?Yg(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(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=uk(e,"string");return Mr(t)=="symbol"?t:t+""}function uk(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(t==="string"?String:Number)(e)}var sk={xAxis:["bottom","top"],yAxis:["left","right"]},ck={width:"100%",height:"100%"},ix={x:0,y:0};function ri(e){return e}var lk=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},fk=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),_e(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return $($($({},i),_e(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return ix},Ta=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(jr(u),jr(c)):u},[]);return o.length>0?o:t&&t.length&&N(i)&&N(a)?t.slice(i,a+1):[]};function ax(e){return e==="number"?[0,"auto"]:void 0}var jl=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ta(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.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=ni(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(jr(s),[c0(c,h)]):s},[])},Zg=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=lk(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=aE(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,h=jl(t,r,f,l),d=fk(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},hk=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,d=n0(f,a);return n.reduce(function(g,p){var v,w=p.type.defaultProps!==void 0?$($({},p.type.defaultProps),p.props):p.props,b=w.type,x=w.dataKey,O=w.allowDataOverflow,y=w.allowDuplicatedCategory,m=w.scale,_=w.ticks,S=w.includeHidden,A=w[o];if(g[A])return g;var j=Ta(t.data,{graphicalItems:i.filter(function(z){var K,ae=o in z.props?z.props[o]:(K=z.type.defaultProps)===null||K===void 0?void 0:K[o];return ae===A}),dataStartIndex:s,dataEndIndex:c}),P=j.length,E,M,I;qI(w.domain,O,b)&&(E=il(w.domain,null,O),d&&(b==="number"||m!=="auto")&&(I=Jr(j,x,"category")));var C=ax(b);if(!E||E.length===0){var k,R=(k=w.domain)!==null&&k!==void 0?k:C;if(x){if(E=Jr(j,x,b),b==="category"&&d){var L=Vx(E);y&&L?(M=E,E=Ri(0,P)):y||(E=jy(R,E,p).reduce(function(z,K){return z.indexOf(K)>=0?z:[].concat(jr(z),[K])},[]))}else if(b==="category")y?E=E.filter(function(z){return z!==""&&!J(z)}):E=jy(R,E,p).reduce(function(z,K){return z.indexOf(K)>=0||K===""||J(K)?z:[].concat(jr(z),[K])},[]);else if(b==="number"){var B=lE(j,i.filter(function(z){var K,ae,he=o in z.props?z.props[o]:(K=z.type.defaultProps)===null||K===void 0?void 0:K[o],$e="hide"in z.props?z.props.hide:(ae=z.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return he===A&&(S||!$e)}),x,a,f);B&&(E=B)}d&&(b==="number"||m!=="auto")&&(I=Jr(j,x,"category"))}else d?E=Ri(0,P):u&&u[A]&&u[A].hasStack&&b==="number"?E=h==="expand"?[0,1]:s0(u[A].stackGroups,s,c):E=r0(j,i.filter(function(z){var K=o in z.props?z.props[o]:z.type.defaultProps[o],ae="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return K===A&&(S||!ae)}),b,f,!0);if(b==="number")E=Tl(l,E,A,a,_),R&&(E=il(R,E,O));else if(b==="category"&&R){var U=R,G=E.every(function(z){return U.indexOf(z)>=0});G&&(E=U)}}return $($({},g),{},H({},A,$($({},w),{},{axisType:a,domain:E,categoricalDomain:I,duplicateDomain:M,originalDomain:(v=w.domain)!==null&&v!==void 0?v:C,isCategorical:d,layout:f})))},{})},dk=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,h=Ta(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=h.length,g=n0(f,a),p=-1;return n.reduce(function(v,w){var b=w.type.defaultProps!==void 0?$($({},w.type.defaultProps),w.props):w.props,x=b[o],O=ax("number");if(!v[x]){p++;var y;return g?y=Ri(0,d):u&&u[x]&&u[x].hasStack?(y=s0(u[x].stackGroups,s,c),y=Tl(l,y,x,a)):(y=il(O,r0(h,n.filter(function(m){var _,S,A=o in m.props?m.props[o]:(_=m.type.defaultProps)===null||_===void 0?void 0:_[o],j="hide"in m.props?m.props.hide:(S=m.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===x&&!j}),"number",f),i.defaultProps.allowDataOverflow),y=Tl(l,y,x,a)),$($({},v),{},H({},x,$($({axisType:a},i.defaultProps),{},{hide:!0,orientation:ze(sk,"".concat(a,".").concat(p%2),null),domain:y,originalDomain:O,isCategorical:g,layout:f})))}return v},{})},pk=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Ve(f,a),d={};return h&&h.length?d=hk(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(d=dk(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),d},vk=function(t){var r=Ot(t),n=ct(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Zl(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ji(r,n)}},Jg=function(t){var r=t.children,n=t.defaultShowTooltip,i=ke(r,xr),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}},yk=function(t){return!t||!t.length?!1:t.some(function(r){var n=lt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Qg=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"}},gk=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,h=n.margin||{},d=ke(l,xr),g=ke(l,or),p=Object.keys(s).reduce(function(y,m){var _=s[m],S=_.orientation;return!_.mirror&&!_.hide?$($({},y),{},H({},S,y[S]+_.width)):y},{left:h.left||0,right:h.right||0}),v=Object.keys(o).reduce(function(y,m){var _=o[m],S=_.orientation;return!_.mirror&&!_.hide?$($({},y),{},H({},S,ze(y,"".concat(S))+_.height)):y},{top:h.top||0,bottom:h.bottom||0}),w=$($({},v),p),b=w.bottom;d&&(w.bottom+=d.props.height||xr.defaultProps.height),g&&r&&(w=sE(w,i,n,r));var x=c-w.left-w.right,O=f-w.top-w.bottom;return $($({brushBottom:b},w),{},{width:Math.max(x,0),height:Math.max(O,0)})},mk=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},bk=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,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(w,b){var x=b.graphicalItems,O=b.stackGroups,y=b.offset,m=b.updateId,_=b.dataStartIndex,S=b.dataEndIndex,A=w.barSize,j=w.layout,P=w.barGap,E=w.barCategoryGap,M=w.maxBarSize,I=Qg(j),C=I.numericAxisName,k=I.cateAxisName,R=yk(x),L=[];return x.forEach(function(B,U){var G=Ta(w.data,{graphicalItems:[B],dataStartIndex:_,dataEndIndex:S}),z=B.type.defaultProps!==void 0?$($({},B.type.defaultProps),B.props):B.props,K=z.dataKey,ae=z.maxBarSize,he=z["".concat(C,"Id")],$e=z["".concat(k,"Id")],$t={},Ee=s.reduce(function(It,kt){var Ea=b["".concat(kt.axisType,"Map")],Rf=z["".concat(kt.axisType,"Id")];Ea&&Ea[Rf]||kt.axisType==="zAxis"||Kt();var Nf=Ea[Rf];return $($({},It),{},H(H({},kt.axisType,Nf),"".concat(kt.axisType,"Ticks"),ct(Nf)))},$t),F=Ee[k],V=Ee["".concat(k,"Ticks")],Y=O&&O[he]&&O[he].hasStack&&bE(B,O[he].stackGroups),D=lt(B.type).indexOf("Bar")>=0,le=ji(F,V),Q=[],ve=R&&oE({barSize:A,stackGroups:O,totalSize:mk(Ee,k)});if(D){var ye,Me,bt=J(ae)?M:ae,Jt=(ye=(Me=ji(F,V,!0))!==null&&Me!==void 0?Me:bt)!==null&&ye!==void 0?ye:0;Q=uE({barGap:P,barCategoryGap:E,bandSize:Jt!==le?Jt:le,sizeList:ve[$e],maxBarSize:bt}),Jt!==le&&(Q=Q.map(function(It){return $($({},It),{},{position:$($({},It.position),{},{offset:It.position.offset-Jt/2})})}))}var Wn=B&&B.type&&B.type.getComposedData;Wn&&L.push({props:$($({},Wn($($({},Ee),{},{displayedData:G,props:w,dataKey:K,item:B,bandSize:le,barPosition:Q,offset:y,stackedData:Y,layout:j,dataStartIndex:_,dataEndIndex:S}))),{},H(H(H({key:B.key||"item-".concat(U)},C,Ee[C]),k,Ee[k]),"animationId",m)),childIndex:sw(B,w.children),item:B})}),L},d=function(w,b){var x=w.props,O=w.dataStartIndex,y=w.dataEndIndex,m=w.updateId;if(!Uh({props:x}))return null;var _=x.children,S=x.layout,A=x.stackOffset,j=x.data,P=x.reverseStackOrder,E=Qg(S),M=E.numericAxisName,I=E.cateAxisName,C=Ve(_,n),k=gE(j,C,"".concat(M,"Id"),"".concat(I,"Id"),A,P),R=s.reduce(function(z,K){var ae="".concat(K.axisType,"Map");return $($({},z),{},H({},ae,pk(x,$($({},K),{},{graphicalItems:C,stackGroups:K.axisType===M&&k,dataStartIndex:O,dataEndIndex:y}))))},{}),L=gk($($({},R),{},{props:x,graphicalItems:C}),b==null?void 0:b.legendBBox);Object.keys(R).forEach(function(z){R[z]=f(x,R[z],L,z.replace("Map",""),r)});var B=R["".concat(I,"Map")],U=vk(B),G=h(x,$($({},R),{},{dataStartIndex:O,dataEndIndex:y,updateId:m,graphicalItems:C,stackGroups:k,offset:L}));return $($({formattedGraphicalItems:G,graphicalItems:C,offset:L,stackGroups:k},U),R)},g=(function(v){function w(b){var x,O,y;return ZI(this,w),y=ek(this,w,[b]),H(y,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(y,"accessibilityManager",new NI),H(y,"handleLegendBBoxUpdate",function(m){if(m){var _=y.state,S=_.dataStartIndex,A=_.dataEndIndex,j=_.updateId;y.setState($({legendBBox:m},d({props:y.props,dataStartIndex:S,dataEndIndex:A,updateId:j},$($({},y.state),{},{legendBBox:m}))))}}),H(y,"handleReceiveSyncEvent",function(m,_,S){if(y.props.syncId===m){if(S===y.eventEmitterSymbol&&typeof y.props.syncMethod!="function")return;y.applySyncEvent(_)}}),H(y,"handleBrushChange",function(m){var _=m.startIndex,S=m.endIndex;if(_!==y.state.dataStartIndex||S!==y.state.dataEndIndex){var A=y.state.updateId;y.setState(function(){return $({dataStartIndex:_,dataEndIndex:S},d({props:y.props,dataStartIndex:_,dataEndIndex:S,updateId:A},y.state))}),y.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),H(y,"handleMouseEnter",function(m){var _=y.getMouseInfo(m);if(_){var S=$($({},_),{},{isTooltipActive:!0});y.setState(S),y.triggerSyncEvent(S);var A=y.props.onMouseEnter;X(A)&&A(S,m)}}),H(y,"triggeredAfterMouseMove",function(m){var _=y.getMouseInfo(m),S=_?$($({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};y.setState(S),y.triggerSyncEvent(S);var A=y.props.onMouseMove;X(A)&&A(S,m)}),H(y,"handleItemMouseEnter",function(m){y.setState(function(){return{isTooltipActive:!0,activeItem:m,activePayload:m.tooltipPayload,activeCoordinate:m.tooltipPosition||{x:m.cx,y:m.cy}}})}),H(y,"handleItemMouseLeave",function(){y.setState(function(){return{isTooltipActive:!1}})}),H(y,"handleMouseMove",function(m){m.persist(),y.throttleTriggeredAfterMouseMove(m)}),H(y,"handleMouseLeave",function(m){y.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};y.setState(_),y.triggerSyncEvent(_);var S=y.props.onMouseLeave;X(S)&&S(_,m)}),H(y,"handleOuterEvent",function(m){var _=uw(m),S=ze(y.props,"".concat(_));if(_&&X(S)){var A,j;/.*touch.*/i.test(_)?j=y.getMouseInfo(m.changedTouches[0]):j=y.getMouseInfo(m),S((A=j)!==null&&A!==void 0?A:{},m)}}),H(y,"handleClick",function(m){var _=y.getMouseInfo(m);if(_){var S=$($({},_),{},{isTooltipActive:!0});y.setState(S),y.triggerSyncEvent(S);var A=y.props.onClick;X(A)&&A(S,m)}}),H(y,"handleMouseDown",function(m){var _=y.props.onMouseDown;if(X(_)){var S=y.getMouseInfo(m);_(S,m)}}),H(y,"handleMouseUp",function(m){var _=y.props.onMouseUp;if(X(_)){var S=y.getMouseInfo(m);_(S,m)}}),H(y,"handleTouchMove",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&y.throttleTriggeredAfterMouseMove(m.changedTouches[0])}),H(y,"handleTouchStart",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&y.handleMouseDown(m.changedTouches[0])}),H(y,"handleTouchEnd",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&y.handleMouseUp(m.changedTouches[0])}),H(y,"handleDoubleClick",function(m){var _=y.props.onDoubleClick;if(X(_)){var S=y.getMouseInfo(m);_(S,m)}}),H(y,"handleContextMenu",function(m){var _=y.props.onContextMenu;if(X(_)){var S=y.getMouseInfo(m);_(S,m)}}),H(y,"triggerSyncEvent",function(m){y.props.syncId!==void 0&&wc.emit(Oc,y.props.syncId,m,y.eventEmitterSymbol)}),H(y,"applySyncEvent",function(m){var _=y.props,S=_.layout,A=_.syncMethod,j=y.state.updateId,P=m.dataStartIndex,E=m.dataEndIndex;if(m.dataStartIndex!==void 0||m.dataEndIndex!==void 0)y.setState($({dataStartIndex:P,dataEndIndex:E},d({props:y.props,dataStartIndex:P,dataEndIndex:E,updateId:j},y.state)));else if(m.activeTooltipIndex!==void 0){var M=m.chartX,I=m.chartY,C=m.activeTooltipIndex,k=y.state,R=k.offset,L=k.tooltipTicks;if(!R)return;if(typeof A=="function")C=A(L,m);else if(A==="value"){C=-1;for(var B=0;B<L.length;B++)if(L[B].value===m.activeLabel){C=B;break}}var U=$($({},R),{},{x:R.left,y:R.top}),G=Math.min(M,U.x+U.width),z=Math.min(I,U.y+U.height),K=L[C]&&L[C].value,ae=jl(y.state,y.props.data,C),he=L[C]?{x:S==="horizontal"?L[C].coordinate:G,y:S==="horizontal"?z:L[C].coordinate}:ix;y.setState($($({},m),{},{activeLabel:K,activeCoordinate:he,activePayload:ae,activeTooltipIndex:C}))}else y.setState(m)}),H(y,"renderCursor",function(m){var _,S=y.state,A=S.isTooltipActive,j=S.activeCoordinate,P=S.activePayload,E=S.offset,M=S.activeTooltipIndex,I=S.tooltipAxisBandSize,C=y.getTooltipEventType(),k=(_=m.props.active)!==null&&_!==void 0?_:A,R=y.props.layout,L=m.key||"_recharts-cursor";return T.createElement(UI,{key:L,activeCoordinate:j,activePayload:P,activeTooltipIndex:M,chartName:r,element:m,isActive:k,layout:R,offset:E,tooltipAxisBandSize:I,tooltipEventType:C})}),H(y,"renderPolarAxis",function(m,_,S){var A=ze(m,"type.axisType"),j=ze(y.state,"".concat(A,"Map")),P=m.type.defaultProps,E=P!==void 0?$($({},P),m.props):m.props,M=j&&j[E["".concat(A,"Id")]];return q.cloneElement(m,$($({},M),{},{className:ee(A,M.className),key:m.key||"".concat(_,"-").concat(S),ticks:ct(M,!0)}))}),H(y,"renderPolarGrid",function(m){var _=m.props,S=_.radialLines,A=_.polarAngles,j=_.polarRadius,P=y.state,E=P.radiusAxisMap,M=P.angleAxisMap,I=Ot(E),C=Ot(M),k=C.cx,R=C.cy,L=C.innerRadius,B=C.outerRadius;return q.cloneElement(m,{polarAngles:Array.isArray(A)?A:ct(C,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(j)?j:ct(I,!0).map(function(U){return U.coordinate}),cx:k,cy:R,innerRadius:L,outerRadius:B,key:m.key||"polar-grid",radialLines:S})}),H(y,"renderLegend",function(){var m=y.state.formattedGraphicalItems,_=y.props,S=_.children,A=_.width,j=_.height,P=y.props.margin||{},E=A-(P.left||0)-(P.right||0),M=e0({children:S,formattedGraphicalItems:m,legendWidth:E,legendContent:c});if(!M)return null;var I=M.item,C=Vg(M,HI);return q.cloneElement(I,$($({},C),{},{chartWidth:A,chartHeight:j,margin:P,onBBoxUpdate:y.handleLegendBBoxUpdate}))}),H(y,"renderTooltip",function(){var m,_=y.props,S=_.children,A=_.accessibilityLayer,j=ke(S,Ze);if(!j)return null;var P=y.state,E=P.isTooltipActive,M=P.activeCoordinate,I=P.activePayload,C=P.activeLabel,k=P.offset,R=(m=j.props.active)!==null&&m!==void 0?m:E;return q.cloneElement(j,{viewBox:$($({},k),{},{x:k.left,y:k.top}),active:R,label:C,payload:R?I:[],coordinate:M,accessibilityLayer:A})}),H(y,"renderBrush",function(m){var _=y.props,S=_.margin,A=_.data,j=y.state,P=j.offset,E=j.dataStartIndex,M=j.dataEndIndex,I=j.updateId;return q.cloneElement(m,{key:m.key||"_recharts-brush",onChange:Jn(y.handleBrushChange,m.props.onChange),data:A,x:N(m.props.x)?m.props.x:P.left,y:N(m.props.y)?m.props.y:P.top+P.height+P.brushBottom-(S.bottom||0),width:N(m.props.width)?m.props.width:P.width,startIndex:E,endIndex:M,updateId:"brush-".concat(I)})}),H(y,"renderReferenceElement",function(m,_,S){if(!m)return null;var A=y,j=A.clipPathId,P=y.state,E=P.xAxisMap,M=P.yAxisMap,I=P.offset,C=m.type.defaultProps||{},k=m.props,R=k.xAxisId,L=R===void 0?C.xAxisId:R,B=k.yAxisId,U=B===void 0?C.yAxisId:B;return q.cloneElement(m,{key:m.key||"".concat(_,"-").concat(S),xAxis:E[L],yAxis:M[U],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:j})}),H(y,"renderActivePoints",function(m){var _=m.item,S=m.activePoint,A=m.basePoint,j=m.childIndex,P=m.isRange,E=[],M=_.props.key,I=_.item.type.defaultProps!==void 0?$($({},_.item.type.defaultProps),_.item.props):_.item.props,C=I.activeDot,k=I.dataKey,R=$($({index:j,dataKey:k,cx:S.x,cy:S.y,r:4,fill:Sf(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},Z(C,!1)),ii(C));return E.push(w.renderActiveDot(C,R,"".concat(M,"-activePoint-").concat(j))),A?E.push(w.renderActiveDot(C,$($({},R),{},{cx:A.x,cy:A.y}),"".concat(M,"-basePoint-").concat(j))):P&&E.push(null),E}),H(y,"renderGraphicChild",function(m,_,S){var A=y.filterFormatItem(m,_,S);if(!A)return null;var j=y.getTooltipEventType(),P=y.state,E=P.isTooltipActive,M=P.tooltipAxis,I=P.activeTooltipIndex,C=P.activeLabel,k=y.props.children,R=ke(k,Ze),L=A.props,B=L.points,U=L.isRange,G=L.baseLine,z=A.item.type.defaultProps!==void 0?$($({},A.item.type.defaultProps),A.item.props):A.item.props,K=z.activeDot,ae=z.hide,he=z.activeBar,$e=z.activeShape,$t=!!(!ae&&E&&R&&(K||he||$e)),Ee={};j!=="axis"&&R&&R.props.trigger==="click"?Ee={onClick:Jn(y.handleItemMouseEnter,m.props.onClick)}:j!=="axis"&&(Ee={onMouseLeave:Jn(y.handleItemMouseLeave,m.props.onMouseLeave),onMouseEnter:Jn(y.handleItemMouseEnter,m.props.onMouseEnter)});var F=q.cloneElement(m,$($({},A.props),Ee));function V(kt){return typeof M.dataKey=="function"?M.dataKey(kt.payload):null}if($t)if(I>=0){var Y,D;if(M.dataKey&&!M.allowDuplicatedCategory){var le=typeof M.dataKey=="function"?V:"payload.".concat(M.dataKey.toString());Y=ni(B,le,C),D=U&&G&&ni(G,le,C)}else Y=B==null?void 0:B[I],D=U&&G&&G[I];if($e||he){var Q=m.props.activeIndex!==void 0?m.props.activeIndex:I;return[q.cloneElement(m,$($($({},A.props),Ee),{},{activeIndex:Q})),null,null]}if(!J(Y))return[F].concat(jr(y.renderActivePoints({item:A,activePoint:Y,basePoint:D,childIndex:I,isRange:U})))}else{var ve,ye=(ve=y.getItemByXY(y.state.activeCoordinate))!==null&&ve!==void 0?ve:{graphicalItem:F},Me=ye.graphicalItem,bt=Me.item,Jt=bt===void 0?m:bt,Wn=Me.childIndex,It=$($($({},A.props),Ee),{},{activeIndex:Wn});return[q.cloneElement(Jt,It),null,null]}return U?[F,null,null]:[F,null]}),H(y,"renderCustomized",function(m,_,S){return q.cloneElement(m,$($({key:"recharts-customized-".concat(S)},y.props),y.state))}),H(y,"renderMap",{CartesianGrid:{handler:ri,once:!0},ReferenceArea:{handler:y.renderReferenceElement},ReferenceLine:{handler:ri},ReferenceDot:{handler:y.renderReferenceElement},XAxis:{handler:ri},YAxis:{handler:ri},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((x=b.id)!==null&&x!==void 0?x:Rn("recharts"),"-clip"),y.throttleTriggeredAfterMouseMove=Qm(y.triggeredAfterMouseMove,(O=b.throttleDelay)!==null&&O!==void 0?O:1e3/60),y.state={},y}return nk(w,v),QI(w,[{key:"componentDidMount",value:function(){var x,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x: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 x=this.props,O=x.children,y=x.data,m=x.height,_=x.layout,S=ke(O,Ze);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,P=jl(this.state,y,A,j),E=this.state.tooltipTicks[A].coordinate,M=(this.state.offset.top+m)/2,I=_==="horizontal",C=I?{x:E,y:M}:{y:E,x:M},k=this.state.formattedGraphicalItems.find(function(L){var B=L.item;return B.type.name==="Scatter"});k&&(C=$($({},C),k.props.points[A].tooltipPosition),P=k.props.points[A].tooltipPayload);var R={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:j,activePayload:P,activeCoordinate:C};this.setState(R),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var y,m;this.accessibilityManager.setDetails({offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(m=this.props.margin.top)!==null&&m!==void 0?m:0}})}return null}},{key:"componentDidUpdate",value:function(x){Ac([ke(x.children,Ze)],[ke(this.props.children,Ze)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=ke(this.props.children,Ze);if(x&&typeof x.props.shared=="boolean"){var O=x.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var O=this.container,y=O.getBoundingClientRect(),m=V_(y),_={chartX:Math.round(x.pageX-m.left),chartY:Math.round(x.pageY-m.top)},S=y.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,S);if(!A)return null;var j=this.state,P=j.xAxisMap,E=j.yAxisMap,M=this.getTooltipEventType(),I=Zg(this.state,this.props.data,this.props.layout,A);if(M!=="axis"&&P&&E){var C=Ot(P).scale,k=Ot(E).scale,R=C&&C.invert?C.invert(_.chartX):null,L=k&&k.invert?k.invert(_.chartY):null;return $($({},_),{},{xValue:R,yValue:L},I)}return I?$($({},_),I):null}},{key:"inRange",value:function(x,O){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=this.props.layout,_=x/y,S=O/y;if(m==="horizontal"||m==="vertical"){var A=this.state.offset,j=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return j?{x:_,y:S}:null}var P=this.state,E=P.angleAxisMap,M=P.radiusAxisMap;if(E&&M){var I=Ot(E);return Iy({x:_,y:S},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,O=this.getTooltipEventType(),y=ke(x,Ze),m={};y&&O==="axis"&&(y.props.trigger==="click"?m={onClick:this.handleClick}:m={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 _=ii(this.props,this.handleOuterEvent);return $($({},_),m)}},{key:"addListener",value:function(){wc.on(Oc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){wc.removeListener(Oc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,O,y){for(var m=this.state.formattedGraphicalItems,_=0,S=m.length;_<S;_++){var A=m[_];if(A.item===x||A.props.key===x.key||O===lt(A.item.type)&&y===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,O=this.state.offset,y=O.left,m=O.top,_=O.height,S=O.width;return T.createElement("defs",null,T.createElement("clipPath",{id:x},T.createElement("rect",{x:y,y:m,height:_,width:S})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(O,y){var m=Xg(y,2),_=m[0],S=m[1];return $($({},O),{},H({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(O,y){var m=Xg(y,2),_=m[0],S=m[1];return $($({},O),{},H({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(x){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(x){var O=this.state,y=O.formattedGraphicalItems,m=O.activeItem;if(y&&y.length)for(var _=0,S=y.length;_<S;_++){var A=y[_],j=A.props,P=A.item,E=P.type.defaultProps!==void 0?$($({},P.type.defaultProps),P.props):P.props,M=lt(P.type);if(M==="Bar"){var I=(j.data||[]).find(function(L){return DM(x,L)});if(I)return{graphicalItem:A,payload:I}}else if(M==="RadialBar"){var C=(j.data||[]).find(function(L){return Iy(x,L)});if(C)return{graphicalItem:A,payload:C}}else if(ma(A,m)||ba(A,m)||En(A,m)){var k=Pj({graphicalItem:A,activeTooltipItem:m,itemData:E.data}),R=E.activeIndex===void 0?k:E.activeIndex;return{graphicalItem:$($({},A),{},{childIndex:R}),payload:En(A,m)?E.data[k]:A.props.data[k]}}}return null}},{key:"render",value:function(){var x=this;if(!Uh(this))return null;var O=this.props,y=O.children,m=O.className,_=O.width,S=O.height,A=O.style,j=O.compact,P=O.title,E=O.desc,M=Vg(O,GI),I=Z(M,!1);if(j)return T.createElement(jg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Ec,ir({},I,{width:_,height:S,title:P,desc:E}),this.renderClipPath(),Gh(y,this.renderMap)));if(this.props.accessibilityLayer){var C,k;I.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,I.role=(k=this.props.role)!==null&&k!==void 0?k:"application",I.onKeyDown=function(L){x.accessibilityManager.keyboardEvent(L)},I.onFocus=function(){x.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return T.createElement(jg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",ir({className:ee("recharts-wrapper",m),style:$({position:"relative",cursor:"default",width:_,height:S},A)},R,{ref:function(B){x.container=B}}),T.createElement(Ec,ir({},I,{width:_,height:S,title:P,desc:E,style:ck}),this.renderClipPath(),Gh(y,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(q.Component);H(g,"displayName",r),H(g,"defaultProps",$({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(g,"getDerivedStateFromProps",function(v,w){var b=v.dataKey,x=v.data,O=v.children,y=v.width,m=v.height,_=v.layout,S=v.stackOffset,A=v.margin,j=w.dataStartIndex,P=w.dataEndIndex;if(w.updateId===void 0){var E=Jg(v);return $($($({},E),{},{updateId:0},d($($({props:v},E),{},{updateId:0}),w)),{},{prevDataKey:b,prevData:x,prevWidth:y,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(b!==w.prevDataKey||x!==w.prevData||y!==w.prevWidth||m!==w.prevHeight||_!==w.prevLayout||S!==w.prevStackOffset||!ar(A,w.prevMargin)){var M=Jg(v),I={chartX:w.chartX,chartY:w.chartY,isTooltipActive:w.isTooltipActive},C=$($({},Zg(w,x,_)),{},{updateId:w.updateId+1}),k=$($($({},M),I),C);return $($($({},k),d($({props:v},k),w)),{},{prevDataKey:b,prevData:x,prevWidth:y,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!Ac(O,w.prevChildren)){var R,L,B,U,G=ke(O,xr),z=G&&(R=(L=G.props)===null||L===void 0?void 0:L.startIndex)!==null&&R!==void 0?R:j,K=G&&(B=(U=G.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:P,ae=z!==j||K!==P,he=!J(x),$e=he&&!ae?w.updateId:w.updateId+1;return $($({updateId:$e},d($($({props:v},w),{},{updateId:$e,dataStartIndex:z,dataEndIndex:K}),w)),{},{prevChildren:O,dataStartIndex:z,dataEndIndex:K})}return null}),H(g,"renderActiveDot",function(v,w,b){var x;return q.isValidElement(v)?x=q.cloneElement(v,w):X(v)?x=v(w):x=T.createElement(Af,w),T.createElement(ce,{className:"recharts-active-dot",key:b},x)});var p=q.forwardRef(function(w,b){return T.createElement(g,ir({},w,{ref:b}))});return p.displayName=g.displayName,p},xk=bk({chartName:"AreaChart",GraphicalChild:Ct,axisComponents:[{axisType:"xAxis",AxisComp:Pa},{axisType:"yAxis",AxisComp:Aa}],formatAxisMap:wC});const wk=()=>{const{props:e}=ux(),{auth:t,revenueData:r,translate:n}=e,{dashboard:i}=n,a=t.user.role==="admin",o=cx(e.system.fields.selling_currency),u=q.useMemo(()=>Object.entries(r).map(([s,c])=>({month:s,value:c})),[r]);return it.jsxs(sx,{className:"p-4 sm:p-6",children:[it.jsx("h3",{className:"mb-4 text-lg font-medium",children:a?i.admin_revenue_this_year:i.instructor_revenue_this_year}),it.jsx(z_,{width:"100%",height:320,children:it.jsxs(xk,{data:u,margin:{top:10,right:0,left:-20,bottom:0},children:[it.jsx(z0,{strokeDasharray:"3 3",vertical:!1}),it.jsx(Pa,{dataKey:"month",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:s=>s.slice(0,3)}),it.jsx(Aa,{axisLine:!1,tickLine:!1,tickMargin:0}),it.jsx(Ze,{formatter:s=>[`${o==null?void 0:o.symbol}${s}`,a?i.admin_revenue:i.instructor_revenue]}),it.jsx(Ct,{type:"monotone",dataKey:"value",fill:"var(--color-secondary-dark)",stroke:"var(--color-secondary-foreground)",fillOpacity:.4,name:a?i.admin_revenue:i.instructor_revenue})]})})]})},Tk=Object.freeze(Object.defineProperty({__proto__:null,default:wk},Symbol.toStringTag,{value:"Module"}));export{z_ as A,or as B,Qr as C,Af as D,Ze as E,Tk as F,Dr as G,ce as L,wk as R,mj as S,yi as T,KA as a,Et as b,YA as c,ai as d,Pe as e,Z as f,Ak as g,J as h,X as i,Re as j,ze as k,Be as l,dn as m,N as n,At as o,_e as p,Ke as q,qb as r,Ve as s,eb as t,Rn as u,ME as v,Xe as w,ft as x,bk as y,Pk as z};
|