tokmon 0.19.8 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap-ink-R3PFUV5N.js +3499 -0
- package/dist/chunk-A6RQRHRO.js +1051 -0
- package/dist/{chunk-UAPL47GL.js → chunk-MB6LRSEZ.js} +810 -516
- package/dist/chunk-MVMPQJ5S.js +270 -0
- package/dist/chunk-RF4GGQGM.js +106 -0
- package/dist/cli.js +15 -2710
- package/dist/config-64VVUH42.js +45 -0
- package/dist/daemon-UB2PZDX6.js +213 -0
- package/dist/daemon-handle-ZHECQZ6Q.js +142 -0
- package/dist/glyphs-NKCSZLGO.js +17 -0
- package/dist/server-SP3FOHM2.js +9 -0
- package/dist/web/assets/{breakdown-C9UzD3X2.js → breakdown-DEws2QQ3.js} +3 -3
- package/dist/web/assets/{chart-C6EyXc8D.js → chart-CFynoGh5.js} +7 -7
- package/dist/web/assets/{index-CN07mDjO.css → index-CZOCHnad.css} +1 -1
- package/dist/web/assets/index-vqWRGYnh.js +105 -0
- package/dist/web/assets/{timeline-_qBfhBAY.js → timeline-a7y6nopU.js} +2 -2
- package/dist/web/index.html +2 -2
- package/package.json +3 -1
- package/dist/chunk-STCMWCFW.js +0 -564
- package/dist/server-VMB5ZLZC.js +0 -8
- package/dist/web/assets/index-mgYwFiX4.js +0 -80
- package/dist/web-DYAEMCAE.js +0 -110
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as Kn,g as ue,r as N,R as T,j as ot,f as Zx}from"./index-vqWRGYnh.js";function Lm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Lm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function te(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Lm(e))&&(n&&(n+=" "),n+=t);return n}var Na,oh;function Re(){if(oh)return Na;oh=1;var e=Array.isArray;return Na=e,Na}var qa,uh;function Fm(){if(uh)return qa;uh=1;var e=typeof Kn=="object"&&Kn&&Kn.Object===Object&&Kn;return qa=e,qa}var Ba,ch;function it(){if(ch)return Ba;ch=1;var e=Fm(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ba=r,Ba}var La,sh;function Nn(){if(sh)return La;sh=1;var e=it(),t=e.Symbol;return La=t,La}var Fa,lh;function Jx(){if(lh)return Fa;lh=1;var e=Nn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return Fa=a,Fa}var Ua,fh;function Qx(){if(fh)return Ua;fh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ua=r,Ua}var za,hh;function mt(){if(hh)return za;hh=1;var e=Nn(),t=Jx(),r=Qx(),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 za=o,za}var Wa,ph;function bt(){if(ph)return Wa;ph=1;function e(t){return t!=null&&typeof t=="object"}return Wa=e,Wa}var Ha,dh;function $r(){if(dh)return Ha;dh=1;var e=mt(),t=bt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ha=n,Ha}var Ga,vh;function Ql(){if(vh)return Ga;vh=1;var e=Re(),t=$r(),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 Ga=i,Ga}var Ka,yh;function Tt(){if(yh)return Ka;yh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ka=e,Ka}var Xa,gh;function ef(){if(gh)return Xa;gh=1;var e=mt(),t=Tt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return Xa=o,Xa}var Va,mh;function ew(){if(mh)return Va;mh=1;var e=it(),t=e["__core-js_shared__"];return Va=t,Va}var Ya,bh;function tw(){if(bh)return Ya;bh=1;var e=ew(),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 Ya=r,Ya}var Za,xh;function Um(){if(xh)return Za;xh=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 Za=r,Za}var Ja,wh;function rw(){if(wh)return Ja;wh=1;var e=ef(),t=tw(),r=Tt(),n=Um(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return Ja=l,Ja}var Qa,Oh;function nw(){if(Oh)return Qa;Oh=1;function e(t,r){return t==null?void 0:t[r]}return Qa=e,Qa}var eo,_h;function Vt(){if(_h)return eo;_h=1;var e=rw(),t=nw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return eo=r,eo}var to,Sh;function ia(){if(Sh)return to;Sh=1;var e=Vt(),t=e(Object,"create");return to=t,to}var ro,Ah;function iw(){if(Ah)return ro;Ah=1;var e=ia();function t(){this.__data__=e?e(null):{},this.size=0}return ro=t,ro}var no,Ph;function aw(){if(Ph)return no;Ph=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return no=e,no}var io,Th;function ow(){if(Th)return io;Th=1;var e=ia(),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 io=i,io}var ao,Eh;function uw(){if(Eh)return ao;Eh=1;var e=ia(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return ao=n,ao}var oo,jh;function cw(){if(jh)return oo;jh=1;var e=ia(),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 oo=r,oo}var uo,Mh;function sw(){if(Mh)return uo;Mh=1;var e=iw(),t=aw(),r=ow(),n=uw(),i=cw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,uo=a,uo}var co,Ch;function lw(){if(Ch)return co;Ch=1;function e(){this.__data__=[],this.size=0}return co=e,co}var so,$h;function tf(){if($h)return so;$h=1;function e(t,r){return t===r||t!==t&&r!==r}return so=e,so}var lo,Ih;function aa(){if(Ih)return lo;Ih=1;var e=tf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return lo=t,lo}var fo,Rh;function fw(){if(Rh)return fo;Rh=1;var e=aa(),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 fo=n,fo}var ho,kh;function hw(){if(kh)return ho;kh=1;var e=aa();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return ho=t,ho}var po,Dh;function pw(){if(Dh)return po;Dh=1;var e=aa();function t(r){return e(this.__data__,r)>-1}return po=t,po}var vo,Nh;function dw(){if(Nh)return vo;Nh=1;var e=aa();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 vo=t,vo}var yo,qh;function oa(){if(qh)return yo;qh=1;var e=lw(),t=fw(),r=hw(),n=pw(),i=dw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,yo=a,yo}var go,Bh;function rf(){if(Bh)return go;Bh=1;var e=Vt(),t=it(),r=e(t,"Map");return go=r,go}var mo,Lh;function vw(){if(Lh)return mo;Lh=1;var e=sw(),t=oa(),r=rf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return mo=n,mo}var bo,Fh;function yw(){if(Fh)return bo;Fh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return bo=e,bo}var xo,Uh;function ua(){if(Uh)return xo;Uh=1;var e=yw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return xo=t,xo}var wo,zh;function gw(){if(zh)return wo;zh=1;var e=ua();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return wo=t,wo}var Oo,Wh;function mw(){if(Wh)return Oo;Wh=1;var e=ua();function t(r){return e(this,r).get(r)}return Oo=t,Oo}var _o,Hh;function bw(){if(Hh)return _o;Hh=1;var e=ua();function t(r){return e(this,r).has(r)}return _o=t,_o}var So,Gh;function xw(){if(Gh)return So;Gh=1;var e=ua();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 So=t,So}var Ao,Kh;function nf(){if(Kh)return Ao;Kh=1;var e=vw(),t=gw(),r=mw(),n=bw(),i=xw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ao=a,Ao}var Po,Xh;function zm(){if(Xh)return Po;Xh=1;var e=nf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,Po=r,Po}var To,Vh;function ww(){if(Vh)return To;Vh=1;var e=zm(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return To=r,To}var Eo,Yh;function Ow(){if(Yh)return Eo;Yh=1;var e=ww(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return Eo=n,Eo}var jo,Zh;function af(){if(Zh)return jo;Zh=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 jo=e,jo}var Mo,Jh;function _w(){if(Jh)return Mo;Jh=1;var e=Nn(),t=af(),r=Re(),n=$r(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Mo=o,Mo}var Co,Qh;function Wm(){if(Qh)return Co;Qh=1;var e=_w();function t(r){return r==null?"":e(r)}return Co=t,Co}var $o,ep;function Hm(){if(ep)return $o;ep=1;var e=Re(),t=Ql(),r=Ow(),n=Wm();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return $o=i,$o}var Io,tp;function ca(){if(tp)return Io;tp=1;var e=$r();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Io=t,Io}var Ro,rp;function of(){if(rp)return Ro;rp=1;var e=Hm(),t=ca();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 Ro=r,Ro}var ko,np;function Gm(){if(np)return ko;np=1;var e=of();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return ko=t,ko}var Sw=Gm();const ze=ue(Sw);var Do,ip;function Aw(){if(ip)return Do;ip=1;function e(t){return t==null}return Do=e,Do}var Pw=Aw();const Z=ue(Pw);var No,ap;function Tw(){if(ap)return No;ap=1;var e=mt(),t=Re(),r=bt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return No=i,No}var Ew=Tw();const Ht=ue(Ew);var jw=ef();const Y=ue(jw);var Mw=Tt();const Ir=ue(Mw);var qo={exports:{}},re={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|
|
@@ -6,12 +6,12 @@ import{e as Kn,g as ue,r as N,R as T,j as ot,f as Zx}from"./index-mgYwFiX4.js";f
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var op;function Cw(){if(op)return re;op=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case r:case i:case n:case s:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case c:case h:case l:case a:return p;default:return b}}case t:return b}}}return re.ContextConsumer=o,re.ContextProvider=a,re.Element=e,re.ForwardRef=c,re.Fragment=r,re.Lazy=h,re.Memo=l,re.Portal=t,re.Profiler=i,re.StrictMode=n,re.Suspense=s,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(p){return v(p)===o},re.isContextProvider=function(p){return v(p)===a},re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},re.isForwardRef=function(p){return v(p)===c},re.isFragment=function(p){return v(p)===r},re.isLazy=function(p){return v(p)===h},re.isMemo=function(p){return v(p)===l},re.isPortal=function(p){return v(p)===t},re.isProfiler=function(p){return v(p)===i},re.isStrictMode=function(p){return v(p)===n},re.isSuspense=function(p){return v(p)===s},re.isSuspenseList=function(p){return v(p)===f},re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===s||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===c||p.$$typeof===y||p.getModuleId!==void 0)},re.typeOf=v,re}var up;function $w(){return up||(up=1,qo.exports=Cw()),qo.exports}var Iw=$w(),Bo,cp;function Km(){if(cp)return Bo;cp=1;var e=mt(),t=bt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Bo=n,Bo}var Lo,sp;function Rw(){if(sp)return Lo;sp=1;var e=Km();function t(r){return e(r)&&r!=+r}return Lo=t,Lo}var kw=Rw();const qn=ue(kw);var Dw=Km();const Nw=ue(Dw);var Ve=function(t){return t===0?0:t>0?1:-1},qt=function(t){return Ht(t)&&t.indexOf("%")===t.length-1},q=function(t){return Nw(t)&&!qn(t)},qw=function(t){return Z(t)},xe=function(t){return q(t)||Ht(t)},Bw=0,sa=function(t){var r=++Bw;return"".concat(t||"").concat(r)},Ye=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!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 qn(a)&&(a=n),i&&a>r&&(a=r),a},_t=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Lw=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},er=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function ui(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ze(n,t))===r})}var Fw=function(t,r){return q(t)&&q(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 ur(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 qs(e){"@babel/helpers - typeof";return qs=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},qs(e)}var Uw=["viewBox","children"],zw=["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"],lp=["points","pathLength"],Fo={svg:Uw,polygon:lp,polyline:lp},uf=["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"],ci=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!Ir(n))return null;var i={};return Object.keys(n).forEach(function(a){uf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Ww=function(t,r,n){return function(i){return t(r,n,i),null}},si=function(t,r,n){if(!Ir(t)||qs(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];uf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Ww(o,r,n))}),i},Hw=["children"],Gw=["children"];function fp(e,t){if(e==null)return{};var r=Kw(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 Kw(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 Bs(e){"@babel/helpers - typeof";return Bs=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},Bs(e)}var hp={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"},ht=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},pp=null,Uo=null,cf=function e(t){if(t===pp&&Array.isArray(Uo))return Uo;var r=[];return N.Children.forEach(t,function(n){Z(n)||(Iw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Uo=r,pp=t,r};function Ze(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ht(i)}):n=[ht(t)],cf(e).forEach(function(i){var a=ze(i,"type.displayName")||ze(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ne(e,t){var r=Ze(e,t);return r&&r[0]}var dp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},Xw=["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"],Vw=function(t){return t&&t.type&&Ht(t.type)&&Xw.indexOf(t.type)>=0},DD=function(t){return t&&Bs(t)==="object"&&"clipDot"in t},Yw=function(t,r,n,i){var a,o=(a=Fo==null?void 0:Fo[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||zw.includes(r))||n&&uf.includes(r)},ee=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!Ir(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;Yw((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Ls=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return vp(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(!vp(a,o))return!1}return!0},vp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=fp(n,Hw),o=r.props||{},u=o.children,c=fp(o,Gw);return i&&u?ur(a,c)&&Ls(i,u):!i&&!u?ur(a,c):!1}return!1},yp=function(t,r){var n=[],i={};return cf(t).forEach(function(a,o){if(Vw(a))n.push(a);else if(a){var u=ht(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},Zw=function(t){var r=t&&t.type;return r&&hp[r]?hp[r]:null},Jw=function(t,r){return cf(r).indexOf(t)},Qw=["children","width","height","viewBox","className","style","title","desc"];function Fs(){return Fs=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},Fs.apply(this,arguments)}function eO(e,t){if(e==null)return{};var r=tO(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 tO(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 Us(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=eO(e,Qw),f=i||{width:r,height:n,x:0,y:0},l=te("recharts-surface",a);return T.createElement("svg",Fs({},ee(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,c),t)}var rO=["children","className"];function zs(){return zs=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},zs.apply(this,arguments)}function nO(e,t){if(e==null)return{};var r=iO(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var _e=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=nO(e,rO),a=te("recharts-layer",n);return T.createElement("g",zs({className:a},ee(i,!0),{ref:t}),r)}),pt=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]},zo,gp;function aO(){if(gp)return zo;gp=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 zo=e,zo}var Wo,mp;function oO(){if(mp)return Wo;mp=1;var e=aO();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 Wo=t,Wo}var Ho,bp;function Xm(){if(bp)return Ho;bp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function c(s){return u.test(s)}return Ho=c,Ho}var Go,xp;function uO(){if(xp)return Go;xp=1;function e(t){return t.split("")}return Go=e,Go}var Ko,wp;function cO(){if(wp)return Ko;wp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=s+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+b,"g");function O(g){return g.match(w)||[]}return Ko=O,Ko}var Xo,Op;function sO(){if(Op)return Xo;Op=1;var e=uO(),t=Xm(),r=cO();function n(i){return t(i)?r(i):e(i)}return Xo=n,Xo}var Vo,_p;function lO(){if(_p)return Vo;_p=1;var e=oO(),t=Xm(),r=sO(),n=Wm();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?e(u,1).join(""):o.slice(1);return c[a]()+s}}return Vo=i,Vo}var Yo,Sp;function fO(){if(Sp)return Yo;Sp=1;var e=lO(),t=e("toUpperCase");return Yo=t,Yo}var hO=fO();const la=ue(hO);function oe(e){return function(){return e}}const Vm=Math.cos,li=Math.sin,Qe=Math.sqrt,fi=Math.PI,fa=2*fi,Ws=Math.PI,Hs=2*Ws,Dt=1e-6,pO=Hs-Dt;function Ym(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function dO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ym;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 vO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ym:dO(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Dt)if(!(Math.abs(l*c-s*f)>Dt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=c*c+s*s,p=d*d+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Ws-Math.acos((v+h-p)/(2*b*x)))/2),O=w/x,g=w/b;Math.abs(O-1)>Dt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*y)},${this._x1=t+g*c},${this._y1=r+g*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Dt||Math.abs(this._y1-f)>Dt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%Hs+Hs),h>pO?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>Dt&&this._append`A${n},${n},0,${+(h>=Ws)},${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 sf(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 vO(t)}function lf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Zm(e){this._context=e}Zm.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 ha(e){return new Zm(e)}function Jm(e){return e[0]}function Qm(e){return e[1]}function eb(e,t){var r=oe(!0),n=null,i=ha,a=null,o=sf(u);e=typeof e=="function"?e:e===void 0?Jm:oe(e),t=typeof t=="function"?t:t===void 0?Qm:oe(t);function u(c){var s,f=(c=lf(c)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(d)return a=null,d+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:oe(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:oe(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:oe(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function Xn(e,t,r){var n=null,i=oe(!0),a=null,o=ha,u=null,c=sf(s);e=typeof e=="function"?e:e===void 0?Jm:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Qm:oe(+r);function s(l){var h,d,y,v=(l=lf(l)).length,p,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===b)if(b=!b)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=d;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return eb().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:oe(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class tb{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 yO(e){return new tb(e,!0)}function gO(e){return new tb(e,!1)}const ff={draw(e,t){const r=Qe(t/fi);e.moveTo(r,0),e.arc(0,0,r,0,fa)}},mO={draw(e,t){const r=Qe(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()}},rb=Qe(1/3),bO=rb*2,xO={draw(e,t){const r=Qe(t/bO),n=r*rb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},wO={draw(e,t){const r=Qe(t),n=-r/2;e.rect(n,n,r,r)}},OO=.8908130915292852,nb=li(fi/10)/li(7*fi/10),_O=li(fa/10)*nb,SO=-Vm(fa/10)*nb,AO={draw(e,t){const r=Qe(t*OO),n=_O*r,i=SO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=fa*a/5,u=Vm(o),c=li(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Zo=Qe(3),PO={draw(e,t){const r=-Qe(t/(Zo*3));e.moveTo(0,r*2),e.lineTo(-Zo*r,-r),e.lineTo(Zo*r,-r),e.closePath()}},Be=-.5,Le=Qe(3)/2,Gs=1/Qe(12),TO=(Gs/2+1)*3,EO={draw(e,t){const r=Qe(t/TO),n=r/2,i=r*Gs,a=n,o=r*Gs+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Be*n-Le*i,Le*n+Be*i),e.lineTo(Be*a-Le*o,Le*a+Be*o),e.lineTo(Be*u-Le*c,Le*u+Be*c),e.lineTo(Be*n+Le*i,Be*i-Le*n),e.lineTo(Be*a+Le*o,Be*o-Le*a),e.lineTo(Be*u+Le*c,Be*c-Le*u),e.closePath()}};function jO(e,t){let r=null,n=sf(i);e=typeof e=="function"?e:oe(e||ff),t=typeof t=="function"?t:oe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:oe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:oe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function hi(){}function pi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function ib(e){this._context=e}ib.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MO(e){return new ib(e)}function ab(e){this._context=e}ab.prototype={areaStart:hi,areaEnd:hi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CO(e){return new ab(e)}function ob(e){this._context=e}ob.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $O(e){return new ob(e)}function ub(e){this._context=e}ub.prototype={areaStart:hi,areaEnd:hi,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 IO(e){return new ub(e)}function Ap(e){return e<0?-1:1}function Pp(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(Ap(a)+Ap(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Tp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Jo(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 di(e){this._context=e}di.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:Jo(this,this._t0,Tp(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,Jo(this,Tp(this,r=Pp(this,e,t)),r);break;default:Jo(this,this._t0,r=Pp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function cb(e){this._context=new sb(e)}(cb.prototype=Object.create(di.prototype)).point=function(e,t){di.prototype.point.call(this,t,e)};function sb(e){this._context=e}sb.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 RO(e){return new di(e)}function kO(e){return new cb(e)}function lb(e){this._context=e}lb.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=Ep(e),i=Ep(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 Ep(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 DO(e){return new lb(e)}function pa(e,t){this._context=e,this._t=t}pa.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 NO(e){return new pa(e,.5)}function qO(e){return new pa(e,0)}function BO(e){return new pa(e,1)}function fr(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 Ks(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function LO(e,t){return e[t]}function FO(e){const t=[];return t.key=e,t}function UO(){var e=oe([]),t=Ks,r=fr,n=LO;function i(a){var o=Array.from(e.apply(this,arguments),FO),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=lf(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:oe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:oe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Ks:typeof a=="function"?a:oe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??fr,i):r},i}function zO(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}fr(e,t)}}function WO(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}fr(e,t)}}function HO(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,b=v[n-1][1]||0;d+=p-b}c+=l,s+=d*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,fr(e,t)}}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)}var GO=["type","size","sizeType"];function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xs.apply(this,arguments)}function jp(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 Mp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jp(Object(r),!0).forEach(function(n){KO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KO(e,t,r){return t=XO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XO(e){var t=VO(e,"string");return tn(t)=="symbol"?t:t+""}function VO(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 YO(e,t){if(e==null)return{};var r=ZO(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 ZO(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 fb={symbolCircle:ff,symbolCross:mO,symbolDiamond:xO,symbolSquare:wO,symbolStar:AO,symbolTriangle:PO,symbolWye:EO},JO=Math.PI/180,QO=function(t){var r="symbol".concat(la(t));return fb[r]||ff},e1=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*JO;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}},t1=function(t,r){fb["symbol".concat(la(t))]=r},hf=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=YO(t,GO),s=Mp(Mp({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=QO(n),b=jO().type(p).size(e1(a,u,n));return b()},l=s.className,h=s.cx,d=s.cy,y=ee(s,!0);return h===+h&&d===+d&&a===+a?T.createElement("path",Xs({},y,{className:te("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};hf.registerSymbol=t1;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)}function Vs(){return Vs=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},Vs.apply(this,arguments)}function Cp(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 r1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cp(Object(r),!0).forEach(function(n){rn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i1(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,pb(n.key),n)}}function a1(e,t,r){return t&&i1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o1(e,t,r){return t=vi(t),u1(e,hb()?Reflect.construct(t,r||[],vi(e).constructor):t.apply(e,r))}function u1(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 c1(e)}function c1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hb=function(){return!!e})()}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vi(e)}function s1(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&&Ys(e,t)}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ys(e,t)}function rn(e,t,r){return t=pb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pb(e){var t=l1(e,"string");return hr(t)=="symbol"?t:t+""}function l1(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)}var Fe=32,pf=(function(e){function t(){return n1(this,t),o1(this,t,arguments)}return s1(t,e),a1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Fe/2,o=Fe/6,u=Fe/3,c=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Fe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
|
|
9
|
+
*/var op;function Cw(){if(op)return re;op=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case r:case i:case n:case s:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case c:case h:case l:case a:return p;default:return b}}case t:return b}}}return re.ContextConsumer=o,re.ContextProvider=a,re.Element=e,re.ForwardRef=c,re.Fragment=r,re.Lazy=h,re.Memo=l,re.Portal=t,re.Profiler=i,re.StrictMode=n,re.Suspense=s,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(p){return v(p)===o},re.isContextProvider=function(p){return v(p)===a},re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},re.isForwardRef=function(p){return v(p)===c},re.isFragment=function(p){return v(p)===r},re.isLazy=function(p){return v(p)===h},re.isMemo=function(p){return v(p)===l},re.isPortal=function(p){return v(p)===t},re.isProfiler=function(p){return v(p)===i},re.isStrictMode=function(p){return v(p)===n},re.isSuspense=function(p){return v(p)===s},re.isSuspenseList=function(p){return v(p)===f},re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===s||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===c||p.$$typeof===y||p.getModuleId!==void 0)},re.typeOf=v,re}var up;function $w(){return up||(up=1,qo.exports=Cw()),qo.exports}var Iw=$w(),Bo,cp;function Km(){if(cp)return Bo;cp=1;var e=mt(),t=bt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Bo=n,Bo}var Lo,sp;function Rw(){if(sp)return Lo;sp=1;var e=Km();function t(r){return e(r)&&r!=+r}return Lo=t,Lo}var kw=Rw();const qn=ue(kw);var Dw=Km();const Nw=ue(Dw);var Ve=function(t){return t===0?0:t>0?1:-1},qt=function(t){return Ht(t)&&t.indexOf("%")===t.length-1},q=function(t){return Nw(t)&&!qn(t)},qw=function(t){return Z(t)},xe=function(t){return q(t)||Ht(t)},Bw=0,sa=function(t){var r=++Bw;return"".concat(t||"").concat(r)},Ye=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!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 qn(a)&&(a=n),i&&a>r&&(a=r),a},_t=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Lw=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},er=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function ui(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ze(n,t))===r})}var Fw=function(t,r){return q(t)&&q(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 ur(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 qs(e){"@babel/helpers - typeof";return qs=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},qs(e)}var Uw=["viewBox","children"],zw=["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"],lp=["points","pathLength"],Fo={svg:Uw,polygon:lp,polyline:lp},uf=["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"],ci=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!Ir(n))return null;var i={};return Object.keys(n).forEach(function(a){uf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Ww=function(t,r,n){return function(i){return t(r,n,i),null}},si=function(t,r,n){if(!Ir(t)||qs(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];uf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Ww(o,r,n))}),i},Hw=["children"],Gw=["children"];function fp(e,t){if(e==null)return{};var r=Kw(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 Kw(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 Bs(e){"@babel/helpers - typeof";return Bs=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},Bs(e)}var hp={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"},ht=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},pp=null,Uo=null,cf=function e(t){if(t===pp&&Array.isArray(Uo))return Uo;var r=[];return N.Children.forEach(t,function(n){Z(n)||(Iw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Uo=r,pp=t,r};function Ze(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ht(i)}):n=[ht(t)],cf(e).forEach(function(i){var a=ze(i,"type.displayName")||ze(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ne(e,t){var r=Ze(e,t);return r&&r[0]}var dp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},Xw=["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"],Vw=function(t){return t&&t.type&&Ht(t.type)&&Xw.indexOf(t.type)>=0},ND=function(t){return t&&Bs(t)==="object"&&"clipDot"in t},Yw=function(t,r,n,i){var a,o=(a=Fo==null?void 0:Fo[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||zw.includes(r))||n&&uf.includes(r)},ee=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!Ir(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;Yw((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Ls=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return vp(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(!vp(a,o))return!1}return!0},vp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=fp(n,Hw),o=r.props||{},u=o.children,c=fp(o,Gw);return i&&u?ur(a,c)&&Ls(i,u):!i&&!u?ur(a,c):!1}return!1},yp=function(t,r){var n=[],i={};return cf(t).forEach(function(a,o){if(Vw(a))n.push(a);else if(a){var u=ht(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},Zw=function(t){var r=t&&t.type;return r&&hp[r]?hp[r]:null},Jw=function(t,r){return cf(r).indexOf(t)},Qw=["children","width","height","viewBox","className","style","title","desc"];function Fs(){return Fs=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},Fs.apply(this,arguments)}function eO(e,t){if(e==null)return{};var r=tO(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 tO(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 Us(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=eO(e,Qw),f=i||{width:r,height:n,x:0,y:0},l=te("recharts-surface",a);return T.createElement("svg",Fs({},ee(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,c),t)}var rO=["children","className"];function zs(){return zs=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},zs.apply(this,arguments)}function nO(e,t){if(e==null)return{};var r=iO(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var _e=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=nO(e,rO),a=te("recharts-layer",n);return T.createElement("g",zs({className:a},ee(i,!0),{ref:t}),r)}),pt=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]},zo,gp;function aO(){if(gp)return zo;gp=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 zo=e,zo}var Wo,mp;function oO(){if(mp)return Wo;mp=1;var e=aO();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 Wo=t,Wo}var Ho,bp;function Xm(){if(bp)return Ho;bp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function c(s){return u.test(s)}return Ho=c,Ho}var Go,xp;function uO(){if(xp)return Go;xp=1;function e(t){return t.split("")}return Go=e,Go}var Ko,wp;function cO(){if(wp)return Ko;wp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=s+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+b,"g");function O(g){return g.match(w)||[]}return Ko=O,Ko}var Xo,Op;function sO(){if(Op)return Xo;Op=1;var e=uO(),t=Xm(),r=cO();function n(i){return t(i)?r(i):e(i)}return Xo=n,Xo}var Vo,_p;function lO(){if(_p)return Vo;_p=1;var e=oO(),t=Xm(),r=sO(),n=Wm();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?e(u,1).join(""):o.slice(1);return c[a]()+s}}return Vo=i,Vo}var Yo,Sp;function fO(){if(Sp)return Yo;Sp=1;var e=lO(),t=e("toUpperCase");return Yo=t,Yo}var hO=fO();const la=ue(hO);function oe(e){return function(){return e}}const Vm=Math.cos,li=Math.sin,Qe=Math.sqrt,fi=Math.PI,fa=2*fi,Ws=Math.PI,Hs=2*Ws,Dt=1e-6,pO=Hs-Dt;function Ym(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function dO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ym;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 vO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ym:dO(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Dt)if(!(Math.abs(l*c-s*f)>Dt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=c*c+s*s,p=d*d+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Ws-Math.acos((v+h-p)/(2*b*x)))/2),O=w/x,g=w/b;Math.abs(O-1)>Dt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*y)},${this._x1=t+g*c},${this._y1=r+g*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Dt||Math.abs(this._y1-f)>Dt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%Hs+Hs),h>pO?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>Dt&&this._append`A${n},${n},0,${+(h>=Ws)},${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 sf(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 vO(t)}function lf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Zm(e){this._context=e}Zm.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 ha(e){return new Zm(e)}function Jm(e){return e[0]}function Qm(e){return e[1]}function eb(e,t){var r=oe(!0),n=null,i=ha,a=null,o=sf(u);e=typeof e=="function"?e:e===void 0?Jm:oe(e),t=typeof t=="function"?t:t===void 0?Qm:oe(t);function u(c){var s,f=(c=lf(c)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(d)return a=null,d+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:oe(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:oe(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:oe(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function Xn(e,t,r){var n=null,i=oe(!0),a=null,o=ha,u=null,c=sf(s);e=typeof e=="function"?e:e===void 0?Jm:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Qm:oe(+r);function s(l){var h,d,y,v=(l=lf(l)).length,p,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===b)if(b=!b)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=d;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return eb().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:oe(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class tb{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 yO(e){return new tb(e,!0)}function gO(e){return new tb(e,!1)}const ff={draw(e,t){const r=Qe(t/fi);e.moveTo(r,0),e.arc(0,0,r,0,fa)}},mO={draw(e,t){const r=Qe(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()}},rb=Qe(1/3),bO=rb*2,xO={draw(e,t){const r=Qe(t/bO),n=r*rb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},wO={draw(e,t){const r=Qe(t),n=-r/2;e.rect(n,n,r,r)}},OO=.8908130915292852,nb=li(fi/10)/li(7*fi/10),_O=li(fa/10)*nb,SO=-Vm(fa/10)*nb,AO={draw(e,t){const r=Qe(t*OO),n=_O*r,i=SO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=fa*a/5,u=Vm(o),c=li(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Zo=Qe(3),PO={draw(e,t){const r=-Qe(t/(Zo*3));e.moveTo(0,r*2),e.lineTo(-Zo*r,-r),e.lineTo(Zo*r,-r),e.closePath()}},Be=-.5,Le=Qe(3)/2,Gs=1/Qe(12),TO=(Gs/2+1)*3,EO={draw(e,t){const r=Qe(t/TO),n=r/2,i=r*Gs,a=n,o=r*Gs+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Be*n-Le*i,Le*n+Be*i),e.lineTo(Be*a-Le*o,Le*a+Be*o),e.lineTo(Be*u-Le*c,Le*u+Be*c),e.lineTo(Be*n+Le*i,Be*i-Le*n),e.lineTo(Be*a+Le*o,Be*o-Le*a),e.lineTo(Be*u+Le*c,Be*c-Le*u),e.closePath()}};function jO(e,t){let r=null,n=sf(i);e=typeof e=="function"?e:oe(e||ff),t=typeof t=="function"?t:oe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:oe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:oe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function hi(){}function pi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function ib(e){this._context=e}ib.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MO(e){return new ib(e)}function ab(e){this._context=e}ab.prototype={areaStart:hi,areaEnd:hi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CO(e){return new ab(e)}function ob(e){this._context=e}ob.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:pi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $O(e){return new ob(e)}function ub(e){this._context=e}ub.prototype={areaStart:hi,areaEnd:hi,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 IO(e){return new ub(e)}function Ap(e){return e<0?-1:1}function Pp(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(Ap(a)+Ap(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Tp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Jo(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 di(e){this._context=e}di.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:Jo(this,this._t0,Tp(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,Jo(this,Tp(this,r=Pp(this,e,t)),r);break;default:Jo(this,this._t0,r=Pp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function cb(e){this._context=new sb(e)}(cb.prototype=Object.create(di.prototype)).point=function(e,t){di.prototype.point.call(this,t,e)};function sb(e){this._context=e}sb.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 RO(e){return new di(e)}function kO(e){return new cb(e)}function lb(e){this._context=e}lb.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=Ep(e),i=Ep(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 Ep(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 DO(e){return new lb(e)}function pa(e,t){this._context=e,this._t=t}pa.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 NO(e){return new pa(e,.5)}function qO(e){return new pa(e,0)}function BO(e){return new pa(e,1)}function fr(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 Ks(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function LO(e,t){return e[t]}function FO(e){const t=[];return t.key=e,t}function UO(){var e=oe([]),t=Ks,r=fr,n=LO;function i(a){var o=Array.from(e.apply(this,arguments),FO),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=lf(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:oe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:oe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Ks:typeof a=="function"?a:oe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??fr,i):r},i}function zO(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}fr(e,t)}}function WO(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}fr(e,t)}}function HO(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,b=v[n-1][1]||0;d+=p-b}c+=l,s+=d*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,fr(e,t)}}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)}var GO=["type","size","sizeType"];function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xs.apply(this,arguments)}function jp(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 Mp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jp(Object(r),!0).forEach(function(n){KO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KO(e,t,r){return t=XO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XO(e){var t=VO(e,"string");return tn(t)=="symbol"?t:t+""}function VO(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 YO(e,t){if(e==null)return{};var r=ZO(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 ZO(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 fb={symbolCircle:ff,symbolCross:mO,symbolDiamond:xO,symbolSquare:wO,symbolStar:AO,symbolTriangle:PO,symbolWye:EO},JO=Math.PI/180,QO=function(t){var r="symbol".concat(la(t));return fb[r]||ff},e1=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*JO;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}},t1=function(t,r){fb["symbol".concat(la(t))]=r},hf=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=YO(t,GO),s=Mp(Mp({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=QO(n),b=jO().type(p).size(e1(a,u,n));return b()},l=s.className,h=s.cx,d=s.cy,y=ee(s,!0);return h===+h&&d===+d&&a===+a?T.createElement("path",Xs({},y,{className:te("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};hf.registerSymbol=t1;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)}function Vs(){return Vs=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},Vs.apply(this,arguments)}function Cp(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 r1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cp(Object(r),!0).forEach(function(n){rn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i1(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,pb(n.key),n)}}function a1(e,t,r){return t&&i1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o1(e,t,r){return t=vi(t),u1(e,hb()?Reflect.construct(t,r||[],vi(e).constructor):t.apply(e,r))}function u1(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 c1(e)}function c1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hb=function(){return!!e})()}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vi(e)}function s1(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&&Ys(e,t)}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ys(e,t)}function rn(e,t,r){return t=pb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pb(e){var t=l1(e,"string");return hr(t)=="symbol"?t:t+""}function l1(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)}var Fe=32,pf=(function(e){function t(){return n1(this,t),o1(this,t,arguments)}return s1(t,e),a1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Fe/2,o=Fe/6,u=Fe/3,c=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Fe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
|
|
10
10
|
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
|
11
11
|
H`).concat(Fe,"M").concat(2*u,",").concat(a,`
|
|
12
12
|
A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return T.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Fe/8,"h").concat(Fe,"v").concat(Fe*3/4,"h").concat(-Fe,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var s=r1({},n);return delete s.legendIcon,T.cloneElement(n.legendIcon,s)}return T.createElement(hf,{fill:c,cx:a,cy:a,size:Fe,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:Fe,height:Fe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var v=d.formatter||c,p=te(rn(rn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var b=Y(d.value)?null:d.value;pt(!Y(d.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=d.inactive?s:d.color;return T.createElement("li",Vs({className:p,style:l,key:"legend-item-".concat(y)},si(n.props,d,y)),T.createElement(Us,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,d,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return T.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);rn(pf,"displayName","Legend");rn(pf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Qo,$p;function f1(){if($p)return Qo;$p=1;var e=oa();function t(){this.__data__=new e,this.size=0}return Qo=t,Qo}var eu,Ip;function h1(){if(Ip)return eu;Ip=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return eu=e,eu}var tu,Rp;function p1(){if(Rp)return tu;Rp=1;function e(t){return this.__data__.get(t)}return tu=e,tu}var ru,kp;function d1(){if(kp)return ru;kp=1;function e(t){return this.__data__.has(t)}return ru=e,ru}var nu,Dp;function v1(){if(Dp)return nu;Dp=1;var e=oa(),t=rf(),r=nf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return nu=i,nu}var iu,Np;function db(){if(Np)return iu;Np=1;var e=oa(),t=f1(),r=h1(),n=p1(),i=d1(),a=v1();function o(u){var c=this.__data__=new e(u);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,iu=o,iu}var au,qp;function y1(){if(qp)return au;qp=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return au=t,au}var ou,Bp;function g1(){if(Bp)return ou;Bp=1;function e(t){return this.__data__.has(t)}return ou=e,ou}var uu,Lp;function vb(){if(Lp)return uu;Lp=1;var e=nf(),t=y1(),r=g1();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,uu=n,uu}var cu,Fp;function yb(){if(Fp)return cu;Fp=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 cu=e,cu}var su,Up;function gb(){if(Up)return su;Up=1;function e(t,r){return t.has(r)}return su=e,su}var lu,zp;function mb(){if(zp)return lu;zp=1;var e=vb(),t=yb(),r=gb(),n=1,i=2;function a(o,u,c,s,f,l){var h=c&n,d=o.length,y=u.length;if(d!=y&&!(h&&y>d))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var b=-1,x=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<d;){var O=o[b],g=u[b];if(s)var m=h?s(g,O,b,u,o,l):s(O,g,b,o,u,l);if(m!==void 0){if(m)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,c,s,l)))return w.push(S)})){x=!1;break}}else if(!(O===g||f(O,g,c,s,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return lu=a,lu}var fu,Wp;function m1(){if(Wp)return fu;Wp=1;var e=it(),t=e.Uint8Array;return fu=t,fu}var hu,Hp;function b1(){if(Hp)return hu;Hp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return hu=e,hu}var pu,Gp;function df(){if(Gp)return pu;Gp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return pu=e,pu}var du,Kp;function x1(){if(Kp)return du;Kp=1;var e=Nn(),t=m1(),r=tf(),n=mb(),i=b1(),a=df(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",d="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function g(m,_,S,A,M,E,P){switch(S){case x:if(m.byteLength!=_.byteLength||m.byteOffset!=_.byteOffset)return!1;m=m.buffer,_=_.buffer;case b:return!(m.byteLength!=_.byteLength||!E(new t(m),new t(_)));case c:case s:case h:return r(+m,+_);case f:return m.name==_.name&&m.message==_.message;case d:case v:return m==_+"";case l:var j=i;case y:var $=A&o;if(j||(j=a),m.size!=_.size&&!$)return!1;var C=P.get(m);if(C)return C==_;A|=u,P.set(m,_);var R=n(j(m),j(_),A,M,E,P);return P.delete(m),R;case p:if(O)return O.call(m)==O.call(_)}return!1}return du=g,du}var vu,Xp;function bb(){if(Xp)return vu;Xp=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 vu=e,vu}var yu,Vp;function w1(){if(Vp)return yu;Vp=1;var e=bb(),t=Re();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return yu=r,yu}var gu,Yp;function O1(){if(Yp)return gu;Yp=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 gu=e,gu}var mu,Zp;function _1(){if(Zp)return mu;Zp=1;function e(){return[]}return mu=e,mu}var bu,Jp;function S1(){if(Jp)return bu;Jp=1;var e=O1(),t=_1(),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 bu=a,bu}var xu,Qp;function A1(){if(Qp)return xu;Qp=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return xu=e,xu}var wu,ed;function P1(){if(ed)return wu;ed=1;var e=mt(),t=bt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return wu=n,wu}var Ou,td;function vf(){if(td)return Ou;td=1;var e=P1(),t=bt(),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 Ou=a,Ou}var Xr={exports:{}},_u,rd;function T1(){if(rd)return _u;rd=1;function e(){return!1}return _u=e,_u}Xr.exports;var nd;function xb(){return nd||(nd=1,(function(e,t){var r=it(),n=T1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(Xr,Xr.exports)),Xr.exports}var Su,id;function yf(){if(id)return Su;id=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 Su=r,Su}var Au,ad;function gf(){if(ad)return Au;ad=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Au=t,Au}var Pu,od;function E1(){if(od)return Pu;od=1;var e=mt(),t=gf(),r=bt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",d="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",g="[object Int16Array]",m="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",M="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[g]=E[m]=E[_]=E[S]=E[A]=E[M]=!0,E[n]=E[i]=E[p]=E[a]=E[b]=E[o]=E[u]=E[c]=E[s]=E[f]=E[l]=E[h]=E[d]=E[y]=E[v]=!1;function P(j){return r(j)&&t(j.length)&&!!E[e(j)]}return Pu=P,Pu}var Tu,ud;function wb(){if(ud)return Tu;ud=1;function e(t){return function(r){return t(r)}}return Tu=e,Tu}var Vr={exports:{}};Vr.exports;var cd;function j1(){return cd||(cd=1,(function(e,t){var r=Fm(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Vr,Vr.exports)),Vr.exports}var Eu,sd;function Ob(){if(sd)return Eu;sd=1;var e=E1(),t=wb(),r=j1(),n=r&&r.isTypedArray,i=n?t(n):e;return Eu=i,Eu}var ju,ld;function M1(){if(ld)return ju;ld=1;var e=A1(),t=vf(),r=Re(),n=xb(),i=yf(),a=Ob(),o=Object.prototype,u=o.hasOwnProperty;function c(s,f){var l=r(s),h=!l&&t(s),d=!l&&!h&&n(s),y=!l&&!h&&!d&&a(s),v=l||h||d||y,p=v?e(s.length,String):[],b=p.length;for(var x in s)(f||u.call(s,x))&&!(v&&(x=="length"||d&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&p.push(x);return p}return ju=c,ju}var Mu,fd;function C1(){if(fd)return Mu;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 Mu=t,Mu}var Cu,hd;function _b(){if(hd)return Cu;hd=1;function e(t,r){return function(n){return t(r(n))}}return Cu=e,Cu}var $u,pd;function $1(){if(pd)return $u;pd=1;var e=_b(),t=e(Object.keys,Object);return $u=t,$u}var Iu,dd;function I1(){if(dd)return Iu;dd=1;var e=C1(),t=$1(),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 Iu=i,Iu}var Ru,vd;function Bn(){if(vd)return Ru;vd=1;var e=ef(),t=gf();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ru=r,Ru}var ku,yd;function da(){if(yd)return ku;yd=1;var e=M1(),t=I1(),r=Bn();function n(i){return r(i)?e(i):t(i)}return ku=n,ku}var Du,gd;function R1(){if(gd)return Du;gd=1;var e=w1(),t=S1(),r=da();function n(i){return e(i,r,t)}return Du=n,Du}var Nu,md;function k1(){if(md)return Nu;md=1;var e=R1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&t,h=e(a),d=h.length,y=e(o),v=y.length;if(d!=v&&!l)return!1;for(var p=d;p--;){var b=h[p];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var g=l;++p<d;){b=h[p];var m=a[b],_=o[b];if(c)var S=l?c(_,m,b,o,a,f):c(m,_,b,a,o,f);if(!(S===void 0?m===_||s(m,_,u,c,f):S)){O=!1;break}g||(g=b=="constructor")}if(O&&!g){var A=a.constructor,M=o.constructor;A!=M&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof M=="function"&&M instanceof M)&&(O=!1)}return f.delete(a),f.delete(o),O}return Nu=i,Nu}var qu,bd;function D1(){if(bd)return qu;bd=1;var e=Vt(),t=it(),r=e(t,"DataView");return qu=r,qu}var Bu,xd;function N1(){if(xd)return Bu;xd=1;var e=Vt(),t=it(),r=e(t,"Promise");return Bu=r,Bu}var Lu,wd;function Sb(){if(wd)return Lu;wd=1;var e=Vt(),t=it(),r=e(t,"Set");return Lu=r,Lu}var Fu,Od;function q1(){if(Od)return Fu;Od=1;var e=Vt(),t=it(),r=e(t,"WeakMap");return Fu=r,Fu}var Uu,_d;function B1(){if(_d)return Uu;_d=1;var e=D1(),t=rf(),r=N1(),n=Sb(),i=q1(),a=mt(),o=Um(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",d=o(e),y=o(t),v=o(r),p=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=s||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),g=O==c?w.constructor:void 0,m=g?o(g):"";if(m)switch(m){case d:return h;case y:return u;case v:return s;case p:return f;case b:return l}return O}),Uu=x,Uu}var zu,Sd;function L1(){if(Sd)return zu;Sd=1;var e=db(),t=mb(),r=x1(),n=k1(),i=B1(),a=Re(),o=xb(),u=Ob(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function y(v,p,b,x,w,O){var g=a(v),m=a(p),_=g?f:i(v),S=m?f:i(p);_=_==s?l:_,S=S==s?l:S;var A=_==l,M=S==l,E=_==S;if(E&&o(v)){if(!o(p))return!1;g=!0,A=!1}if(E&&!A)return O||(O=new e),g||u(v)?t(v,p,b,x,w,O):r(v,p,_,b,x,w,O);if(!(b&c)){var P=A&&d.call(v,"__wrapped__"),j=M&&d.call(p,"__wrapped__");if(P||j){var $=P?v.value():v,C=j?p.value():p;return O||(O=new e),w($,C,b,x,O)}}return E?(O||(O=new e),n(v,p,b,x,w,O)):!1}return zu=y,zu}var Wu,Ad;function mf(){if(Ad)return Wu;Ad=1;var e=L1(),t=bt();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 Wu=r,Wu}var Hu,Pd;function F1(){if(Pd)return Hu;Pd=1;var e=db(),t=mf(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var h=u[s];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++s<f;){h=u[s];var d=h[0],y=a[d],v=h[1];if(l&&h[2]){if(y===void 0&&!(d in a))return!1}else{var p=new e;if(c)var b=c(y,v,d,a,o,p);if(!(b===void 0?t(v,y,r|n,c,p):b))return!1}}return!0}return Hu=i,Hu}var Gu,Td;function Ab(){if(Td)return Gu;Td=1;var e=Tt();function t(r){return r===r&&!e(r)}return Gu=t,Gu}var Ku,Ed;function U1(){if(Ed)return Ku;Ed=1;var e=Ab(),t=da();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 Ku=r,Ku}var Xu,jd;function Pb(){if(jd)return Xu;jd=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Xu=e,Xu}var Vu,Md;function z1(){if(Md)return Vu;Md=1;var e=F1(),t=U1(),r=Pb();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 Vu=n,Vu}var Yu,Cd;function W1(){if(Cd)return Yu;Cd=1;function e(t,r){return t!=null&&r in Object(t)}return Yu=e,Yu}var Zu,$d;function H1(){if($d)return Zu;$d=1;var e=Hm(),t=vf(),r=Re(),n=yf(),i=gf(),a=ca();function o(u,c,s){c=e(c,u);for(var f=-1,l=c.length,h=!1;++f<l;){var d=a(c[f]);if(!(h=u!=null&&s(u,d)))break;u=u[d]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||t(u)))}return Zu=o,Zu}var Ju,Id;function G1(){if(Id)return Ju;Id=1;var e=W1(),t=H1();function r(n,i){return n!=null&&t(n,i,e)}return Ju=r,Ju}var Qu,Rd;function K1(){if(Rd)return Qu;Rd=1;var e=mf(),t=Gm(),r=G1(),n=Ql(),i=Ab(),a=Pb(),o=ca(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var d=t(h,f);return d===void 0&&d===l?r(h,f):e(l,d,u|c)}}return Qu=s,Qu}var ec,kd;function Rr(){if(kd)return ec;kd=1;function e(t){return t}return ec=e,ec}var tc,Dd;function X1(){if(Dd)return tc;Dd=1;function e(t){return function(r){return r==null?void 0:r[t]}}return tc=e,tc}var rc,Nd;function V1(){if(Nd)return rc;Nd=1;var e=of();function t(r){return function(n){return e(n,r)}}return rc=t,rc}var nc,qd;function Y1(){if(qd)return nc;qd=1;var e=X1(),t=V1(),r=Ql(),n=ca();function i(a){return r(a)?e(n(a)):t(a)}return nc=i,nc}var ic,Bd;function Et(){if(Bd)return ic;Bd=1;var e=z1(),t=K1(),r=Rr(),n=Re(),i=Y1();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 ic=a,ic}var ac,Ld;function Tb(){if(Ld)return ac;Ld=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 ac=e,ac}var oc,Fd;function Z1(){if(Fd)return oc;Fd=1;function e(t){return t!==t}return oc=e,oc}var uc,Ud;function J1(){if(Ud)return uc;Ud=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 uc=e,uc}var cc,zd;function Q1(){if(zd)return cc;zd=1;var e=Tb(),t=Z1(),r=J1();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return cc=n,cc}var sc,Wd;function e_(){if(Wd)return sc;Wd=1;var e=Q1();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return sc=t,sc}var lc,Hd;function t_(){if(Hd)return lc;Hd=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 lc=e,lc}var fc,Gd;function r_(){if(Gd)return fc;Gd=1;function e(){}return fc=e,fc}var hc,Kd;function n_(){if(Kd)return hc;Kd=1;var e=Sb(),t=r_(),r=df(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return hc=i,hc}var pc,Xd;function i_(){if(Xd)return pc;Xd=1;var e=vb(),t=e_(),r=t_(),n=gb(),i=n_(),a=df(),o=200;function u(c,s,f){var l=-1,h=t,d=c.length,y=!0,v=[],p=v;if(f)y=!1,h=r;else if(d>=o){var b=s?null:i(c);if(b)return a(b);y=!1,h=n,p=new e}else p=s?[]:v;e:for(;++l<d;){var x=c[l],w=s?s(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;s&&p.push(w),v.push(x)}else h(p,w,f)||(p!==v&&p.push(w),v.push(x))}return v}return pc=u,pc}var dc,Vd;function a_(){if(Vd)return dc;Vd=1;var e=Et(),t=i_();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return dc=r,dc}var o_=a_();const Yd=ue(o_);function Eb(e,t,r){return t===!0?Yd(e,r):Y(t)?Yd(e,t):e}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)}var u_=["ref"];function Zd(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?Zd(Object(r),!0).forEach(function(n){va(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jd(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,Mb(n.key),n)}}function s_(e,t,r){return t&&Jd(e.prototype,t),r&&Jd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l_(e,t,r){return t=yi(t),f_(e,jb()?Reflect.construct(t,r||[],yi(e).constructor):t.apply(e,r))}function f_(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 h_(e)}function h_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jb=function(){return!!e})()}function yi(e){return yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yi(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&&Zs(e,t)}function Zs(e,t){return Zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zs(e,t)}function va(e,t,r){return t=Mb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mb(e){var t=d_(e,"string");return pr(t)=="symbol"?t:t+""}function d_(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 v_(e,t){if(e==null)return{};var r=y_(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 y_(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 g_(e){return e.value}function m_(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=v_(t,u_);return T.createElement(pf,r)}var Qd=1,cr=(function(e){function t(){var r;c_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=l_(this,t,[].concat(i)),va(r,"lastBoundingBox",{width:-1,height:-1}),r}return p_(t,e),s_(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)>Qd||Math.abs(i.height-this.lastBoundingBox.height)>Qd)&&(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,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((s||0)-d.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.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,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=at(at({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return T.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},m_(a,at(at({},this.props),{},{payload:Eb(f,s,g_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=at(at({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);va(cr,"displayName","Legend");va(cr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var vc,ev;function b_(){if(ev)return vc;ev=1;var e=Nn(),t=vf(),r=Re(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return vc=i,vc}var yc,tv;function Cb(){if(tv)return yc;tv=1;var e=bb(),t=b_();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=t),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return yc=r,yc}var gc,rv;function x_(){if(rv)return gc;rv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[t?c:++a];if(n(o[s],s,o)===!1)break}return r}}return gc=e,gc}var mc,nv;function w_(){if(nv)return mc;nv=1;var e=x_(),t=e();return mc=t,mc}var bc,iv;function $b(){if(iv)return bc;iv=1;var e=w_(),t=da();function r(n,i){return n&&e(n,i,t)}return bc=r,bc}var xc,av;function O_(){if(av)return xc;av=1;var e=Bn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return xc=t,xc}var wc,ov;function bf(){if(ov)return wc;ov=1;var e=$b(),t=O_(),r=t(e);return wc=r,wc}var Oc,uv;function Ib(){if(uv)return Oc;uv=1;var e=bf(),t=Bn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return Oc=r,Oc}var _c,cv;function __(){if(cv)return _c;cv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return _c=e,_c}var Sc,sv;function S_(){if(sv)return Sc;sv=1;var e=$r();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),c=n!==void 0,s=n===null,f=n===n,l=e(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return Sc=t,Sc}var Ac,lv;function A_(){if(lv)return Ac;lv=1;var e=S_();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=e(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Ac=t,Ac}var Pc,fv;function P_(){if(fv)return Pc;fv=1;var e=af(),t=of(),r=Et(),n=Ib(),i=__(),a=wb(),o=A_(),u=Rr(),c=Re();function s(f,l,h){l.length?l=e(l,function(v){return c(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var d=-1;l=e(l,a(r));var y=n(f,function(v,p,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++d,value:v}});return i(y,function(v,p){return o(v,p,h)})}return Pc=s,Pc}var Tc,hv;function T_(){if(hv)return Tc;hv=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 Tc=e,Tc}var Ec,pv;function E_(){if(pv)return Ec;pv=1;var e=T_(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,c=t(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),e(n,this,f)}}return Ec=r,Ec}var jc,dv;function j_(){if(dv)return jc;dv=1;function e(t){return function(){return t}}return jc=e,jc}var Mc,vv;function Rb(){if(vv)return Mc;vv=1;var e=Vt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Mc=t,Mc}var Cc,yv;function M_(){if(yv)return Cc;yv=1;var e=j_(),t=Rb(),r=Rr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Cc=n,Cc}var $c,gv;function C_(){if(gv)return $c;gv=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=t-(u-o);if(o=u,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return $c=n,$c}var Ic,mv;function $_(){if(mv)return Ic;mv=1;var e=M_(),t=C_(),r=t(e);return Ic=r,Ic}var Rc,bv;function I_(){if(bv)return Rc;bv=1;var e=Rr(),t=E_(),r=$_();function n(i,a){return r(t(i,a,e),i+"")}return Rc=n,Rc}var kc,xv;function ya(){if(xv)return kc;xv=1;var e=tf(),t=Bn(),r=yf(),n=Tt();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?t(u)&&r(o,u.length):c=="string"&&o in u)?e(u[o],a):!1}return kc=i,kc}var Dc,wv;function R_(){if(wv)return Dc;wv=1;var e=Cb(),t=P_(),r=I_(),n=ya(),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 Dc=i,Dc}var k_=R_();const xf=ue(k_);function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}function Js(){return Js=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},Js.apply(this,arguments)}function D_(e,t){return L_(e)||B_(e,t)||q_(e,t)||N_()}function N_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
13
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q_(e,t){if(e){if(typeof e=="string")return Ov(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 Ov(e,t)}}function Ov(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=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function L_(e){if(Array.isArray(e))return e}function _v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_v(Object(r),!0).forEach(function(n){F_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F_(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=z_(e,"string");return nn(t)=="symbol"?t:t+""}function z_(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)}function W_(e){return Array.isArray(e)&&xe(e[0])&&xe(e[1])?e.join(" ~ "):e}var H_=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,h=t.itemSorter,d=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var P={padding:0,margin:0},j=(h?xf(f,h):f).map(function($,C){if($.type==="none")return null;var R=Nc({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),D=$.formatter||l||W_,B=$.value,L=$.name,W=B,G=L;if(D&&W!=null&&G!=null){var U=D(B,L,$,C,f);if(Array.isArray(U)){var K=D_(U,2);W=K[0],G=K[1]}else W=U}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:R},xe(G)?T.createElement("span",{className:"recharts-tooltip-item-name"},G):null,xe(G)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},W),T.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:P},j)}return null},O=Nc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=Nc({margin:0},s),m=!Z(v),_=m?v:"",S=te("recharts-default-tooltip",d),A=te("recharts-tooltip-label",y);m&&p&&f!==void 0&&f!==null&&(_=p(v,f));var M=x?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",Js({className:S,style:O},M),T.createElement("p",{className:A,style:g},T.isValidElement(_)?_:"".concat(_)),w())};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 Vn(e,t,r){return t=G_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G_(e){var t=K_(e,"string");return an(t)=="symbol"?t:t+""}function K_(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 Br="recharts-tooltip-wrapper",X_={visibility:"hidden"};function V_(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(Br,Vn(Vn(Vn(Vn({},"".concat(Br,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(Br,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(Br,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(Br,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function Sv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&q(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,d=c[n];return h<d?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,v=c[n]+s;return y>v?Math.max(f,c[n]):Math.max(l,c[n])}function Y_(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 Z_(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=Sv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=Sv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=Y_({translateX:f,translateY:l,useTranslate3d:u})):s=X_,{cssProperties:s,cssClasses:V_({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 Av(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 Pv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Av(Object(r),!0).forEach(function(n){el(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Av(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q_(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,Db(n.key),n)}}function eS(e,t,r){return t&&Q_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tS(e,t,r){return t=gi(t),rS(e,kb()?Reflect.construct(t,r||[],gi(e).constructor):t.apply(e,r))}function rS(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 nS(e)}function nS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kb=function(){return!!e})()}function gi(e){return gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gi(e)}function iS(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&&Qs(e,t)}function Qs(e,t){return Qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qs(e,t)}function el(e,t,r){return t=Db(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Db(e){var t=aS(e,"string");return dr(t)=="symbol"?t:t+""}function aS(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 Tv=1,oS=(function(e){function t(){var r;J_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=tS(this,t,[].concat(i)),el(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),el(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return iS(t,e),eS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Tv||Math.abs(n.height-this.state.lastBoundingBox.height)>Tv)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,d=i.offset,y=i.position,v=i.reverseDirection,p=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=Z_({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:b}),O=w.cssClasses,g=w.cssProperties,m=Pv(Pv({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return T.createElement("div",{tabIndex:-1,className:O,style:m,ref:function(S){n.wrapperNode=S}},s)}}])})(N.PureComponent),uS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ln={isSsr:uS()};function vr(e){"@babel/helpers - typeof";return vr=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},vr(e)}function Ev(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 jv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ev(Object(r),!0).forEach(function(n){wf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ev(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sS(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 lS(e,t,r){return t&&sS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fS(e,t,r){return t=mi(t),hS(e,Nb()?Reflect.construct(t,r||[],mi(e).constructor):t.apply(e,r))}function hS(e,t){if(t&&(vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pS(e)}function pS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nb=function(){return!!e})()}function mi(e){return mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mi(e)}function dS(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&&tl(e,t)}function tl(e,t){return tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tl(e,t)}function wf(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=vS(e,"string");return vr(t)=="symbol"?t:t+""}function vS(e,t){if(vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yS(e){return e.dataKey}function gS(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(H_,t)}var ut=(function(e){function t(){return cS(this,t),fS(this,t,arguments)}return dS(t,e),lS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,d=i.offset,y=i.payload,v=i.payloadUniqBy,p=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,g=y??[];l&&g.length&&(g=Eb(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,yS));var m=g.length>0;return T.createElement(oS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:m,offset:d,position:p,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},gS(s,jv(jv({},this.props),{},{payload:g})))}}])})(N.PureComponent);wf(ut,"displayName","Tooltip");wf(ut,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ln.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 qc,Mv;function mS(){if(Mv)return qc;Mv=1;var e=it(),t=function(){return e.Date.now()};return qc=t,qc}var Bc,Cv;function bS(){if(Cv)return Bc;Cv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Bc=t,Bc}var Lc,$v;function xS(){if($v)return Lc;$v=1;var e=bS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Lc=r,Lc}var Fc,Iv;function Bb(){if(Iv)return Fc;Iv=1;var e=xS(),t=Tt(),r=$r(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(t(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=t(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return Fc=c,Fc}var Uc,Rv;function wS(){if(Rv)return Uc;Rv=1;var e=Tt(),t=mS(),r=Bb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,d,y,v,p=0,b=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(b=!!s.leading,x="maxWait"in s,h=x?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(j){var $=f,C=l;return f=l=void 0,p=j,d=u.apply(C,$),d}function g(j){return p=j,y=setTimeout(S,c),b?O(j):d}function m(j){var $=j-v,C=j-p,R=c-$;return x?a(R,h-C):R}function _(j){var $=j-v,C=j-p;return v===void 0||$>=c||$<0||x&&C>=h}function S(){var j=t();if(_(j))return A(j);y=setTimeout(S,m(j))}function A(j){return y=void 0,w&&f?O(j):(f=l=void 0,d)}function M(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function E(){return y===void 0?d:A(t())}function P(){var j=t(),$=_(j);if(f=arguments,l=this,v=j,$){if(y===void 0)return g(v);if(x)return clearTimeout(y),y=setTimeout(S,c),O(v)}return y===void 0&&(y=setTimeout(S,c)),d}return P.cancel=M,P.flush=E,P}return Uc=o,Uc}var zc,kv;function OS(){if(kv)return zc;kv=1;var e=wS(),t=Tt(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:u,maxWait:a,trailing:c})}return zc=n,zc}var _S=OS();const Lb=ue(_S);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 Dv(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 Yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dv(Object(r),!0).forEach(function(n){SS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SS(e,t,r){return t=AS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AS(e){var t=PS(e,"string");return on(t)=="symbol"?t:t+""}function PS(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)}function TS(e,t){return CS(e)||MS(e,t)||jS(e,t)||ES()}function ES(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jS(e,t){if(e){if(typeof e=="string")return Nv(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 Nv(e,t)}}function Nv(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 MS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function CS(e){if(Array.isArray(e))return e}var
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jS(e,t){if(e){if(typeof e=="string")return Nv(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 Nv(e,t)}}function Nv(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 MS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function CS(e){if(Array.isArray(e))return e}var qD=N.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,c=u===void 0?"100%":u,s=e.minWidth,f=s===void 0?0:s,l=e.minHeight,h=e.maxHeight,d=e.children,y=e.debounce,v=y===void 0?0:y,p=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,g=N.useRef(null),m=N.useRef();m.current=x,N.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var _=N.useState({containerWidth:i.width,containerHeight:i.height}),S=TS(_,2),A=S[0],M=S[1],E=N.useCallback(function(j,$){M(function(C){var R=Math.round(j),D=Math.round($);return C.containerWidth===R&&C.containerHeight===D?C:{containerWidth:R,containerHeight:D}})},[]);N.useEffect(function(){var j=function(L){var W,G=L[0].contentRect,U=G.width,K=G.height;E(U,K),(W=m.current)===null||W===void 0||W.call(m,U,K)};v>0&&(j=Lb(j,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(j),C=g.current.getBoundingClientRect(),R=C.width,D=C.height;return E(R,D),$.observe(g.current),function(){$.disconnect()}},[E,v]);var P=N.useMemo(function(){var j=A.containerWidth,$=A.containerHeight;if(j<0||$<0)return null;pt(qt(o)||qt(c),`The width(%s) and height(%s) are both fixed numbers,
|
|
15
15
|
maybe you don't need to use a ResponsiveContainer.`,o,c),pt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=qt(o)?j:o,R=qt(c)?$:c;r&&r>0&&(C?R=C/r:R&&(C=R*r),h&&R>h&&(R=h)),pt(C>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
16
16
|
please check the style of container, or the props width(%s) and height(%s),
|
|
17
17
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
@@ -22,8 +22,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
22
22
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function pE(e){if(Array.isArray(e))return vl(e)}function vn(e,t){return yE(e)||vE(e,t)||I0(e,t)||dE()}function dE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
23
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I0(e,t){if(e){if(typeof e=="string")return vl(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 vl(e,t)}}function vl(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 vE(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function yE(e){if(Array.isArray(e))return e}function R0(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 k0(e,t,r){if(e.lte(0))return new ie(0);var n=Pa.getDigitCount(e.toNumber()),i=new ie(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ie(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ie(Math.ceil(c))}function gE(e,t,r){var n=1,i=new ie(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ie(10).pow(Pa.getDigitCount(e)-1),i=new ie(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ie(Math.floor(e)))}else e===0?i=new ie(Math.floor((t-1)/2)):r||(i=new ie(Math.floor(e)));var o=Math.floor((t-1)/2),u=aE(iE(function(c){return i.add(new ie(c-o).mul(n)).toNumber()}),hl);return u(0,t)}function D0(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ie(0),tickMin:new ie(0),tickMax:new ie(0)};var a=k0(new ie(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ie(0):(o=new ie(e).add(t).div(2),o=o.sub(new ie(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ie(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?D0(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ie(u).mul(a)),tickMax:o.add(new ie(c).mul(a))})}function mE(e){var t=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=R0([r,n]),c=vn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(dl(hl(0,i-1).map(function(){return 1/0}))):[].concat(dl(hl(0,i-1).map(function(){return-1/0})),[f]);return r>n?pl(l):l}if(s===f)return gE(s,i,a);var h=D0(s,f,o,a),d=h.step,y=h.tickMin,v=h.tickMax,p=Pa.rangeStep(y,v.add(new ie(.1).mul(d)),d);return r>n?pl(p):p}function bE(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=R0([n,i]),u=vn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=k0(new ie(s).sub(c).div(f-1),a,0),h=[].concat(dl(Pa.rangeStep(new ie(c),new ie(s).sub(new ie(.99).mul(l)),l)),[s]);return n>i?pl(h):h}var xE=$0(mE),wE=$0(bE),OE="Invariant failed";function Kt(e,t){throw new Error(OE)}var _E=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 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 SE(e,t){return EE(e)||TE(e,t)||PE(e,t)||AE()}function AE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
24
|
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 Hy(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 Hy(e,t)}}function Hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function TE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function EE(e){if(Array.isArray(e))return e}function jE(e,t){if(e==null)return{};var r=ME(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 ME(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 CE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $E(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 IE(e,t,r){return t&&$E(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RE(e,t,r){return t=Ri(t),kE(e,N0()?Reflect.construct(t,r||[],Ri(e).constructor):t.apply(e,r))}function kE(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 DE(e)}function DE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N0=function(){return!!e})()}function Ri(e){return Ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ri(e)}function NE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yl(e,t)}function yl(e,t){return yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yl(e,t)}function q0(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=qE(e,"string");return br(t)=="symbol"?t:t+""}function qE(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 Ta=(function(e){function t(){return CE(this,t),RE(this,t,arguments)}return NE(t,e),IE(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=jE(n,_E),d=ee(h,!1);this.props.direction==="x"&&f.type!=="number"&&Kt();var y=c.map(function(v){var p=s(v,u),b=p.x,x=p.y,w=p.value,O=p.errorVal;if(!O)return null;var g=[],m,_;if(Array.isArray(O)){var S=SE(O,2);m=S[0],_=S[1]}else m=_=O;if(a==="vertical"){var A=f.scale,M=x+i,E=M+o,P=M-o,j=A(w-m),$=A(w+_);g.push({x1:$,y1:E,x2:$,y2:P}),g.push({x1:j,y1:M,x2:$,y2:M}),g.push({x1:j,y1:E,x2:j,y2:P})}else if(a==="horizontal"){var C=l.scale,R=b+i,D=R-o,B=R+o,L=C(w-m),W=C(w+_);g.push({x1:D,y1:W,x2:B,y2:W}),g.push({x1:R,y1:L,x2:R,y2:W}),g.push({x1:D,y1:L,x2:B,y2:L})}return T.createElement(_e,Ii({className:"recharts-errorBar",key:"bar-".concat(g.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),g.map(function(G){return T.createElement("line",Ii({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return T.createElement(_e,{className:"recharts-errorBars"},y)}}])})(T.Component);q0(Ta,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});q0(Ta,"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 Gy(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 kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gy(Object(r),!0).forEach(function(n){BE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BE(e,t,r){return t=LE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LE(e){var t=FE(e,"string");return yn(t)=="symbol"?t:t+""}function FE(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 L0=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ne(r,cr);if(!o)return null;var u=cr.defaultProps,c=u!==void 0?kt(kt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var h=l.item,d=l.props,y=d.sectors||d.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,d=h!==void 0?kt(kt({},h),l.props):{},y=d.dataKey,v=d.name,p=d.legendType,b=d.hide;return{inactive:b,dataKey:y,type:c.iconType||p||"square",color:Kf(l),value:v||y,payload:d}}),kt(kt(kt({},c),cr.getWithHeight(o,i)),{},{payload:s,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 Ky(e){return HE(e)||WE(e)||zE(e)||UE()}function UE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
25
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zE(e,t){if(e){if(typeof e=="string")return gl(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 gl(e,t)}}function WE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HE(e){if(Array.isArray(e))return gl(e)}function gl(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 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 he(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){lr(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 lr(e,t,r){return t=GE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GE(e){var t=KE(e,"string");return gn(t)=="symbol"?t:t+""}function KE(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 Je(e,t,r){return Z(e)||Z(t)?r:xe(t)?ze(e,t,r):Y(t)?t(e):r}function Qr(e,t,r,n){var i=HT(e,function(u){return Je(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[Sa(a),_a(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return xe(u)||u instanceof Date?u:""})}var XE=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Ve(l-f)!==Ve(h-l)){var y=[];if(Ve(h-l)===Ve(c[1]-c[0])){d=h;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{d=f;var p=h+c[1]-c[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var b=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Kf=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},VE=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,d=l.length;h<d;h++){var y=f[l[h]],v=y.items,p=y.cateAxisId,b=v.filter(function(_){return ht(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?he(he({},x),b[0].props):b[0].props,O=w.barSize,g=w[p];o[g]||(o[g]=[]);var m=Z(O)?r:O;o[g].push({item:b[0],stackList:b.slice(1),barSize:Z(m)?void 0:Ye(m,n,0)})}}return o},YE=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=Ye(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/c,y=o.reduce(function(O,g){return O+g.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&d>0&&(h=!0,d*=.9,y=c*d);var v=(i-y)/2>>0,p={offset:v-s,size:0};f=o.reduce(function(O,g){var m={item:g.item,position:{offset:p.offset+p.size+s,size:h?d:g.barSize}},_=[].concat(Ky(O),[m]);return p=_[_.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:p})}),_},l)}else{var b=Ye(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var x=(i-2*b-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,g,m){var _=[].concat(Ky(O),[{item:g.item,position:{offset:b+(x+s)*m+(x-w)/2,size:w}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},ZE=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=L0({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,d=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&d!=="center"&&q(t[d]))return he(he({},t),{},lr({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&q(t[y]))return he(he({},t),{},lr({},y,t[y]+(h||0)))}return t},JE=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},F0=function(t,r,n,i,a){var o=r.props.children,u=Ze(o,Ta).filter(function(s){return JE(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=Je(f,n);if(Z(l))return s;var h=Array.isArray(l)?[Sa(l),_a(l)]:[l,l],d=c.reduce(function(y,v){var p=Je(f,v,0),b=h[0]-Math.abs(Array.isArray(p)?p[0]:p),x=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},QE=function(t,r,n,i,a){var o=r.map(function(u){return F0(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},U0=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&F0(t,c,s,i)||Qr(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},z0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},W0=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},ft=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Ve(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!qn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},us=new WeakMap,ti=function(t,r){if(typeof r!="function")return t;us.has(t)||us.set(t,new WeakMap);var n=us.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},H0=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:Ei(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Jr(),realScaleType:"point"}:a==="category"?{scale:sn(),realScaleType:"band"}:{scale:Ei(),realScaleType:"linear"};if(Ht(i)){var c="scale".concat(la(i));return{scale:(Iy[c]||Jr)(),realScaleType:Iy[c]?c:"point"}}return Y(i)?{scale:i}:{scale:Jr(),realScaleType:"point"}},Vy=1e-4,G0=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])-Vy,o=Math.max(i[0],i[1])+Vy,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},ej=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},tj=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},rj=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=qn(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},nj=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=qn(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)}},ij={sign:rj,expand:zO,none:fr,silhouette:WO,wiggle:HO,positive:nj},aj=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=ij[n],o=UO().keys(i).value(function(u,c){return+Je(u,c,0)}).order(Ks).offset(a);return o(t)},oj=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var d,y=(d=h.type)!==null&&d!==void 0&&d.defaultProps?he(he({},h.type.defaultProps),h.props):h.props,v=y.stackId,p=y.hide;if(p)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(xe(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[sa("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return he(he({},l),{},lr({},b,x))},c),f={};return Object.keys(s).reduce(function(l,h){var d=s[h];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(v,p){var b=d.stackGroups[p];return he(he({},v),{},lr({},p,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:aj(t,b.items,a)}))},y)}return he(he({},l),{},lr({},h,d))},f)},K0=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=xE(s,a,u);return t.domain([Sa(f),_a(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=wE(l,a,u);return{niceTicks:h}}return null};function qD(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Z(i[t.dataKey])){var u=ui(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Je(i,Z(o)?t.dataKey:o);return Z(c)?null:t.scale(c)}var Yy=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Je(o,r.dataKey,r.domain[u]);return Z(c)?null:r.scale(c)-a/2+i},uj=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]},cj=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(xe(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},sj=function(t){return t.reduce(function(r,n){return[Sa(n.concat([r[0]]).filter(q)),_a(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},X0=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=sj(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Zy=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Jy=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ml=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Zy.test(t[0])){var a=+Zy.exec(t[0])[1];i[0]=r[0]-a}else Y(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Jy.test(t[1])){var o=+Jy.exec(t[1])[1];i[1]=r[1]+o}else Y(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ki=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=xf(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Qy=function(t,r,n){return!t||!t.length||Wf(t,ze(n,"type.defaultProps.domain"))?r:t},V0=function(t,r){var n=t.type.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return he(he({},ee(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Kf(t),value:Je(r,i),type:c,payload:r,chartType:s,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 eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(r),!0).forEach(function(n){Y0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y0(e,t,r){return t=lj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lj(e){var t=fj(e,"string");return mn(t)=="symbol"?t:t+""}function fj(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 hj(e,t){return yj(e)||vj(e,t)||dj(e,t)||pj()}function pj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
26
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dj(e,t){if(e){if(typeof e=="string")return tg(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 tg(e,t)}}function tg(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 vj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function yj(e){if(Array.isArray(e))return e}var Di=Math.PI/180,gj=function(t){return t*180/Math.PI},Pe=function(t,r,n,i){return{x:t+Math.cos(-Di*i)*n,y:r+Math.sin(-Di*i)*n}},mj=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zE(e,t){if(e){if(typeof e=="string")return gl(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 gl(e,t)}}function WE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HE(e){if(Array.isArray(e))return gl(e)}function gl(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 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 he(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){lr(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 lr(e,t,r){return t=GE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GE(e){var t=KE(e,"string");return gn(t)=="symbol"?t:t+""}function KE(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 Je(e,t,r){return Z(e)||Z(t)?r:xe(t)?ze(e,t,r):Y(t)?t(e):r}function Qr(e,t,r,n){var i=HT(e,function(u){return Je(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[Sa(a),_a(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return xe(u)||u instanceof Date?u:""})}var XE=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Ve(l-f)!==Ve(h-l)){var y=[];if(Ve(h-l)===Ve(c[1]-c[0])){d=h;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{d=f;var p=h+c[1]-c[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var b=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Kf=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},VE=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,d=l.length;h<d;h++){var y=f[l[h]],v=y.items,p=y.cateAxisId,b=v.filter(function(_){return ht(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?he(he({},x),b[0].props):b[0].props,O=w.barSize,g=w[p];o[g]||(o[g]=[]);var m=Z(O)?r:O;o[g].push({item:b[0],stackList:b.slice(1),barSize:Z(m)?void 0:Ye(m,n,0)})}}return o},YE=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=Ye(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/c,y=o.reduce(function(O,g){return O+g.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&d>0&&(h=!0,d*=.9,y=c*d);var v=(i-y)/2>>0,p={offset:v-s,size:0};f=o.reduce(function(O,g){var m={item:g.item,position:{offset:p.offset+p.size+s,size:h?d:g.barSize}},_=[].concat(Ky(O),[m]);return p=_[_.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:p})}),_},l)}else{var b=Ye(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var x=(i-2*b-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,g,m){var _=[].concat(Ky(O),[{item:g.item,position:{offset:b+(x+s)*m+(x-w)/2,size:w}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},ZE=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=L0({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,d=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&d!=="center"&&q(t[d]))return he(he({},t),{},lr({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&q(t[y]))return he(he({},t),{},lr({},y,t[y]+(h||0)))}return t},JE=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},F0=function(t,r,n,i,a){var o=r.props.children,u=Ze(o,Ta).filter(function(s){return JE(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=Je(f,n);if(Z(l))return s;var h=Array.isArray(l)?[Sa(l),_a(l)]:[l,l],d=c.reduce(function(y,v){var p=Je(f,v,0),b=h[0]-Math.abs(Array.isArray(p)?p[0]:p),x=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},QE=function(t,r,n,i,a){var o=r.map(function(u){return F0(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},U0=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&F0(t,c,s,i)||Qr(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},z0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},W0=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},ft=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?Ve(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!qn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},us=new WeakMap,ti=function(t,r){if(typeof r!="function")return t;us.has(t)||us.set(t,new WeakMap);var n=us.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},H0=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:Ei(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Jr(),realScaleType:"point"}:a==="category"?{scale:sn(),realScaleType:"band"}:{scale:Ei(),realScaleType:"linear"};if(Ht(i)){var c="scale".concat(la(i));return{scale:(Iy[c]||Jr)(),realScaleType:Iy[c]?c:"point"}}return Y(i)?{scale:i}:{scale:Jr(),realScaleType:"point"}},Vy=1e-4,G0=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])-Vy,o=Math.max(i[0],i[1])+Vy,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},ej=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},tj=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},rj=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=qn(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},nj=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=qn(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)}},ij={sign:rj,expand:zO,none:fr,silhouette:WO,wiggle:HO,positive:nj},aj=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=ij[n],o=UO().keys(i).value(function(u,c){return+Je(u,c,0)}).order(Ks).offset(a);return o(t)},oj=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var d,y=(d=h.type)!==null&&d!==void 0&&d.defaultProps?he(he({},h.type.defaultProps),h.props):h.props,v=y.stackId,p=y.hide;if(p)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(xe(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[sa("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return he(he({},l),{},lr({},b,x))},c),f={};return Object.keys(s).reduce(function(l,h){var d=s[h];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(v,p){var b=d.stackGroups[p];return he(he({},v),{},lr({},p,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:aj(t,b.items,a)}))},y)}return he(he({},l),{},lr({},h,d))},f)},K0=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=xE(s,a,u);return t.domain([Sa(f),_a(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=wE(l,a,u);return{niceTicks:h}}return null};function BD(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Z(i[t.dataKey])){var u=ui(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Je(i,Z(o)?t.dataKey:o);return Z(c)?null:t.scale(c)}var Yy=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Je(o,r.dataKey,r.domain[u]);return Z(c)?null:r.scale(c)-a/2+i},uj=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]},cj=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(xe(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},sj=function(t){return t.reduce(function(r,n){return[Sa(n.concat([r[0]]).filter(q)),_a(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},X0=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=sj(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Zy=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Jy=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ml=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Zy.test(t[0])){var a=+Zy.exec(t[0])[1];i[0]=r[0]-a}else Y(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Jy.test(t[1])){var o=+Jy.exec(t[1])[1];i[1]=r[1]+o}else Y(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ki=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=xf(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Qy=function(t,r,n){return!t||!t.length||Wf(t,ze(n,"type.defaultProps.domain"))?r:t},V0=function(t,r){var n=t.type.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return he(he({},ee(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Kf(t),value:Je(r,i),type:c,payload:r,chartType:s,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 eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(r),!0).forEach(function(n){Y0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y0(e,t,r){return t=lj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lj(e){var t=fj(e,"string");return mn(t)=="symbol"?t:t+""}function fj(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 hj(e,t){return yj(e)||vj(e,t)||dj(e,t)||pj()}function pj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
26
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dj(e,t){if(e){if(typeof e=="string")return tg(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 tg(e,t)}}function tg(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 vj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function yj(e){if(Array.isArray(e))return e}var Di=Math.PI/180,gj=function(t){return t*180/Math.PI},Pe=function(t,r,n,i){return{x:t+Math.cos(-Di*i)*n,y:r+Math.sin(-Di*i)*n}},mj=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},LD=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=Ye(t.cx,o,o/2),l=Ye(t.cy,u,u/2),h=mj(o,u,n),d=Ye(t.innerRadius,h,0),y=Ye(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(p,b){var x=r[b],w=x.domain,O=x.reversed,g;if(Z(x.range))i==="angleAxis"?g=[c,s]:i==="radiusAxis"&&(g=[d,y]),O&&(g=[g[1],g[0]]);else{g=x.range;var m=g,_=hj(m,2);c=_[0],s=_[1]}var S=H0(x,a),A=S.realScaleType,M=S.scale;M.domain(w).range(g),G0(M);var E=K0(M,ct(ct({},x),{},{realScaleType:A})),P=ct(ct(ct({},x),E),{},{range:g,radius:y,realScaleType:A,scale:M,cx:f,cy:l,innerRadius:d,outerRadius:y,startAngle:c,endAngle:s});return ct(ct({},p),{},Y0({},b,P))},{})},bj=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))},xj=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=bj({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:gj(s),angleInRadian:s}},wj=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}},Oj=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},rg=function(t,r){var n=t.x,i=t.y,a=xj({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=wj(r),l=f.startAngle,h=f.endAngle,d=u,y;if(l<=h){for(;d>h;)d-=360;for(;d<l;)d+=360;y=d>=l&&d<=h}else{for(;d>l;)d-=360;for(;d<h;)d+=360;y=d>=h&&d<=l}return y?ct(ct({},r),{},{radius:o,angle:Oj(d,r)}):null},FD=function(t){return!N.isValidElement(t)&&!Y(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 _j=["offset"];function Sj(e){return Ej(e)||Tj(e)||Pj(e)||Aj()}function Aj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
27
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pj(e,t){if(e){if(typeof e=="string")return bl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bl(e,t)}}function Tj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ej(e){if(Array.isArray(e))return bl(e)}function bl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jj(e,t){if(e==null)return{};var r=Mj(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 Mj(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 ng(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ng(Object(r),!0).forEach(function(n){Cj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ng(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cj(e,t,r){return t=$j(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $j(e){var t=Ij(e,"string");return bn(t)=="symbol"?t:t+""}function Ij(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 Rj=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return Y(n)?n(i):i},kj=function(t,r){var n=Ve(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Dj=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,h=c.outerRadius,d=c.startAngle,y=c.endAngle,v=c.clockWise,p=(l+h)/2,b=kj(d,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=d+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var g=Pe(s,f,p,w),m=Pe(s,f,p,w+(O?1:-1)*359),_="M".concat(g.x,",").concat(g.y,`
|
|
28
28
|
A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
|
|
29
29
|
`).concat(m.x,",").concat(m.y),S=Z(t.id)?sa("recharts-radial-line-"):t.id;return T.createElement("text",xn({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",u)}),T.createElement("defs",null,T.createElement("path",{id:S,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(S)},r))},Nj=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var d=Pe(o,u,s+n,h),y=d.x,v=d.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var p=(c+s)/2,b=Pe(o,u,p,h),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},qj=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,d=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,p=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:d};return be(be({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return be(be({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var g={x:u-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return be(be({},g),n?{width:Math.max(g.x-n.x,0),height:f}:{})}if(a==="right"){var m={x:u+s+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return be(be({},m),n?{width:Math.max(n.x+n.width-m.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?be({x:u+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?be({x:u+s-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?be({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?be({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?be({x:u+p,y:c+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?be({x:u+s-p,y:c+h,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?be({x:u+p,y:c+f-h,textAnchor:x,verticalAnchor:d},_):a==="insideBottomRight"?be({x:u+s-p,y:c+f-h,textAnchor:b,verticalAnchor:d},_):Ir(a)&&(q(a.x)||qt(a.x))&&(q(a.y)||qt(a.y))?be({x:u+Ye(a.x,s),y:c+Ye(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):be({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},Bj=function(t){return"cx"in t&&q(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=jj(e,_j),i=be({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||Z(u)&&Z(c)&&!N.isValidElement(s)&&!Y(s))return null;if(N.isValidElement(s))return N.cloneElement(s,i);var d;if(Y(s)){if(d=N.createElement(s,i),N.isValidElement(d))return d}else d=Rj(i);var y=Bj(a),v=ee(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Dj(i,d,v);var p=y?Nj(i):qj(i);return T.createElement(xi,xn({className:te("recharts-label",l)},v,p,{breakAll:h}),d)}Ee.displayName="Label";var Z0=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,d=t.top,y=t.left,v=t.width,p=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(q(v)&&q(p)){if(q(l)&&q(h))return{x:l,y:h,width:v,height:p};if(q(d)&&q(y))return{x:d,y,width:v,height:p}}return q(l)&&q(h)?{x:l,y:h,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},Lj=function(t,r){return t?t===!0?T.createElement(Ee,{key:"label-implicit",viewBox:r}):xe(t)?T.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Ee?N.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Y(t)?T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Ir(t)?T.createElement(Ee,xn({viewBox:r},t,{key:"label-implicit"})):null:null},Fj=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=Z0(t),o=Ze(i,Ee).map(function(c,s){return N.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=Lj(t.label,r||a);return[u].concat(Sj(o))};Ee.parseViewBox=Z0;Ee.renderCallByParent=Fj;var cs,ig;function Uj(){if(ig)return cs;ig=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return cs=e,cs}var zj=Uj();const Wj=ue(zj);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 Hj=["valueAccessor"],Gj=["data","dataKey","clockWise","id","textBreakAll"];function Kj(e){return Zj(e)||Yj(e)||Vj(e)||Xj()}function Xj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -62,8 +62,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
62
62
|
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
|
|
63
63
|
L `).concat(t+c*y,",").concat(r+i,`
|
|
64
64
|
A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},u$=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},c$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Xf=function(t){var r=Rg(Rg({},c$),t),n=N.useRef(),i=N.useState(-1),a=QC(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=te("recharts-rectangle",d);return x?T.createElement(Pt,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(O){var g=O.width,m=O.height,_=O.x,S=O.y;return T.createElement(Pt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:b,easing:y},T.createElement("path",Ui({},ee(r,!0),{className:w,d:kg(_,S,g,m,h),ref:n})))}):T.createElement("path",Ui({},ee(r,!0),{className:w,d:kg(c,s,f,l,h)}))};function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$l.apply(this,arguments)}var ux=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=te("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",$l({},ee(t,!1),ci(t),{className:o,cx:r,cy:n,r:i})):null};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)}var s$=["x","y","top","left","width","height","className"];function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Il.apply(this,arguments)}function Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function l$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dg(Object(r),!0).forEach(function(n){f$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f$(e,t,r){return t=h$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h$(e){var t=p$(e,"string");return Tn(t)=="symbol"?t:t+""}function p$(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 d$(e,t){if(e==null)return{};var r=v$(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 v$(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 y$=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},g$=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,d=h===void 0?0:h,y=t.className,v=d$(t,s$),p=l$({x:n,y:a,top:u,left:s,width:l,height:d},v);return!q(n)||!q(a)||!q(l)||!q(d)||!q(u)||!q(s)?null:T.createElement("path",Il({},ee(p,!0),{className:te("recharts-cross",y),d:y$(n,a,l,d,u,s)}))},ds,Ng;function m$(){if(Ng)return ds;Ng=1;var e=_b(),t=e(Object.getPrototypeOf,Object);return ds=t,ds}var vs,qg;function b$(){if(qg)return vs;qg=1;var e=mt(),t=m$(),r=bt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==c}return vs=s,vs}var x$=b$();const w$=ue(x$);var ys,Bg;function O$(){if(Bg)return ys;Bg=1;var e=mt(),t=bt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return ys=n,ys}var _$=O$();const S$=ue(_$);function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function zi(){return zi=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},zi.apply(this,arguments)}function A$(e,t){return j$(e)||E$(e,t)||T$(e,t)||P$()}function P$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
65
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T$(e,t){if(e){if(typeof e=="string")return Lg(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 Lg(e,t)}}function Lg(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 E$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function j$(e){if(Array.isArray(e))return e}function 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 Ug(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){M$(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 M$(e,t,r){return t=C$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C$(e){var t=$$(e,"string");return En(t)=="symbol"?t:t+""}function $$(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zg=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},I$={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},R$=function(t){var r=Ug(Ug({},I$),t),n=N.useRef(),i=N.useState(-1),a=A$(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=te("recharts-trapezoid",d);return b?T.createElement(Pt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,g=w.lowerWidth,m=w.height,_=w.x,S=w.y;return T.createElement(Pt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},T.createElement("path",zi({},ee(r,!0),{className:x,d:zg(_,S,O,g,m),ref:n})))}):T.createElement("g",null,T.createElement("path",zi({},ee(r,!0),{className:x,d:zg(c,s,f,l,h)})))},k$=["option","shapeType","propTransformer","activeClassName","isActive"];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 D$(e,t){if(e==null)return{};var r=N$(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 N$(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 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 Wi(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){q$(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 q$(e,t,r){return t=B$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B$(e){var t=L$(e,"string");return jn(t)=="symbol"?t:t+""}function L$(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 F$(e,t){return Wi(Wi({},t),e)}function U$(e,t){return e==="symbols"}function Hg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(Xf,r);case"trapezoid":return T.createElement(R$,r);case"sector":return T.createElement(Q0,r);case"symbols":if(U$(t))return T.createElement(hf,r);break;default:return null}}function z$(e){return N.isValidElement(e)?e.props:e}function W$(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?F$:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=D$(e,k$),s;if(N.isValidElement(t))s=N.cloneElement(t,Wi(Wi({},c),z$(t)));else if(Y(t))s=t(c);else if(w$(t)&&!S$(t)){var f=i(t,c);s=T.createElement(Hg,{shapeType:r,elementProps:f})}else{var l=c;s=T.createElement(Hg,{shapeType:r,elementProps:l})}return u?T.createElement(_e,{className:o},s):s}function Ea(e,t){return t!=null&&"trapezoids"in e.props}function ja(e,t){return t!=null&&"sectors"in e.props}function Mn(e,t){return t!=null&&"points"in e.props}function H$(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 G$(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function K$(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function X$(e,t){var r;return Ea(e,t)?r=H$:ja(e,t)?r=G$:Mn(e,t)&&(r=K$),r}function V$(e,t){var r;return Ea(e,t)?r="trapezoids":ja(e,t)?r="sectors":Mn(e,t)&&(r="points"),r}function Y$(e,t){if(Ea(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(ja(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 Mn(e,t)?t.payload:{}}function Z$(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=V$(r,t),a=Y$(r,t),o=n.filter(function(c,s){var f=Wf(a,c),l=r.props[i].filter(function(y){var v=X$(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),d=s===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var gs,Gg;function J$(){if(Gg)return gs;Gg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return gs=r,gs}var ms,Kg;function cx(){if(Kg)return ms;Kg=1;var e=Bb(),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 ms=n,ms}var bs,Xg;function Q$(){if(Xg)return bs;Xg=1;var e=J$(),t=ya(),r=cx();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 bs=n,bs}var xs,Vg;function eI(){if(Vg)return xs;Vg=1;var e=Q$(),t=e();return xs=t,xs}var tI=eI();const Hi=ue(tI);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 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 Zg(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){sx(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 sx(e,t,r){return t=rI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rI(e){var t=nI(e,"string");return Cn(t)=="symbol"?t:t+""}function nI(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 iI=["Webkit","Moz","O","ms"],aI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=iI.reduce(function(a,o){return Zg(Zg({},a),{},sx({},o+n,r))},{});return i[t]=r,i};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 Gi(){return Gi=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},Gi.apply(this,arguments)}function Jg(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 ws(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jg(Object(r),!0).forEach(function(n){De(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fx(n.key),n)}}function uI(e,t,r){return t&&Qg(e.prototype,t),r&&Qg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cI(e,t,r){return t=Ki(t),sI(e,lx()?Reflect.construct(t,r||[],Ki(e).constructor):t.apply(e,r))}function sI(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 lI(e)}function lI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lx=function(){return!!e})()}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(e)}function fI(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 De(e,t,r){return t=fx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fx(e){var t=hI(e,"string");return wr(t)=="symbol"?t:t+""}function hI(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 pI=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=Jr().domain(Hi(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},em=function(t){return t.changedTouches&&!!t.changedTouches.length},Or=(function(e){function t(r){var n;return oI(this,t),n=cI(this,t,[r]),De(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),De(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),De(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),De(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),De(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),De(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),De(n,"handleSlideDragStart",function(i){var a=em(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 fI(t,e),uI(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),d=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:d-d%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Je(a[n],u,n);return Y(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,d=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==h||p.endIndex!==d)&&y&&y(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=em(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,d=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-d-s):x<0&&(x=Math.max(x,l-s)),b[o]=s+x;var w=this.getIndex(b),O=w.startIndex,g=w.endIndex,m=function(){var S=p.length-1;return o==="startX"&&(u>c?O%v===0:g%v===0)||u<c&&g===S||o==="endX"&&(u>c?g%v===0:O%v===0)||u>c&&g===S};this.setState(De(De({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&m()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(De({},i,d),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return T.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=N.Children.only(s);return l?T.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,h=c.traveller,d=c.ariaLabel,y=c.data,v=c.startIndex,p=c.endIndex,b=Math.max(n,this.props.x),x=ws(ws({},ee(this.props,!1)),{},{x:b,y:s,width:f,height:l}),w=d||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return T.createElement(_e,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),u.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,h=f.endX,d=5,y={pointerEvents:"none",fill:s};return T.createElement(_e,{className:"recharts-brush-texts"},T.createElement(xi,Gi({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},y),this.getTextOfTick(i)),T.createElement(xi,Gi({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+d,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,d=h.startX,y=h.endX,v=h.isTextActive,p=h.isSlideMoving,b=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!q(u)||!q(c)||!q(s)||!q(f)||s<=0||f<=0)return null;var w=te("recharts-brush",a),O=T.Children.count(o)===1,g=aI("userSelect","none");return T.createElement(_e,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),T.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):Y(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return ws({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?pI({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(N.PureComponent);De(Or,"displayName","Brush");De(Or,"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 Os,tm;function dI(){if(tm)return Os;tm=1;var e=bf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Os=t,Os}var _s,rm;function vI(){if(rm)return _s;rm=1;var e=yb(),t=Et(),r=dI(),n=Re(),i=ya();function a(o,u,c){var s=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),s(o,t(u,3))}return _s=a,_s}var yI=vI();const gI=ue(yI);var rt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Ss,nm;function mI(){if(nm)return Ss;nm=1;var e=Rb();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Ss=t,Ss}var As,im;function bI(){if(im)return As;im=1;var e=mI(),t=$b(),r=Et();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,s){e(o,c,a(u,c,s))}),o}return As=n,As}var xI=bI();const wI=ue(xI);var Ps,am;function OI(){if(am)return Ps;am=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 Ps=e,Ps}var Ts,om;function _I(){if(om)return Ts;om=1;var e=bf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Ts=t,Ts}var Es,um;function SI(){if(um)return Es;um=1;var e=OI(),t=_I(),r=Et(),n=Re(),i=ya();function a(o,u,c){var s=n(o)?e:t;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return Es=a,Es}var AI=SI();const hx=ue(AI);var PI=["x","y"];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 kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kl.apply(this,arguments)}function cm(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?cm(Object(r),!0).forEach(function(n){TI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TI(e,t,r){return t=EI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EI(e){var t=jI(e,"string");return $n(t)=="symbol"?t:t+""}function jI(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 MI(e,t){if(e==null)return{};var r=CI(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 CI(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 $I(e,t){var r=e.x,n=e.y,i=MI(e,PI),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Kr(Kr(Kr(Kr(Kr({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function sm(e){return T.createElement(W$,kl({shapeType:"rectangle",propTransformer:$I,activeClassName:"recharts-active-bar"},e))}var II=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||qw(n);return a?t(n,i):(a||Kt(),r)}},RI=["value","background"],px;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 kI(e,t){if(e==null)return{};var r=DI(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 DI(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 Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xi.apply(this,arguments)}function lm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lm(Object(r),!0).forEach(function(n){St(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fm(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,vx(n.key),n)}}function qI(e,t,r){return t&&fm(e.prototype,t),r&&fm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function BI(e,t,r){return t=Vi(t),LI(e,dx()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function LI(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 FI(e)}function FI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dx=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function UI(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=vx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vx(e){var t=zI(e,"string");return _r(t)=="symbol"?t:t+""}function zI(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 Hn=(function(e){function t(){var r;NI(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=BI(this,t,[].concat(i)),St(r,"state",{isAnimationFinished:!1}),St(r,"id",sa("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 UI(t,e),qI(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=ee(this.props,!1);return n&&n.map(function(l,h){var d=h===c,y=d?s:o,v=de(de(de({},f),l),{},{isActive:d,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(_e,Xi({className:"recharts-bar-rectangle"},si(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(sm,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return T.createElement(Pt,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var y=d.t,v=a.map(function(p,b){var x=h&&h[b];if(x){var w=er(x.x,p.x),O=er(x.y,p.y),g=er(x.width,p.width),m=er(x.height,p.height);return de(de({},p),{},{x:w(y),y:O(y),width:g(y),height:m(y)})}if(o==="horizontal"){var _=er(0,p.height),S=_(y);return de(de({},p),{},{y:p.y+p.height-S,height:S})}var A=er(0,p.width),M=A(y);return de(de({},p),{},{width:M})});return T.createElement(_e,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Wf(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=ee(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=kI(s,RI);if(!l)return null;var d=de(de(de(de(de({},h),{},{fill:"#eee"},l),c),si(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(sm,Xi({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Ze(f,Ta);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,d=function(p,b){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:Je(p,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(_e,y,l.map(function(v){return T.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,h=n.height,d=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,b=te("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,g=Z(v)?this.id:v;return T.createElement(_e,{className:b},x||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(g)},T.createElement("rect",{x:x?s:s-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,T.createElement(_e,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,g),(!d||p)&&Wt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(N.PureComponent);px=Hn;St(Hn,"displayName","Bar");St(Hn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ln.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});St(Hn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=ej(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?de(de({},v),r.props):r.props,b=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,g=s?O.scale.domain():null,m=uj({numericAxis:O}),_=Ze(x,Fb),S=l.map(function(A,M){var E,P,j,$,C,R;s?E=tj(s[f+M],g):(E=Je(A,b),Array.isArray(E)||(E=[m,E]));var D=II(w,px.defaultProps.minPointSize)(E[1],M);if(y==="horizontal"){var B,L=[o.scale(E[0]),o.scale(E[1])],W=L[0],G=L[1];P=Yy({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:A,index:M}),j=(B=G??W)!==null&&B!==void 0?B:void 0,$=d.size;var U=W-G;if(C=Number.isNaN(U)?0:U,R={x:P,y:o.y,width:$,height:o.height},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var K=Ve(C||D)*(Math.abs(D)-Math.abs(C));j-=K,C+=K}}else{var ce=[a.scale(E[0]),a.scale(E[1])],pe=ce[0],ke=ce[1];if(P=pe,j=Yy({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:A,index:M}),$=ke-pe,C=d.size,R={x:a.x,y:j,width:a.width,height:C},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var $t=Ve($||D)*(Math.abs(D)-Math.abs($));$+=$t}}return de(de(de({},A),{},{x:P,y:j,width:$,height:C,value:s?E:E[1],payload:A,background:R},_&&_[M]&&_[M].props),{},{tooltipPayload:[V0(r,A)],tooltipPosition:{x:P+$/2,y:j+C/2}})});return de({data:S,layout:y},h)});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 WI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hm(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,yx(n.key),n)}}function HI(e,t,r){return t&&hm(e.prototype,t),r&&hm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pm(Object(r),!0).forEach(function(n){Ma(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ma(e,t,r){return t=yx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yx(e){var t=GI(e,"string");return In(t)=="symbol"?t:t+""}function GI(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FD=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!Ne(s,Hn);return f.reduce(function(d,y){var v=r[y],p=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,g=v.reversed,m="".concat(p).concat(O?"Mirror":""),_,S,A,M,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=b[1]-b[0],j=1/0,$=v.categoricalDomain.sort(Fw);if($.forEach(function(ce,pe){pe>0&&(j=Math.min((ce||0)-($[pe-1]||0),j))}),Number.isFinite(j)){var C=j/P,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*R/2),v.padding==="no-gap"){var D=Ye(t.barCategoryGap,C*R),B=C*R/2;_=B-D-(B-D)/R*D}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,g&&(S=[S[1],S[0]]);var L=H0(v,a,h),W=L.scale,G=L.realScaleType;W.domain(b).range(S),G0(W);var U=K0(W,Ke(Ke({},v),{},{realScaleType:G}));i==="xAxis"?(E=p==="top"&&!O||p==="bottom"&&O,A=n.left,M=l[m]-E*v.height):i==="yAxis"&&(E=p==="left"&&!O||p==="right"&&O,A=l[m]-E*v.width,M=n.top);var K=Ke(Ke(Ke({},v),U),{},{realScaleType:G,x:A,y:M,scale:W,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return K.bandSize=ki(K,U),!v.hide&&i==="xAxis"?l[m]+=(E?-1:1)*K.height:v.hide||(l[m]+=(E?-1:1)*K.width),Ke(Ke({},d),{},Ma({},y,K))},{})},gx=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)}},KI=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return gx({x:r,y:n},{x:i,y:a})},mx=(function(){function e(t){WI(this,e),this.scale=t}return HI(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Ma(mx,"EPS",1e-4);var Vf=function(t){var r=Object.keys(t).reduce(function(n,i){return Ke(Ke({},n),{},Ma({},i,mx.create(t[i])))},{});return Ke(Ke({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return wI(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return hx(i,function(a,o){return r[o].isInRange(a)})}})};function XI(e){return(e%180+180)%180}var VI=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=XI(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},js,dm;function YI(){if(dm)return js;dm=1;var e=Et(),t=Bn(),r=da();function n(i){return function(a,o,u){var c=Object(a);if(!t(a)){var s=e(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return js=n,js}var Ms,vm;function ZI(){if(vm)return Ms;vm=1;var e=cx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Ms=t,Ms}var Cs,ym;function JI(){if(ym)return Cs;ym=1;var e=Tb(),t=Et(),r=ZI(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),e(a,t(o,3),s)}return Cs=i,Cs}var $s,gm;function QI(){if(gm)return $s;gm=1;var e=YI(),t=JI(),r=e(t);return $s=r,$s}var eR=QI();const tR=ue(eR);var rR=zm();const nR=ue(rR);var iR=nR(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("")}),Yf=N.createContext(void 0),Zf=N.createContext(void 0),bx=N.createContext(void 0),xx=N.createContext({}),wx=N.createContext(void 0),Ox=N.createContext(0),_x=N.createContext(0),mm=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=iR(a);return T.createElement(Yf.Provider,{value:n},T.createElement(Zf.Provider,{value:i},T.createElement(xx.Provider,{value:a},T.createElement(bx.Provider,{value:f},T.createElement(wx.Provider,{value:o},T.createElement(Ox.Provider,{value:s},T.createElement(_x.Provider,{value:c},u)))))))},aR=function(){return N.useContext(wx)},Sx=function(t){var r=N.useContext(Yf);r==null&&Kt();var n=r[t];return n==null&&Kt(),n},oR=function(){var t=N.useContext(Yf);return _t(t)},uR=function(){var t=N.useContext(Zf),r=tR(t,function(n){return hx(n.domain,Number.isFinite)});return r||_t(t)},Ax=function(t){var r=N.useContext(Zf);r==null&&Kt();var n=r[t];return n==null&&Kt(),n},cR=function(){var t=N.useContext(bx);return t},sR=function(){return N.useContext(xx)},Jf=function(){return N.useContext(_x)},Qf=function(){return N.useContext(Ox)};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 lR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fR(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,Tx(n.key),n)}}function hR(e,t,r){return t&&fR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pR(e,t,r){return t=Yi(t),dR(e,Px()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function dR(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 vR(e)}function vR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Px=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function yR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nl(e,t)}function Nl(e,t){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nl(e,t)}function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(r),!0).forEach(function(n){eh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eh(e,t,r){return t=Tx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tx(e){var t=gR(e,"string");return Sr(t)=="symbol"?t:t+""}function gR(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)}function mR(e,t){return OR(e)||wR(e,t)||xR(e,t)||bR()}function bR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
65
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T$(e,t){if(e){if(typeof e=="string")return Lg(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 Lg(e,t)}}function Lg(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 E$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function j$(e){if(Array.isArray(e))return e}function 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 Ug(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){M$(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 M$(e,t,r){return t=C$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C$(e){var t=$$(e,"string");return En(t)=="symbol"?t:t+""}function $$(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zg=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},I$={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},R$=function(t){var r=Ug(Ug({},I$),t),n=N.useRef(),i=N.useState(-1),a=A$(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=te("recharts-trapezoid",d);return b?T.createElement(Pt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,g=w.lowerWidth,m=w.height,_=w.x,S=w.y;return T.createElement(Pt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},T.createElement("path",zi({},ee(r,!0),{className:x,d:zg(_,S,O,g,m),ref:n})))}):T.createElement("g",null,T.createElement("path",zi({},ee(r,!0),{className:x,d:zg(c,s,f,l,h)})))},k$=["option","shapeType","propTransformer","activeClassName","isActive"];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 D$(e,t){if(e==null)return{};var r=N$(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 N$(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 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 Wi(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){q$(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 q$(e,t,r){return t=B$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B$(e){var t=L$(e,"string");return jn(t)=="symbol"?t:t+""}function L$(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 F$(e,t){return Wi(Wi({},t),e)}function U$(e,t){return e==="symbols"}function Hg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(Xf,r);case"trapezoid":return T.createElement(R$,r);case"sector":return T.createElement(Q0,r);case"symbols":if(U$(t))return T.createElement(hf,r);break;default:return null}}function z$(e){return N.isValidElement(e)?e.props:e}function W$(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?F$:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=D$(e,k$),s;if(N.isValidElement(t))s=N.cloneElement(t,Wi(Wi({},c),z$(t)));else if(Y(t))s=t(c);else if(w$(t)&&!S$(t)){var f=i(t,c);s=T.createElement(Hg,{shapeType:r,elementProps:f})}else{var l=c;s=T.createElement(Hg,{shapeType:r,elementProps:l})}return u?T.createElement(_e,{className:o},s):s}function Ea(e,t){return t!=null&&"trapezoids"in e.props}function ja(e,t){return t!=null&&"sectors"in e.props}function Mn(e,t){return t!=null&&"points"in e.props}function H$(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 G$(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function K$(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function X$(e,t){var r;return Ea(e,t)?r=H$:ja(e,t)?r=G$:Mn(e,t)&&(r=K$),r}function V$(e,t){var r;return Ea(e,t)?r="trapezoids":ja(e,t)?r="sectors":Mn(e,t)&&(r="points"),r}function Y$(e,t){if(Ea(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(ja(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 Mn(e,t)?t.payload:{}}function Z$(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=V$(r,t),a=Y$(r,t),o=n.filter(function(c,s){var f=Wf(a,c),l=r.props[i].filter(function(y){var v=X$(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),d=s===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var gs,Gg;function J$(){if(Gg)return gs;Gg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return gs=r,gs}var ms,Kg;function cx(){if(Kg)return ms;Kg=1;var e=Bb(),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 ms=n,ms}var bs,Xg;function Q$(){if(Xg)return bs;Xg=1;var e=J$(),t=ya(),r=cx();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 bs=n,bs}var xs,Vg;function eI(){if(Vg)return xs;Vg=1;var e=Q$(),t=e();return xs=t,xs}var tI=eI();const Hi=ue(tI);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 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 Zg(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){sx(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 sx(e,t,r){return t=rI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rI(e){var t=nI(e,"string");return Cn(t)=="symbol"?t:t+""}function nI(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 iI=["Webkit","Moz","O","ms"],aI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=iI.reduce(function(a,o){return Zg(Zg({},a),{},sx({},o+n,r))},{});return i[t]=r,i};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 Gi(){return Gi=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},Gi.apply(this,arguments)}function Jg(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 ws(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jg(Object(r),!0).forEach(function(n){De(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fx(n.key),n)}}function uI(e,t,r){return t&&Qg(e.prototype,t),r&&Qg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cI(e,t,r){return t=Ki(t),sI(e,lx()?Reflect.construct(t,r||[],Ki(e).constructor):t.apply(e,r))}function sI(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 lI(e)}function lI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lx=function(){return!!e})()}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(e)}function fI(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 De(e,t,r){return t=fx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fx(e){var t=hI(e,"string");return wr(t)=="symbol"?t:t+""}function hI(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 pI=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=Jr().domain(Hi(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},em=function(t){return t.changedTouches&&!!t.changedTouches.length},Or=(function(e){function t(r){var n;return oI(this,t),n=cI(this,t,[r]),De(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),De(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),De(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),De(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),De(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),De(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),De(n,"handleSlideDragStart",function(i){var a=em(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 fI(t,e),uI(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),d=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:d-d%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Je(a[n],u,n);return Y(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,d=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==h||p.endIndex!==d)&&y&&y(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=em(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,d=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-d-s):x<0&&(x=Math.max(x,l-s)),b[o]=s+x;var w=this.getIndex(b),O=w.startIndex,g=w.endIndex,m=function(){var S=p.length-1;return o==="startX"&&(u>c?O%v===0:g%v===0)||u<c&&g===S||o==="endX"&&(u>c?g%v===0:O%v===0)||u>c&&g===S};this.setState(De(De({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&m()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(De({},i,d),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return T.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=N.Children.only(s);return l?T.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,h=c.traveller,d=c.ariaLabel,y=c.data,v=c.startIndex,p=c.endIndex,b=Math.max(n,this.props.x),x=ws(ws({},ee(this.props,!1)),{},{x:b,y:s,width:f,height:l}),w=d||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return T.createElement(_e,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),u.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,h=f.endX,d=5,y={pointerEvents:"none",fill:s};return T.createElement(_e,{className:"recharts-brush-texts"},T.createElement(xi,Gi({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},y),this.getTextOfTick(i)),T.createElement(xi,Gi({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+d,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,d=h.startX,y=h.endX,v=h.isTextActive,p=h.isSlideMoving,b=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!q(u)||!q(c)||!q(s)||!q(f)||s<=0||f<=0)return null;var w=te("recharts-brush",a),O=T.Children.count(o)===1,g=aI("userSelect","none");return T.createElement(_e,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),T.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):Y(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return ws({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?pI({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(N.PureComponent);De(Or,"displayName","Brush");De(Or,"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 Os,tm;function dI(){if(tm)return Os;tm=1;var e=bf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Os=t,Os}var _s,rm;function vI(){if(rm)return _s;rm=1;var e=yb(),t=Et(),r=dI(),n=Re(),i=ya();function a(o,u,c){var s=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),s(o,t(u,3))}return _s=a,_s}var yI=vI();const gI=ue(yI);var rt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Ss,nm;function mI(){if(nm)return Ss;nm=1;var e=Rb();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Ss=t,Ss}var As,im;function bI(){if(im)return As;im=1;var e=mI(),t=$b(),r=Et();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,s){e(o,c,a(u,c,s))}),o}return As=n,As}var xI=bI();const wI=ue(xI);var Ps,am;function OI(){if(am)return Ps;am=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 Ps=e,Ps}var Ts,om;function _I(){if(om)return Ts;om=1;var e=bf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Ts=t,Ts}var Es,um;function SI(){if(um)return Es;um=1;var e=OI(),t=_I(),r=Et(),n=Re(),i=ya();function a(o,u,c){var s=n(o)?e:t;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return Es=a,Es}var AI=SI();const hx=ue(AI);var PI=["x","y"];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 kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kl.apply(this,arguments)}function cm(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?cm(Object(r),!0).forEach(function(n){TI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TI(e,t,r){return t=EI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EI(e){var t=jI(e,"string");return $n(t)=="symbol"?t:t+""}function jI(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 MI(e,t){if(e==null)return{};var r=CI(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 CI(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 $I(e,t){var r=e.x,n=e.y,i=MI(e,PI),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Kr(Kr(Kr(Kr(Kr({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function sm(e){return T.createElement(W$,kl({shapeType:"rectangle",propTransformer:$I,activeClassName:"recharts-active-bar"},e))}var II=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||qw(n);return a?t(n,i):(a||Kt(),r)}},RI=["value","background"],px;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 kI(e,t){if(e==null)return{};var r=DI(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 DI(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 Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xi.apply(this,arguments)}function lm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lm(Object(r),!0).forEach(function(n){St(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fm(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,vx(n.key),n)}}function qI(e,t,r){return t&&fm(e.prototype,t),r&&fm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function BI(e,t,r){return t=Vi(t),LI(e,dx()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function LI(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 FI(e)}function FI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dx=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function UI(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=vx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vx(e){var t=zI(e,"string");return _r(t)=="symbol"?t:t+""}function zI(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 Hn=(function(e){function t(){var r;NI(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=BI(this,t,[].concat(i)),St(r,"state",{isAnimationFinished:!1}),St(r,"id",sa("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 UI(t,e),qI(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=ee(this.props,!1);return n&&n.map(function(l,h){var d=h===c,y=d?s:o,v=de(de(de({},f),l),{},{isActive:d,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(_e,Xi({className:"recharts-bar-rectangle"},si(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(sm,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return T.createElement(Pt,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var y=d.t,v=a.map(function(p,b){var x=h&&h[b];if(x){var w=er(x.x,p.x),O=er(x.y,p.y),g=er(x.width,p.width),m=er(x.height,p.height);return de(de({},p),{},{x:w(y),y:O(y),width:g(y),height:m(y)})}if(o==="horizontal"){var _=er(0,p.height),S=_(y);return de(de({},p),{},{y:p.y+p.height-S,height:S})}var A=er(0,p.width),M=A(y);return de(de({},p),{},{width:M})});return T.createElement(_e,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Wf(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=ee(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=kI(s,RI);if(!l)return null;var d=de(de(de(de(de({},h),{},{fill:"#eee"},l),c),si(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(sm,Xi({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Ze(f,Ta);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,d=function(p,b){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:Je(p,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(_e,y,l.map(function(v){return T.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,h=n.height,d=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,b=te("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,g=Z(v)?this.id:v;return T.createElement(_e,{className:b},x||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(g)},T.createElement("rect",{x:x?s:s-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,T.createElement(_e,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,g),(!d||p)&&Wt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(N.PureComponent);px=Hn;St(Hn,"displayName","Bar");St(Hn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ln.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});St(Hn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=ej(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?de(de({},v),r.props):r.props,b=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,g=s?O.scale.domain():null,m=uj({numericAxis:O}),_=Ze(x,Fb),S=l.map(function(A,M){var E,P,j,$,C,R;s?E=tj(s[f+M],g):(E=Je(A,b),Array.isArray(E)||(E=[m,E]));var D=II(w,px.defaultProps.minPointSize)(E[1],M);if(y==="horizontal"){var B,L=[o.scale(E[0]),o.scale(E[1])],W=L[0],G=L[1];P=Yy({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:A,index:M}),j=(B=G??W)!==null&&B!==void 0?B:void 0,$=d.size;var U=W-G;if(C=Number.isNaN(U)?0:U,R={x:P,y:o.y,width:$,height:o.height},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var K=Ve(C||D)*(Math.abs(D)-Math.abs(C));j-=K,C+=K}}else{var ce=[a.scale(E[0]),a.scale(E[1])],pe=ce[0],ke=ce[1];if(P=pe,j=Yy({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:A,index:M}),$=ke-pe,C=d.size,R={x:a.x,y:j,width:a.width,height:C},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var $t=Ve($||D)*(Math.abs(D)-Math.abs($));$+=$t}}return de(de(de({},A),{},{x:P,y:j,width:$,height:C,value:s?E:E[1],payload:A,background:R},_&&_[M]&&_[M].props),{},{tooltipPayload:[V0(r,A)],tooltipPosition:{x:P+$/2,y:j+C/2}})});return de({data:S,layout:y},h)});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 WI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hm(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,yx(n.key),n)}}function HI(e,t,r){return t&&hm(e.prototype,t),r&&hm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pm(Object(r),!0).forEach(function(n){Ma(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ma(e,t,r){return t=yx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yx(e){var t=GI(e,"string");return In(t)=="symbol"?t:t+""}function GI(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UD=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!Ne(s,Hn);return f.reduce(function(d,y){var v=r[y],p=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,g=v.reversed,m="".concat(p).concat(O?"Mirror":""),_,S,A,M,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=b[1]-b[0],j=1/0,$=v.categoricalDomain.sort(Fw);if($.forEach(function(ce,pe){pe>0&&(j=Math.min((ce||0)-($[pe-1]||0),j))}),Number.isFinite(j)){var C=j/P,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*R/2),v.padding==="no-gap"){var D=Ye(t.barCategoryGap,C*R),B=C*R/2;_=B-D-(B-D)/R*D}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,g&&(S=[S[1],S[0]]);var L=H0(v,a,h),W=L.scale,G=L.realScaleType;W.domain(b).range(S),G0(W);var U=K0(W,Ke(Ke({},v),{},{realScaleType:G}));i==="xAxis"?(E=p==="top"&&!O||p==="bottom"&&O,A=n.left,M=l[m]-E*v.height):i==="yAxis"&&(E=p==="left"&&!O||p==="right"&&O,A=l[m]-E*v.width,M=n.top);var K=Ke(Ke(Ke({},v),U),{},{realScaleType:G,x:A,y:M,scale:W,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return K.bandSize=ki(K,U),!v.hide&&i==="xAxis"?l[m]+=(E?-1:1)*K.height:v.hide||(l[m]+=(E?-1:1)*K.width),Ke(Ke({},d),{},Ma({},y,K))},{})},gx=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)}},KI=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return gx({x:r,y:n},{x:i,y:a})},mx=(function(){function e(t){WI(this,e),this.scale=t}return HI(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Ma(mx,"EPS",1e-4);var Vf=function(t){var r=Object.keys(t).reduce(function(n,i){return Ke(Ke({},n),{},Ma({},i,mx.create(t[i])))},{});return Ke(Ke({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return wI(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return hx(i,function(a,o){return r[o].isInRange(a)})}})};function XI(e){return(e%180+180)%180}var VI=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=XI(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},js,dm;function YI(){if(dm)return js;dm=1;var e=Et(),t=Bn(),r=da();function n(i){return function(a,o,u){var c=Object(a);if(!t(a)){var s=e(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return js=n,js}var Ms,vm;function ZI(){if(vm)return Ms;vm=1;var e=cx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Ms=t,Ms}var Cs,ym;function JI(){if(ym)return Cs;ym=1;var e=Tb(),t=Et(),r=ZI(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),e(a,t(o,3),s)}return Cs=i,Cs}var $s,gm;function QI(){if(gm)return $s;gm=1;var e=YI(),t=JI(),r=e(t);return $s=r,$s}var eR=QI();const tR=ue(eR);var rR=zm();const nR=ue(rR);var iR=nR(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("")}),Yf=N.createContext(void 0),Zf=N.createContext(void 0),bx=N.createContext(void 0),xx=N.createContext({}),wx=N.createContext(void 0),Ox=N.createContext(0),_x=N.createContext(0),mm=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=iR(a);return T.createElement(Yf.Provider,{value:n},T.createElement(Zf.Provider,{value:i},T.createElement(xx.Provider,{value:a},T.createElement(bx.Provider,{value:f},T.createElement(wx.Provider,{value:o},T.createElement(Ox.Provider,{value:s},T.createElement(_x.Provider,{value:c},u)))))))},aR=function(){return N.useContext(wx)},Sx=function(t){var r=N.useContext(Yf);r==null&&Kt();var n=r[t];return n==null&&Kt(),n},oR=function(){var t=N.useContext(Yf);return _t(t)},uR=function(){var t=N.useContext(Zf),r=tR(t,function(n){return hx(n.domain,Number.isFinite)});return r||_t(t)},Ax=function(t){var r=N.useContext(Zf);r==null&&Kt();var n=r[t];return n==null&&Kt(),n},cR=function(){var t=N.useContext(bx);return t},sR=function(){return N.useContext(xx)},Jf=function(){return N.useContext(_x)},Qf=function(){return N.useContext(Ox)};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 lR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fR(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,Tx(n.key),n)}}function hR(e,t,r){return t&&fR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pR(e,t,r){return t=Yi(t),dR(e,Px()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function dR(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 vR(e)}function vR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Px=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function yR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nl(e,t)}function Nl(e,t){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nl(e,t)}function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(r),!0).forEach(function(n){eh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eh(e,t,r){return t=Tx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tx(e){var t=gR(e,"string");return Sr(t)=="symbol"?t:t+""}function gR(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)}function mR(e,t){return OR(e)||wR(e,t)||xR(e,t)||bR()}function bR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
66
66
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xR(e,t){if(e){if(typeof e=="string")return wm(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 wm(e,t)}}function wm(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 wR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function OR(e){if(Array.isArray(e))return e}function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ql.apply(this,arguments)}var _R=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):Y(t)?n=t(r):n=T.createElement("line",ql({},r,{className:"recharts-reference-line-line"})),n},SR=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,d=a.height;if(n){var y=s.y,v=t.y.apply(y,{position:o});if(rt(s,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+h,y:v},{x:f,y:v}];return c==="left"?p.reverse():p}if(r){var b=s.x,x=t.x.apply(b,{position:o});if(rt(s,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+d},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,g=O.map(function(m){return t.apply(m,{position:o})});return rt(s,"discard")&&gI(g,function(m){return!t.isInRange(m)})?null:g}return null};function AR(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=aR(),f=Sx(i),l=Ax(a),h=cR();if(!s||!h)return null;pt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Vf({x:f.scale,y:l.scale}),y=xe(t),v=xe(r),p=n&&n.length===2,b=SR(d,y,v,p,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=mR(b,2),w=x[0],O=w.x,g=w.y,m=x[1],_=m.x,S=m.y,A=rt(e,"hidden")?"url(#".concat(s,")"):void 0,M=xm(xm({clipPath:A},ee(e,!0)),{},{x1:O,y1:g,x2:_,y2:S});return T.createElement(_e,{className:te("recharts-reference-line",u)},_R(o,M),Ee.renderCallByParent(e,KI({x1:O,y1:g,x2:_,y2:S})))}var th=(function(e){function t(){return lR(this,t),pR(this,t,arguments)}return yR(t,e),hR(t,[{key:"render",value:function(){return T.createElement(AR,this.props)}}])})(T.Component);eh(th,"displayName","ReferenceLine");eh(th,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bl.apply(this,arguments)}function 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 Om(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 _m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Om(Object(r),!0).forEach(function(n){Ca(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jx(n.key),n)}}function ER(e,t,r){return t&&TR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jR(e,t,r){return t=Zi(t),MR(e,Ex()?Reflect.construct(t,r||[],Zi(e).constructor):t.apply(e,r))}function MR(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 CR(e)}function CR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ex(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ex=function(){return!!e})()}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}function $R(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ll(e,t)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ll(e,t)}function Ca(e,t,r){return t=jx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jx(e){var t=IR(e,"string");return Ar(t)=="symbol"?t:t+""}function IR(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 RR=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Vf({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return rt(t,"discard")&&!o.isInRange(u)?null:u},$a=(function(e){function t(){return PR(this,t),jR(this,t,arguments)}return $R(t,e),ER(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=xe(i),f=xe(a);if(pt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=RR(this.props);if(!l)return null;var h=l.x,d=l.y,y=this.props,v=y.shape,p=y.className,b=rt(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=_m(_m({clipPath:b},ee(this.props,!0)),{},{cx:h,cy:d});return T.createElement(_e,{className:te("recharts-reference-dot",p)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(T.Component);Ca($a,"displayName","ReferenceDot");Ca($a,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ca($a,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Y(e)?r=e(t):r=T.createElement(ux,Bl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fl.apply(this,arguments)}function 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 Sm(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 Am(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sm(Object(r),!0).forEach(function(n){Ia(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Cx(n.key),n)}}function NR(e,t,r){return t&&DR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qR(e,t,r){return t=Ji(t),BR(e,Mx()?Reflect.construct(t,r||[],Ji(e).constructor):t.apply(e,r))}function BR(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 LR(e)}function LR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mx=function(){return!!e})()}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ji(e)}function FR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ul(e,t)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ul(e,t)}function Ia(e,t,r){return t=Cx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cx(e){var t=UR(e,"string");return Pr(t)=="symbol"?t:t+""}function UR(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 zR=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=Vf({x:f.scale,y:l.scale}),d={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return rt(a,"discard")&&(!h.isInRange(d)||!h.isInRange(y))?null:gx(d,y)},Ra=(function(e){function t(){return kR(this,t),qR(this,t,arguments)}return FR(t,e),NR(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;pt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=xe(i),h=xe(a),d=xe(o),y=xe(u),v=this.props.shape;if(!l&&!h&&!d&&!y&&!v)return null;var p=zR(l,h,d,y,this.props);if(!p&&!v)return null;var b=rt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(_e,{className:te("recharts-reference-area",c)},t.renderRect(v,Am(Am({clipPath:b},ee(this.props,!0)),p)),Ee.renderCallByParent(this.props,p))}}])})(T.Component);Ia(Ra,"displayName","ReferenceArea");Ia(Ra,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ia(Ra,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Y(e)?r=e(t):r=T.createElement(Xf,Fl({},t,{className:"recharts-reference-area-rect"})),r});function $x(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 WR(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return VI(n,r)}function HR(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 Qi(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 GR(e,t){return $x(e,t+1)}function KR(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n==null?void 0:n[c];if(y===void 0)return{v:$x(n,s)};var v=c,p,b=function(){return p===void 0&&(p=r(y,v)),p},x=y.coordinate,w=c===0||Qi(e,x,b,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(b()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function 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 Pm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pm(Object(r),!0).forEach(function(n){XR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XR(e,t,r){return t=VR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VR(e){var t=YR(e,"string");return Rn(t)=="symbol"?t:t+""}function YR(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 ZR(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var d=a[h],y,v=function(){return y===void 0&&(y=r(d,h)),y};if(h===o-1){var p=e*(d.coordinate+e*v()/2-c);a[h]=d=Te(Te({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=Te(Te({},d),{},{tickCoord:d.coordinate});var b=Qi(e,d.tickCoord,v,u,c);b&&(c=d.tickCoord-e*(v()/2+i),a[h]=Te(Te({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function JR(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Te(Te({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=Qi(e,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Te(Te({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,g=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var m=e*(w.coordinate-e*g()/2-c);o[x]=w=Te(Te({},w),{},{tickCoord:m<0?w.coordinate-m*e:w.coordinate})}else o[x]=w=Te(Te({},w),{},{tickCoord:w.coordinate});var _=Qi(e,w.tickCoord,g,c,s);_&&(c=w.tickCoord+e*(g()/2+i),o[x]=Te(Te({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function rh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(q(c)||Ln.isSsr)return GR(i,typeof c=="number"&&q(c)?c:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?Zr(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var g=Y(s)?s(w.value,O):w.value;return d==="width"?WR(Zr(g,{fontSize:t,letterSpacing:r}),y,l):Zr(g,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Ve(i[1].coordinate-i[0].coordinate):1,b=HR(a,p,d);return c==="equidistantPreserveStart"?KR(p,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=JR(p,b,v,i,o,c==="preserveStartEnd"):h=ZR(p,b,v,i,o),h.filter(function(x){return x.isShow}))}var QR=["viewBox"],ek=["viewBox"],tk=["ticks"];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 ar(){return ar=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},ar.apply(this,arguments)}function Tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tm(Object(r),!0).forEach(function(n){nh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Is(e,t){if(e==null)return{};var r=rk(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 rk(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 nk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Em(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,Rx(n.key),n)}}function ik(e,t,r){return t&&Em(e.prototype,t),r&&Em(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ak(e,t,r){return t=ea(t),ok(e,Ix()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function ok(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 uk(e)}function uk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ix(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ix=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}function ck(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zl(e,t)}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zl(e,t)}function nh(e,t,r){return t=Rx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rx(e){var t=sk(e,"string");return Tr(t)=="symbol"?t:t+""}function sk(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qr=(function(e){function t(r){var n;return nk(this,t),n=ak(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return ck(t,e),ik(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Is(n,QR),u=this.props,c=u.viewBox,s=Is(u,ek);return!ur(a,c)||!ur(o,s)||!ur(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,d,y,v,p,b,x,w=l?-1:1,O=n.tickSize||f,g=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":d=y=n.coordinate,p=o+ +!l*c,v=p-w*O,x=v-w*h,b=g;break;case"left":v=p=n.coordinate,y=a+ +!l*u,d=y-w*O,b=d-w*h,x=g;break;case"right":v=p=n.coordinate,y=a+ +l*u,d=y+w*O,b=d+w*h,x=g;break;default:d=y=n.coordinate,p=o+ +l*c,v=p+w*O,x=v+w*h,b=g;break}return{line:{x1:d,y1:v,x2:y,y2:p},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.orientation,s=n.mirror,f=n.axisLine,l=me(me(me({},ee(this.props,!1)),ee(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=me(me({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=me(me({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return T.createElement("line",ar({},l,{className:te("recharts-cartesian-axis-line",ze(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,d=rh(me(me({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=ee(this.props,!1),b=ee(f,!1),x=me(me({},p),{},{fill:"none"},ee(c,!1)),w=d.map(function(O,g){var m=o.getTickLineCoord(O),_=m.line,S=m.tick,A=me(me(me(me({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:s},b),S),{},{index:g,payload:O,visibleTicksCount:d.length,tickFormatter:l});return T.createElement(_e,ar({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},si(o.props,O,g)),c&&T.createElement("line",ar({},x,_,{className:te("recharts-cartesian-axis-tick-line",ze(c,"className"))})),f&&t.renderTickItem(f,A,"".concat(Y(l)?l(O.value,g):O.value).concat(h||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,d=Is(l,tk),y=h;return Y(c)&&(y=h&&h.length>0?c(this.props):c(d)),o<=0||u<=0||!y||!y.length?null:T.createElement(_e,{className:te("recharts-cartesian-axis",s),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=te(i.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(n)?o=T.cloneElement(n,me(me({},i),{},{className:u})):Y(n)?o=n(me(me({},i),{},{className:u})):o=T.createElement(xi,ar({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);nh(qr,"displayName","CartesianAxis");nh(qr,"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 lk=["x1","y1","x2","y2","key"],fk=["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 jm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(r),!0).forEach(function(n){hk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hk(e,t,r){return t=pk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pk(e){var t=dk(e,"string");return Xt(t)=="symbol"?t:t+""}function dk(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 Mm(e,t){if(e==null)return{};var r=vk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var yk=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return T.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function kx(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=Mm(t,lk),s=ee(c,!1);s.offset;var f=Mm(s,fk);r=T.createElement("line",Ft({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function gk(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=je(je({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return kx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function mk(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=je(je({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return kx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function bk(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,d){return h-d});i!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?i+o-h:f[d+1]-h;if(v<=0)return null;var p=d%t.length;return T.createElement("rect",{key:"react-".concat(d),y:h,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function xk(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,d){return h-d});a!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?a+u-h:f[d+1]-h;if(v<=0)return null;var p=d%n.length;return T.createElement("rect",{key:"react-".concat(d),x:h,y:o,width:v,height:c,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var wk=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return W0(rh(je(je(je({},qr.defaultProps),n),{},{ticks:ft(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Ok=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return W0(rh(je(je(je({},qr.defaultProps),n),{},{ticks:ft(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},nr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function _k(e){var t,r,n,i,a,o,u=Jf(),c=Qf(),s=sR(),f=je(je({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:nr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:nr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:nr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:nr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:nr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:nr.verticalFill,x:q(e.x)?e.x:s.left,y:q(e.y)?e.y:s.top,width:q(e.width)?e.width:s.width,height:q(e.height)?e.height:s.height}),l=f.x,h=f.y,d=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,b=f.verticalValues,x=oR(),w=uR();if(!q(d)||d<=0||!q(y)||y<=0||!q(l)||l!==+l||!q(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||wk,g=f.horizontalCoordinatesGenerator||Ok,m=f.horizontalPoints,_=f.verticalPoints;if((!m||!m.length)&&Y(g)){var S=p&&p.length,A=g({yAxis:w?je(je({},w),{},{ticks:S?p:w.ticks}):void 0,width:u,height:c,offset:s},S?!0:v);pt(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Xt(A),"]")),Array.isArray(A)&&(m=A)}if((!_||!_.length)&&Y(O)){var M=b&&b.length,E=O({xAxis:x?je(je({},x),{},{ticks:M?b:x.ticks}):void 0,width:u,height:c,offset:s},M?!0:v);pt(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Xt(E),"]")),Array.isArray(E)&&(_=E)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(yk,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(gk,Ft({},f,{offset:s,horizontalPoints:m,xAxis:x,yAxis:w})),T.createElement(mk,Ft({},f,{offset:s,verticalPoints:_,xAxis:x,yAxis:w})),T.createElement(bk,Ft({},f,{horizontalPoints:m})),T.createElement(xk,Ft({},f,{verticalPoints:_})))}_k.displayName="CartesianGrid";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 Sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ak(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,qx(n.key),n)}}function Pk(e,t,r){return t&&Ak(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tk(e,t,r){return t=ta(t),Ek(e,Dx()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function Ek(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 jk(e)}function jk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dx=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ta(e)}function Mk(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 Nx(e,t,r){return t=qx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qx(e){var t=Ck(e,"string");return Er(t)=="symbol"?t:t+""}function Ck(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 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 $k(e){var t=e.xAxisId,r=Jf(),n=Qf(),i=Sx(t);return i==null?null:N.createElement(qr,Hl({},i,{className:te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ft(o,!0)}}))}var Bx=(function(e){function t(){return Sk(this,t),Tk(this,t,arguments)}return Mk(t,e),Pk(t,[{key:"render",value:function(){return N.createElement($k,this.props)}}])})(N.Component);Nx(Bx,"displayName","XAxis");Nx(Bx,"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 jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function Ik(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ux(n.key),n)}}function kk(e,t,r){return t&&Rk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dk(e,t,r){return t=ra(t),Nk(e,Lx()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function Nk(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qk(e)}function qk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lx=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function Bk(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 Fx(e,t,r){return t=Ux(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ux(e){var t=Lk(e,"string");return jr(t)=="symbol"?t:t+""}function Lk(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kl.apply(this,arguments)}var Fk=function(t){var r=t.yAxisId,n=Jf(),i=Qf(),a=Ax(r);return a==null?null:N.createElement(qr,Kl({},a,{className:te("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return ft(u,!0)}}))},zx=(function(e){function t(){return Ik(this,t),Dk(this,t,arguments)}return Bk(t,e),kk(t,[{key:"render",value:function(){return N.createElement(Fk,this.props)}}])})(N.Component);Fx(zx,"displayName","YAxis");Fx(zx,"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 Cm(e){return Hk(e)||Wk(e)||zk(e)||Uk()}function Uk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
67
67
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zk(e,t){if(e){if(typeof e=="string")return Xl(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 Xl(e,t)}}function Wk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hk(e){if(Array.isArray(e))return Xl(e)}function Xl(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 Vl=function(t,r,n,i,a){var o=Ze(t,th),u=Ze(t,$a),c=[].concat(Cm(o),Cm(u)),s=Ze(t,Ra),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,p){if(p.props[f]===n&&rt(p.props,"extendDomain")&&q(p.props[l])){var b=p.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},h)),s.length){var d="".concat(l,"1"),y="".concat(l,"2");h=s.reduce(function(v,p){if(p.props[f]===n&&rt(p.props,"extendDomain")&&q(p.props[d])&&q(p.props[y])){var b=p.props[d],x=p.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,p){return q(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},h)),h},Rs={exports:{}},$m;function Gk(){return $m||($m=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||c,h),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],d]:c._events[y].push(d):(c._events[y]=d,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,d=l.length,y=new Array(d);h<d;h++)y[h]=l[h].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,h,d,y){var v=r?r+s:s;if(!this._events[v])return!1;var p=this._events[v],b=arguments.length,x,w;if(p.fn){switch(p.once&&this.removeListener(s,p.fn,void 0,!0),b){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,h),!0;case 5:return p.fn.call(p.context,f,l,h,d),!0;case 6:return p.fn.call(p.context,f,l,h,d,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];p.fn.apply(p.context,x)}else{var O=p.length,g;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(s,p[w].fn,void 0,!0),b){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,f);break;case 3:p[w].fn.call(p[w].context,f,l);break;case 4:p[w].fn.call(p[w].context,f,l,h);break;default:if(!x)for(g=1,x=new Array(b-1);g<b;g++)x[g-1]=arguments[g];p[w].fn.apply(p[w].context,x)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,h){var d=r?r+s:s;if(!this._events[d])return this;if(!f)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,d);else{for(var v=0,p=[],b=y.length;v<b;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Rs)),Rs.exports}var Kk=Gk();const Xk=ue(Kk);var ks=new Xk,Ds="recharts.syncMouseEvents";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 Vk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wx(n.key),n)}}function Zk(e,t,r){return t&&Yk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ns(e,t,r){return t=Wx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wx(e){var t=Jk(e,"string");return kn(t)=="symbol"?t:t+""}function Jk(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 String(e)}var Qk=(function(){function e(){Vk(this,e),Ns(this,"activeIndex",0),Ns(this,"coordinateList",[]),Ns(this,"layout","horizontal")}return Zk(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,d=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=d??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+c+s,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function eD(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&&q(n)&&q(i))return!0}return!1}function tD(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 Hx(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Pe(t,r,n,i),u=Pe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function rD(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,h=Pe(u,c,s,l),d=Pe(u,c,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return Hx(t);return[{x:n,y:i},{x:a,y:o}]}function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function Im(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ai(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Im(Object(r),!0).forEach(function(n){nD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Im(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nD(e,t,r){return t=iD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iD(e){var t=aD(e,"string");return Dn(t)=="symbol"?t:t+""}function aD(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oD(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,d=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=pg;if(h==="ScatterChart")y=o,v=g$;else if(h==="BarChart")y=tD(l,o,c,f),v=Xf;else if(l==="radial"){var p=Hx(o),b=p.cx,x=p.cy,w=p.radius,O=p.startAngle,g=p.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:g,innerRadius:w,outerRadius:w},v=Q0}else y={points:rD(l,o,c)},v=pg;var m=ai(ai(ai(ai({stroke:"#ccc",pointerEvents:"none"},c),y),ee(d,!1)),{},{payload:u,payloadIndex:s,className:te("recharts-tooltip-cursor",d.className)});return N.isValidElement(d)?N.cloneElement(d,m):N.createElement(v,m)}var uD=["item"],cD=["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 or(){return or=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},or.apply(this,arguments)}function Rm(e,t){return fD(e)||lD(e,t)||Kx(e,t)||sD()}function sD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
68
68
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function fD(e){if(Array.isArray(e))return e}function km(e,t){if(e==null)return{};var r=hD(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 hD(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 pD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xx(n.key),n)}}function vD(e,t,r){return t&&dD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yD(e,t,r){return t=na(t),gD(e,Gx()?Reflect.construct(t,r||[],na(e).constructor):t.apply(e,r))}function gD(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 mD(e)}function mD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gx=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},na(e)}function bD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yl(e,t)}function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yl(e,t)}function Cr(e){return OD(e)||wD(e)||Kx(e)||xD()}function xD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
69
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kx(e,t){if(e){if(typeof e=="string")return Zl(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 Zl(e,t)}}function wD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OD(e){if(Array.isArray(e))return Zl(e)}function Zl(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 Dm(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 I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dm(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=Xx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xx(e){var t=_D(e,"string");return Mr(t)=="symbol"?t:t+""}function _D(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 SD={xAxis:["bottom","top"],yAxis:["left","right"]},AD={width:"100%",height:"100%"},Vx={x:0,y:0};function oi(e){return e}var PD=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},TD=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(I(I({},i),Pe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return I(I(I({},i),Pe(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return Vx},ka=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Cr(u),Cr(s)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function Yx(e){return e==="number"?[0,"auto"]:void 0}var Jl=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=ka(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;h=ui(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Cr(c),[V0(s,h)]):c},[])},Nm=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=PD(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=XE(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=Jl(t,r,f,l),d=TD(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},ED=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,d=z0(f,a);return n.reduce(function(y,v){var p,b=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,g=b.allowDuplicatedCategory,m=b.scale,_=b.ticks,S=b.includeHidden,A=b[o];if(y[A])return y;var M=ka(t.data,{graphicalItems:i.filter(function(U){var K,ce=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o];return ce===A}),dataStartIndex:c,dataEndIndex:s}),E=M.length,P,j,$;eD(b.domain,O,x)&&(P=ml(b.domain,null,O),d&&(x==="number"||m!=="auto")&&($=Qr(M,w,"category")));var C=Yx(x);if(!P||P.length===0){var R,D=(R=b.domain)!==null&&R!==void 0?R:C;if(w){if(P=Qr(M,w,x),x==="category"&&d){var B=Lw(P);g&&B?(j=P,P=Hi(0,E)):g||(P=Qy(D,P,v).reduce(function(U,K){return U.indexOf(K)>=0?U:[].concat(Cr(U),[K])},[]))}else if(x==="category")g?P=P.filter(function(U){return U!==""&&!Z(U)}):P=Qy(D,P,v).reduce(function(U,K){return U.indexOf(K)>=0||K===""||Z(K)?U:[].concat(Cr(U),[K])},[]);else if(x==="number"){var L=QE(M,i.filter(function(U){var K,ce,pe=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o],ke="hide"in U.props?U.props.hide:(ce=U.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return pe===A&&(S||!ke)}),w,a,f);L&&(P=L)}d&&(x==="number"||m!=="auto")&&($=Qr(M,w,"category"))}else d?P=Hi(0,E):u&&u[A]&&u[A].hasStack&&x==="number"?P=h==="expand"?[0,1]:X0(u[A].stackGroups,c,s):P=U0(M,i.filter(function(U){var K=o in U.props?U.props[o]:U.type.defaultProps[o],ce="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return K===A&&(S||!ce)}),x,f,!0);if(x==="number")P=Vl(l,P,A,a,_),D&&(P=ml(D,P,O));else if(x==="category"&&D){var W=D,G=P.every(function(U){return W.indexOf(U)>=0});G&&(P=W)}}return I(I({},y),{},H({},A,I(I({},b),{},{axisType:a,domain:P,categoricalDomain:$,duplicateDomain:j,originalDomain:(p=b.domain)!==null&&p!==void 0?p:C,isCategorical:d,layout:f})))},{})},jD=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=ka(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,y=z0(f,a),v=-1;return n.reduce(function(p,b){var x=b.type.defaultProps!==void 0?I(I({},b.type.defaultProps),b.props):b.props,w=x[o],O=Yx("number");if(!p[w]){v++;var g;return y?g=Hi(0,d):u&&u[w]&&u[w].hasStack?(g=X0(u[w].stackGroups,c,s),g=Vl(l,g,w,a)):(g=ml(O,U0(h,n.filter(function(m){var _,S,A=o in m.props?m.props[o]:(_=m.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in m.props?m.props.hide:(S=m.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),g=Vl(l,g,w,a)),I(I({},p),{},H({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:ze(SD,"".concat(a,".").concat(v%2),null),domain:g,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},MD=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Ze(f,a),d={};return h&&h.length?d=ED(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=jD(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},CD=function(t){var r=_t(t),n=ft(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:xf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ki(r,n)}},qm=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ne(r,Or),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}},$D=function(t){return!t||!t.length?!1:t.some(function(r){var n=ht(r&&r.type);return n&&n.indexOf("Bar")>=0})},Bm=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"}},ID=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},d=Ne(l,Or),y=Ne(l,cr),v=Object.keys(c).reduce(function(g,m){var _=c[m],S=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},H({},S,g[S]+_.width)):g},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(g,m){var _=o[m],S=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},H({},S,ze(g,"".concat(S))+_.height)):g},{top:h.top||0,bottom:h.bottom||0}),b=I(I({},p),v),x=b.bottom;d&&(b.bottom+=d.props.height||Or.defaultProps.height),y&&r&&(b=ZE(b,i,n,r));var w=s-b.left-b.right,O=f-b.top-b.bottom;return I(I({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},RD=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},UD=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(b,x){var w=x.graphicalItems,O=x.stackGroups,g=x.offset,m=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,A=b.barSize,M=b.layout,E=b.barGap,P=b.barCategoryGap,j=b.maxBarSize,$=Bm(M),C=$.numericAxisName,R=$.cateAxisName,D=$D(w),B=[];return w.forEach(function(L,W){var G=ka(b.data,{graphicalItems:[L],dataStartIndex:_,dataEndIndex:S}),U=L.type.defaultProps!==void 0?I(I({},L.type.defaultProps),L.props):L.props,K=U.dataKey,ce=U.maxBarSize,pe=U["".concat(C,"Id")],ke=U["".concat(R,"Id")],$t={},Ce=c.reduce(function(It,Rt){var Da=x["".concat(Rt.axisType,"Map")],ih=U["".concat(Rt.axisType,"Id")];Da&&Da[ih]||Rt.axisType==="zAxis"||Kt();var ah=Da[ih];return I(I({},It),{},H(H({},Rt.axisType,ah),"".concat(Rt.axisType,"Ticks"),ft(ah)))},$t),F=Ce[R],X=Ce["".concat(R,"Ticks")],V=O&&O[pe]&&O[pe].hasStack&&cj(L,O[pe].stackGroups),k=ht(L.type).indexOf("Bar")>=0,fe=ki(F,X),J=[],ye=D&&VE({barSize:A,stackGroups:O,totalSize:RD(Ce,R)});if(k){var ge,$e,wt=Z(ce)?j:ce,Qt=(ge=($e=ki(F,X,!0))!==null&&$e!==void 0?$e:wt)!==null&&ge!==void 0?ge:0;J=YE({barGap:E,barCategoryGap:P,bandSize:Qt!==fe?Qt:fe,sizeList:ye[ke],maxBarSize:wt}),Qt!==fe&&(J=J.map(function(It){return I(I({},It),{},{position:I(I({},It.position),{},{offset:It.position.offset-Qt/2})})}))}var Gn=L&&L.type&&L.type.getComposedData;Gn&&B.push({props:I(I({},Gn(I(I({},Ce),{},{displayedData:G,props:b,dataKey:K,item:L,bandSize:fe,barPosition:J,offset:g,stackedData:V,layout:M,dataStartIndex:_,dataEndIndex:S}))),{},H(H(H({key:L.key||"item-".concat(W)},C,Ce[C]),R,Ce[R]),"animationId",m)),childIndex:Jw(L,b.children),item:L})}),B},d=function(b,x){var w=b.props,O=b.dataStartIndex,g=b.dataEndIndex,m=b.updateId;if(!dp({props:w}))return null;var _=w.children,S=w.layout,A=w.stackOffset,M=w.data,E=w.reverseStackOrder,P=Bm(S),j=P.numericAxisName,$=P.cateAxisName,C=Ze(_,n),R=oj(M,C,"".concat(j,"Id"),"".concat($,"Id"),A,E),D=c.reduce(function(U,K){var ce="".concat(K.axisType,"Map");return I(I({},U),{},H({},ce,MD(w,I(I({},K),{},{graphicalItems:C,stackGroups:K.axisType===j&&R,dataStartIndex:O,dataEndIndex:g}))))},{}),B=ID(I(I({},D),{},{props:w,graphicalItems:C}),x==null?void 0:x.legendBBox);Object.keys(D).forEach(function(U){D[U]=f(w,D[U],B,U.replace("Map",""),r)});var L=D["".concat($,"Map")],W=CD(L),G=h(w,I(I({},D),{},{dataStartIndex:O,dataEndIndex:g,updateId:m,graphicalItems:C,stackGroups:R,offset:B}));return I(I({formattedGraphicalItems:G,graphicalItems:C,offset:B,stackGroups:R},W),D)},y=(function(p){function b(x){var w,O,g;return pD(this,b),g=yD(this,b,[x]),H(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(g,"accessibilityManager",new Qk),H(g,"handleLegendBBoxUpdate",function(m){if(m){var _=g.state,S=_.dataStartIndex,A=_.dataEndIndex,M=_.updateId;g.setState(I({legendBBox:m},d({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:M},I(I({},g.state),{},{legendBBox:m}))))}}),H(g,"handleReceiveSyncEvent",function(m,_,S){if(g.props.syncId===m){if(S===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(_)}}),H(g,"handleBrushChange",function(m){var _=m.startIndex,S=m.endIndex;if(_!==g.state.dataStartIndex||S!==g.state.dataEndIndex){var A=g.state.updateId;g.setState(function(){return I({dataStartIndex:_,dataEndIndex:S},d({props:g.props,dataStartIndex:_,dataEndIndex:S,updateId:A},g.state))}),g.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),H(g,"handleMouseEnter",function(m){var _=g.getMouseInfo(m);if(_){var S=I(I({},_),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseEnter;Y(A)&&A(S,m)}}),H(g,"triggeredAfterMouseMove",function(m){var _=g.getMouseInfo(m),S=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseMove;Y(A)&&A(S,m)}),H(g,"handleItemMouseEnter",function(m){g.setState(function(){return{isTooltipActive:!0,activeItem:m,activePayload:m.tooltipPayload,activeCoordinate:m.tooltipPosition||{x:m.cx,y:m.cy}}})}),H(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),H(g,"handleMouseMove",function(m){m.persist(),g.throttleTriggeredAfterMouseMove(m)}),H(g,"handleMouseLeave",function(m){g.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};g.setState(_),g.triggerSyncEvent(_);var S=g.props.onMouseLeave;Y(S)&&S(_,m)}),H(g,"handleOuterEvent",function(m){var _=Zw(m),S=ze(g.props,"".concat(_));if(_&&Y(S)){var A,M;/.*touch.*/i.test(_)?M=g.getMouseInfo(m.changedTouches[0]):M=g.getMouseInfo(m),S((A=M)!==null&&A!==void 0?A:{},m)}}),H(g,"handleClick",function(m){var _=g.getMouseInfo(m);if(_){var S=I(I({},_),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onClick;Y(A)&&A(S,m)}}),H(g,"handleMouseDown",function(m){var _=g.props.onMouseDown;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"handleMouseUp",function(m){var _=g.props.onMouseUp;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"handleTouchMove",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(m.changedTouches[0])}),H(g,"handleTouchStart",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseDown(m.changedTouches[0])}),H(g,"handleTouchEnd",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseUp(m.changedTouches[0])}),H(g,"handleDoubleClick",function(m){var _=g.props.onDoubleClick;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"handleContextMenu",function(m){var _=g.props.onContextMenu;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"triggerSyncEvent",function(m){g.props.syncId!==void 0&&ks.emit(Ds,g.props.syncId,m,g.eventEmitterSymbol)}),H(g,"applySyncEvent",function(m){var _=g.props,S=_.layout,A=_.syncMethod,M=g.state.updateId,E=m.dataStartIndex,P=m.dataEndIndex;if(m.dataStartIndex!==void 0||m.dataEndIndex!==void 0)g.setState(I({dataStartIndex:E,dataEndIndex:P},d({props:g.props,dataStartIndex:E,dataEndIndex:P,updateId:M},g.state)));else if(m.activeTooltipIndex!==void 0){var j=m.chartX,$=m.chartY,C=m.activeTooltipIndex,R=g.state,D=R.offset,B=R.tooltipTicks;if(!D)return;if(typeof A=="function")C=A(B,m);else if(A==="value"){C=-1;for(var L=0;L<B.length;L++)if(B[L].value===m.activeLabel){C=L;break}}var W=I(I({},D),{},{x:D.left,y:D.top}),G=Math.min(j,W.x+W.width),U=Math.min($,W.y+W.height),K=B[C]&&B[C].value,ce=Jl(g.state,g.props.data,C),pe=B[C]?{x:S==="horizontal"?B[C].coordinate:G,y:S==="horizontal"?U:B[C].coordinate}:Vx;g.setState(I(I({},m),{},{activeLabel:K,activeCoordinate:pe,activePayload:ce,activeTooltipIndex:C}))}else g.setState(m)}),H(g,"renderCursor",function(m){var _,S=g.state,A=S.isTooltipActive,M=S.activeCoordinate,E=S.activePayload,P=S.offset,j=S.activeTooltipIndex,$=S.tooltipAxisBandSize,C=g.getTooltipEventType(),R=(_=m.props.active)!==null&&_!==void 0?_:A,D=g.props.layout,B=m.key||"_recharts-cursor";return T.createElement(oD,{key:B,activeCoordinate:M,activePayload:E,activeTooltipIndex:j,chartName:r,element:m,isActive:R,layout:D,offset:P,tooltipAxisBandSize:$,tooltipEventType:C})}),H(g,"renderPolarAxis",function(m,_,S){var A=ze(m,"type.axisType"),M=ze(g.state,"".concat(A,"Map")),E=m.type.defaultProps,P=E!==void 0?I(I({},E),m.props):m.props,j=M&&M[P["".concat(A,"Id")]];return N.cloneElement(m,I(I({},j),{},{className:te(A,j.className),key:m.key||"".concat(_,"-").concat(S),ticks:ft(j,!0)}))}),H(g,"renderPolarGrid",function(m){var _=m.props,S=_.radialLines,A=_.polarAngles,M=_.polarRadius,E=g.state,P=E.radiusAxisMap,j=E.angleAxisMap,$=_t(P),C=_t(j),R=C.cx,D=C.cy,B=C.innerRadius,L=C.outerRadius;return N.cloneElement(m,{polarAngles:Array.isArray(A)?A:ft(C,!0).map(function(W){return W.coordinate}),polarRadius:Array.isArray(M)?M:ft($,!0).map(function(W){return W.coordinate}),cx:R,cy:D,innerRadius:B,outerRadius:L,key:m.key||"polar-grid",radialLines:S})}),H(g,"renderLegend",function(){var m=g.state.formattedGraphicalItems,_=g.props,S=_.children,A=_.width,M=_.height,E=g.props.margin||{},P=A-(E.left||0)-(E.right||0),j=L0({children:S,formattedGraphicalItems:m,legendWidth:P,legendContent:s});if(!j)return null;var $=j.item,C=km(j,uD);return N.cloneElement($,I(I({},C),{},{chartWidth:A,chartHeight:M,margin:E,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),H(g,"renderTooltip",function(){var m,_=g.props,S=_.children,A=_.accessibilityLayer,M=Ne(S,ut);if(!M)return null;var E=g.state,P=E.isTooltipActive,j=E.activeCoordinate,$=E.activePayload,C=E.activeLabel,R=E.offset,D=(m=M.props.active)!==null&&m!==void 0?m:P;return N.cloneElement(M,{viewBox:I(I({},R),{},{x:R.left,y:R.top}),active:D,label:C,payload:D?$:[],coordinate:j,accessibilityLayer:A})}),H(g,"renderBrush",function(m){var _=g.props,S=_.margin,A=_.data,M=g.state,E=M.offset,P=M.dataStartIndex,j=M.dataEndIndex,$=M.updateId;return N.cloneElement(m,{key:m.key||"_recharts-brush",onChange:ti(g.handleBrushChange,m.props.onChange),data:A,x:q(m.props.x)?m.props.x:E.left,y:q(m.props.y)?m.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:q(m.props.width)?m.props.width:E.width,startIndex:P,endIndex:j,updateId:"brush-".concat($)})}),H(g,"renderReferenceElement",function(m,_,S){if(!m)return null;var A=g,M=A.clipPathId,E=g.state,P=E.xAxisMap,j=E.yAxisMap,$=E.offset,C=m.type.defaultProps||{},R=m.props,D=R.xAxisId,B=D===void 0?C.xAxisId:D,L=R.yAxisId,W=L===void 0?C.yAxisId:L;return N.cloneElement(m,{key:m.key||"".concat(_,"-").concat(S),xAxis:P[B],yAxis:j[W],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),H(g,"renderActivePoints",function(m){var _=m.item,S=m.activePoint,A=m.basePoint,M=m.childIndex,E=m.isRange,P=[],j=_.props.key,$=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,C=$.activeDot,R=$.dataKey,D=I(I({index:M,dataKey:R,cx:S.x,cy:S.y,r:4,fill:Kf(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},ee(C,!1)),ci(C));return P.push(b.renderActiveDot(C,D,"".concat(j,"-activePoint-").concat(M))),A?P.push(b.renderActiveDot(C,I(I({},D),{},{cx:A.x,cy:A.y}),"".concat(j,"-basePoint-").concat(M))):E&&P.push(null),P}),H(g,"renderGraphicChild",function(m,_,S){var A=g.filterFormatItem(m,_,S);if(!A)return null;var M=g.getTooltipEventType(),E=g.state,P=E.isTooltipActive,j=E.tooltipAxis,$=E.activeTooltipIndex,C=E.activeLabel,R=g.props.children,D=Ne(R,ut),B=A.props,L=B.points,W=B.isRange,G=B.baseLine,U=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,K=U.activeDot,ce=U.hide,pe=U.activeBar,ke=U.activeShape,$t=!!(!ce&&P&&D&&(K||pe||ke)),Ce={};M!=="axis"&&D&&D.props.trigger==="click"?Ce={onClick:ti(g.handleItemMouseEnter,m.props.onClick)}:M!=="axis"&&(Ce={onMouseLeave:ti(g.handleItemMouseLeave,m.props.onMouseLeave),onMouseEnter:ti(g.handleItemMouseEnter,m.props.onMouseEnter)});var F=N.cloneElement(m,I(I({},A.props),Ce));function X(Rt){return typeof j.dataKey=="function"?j.dataKey(Rt.payload):null}if($t)if($>=0){var V,k;if(j.dataKey&&!j.allowDuplicatedCategory){var fe=typeof j.dataKey=="function"?X:"payload.".concat(j.dataKey.toString());V=ui(L,fe,C),k=W&&G&&ui(G,fe,C)}else V=L==null?void 0:L[$],k=W&&G&&G[$];if(ke||pe){var J=m.props.activeIndex!==void 0?m.props.activeIndex:$;return[N.cloneElement(m,I(I(I({},A.props),Ce),{},{activeIndex:J})),null,null]}if(!Z(V))return[F].concat(Cr(g.renderActivePoints({item:A,activePoint:V,basePoint:k,childIndex:$,isRange:W})))}else{var ye,ge=(ye=g.getItemByXY(g.state.activeCoordinate))!==null&&ye!==void 0?ye:{graphicalItem:F},$e=ge.graphicalItem,wt=$e.item,Qt=wt===void 0?m:wt,Gn=$e.childIndex,It=I(I(I({},A.props),Ce),{},{activeIndex:Gn});return[N.cloneElement(Qt,It),null,null]}return W?[F,null,null]:[F,null]}),H(g,"renderCustomized",function(m,_,S){return N.cloneElement(m,I(I({key:"recharts-customized-".concat(S)},g.props),g.state))}),H(g,"renderMap",{CartesianGrid:{handler:oi,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:oi},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:oi},YAxis:{handler:oi},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:sa("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=Lb(g.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),g.state={},g}return bD(b,p),vD(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,g=w.data,m=w.height,_=w.layout,S=Ne(O,ut);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=Jl(this.state,g,A,M),P=this.state.tooltipTicks[A].coordinate,j=(this.state.offset.top+m)/2,$=_==="horizontal",C=$?{x:P,y:j}:{y:P,x:j},R=this.state.formattedGraphicalItems.find(function(B){var L=B.item;return L.type.name==="Scatter"});R&&(C=I(I({},C),R.props.points[A].tooltipPosition),E=R.props.points[A].tooltipPayload);var D={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:M,activePayload:E,activeCoordinate:C};this.setState(D),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var g,m;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(m=this.props.margin.top)!==null&&m!==void 0?m:0}})}return null}},{key:"componentDidUpdate",value:function(w){Ls([Ne(w.children,ut)],[Ne(this.props.children,ut)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ne(this.props.children,ut);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,g=O.getBoundingClientRect(),m=qS(g),_={chartX:Math.round(w.pageX-m.left),chartY:Math.round(w.pageY-m.top)},S=g.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,S);if(!A)return null;var M=this.state,E=M.xAxisMap,P=M.yAxisMap,j=this.getTooltipEventType(),$=Nm(this.state,this.props.data,this.props.layout,A);if(j!=="axis"&&E&&P){var C=_t(E).scale,R=_t(P).scale,D=C&&C.invert?C.invert(_.chartX):null,B=R&&R.invert?R.invert(_.chartY):null;return I(I({},_),{},{xValue:D,yValue:B},$)}return $?I(I({},_),$):null}},{key:"inRange",value:function(w,O){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=this.props.layout,_=w/g,S=O/g;if(m==="horizontal"||m==="vertical"){var A=this.state.offset,M=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return M?{x:_,y:S}:null}var E=this.state,P=E.angleAxisMap,j=E.radiusAxisMap;if(P&&j){var $=_t(P);return rg({x:_,y:S},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),g=Ne(w,ut),m={};g&&O==="axis"&&(g.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 _=ci(this.props,this.handleOuterEvent);return I(I({},_),m)}},{key:"addListener",value:function(){ks.on(Ds,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ks.removeListener(Ds,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,g){for(var m=this.state.formattedGraphicalItems,_=0,S=m.length;_<S;_++){var A=m[_];if(A.item===w||A.props.key===w.key||O===ht(A.item.type)&&g===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,g=O.left,m=O.top,_=O.height,S=O.width;return T.createElement("defs",null,T.createElement("clipPath",{id:w},T.createElement("rect",{x:g,y:m,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=Rm(g,2),_=m[0],S=m[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=Rm(g,2),_=m[0],S=m[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,g=O.formattedGraphicalItems,m=O.activeItem;if(g&&g.length)for(var _=0,S=g.length;_<S;_++){var A=g[_],M=A.props,E=A.item,P=E.type.defaultProps!==void 0?I(I({},E.type.defaultProps),E.props):E.props,j=ht(E.type);if(j==="Bar"){var $=(M.data||[]).find(function(B){return u$(w,B)});if($)return{graphicalItem:A,payload:$}}else if(j==="RadialBar"){var C=(M.data||[]).find(function(B){return rg(w,B)});if(C)return{graphicalItem:A,payload:C}}else if(Ea(A,m)||ja(A,m)||Mn(A,m)){var R=Z$({graphicalItem:A,activeTooltipItem:m,itemData:P.data}),D=P.activeIndex===void 0?R:P.activeIndex;return{graphicalItem:I(I({},A),{},{childIndex:D}),payload:Mn(A,m)?P.data[R]:A.props.data[R]}}}return null}},{key:"render",value:function(){var w=this;if(!dp(this))return null;var O=this.props,g=O.children,m=O.className,_=O.width,S=O.height,A=O.style,M=O.compact,E=O.title,P=O.desc,j=km(O,cD),$=ee(j,!1);if(M)return T.createElement(mm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Us,or({},$,{width:_,height:S,title:E,desc:P}),this.renderClipPath(),yp(g,this.renderMap)));if(this.props.accessibilityLayer){var C,R;$.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},$.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return T.createElement(mm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",or({className:te("recharts-wrapper",m),style:I({position:"relative",cursor:"default",width:_,height:S},A)},D,{ref:function(L){w.container=L}}),T.createElement(Us,or({},$,{width:_,height:S,title:E,desc:P,style:AD}),this.renderClipPath(),yp(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);H(y,"displayName",r),H(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(y,"getDerivedStateFromProps",function(p,b){var x=p.dataKey,w=p.data,O=p.children,g=p.width,m=p.height,_=p.layout,S=p.stackOffset,A=p.margin,M=b.dataStartIndex,E=b.dataEndIndex;if(b.updateId===void 0){var P=qm(p);return I(I(I({},P),{},{updateId:0},d(I(I({props:p},P),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||g!==b.prevWidth||m!==b.prevHeight||_!==b.prevLayout||S!==b.prevStackOffset||!ur(A,b.prevMargin)){var j=qm(p),$={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=I(I({},Nm(b,w,_)),{},{updateId:b.updateId+1}),R=I(I(I({},j),$),C);return I(I(I({},R),d(I({props:p},R),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!Ls(O,b.prevChildren)){var D,B,L,W,G=Ne(O,Or),U=G&&(D=(B=G.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:M,K=G&&(L=(W=G.props)===null||W===void 0?void 0:W.endIndex)!==null&&L!==void 0?L:E,ce=U!==M||K!==E,pe=!Z(w),ke=pe&&!ce?b.updateId:b.updateId+1;return I(I({updateId:ke},d(I(I({props:p},b),{},{updateId:ke,dataStartIndex:U,dataEndIndex:K}),b)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:K})}return null}),H(y,"renderActiveDot",function(p,b,x){var w;return N.isValidElement(p)?w=N.cloneElement(p,b):Y(p)?w=p(b):w=T.createElement(ux,b),T.createElement(_e,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(b,x){return T.createElement(y,or({},b,{ref:x}))});return v.displayName=y.displayName,v};function zD(){const[e,t]=N.useState(!0);return N.useEffect(()=>{const r=requestAnimationFrame(()=>t(!1));return()=>cancelAnimationFrame(r)},[]),e}function WD(e){const[t,r]=N.useState(()=>typeof window<"u"&&window.matchMedia(e).matches);return N.useEffect(()=>{const n=window.matchMedia(e),i=()=>r(n.matches);return n.addEventListener("change",i),i(),()=>n.removeEventListener("change",i)},[e]),t}const HD={tick:{fill:"var(--color-fg-dim)",fontSize:10,fontFamily:"var(--font-mono)"},tickLine:!1,axisLine:{stroke:"var(--color-line)"}},GD={stroke:"var(--color-line)",strokeDasharray:"2 5",vertical:!1},KD={stroke:"var(--color-line-2)",strokeDasharray:"3 3"};function XD(e,t={}){return function(n){const{active:i,payload:a,label:o}=n;if(!i||!a||a.length===0)return null;const u=String(o??""),c=e(a,u);return c.length===0?null:ot.jsxs("div",{className:"rounded-md border border-line-2 bg-bg-2/95 px-2.5 py-2 font-mono text-[11px] shadow-lg backdrop-blur",children:[ot.jsx("div",{className:"mb-1 text-fg-faint",children:t.title?t.title(u):Zx(u)}),ot.jsx("div",{className:"flex flex-col gap-0.5",children:c.map((s,f)=>ot.jsxs("div",{className:"flex items-center justify-between gap-4",children:[ot.jsxs("span",{className:"flex items-center gap-1.5 text-fg-dim",children:[s.color&&ot.jsx("span",{className:"inline-block size-2 rounded-[2px]",style:{background:s.color}}),s.label]}),ot.jsx("span",{className:"tnum text-fg-bright",children:s.value})]},f))})]})}}function VD({height:e=240,heightClass:t,children:r}){return t?ot.jsx("div",{className:t,style:{width:"100%"},children:r}):ot.jsx("div",{style:{height:e,width:"100%"},children:r})}export{Pt as A,Et as B,pg as C,ux as D,Ta as E,BT as F,Ln as G,xi as H,Pe as I,LD as J,si as K,_e as L,Ee as M,ze as N,Ve as O,Fb as P,mj as Q,ND as R,W$ as S,ut as T,Ye as U,pt as V,Hn as W,Bx as X,zx as Y,BD as Z,WD as _,ee as a,er as b,te as c,Wf as d,Z as e,Ze as f,Wt as g,DD as h,Y as i,Je as j,qD as k,q as l,_a as m,qn as n,UD as o,FD as p,zD as q,VD as r,_k as s,GD as t,sa as u,HD as v,KD as w,XD as x,S0 as y,DT as z};
|
|
69
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kx(e,t){if(e){if(typeof e=="string")return Zl(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 Zl(e,t)}}function wD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OD(e){if(Array.isArray(e))return Zl(e)}function Zl(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 Dm(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 I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dm(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=Xx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xx(e){var t=_D(e,"string");return Mr(t)=="symbol"?t:t+""}function _D(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 SD={xAxis:["bottom","top"],yAxis:["left","right"]},AD={width:"100%",height:"100%"},Vx={x:0,y:0};function oi(e){return e}var PD=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},TD=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(I(I({},i),Pe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return I(I(I({},i),Pe(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return Vx},ka=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Cr(u),Cr(s)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function Yx(e){return e==="number"?[0,"auto"]:void 0}var Jl=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=ka(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;h=ui(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Cr(c),[V0(s,h)]):c},[])},Nm=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=PD(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=XE(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=Jl(t,r,f,l),d=TD(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},ED=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,d=z0(f,a);return n.reduce(function(y,v){var p,b=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,g=b.allowDuplicatedCategory,m=b.scale,_=b.ticks,S=b.includeHidden,A=b[o];if(y[A])return y;var M=ka(t.data,{graphicalItems:i.filter(function(U){var K,ce=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o];return ce===A}),dataStartIndex:c,dataEndIndex:s}),E=M.length,P,j,$;eD(b.domain,O,x)&&(P=ml(b.domain,null,O),d&&(x==="number"||m!=="auto")&&($=Qr(M,w,"category")));var C=Yx(x);if(!P||P.length===0){var R,D=(R=b.domain)!==null&&R!==void 0?R:C;if(w){if(P=Qr(M,w,x),x==="category"&&d){var B=Lw(P);g&&B?(j=P,P=Hi(0,E)):g||(P=Qy(D,P,v).reduce(function(U,K){return U.indexOf(K)>=0?U:[].concat(Cr(U),[K])},[]))}else if(x==="category")g?P=P.filter(function(U){return U!==""&&!Z(U)}):P=Qy(D,P,v).reduce(function(U,K){return U.indexOf(K)>=0||K===""||Z(K)?U:[].concat(Cr(U),[K])},[]);else if(x==="number"){var L=QE(M,i.filter(function(U){var K,ce,pe=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o],ke="hide"in U.props?U.props.hide:(ce=U.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return pe===A&&(S||!ke)}),w,a,f);L&&(P=L)}d&&(x==="number"||m!=="auto")&&($=Qr(M,w,"category"))}else d?P=Hi(0,E):u&&u[A]&&u[A].hasStack&&x==="number"?P=h==="expand"?[0,1]:X0(u[A].stackGroups,c,s):P=U0(M,i.filter(function(U){var K=o in U.props?U.props[o]:U.type.defaultProps[o],ce="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return K===A&&(S||!ce)}),x,f,!0);if(x==="number")P=Vl(l,P,A,a,_),D&&(P=ml(D,P,O));else if(x==="category"&&D){var W=D,G=P.every(function(U){return W.indexOf(U)>=0});G&&(P=W)}}return I(I({},y),{},H({},A,I(I({},b),{},{axisType:a,domain:P,categoricalDomain:$,duplicateDomain:j,originalDomain:(p=b.domain)!==null&&p!==void 0?p:C,isCategorical:d,layout:f})))},{})},jD=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=ka(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,y=z0(f,a),v=-1;return n.reduce(function(p,b){var x=b.type.defaultProps!==void 0?I(I({},b.type.defaultProps),b.props):b.props,w=x[o],O=Yx("number");if(!p[w]){v++;var g;return y?g=Hi(0,d):u&&u[w]&&u[w].hasStack?(g=X0(u[w].stackGroups,c,s),g=Vl(l,g,w,a)):(g=ml(O,U0(h,n.filter(function(m){var _,S,A=o in m.props?m.props[o]:(_=m.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in m.props?m.props.hide:(S=m.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),g=Vl(l,g,w,a)),I(I({},p),{},H({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:ze(SD,"".concat(a,".").concat(v%2),null),domain:g,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},MD=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Ze(f,a),d={};return h&&h.length?d=ED(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=jD(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},CD=function(t){var r=_t(t),n=ft(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:xf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ki(r,n)}},qm=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ne(r,Or),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}},$D=function(t){return!t||!t.length?!1:t.some(function(r){var n=ht(r&&r.type);return n&&n.indexOf("Bar")>=0})},Bm=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"}},ID=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},d=Ne(l,Or),y=Ne(l,cr),v=Object.keys(c).reduce(function(g,m){var _=c[m],S=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},H({},S,g[S]+_.width)):g},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(g,m){var _=o[m],S=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},H({},S,ze(g,"".concat(S))+_.height)):g},{top:h.top||0,bottom:h.bottom||0}),b=I(I({},p),v),x=b.bottom;d&&(b.bottom+=d.props.height||Or.defaultProps.height),y&&r&&(b=ZE(b,i,n,r));var w=s-b.left-b.right,O=f-b.top-b.bottom;return I(I({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},RD=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},zD=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(b,x){var w=x.graphicalItems,O=x.stackGroups,g=x.offset,m=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,A=b.barSize,M=b.layout,E=b.barGap,P=b.barCategoryGap,j=b.maxBarSize,$=Bm(M),C=$.numericAxisName,R=$.cateAxisName,D=$D(w),B=[];return w.forEach(function(L,W){var G=ka(b.data,{graphicalItems:[L],dataStartIndex:_,dataEndIndex:S}),U=L.type.defaultProps!==void 0?I(I({},L.type.defaultProps),L.props):L.props,K=U.dataKey,ce=U.maxBarSize,pe=U["".concat(C,"Id")],ke=U["".concat(R,"Id")],$t={},Ce=c.reduce(function(It,Rt){var Da=x["".concat(Rt.axisType,"Map")],ih=U["".concat(Rt.axisType,"Id")];Da&&Da[ih]||Rt.axisType==="zAxis"||Kt();var ah=Da[ih];return I(I({},It),{},H(H({},Rt.axisType,ah),"".concat(Rt.axisType,"Ticks"),ft(ah)))},$t),F=Ce[R],X=Ce["".concat(R,"Ticks")],V=O&&O[pe]&&O[pe].hasStack&&cj(L,O[pe].stackGroups),k=ht(L.type).indexOf("Bar")>=0,fe=ki(F,X),J=[],ye=D&&VE({barSize:A,stackGroups:O,totalSize:RD(Ce,R)});if(k){var ge,$e,wt=Z(ce)?j:ce,Qt=(ge=($e=ki(F,X,!0))!==null&&$e!==void 0?$e:wt)!==null&&ge!==void 0?ge:0;J=YE({barGap:E,barCategoryGap:P,bandSize:Qt!==fe?Qt:fe,sizeList:ye[ke],maxBarSize:wt}),Qt!==fe&&(J=J.map(function(It){return I(I({},It),{},{position:I(I({},It.position),{},{offset:It.position.offset-Qt/2})})}))}var Gn=L&&L.type&&L.type.getComposedData;Gn&&B.push({props:I(I({},Gn(I(I({},Ce),{},{displayedData:G,props:b,dataKey:K,item:L,bandSize:fe,barPosition:J,offset:g,stackedData:V,layout:M,dataStartIndex:_,dataEndIndex:S}))),{},H(H(H({key:L.key||"item-".concat(W)},C,Ce[C]),R,Ce[R]),"animationId",m)),childIndex:Jw(L,b.children),item:L})}),B},d=function(b,x){var w=b.props,O=b.dataStartIndex,g=b.dataEndIndex,m=b.updateId;if(!dp({props:w}))return null;var _=w.children,S=w.layout,A=w.stackOffset,M=w.data,E=w.reverseStackOrder,P=Bm(S),j=P.numericAxisName,$=P.cateAxisName,C=Ze(_,n),R=oj(M,C,"".concat(j,"Id"),"".concat($,"Id"),A,E),D=c.reduce(function(U,K){var ce="".concat(K.axisType,"Map");return I(I({},U),{},H({},ce,MD(w,I(I({},K),{},{graphicalItems:C,stackGroups:K.axisType===j&&R,dataStartIndex:O,dataEndIndex:g}))))},{}),B=ID(I(I({},D),{},{props:w,graphicalItems:C}),x==null?void 0:x.legendBBox);Object.keys(D).forEach(function(U){D[U]=f(w,D[U],B,U.replace("Map",""),r)});var L=D["".concat($,"Map")],W=CD(L),G=h(w,I(I({},D),{},{dataStartIndex:O,dataEndIndex:g,updateId:m,graphicalItems:C,stackGroups:R,offset:B}));return I(I({formattedGraphicalItems:G,graphicalItems:C,offset:B,stackGroups:R},W),D)},y=(function(p){function b(x){var w,O,g;return pD(this,b),g=yD(this,b,[x]),H(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(g,"accessibilityManager",new Qk),H(g,"handleLegendBBoxUpdate",function(m){if(m){var _=g.state,S=_.dataStartIndex,A=_.dataEndIndex,M=_.updateId;g.setState(I({legendBBox:m},d({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:M},I(I({},g.state),{},{legendBBox:m}))))}}),H(g,"handleReceiveSyncEvent",function(m,_,S){if(g.props.syncId===m){if(S===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(_)}}),H(g,"handleBrushChange",function(m){var _=m.startIndex,S=m.endIndex;if(_!==g.state.dataStartIndex||S!==g.state.dataEndIndex){var A=g.state.updateId;g.setState(function(){return I({dataStartIndex:_,dataEndIndex:S},d({props:g.props,dataStartIndex:_,dataEndIndex:S,updateId:A},g.state))}),g.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),H(g,"handleMouseEnter",function(m){var _=g.getMouseInfo(m);if(_){var S=I(I({},_),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseEnter;Y(A)&&A(S,m)}}),H(g,"triggeredAfterMouseMove",function(m){var _=g.getMouseInfo(m),S=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseMove;Y(A)&&A(S,m)}),H(g,"handleItemMouseEnter",function(m){g.setState(function(){return{isTooltipActive:!0,activeItem:m,activePayload:m.tooltipPayload,activeCoordinate:m.tooltipPosition||{x:m.cx,y:m.cy}}})}),H(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),H(g,"handleMouseMove",function(m){m.persist(),g.throttleTriggeredAfterMouseMove(m)}),H(g,"handleMouseLeave",function(m){g.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};g.setState(_),g.triggerSyncEvent(_);var S=g.props.onMouseLeave;Y(S)&&S(_,m)}),H(g,"handleOuterEvent",function(m){var _=Zw(m),S=ze(g.props,"".concat(_));if(_&&Y(S)){var A,M;/.*touch.*/i.test(_)?M=g.getMouseInfo(m.changedTouches[0]):M=g.getMouseInfo(m),S((A=M)!==null&&A!==void 0?A:{},m)}}),H(g,"handleClick",function(m){var _=g.getMouseInfo(m);if(_){var S=I(I({},_),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onClick;Y(A)&&A(S,m)}}),H(g,"handleMouseDown",function(m){var _=g.props.onMouseDown;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"handleMouseUp",function(m){var _=g.props.onMouseUp;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"handleTouchMove",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(m.changedTouches[0])}),H(g,"handleTouchStart",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseDown(m.changedTouches[0])}),H(g,"handleTouchEnd",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseUp(m.changedTouches[0])}),H(g,"handleDoubleClick",function(m){var _=g.props.onDoubleClick;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"handleContextMenu",function(m){var _=g.props.onContextMenu;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"triggerSyncEvent",function(m){g.props.syncId!==void 0&&ks.emit(Ds,g.props.syncId,m,g.eventEmitterSymbol)}),H(g,"applySyncEvent",function(m){var _=g.props,S=_.layout,A=_.syncMethod,M=g.state.updateId,E=m.dataStartIndex,P=m.dataEndIndex;if(m.dataStartIndex!==void 0||m.dataEndIndex!==void 0)g.setState(I({dataStartIndex:E,dataEndIndex:P},d({props:g.props,dataStartIndex:E,dataEndIndex:P,updateId:M},g.state)));else if(m.activeTooltipIndex!==void 0){var j=m.chartX,$=m.chartY,C=m.activeTooltipIndex,R=g.state,D=R.offset,B=R.tooltipTicks;if(!D)return;if(typeof A=="function")C=A(B,m);else if(A==="value"){C=-1;for(var L=0;L<B.length;L++)if(B[L].value===m.activeLabel){C=L;break}}var W=I(I({},D),{},{x:D.left,y:D.top}),G=Math.min(j,W.x+W.width),U=Math.min($,W.y+W.height),K=B[C]&&B[C].value,ce=Jl(g.state,g.props.data,C),pe=B[C]?{x:S==="horizontal"?B[C].coordinate:G,y:S==="horizontal"?U:B[C].coordinate}:Vx;g.setState(I(I({},m),{},{activeLabel:K,activeCoordinate:pe,activePayload:ce,activeTooltipIndex:C}))}else g.setState(m)}),H(g,"renderCursor",function(m){var _,S=g.state,A=S.isTooltipActive,M=S.activeCoordinate,E=S.activePayload,P=S.offset,j=S.activeTooltipIndex,$=S.tooltipAxisBandSize,C=g.getTooltipEventType(),R=(_=m.props.active)!==null&&_!==void 0?_:A,D=g.props.layout,B=m.key||"_recharts-cursor";return T.createElement(oD,{key:B,activeCoordinate:M,activePayload:E,activeTooltipIndex:j,chartName:r,element:m,isActive:R,layout:D,offset:P,tooltipAxisBandSize:$,tooltipEventType:C})}),H(g,"renderPolarAxis",function(m,_,S){var A=ze(m,"type.axisType"),M=ze(g.state,"".concat(A,"Map")),E=m.type.defaultProps,P=E!==void 0?I(I({},E),m.props):m.props,j=M&&M[P["".concat(A,"Id")]];return N.cloneElement(m,I(I({},j),{},{className:te(A,j.className),key:m.key||"".concat(_,"-").concat(S),ticks:ft(j,!0)}))}),H(g,"renderPolarGrid",function(m){var _=m.props,S=_.radialLines,A=_.polarAngles,M=_.polarRadius,E=g.state,P=E.radiusAxisMap,j=E.angleAxisMap,$=_t(P),C=_t(j),R=C.cx,D=C.cy,B=C.innerRadius,L=C.outerRadius;return N.cloneElement(m,{polarAngles:Array.isArray(A)?A:ft(C,!0).map(function(W){return W.coordinate}),polarRadius:Array.isArray(M)?M:ft($,!0).map(function(W){return W.coordinate}),cx:R,cy:D,innerRadius:B,outerRadius:L,key:m.key||"polar-grid",radialLines:S})}),H(g,"renderLegend",function(){var m=g.state.formattedGraphicalItems,_=g.props,S=_.children,A=_.width,M=_.height,E=g.props.margin||{},P=A-(E.left||0)-(E.right||0),j=L0({children:S,formattedGraphicalItems:m,legendWidth:P,legendContent:s});if(!j)return null;var $=j.item,C=km(j,uD);return N.cloneElement($,I(I({},C),{},{chartWidth:A,chartHeight:M,margin:E,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),H(g,"renderTooltip",function(){var m,_=g.props,S=_.children,A=_.accessibilityLayer,M=Ne(S,ut);if(!M)return null;var E=g.state,P=E.isTooltipActive,j=E.activeCoordinate,$=E.activePayload,C=E.activeLabel,R=E.offset,D=(m=M.props.active)!==null&&m!==void 0?m:P;return N.cloneElement(M,{viewBox:I(I({},R),{},{x:R.left,y:R.top}),active:D,label:C,payload:D?$:[],coordinate:j,accessibilityLayer:A})}),H(g,"renderBrush",function(m){var _=g.props,S=_.margin,A=_.data,M=g.state,E=M.offset,P=M.dataStartIndex,j=M.dataEndIndex,$=M.updateId;return N.cloneElement(m,{key:m.key||"_recharts-brush",onChange:ti(g.handleBrushChange,m.props.onChange),data:A,x:q(m.props.x)?m.props.x:E.left,y:q(m.props.y)?m.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:q(m.props.width)?m.props.width:E.width,startIndex:P,endIndex:j,updateId:"brush-".concat($)})}),H(g,"renderReferenceElement",function(m,_,S){if(!m)return null;var A=g,M=A.clipPathId,E=g.state,P=E.xAxisMap,j=E.yAxisMap,$=E.offset,C=m.type.defaultProps||{},R=m.props,D=R.xAxisId,B=D===void 0?C.xAxisId:D,L=R.yAxisId,W=L===void 0?C.yAxisId:L;return N.cloneElement(m,{key:m.key||"".concat(_,"-").concat(S),xAxis:P[B],yAxis:j[W],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),H(g,"renderActivePoints",function(m){var _=m.item,S=m.activePoint,A=m.basePoint,M=m.childIndex,E=m.isRange,P=[],j=_.props.key,$=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,C=$.activeDot,R=$.dataKey,D=I(I({index:M,dataKey:R,cx:S.x,cy:S.y,r:4,fill:Kf(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},ee(C,!1)),ci(C));return P.push(b.renderActiveDot(C,D,"".concat(j,"-activePoint-").concat(M))),A?P.push(b.renderActiveDot(C,I(I({},D),{},{cx:A.x,cy:A.y}),"".concat(j,"-basePoint-").concat(M))):E&&P.push(null),P}),H(g,"renderGraphicChild",function(m,_,S){var A=g.filterFormatItem(m,_,S);if(!A)return null;var M=g.getTooltipEventType(),E=g.state,P=E.isTooltipActive,j=E.tooltipAxis,$=E.activeTooltipIndex,C=E.activeLabel,R=g.props.children,D=Ne(R,ut),B=A.props,L=B.points,W=B.isRange,G=B.baseLine,U=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,K=U.activeDot,ce=U.hide,pe=U.activeBar,ke=U.activeShape,$t=!!(!ce&&P&&D&&(K||pe||ke)),Ce={};M!=="axis"&&D&&D.props.trigger==="click"?Ce={onClick:ti(g.handleItemMouseEnter,m.props.onClick)}:M!=="axis"&&(Ce={onMouseLeave:ti(g.handleItemMouseLeave,m.props.onMouseLeave),onMouseEnter:ti(g.handleItemMouseEnter,m.props.onMouseEnter)});var F=N.cloneElement(m,I(I({},A.props),Ce));function X(Rt){return typeof j.dataKey=="function"?j.dataKey(Rt.payload):null}if($t)if($>=0){var V,k;if(j.dataKey&&!j.allowDuplicatedCategory){var fe=typeof j.dataKey=="function"?X:"payload.".concat(j.dataKey.toString());V=ui(L,fe,C),k=W&&G&&ui(G,fe,C)}else V=L==null?void 0:L[$],k=W&&G&&G[$];if(ke||pe){var J=m.props.activeIndex!==void 0?m.props.activeIndex:$;return[N.cloneElement(m,I(I(I({},A.props),Ce),{},{activeIndex:J})),null,null]}if(!Z(V))return[F].concat(Cr(g.renderActivePoints({item:A,activePoint:V,basePoint:k,childIndex:$,isRange:W})))}else{var ye,ge=(ye=g.getItemByXY(g.state.activeCoordinate))!==null&&ye!==void 0?ye:{graphicalItem:F},$e=ge.graphicalItem,wt=$e.item,Qt=wt===void 0?m:wt,Gn=$e.childIndex,It=I(I(I({},A.props),Ce),{},{activeIndex:Gn});return[N.cloneElement(Qt,It),null,null]}return W?[F,null,null]:[F,null]}),H(g,"renderCustomized",function(m,_,S){return N.cloneElement(m,I(I({key:"recharts-customized-".concat(S)},g.props),g.state))}),H(g,"renderMap",{CartesianGrid:{handler:oi,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:oi},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:oi},YAxis:{handler:oi},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:sa("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=Lb(g.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),g.state={},g}return bD(b,p),vD(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,g=w.data,m=w.height,_=w.layout,S=Ne(O,ut);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=Jl(this.state,g,A,M),P=this.state.tooltipTicks[A].coordinate,j=(this.state.offset.top+m)/2,$=_==="horizontal",C=$?{x:P,y:j}:{y:P,x:j},R=this.state.formattedGraphicalItems.find(function(B){var L=B.item;return L.type.name==="Scatter"});R&&(C=I(I({},C),R.props.points[A].tooltipPosition),E=R.props.points[A].tooltipPayload);var D={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:M,activePayload:E,activeCoordinate:C};this.setState(D),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var g,m;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(m=this.props.margin.top)!==null&&m!==void 0?m:0}})}return null}},{key:"componentDidUpdate",value:function(w){Ls([Ne(w.children,ut)],[Ne(this.props.children,ut)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ne(this.props.children,ut);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,g=O.getBoundingClientRect(),m=qS(g),_={chartX:Math.round(w.pageX-m.left),chartY:Math.round(w.pageY-m.top)},S=g.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,S);if(!A)return null;var M=this.state,E=M.xAxisMap,P=M.yAxisMap,j=this.getTooltipEventType(),$=Nm(this.state,this.props.data,this.props.layout,A);if(j!=="axis"&&E&&P){var C=_t(E).scale,R=_t(P).scale,D=C&&C.invert?C.invert(_.chartX):null,B=R&&R.invert?R.invert(_.chartY):null;return I(I({},_),{},{xValue:D,yValue:B},$)}return $?I(I({},_),$):null}},{key:"inRange",value:function(w,O){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=this.props.layout,_=w/g,S=O/g;if(m==="horizontal"||m==="vertical"){var A=this.state.offset,M=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return M?{x:_,y:S}:null}var E=this.state,P=E.angleAxisMap,j=E.radiusAxisMap;if(P&&j){var $=_t(P);return rg({x:_,y:S},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),g=Ne(w,ut),m={};g&&O==="axis"&&(g.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 _=ci(this.props,this.handleOuterEvent);return I(I({},_),m)}},{key:"addListener",value:function(){ks.on(Ds,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ks.removeListener(Ds,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,g){for(var m=this.state.formattedGraphicalItems,_=0,S=m.length;_<S;_++){var A=m[_];if(A.item===w||A.props.key===w.key||O===ht(A.item.type)&&g===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,g=O.left,m=O.top,_=O.height,S=O.width;return T.createElement("defs",null,T.createElement("clipPath",{id:w},T.createElement("rect",{x:g,y:m,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=Rm(g,2),_=m[0],S=m[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=Rm(g,2),_=m[0],S=m[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,g=O.formattedGraphicalItems,m=O.activeItem;if(g&&g.length)for(var _=0,S=g.length;_<S;_++){var A=g[_],M=A.props,E=A.item,P=E.type.defaultProps!==void 0?I(I({},E.type.defaultProps),E.props):E.props,j=ht(E.type);if(j==="Bar"){var $=(M.data||[]).find(function(B){return u$(w,B)});if($)return{graphicalItem:A,payload:$}}else if(j==="RadialBar"){var C=(M.data||[]).find(function(B){return rg(w,B)});if(C)return{graphicalItem:A,payload:C}}else if(Ea(A,m)||ja(A,m)||Mn(A,m)){var R=Z$({graphicalItem:A,activeTooltipItem:m,itemData:P.data}),D=P.activeIndex===void 0?R:P.activeIndex;return{graphicalItem:I(I({},A),{},{childIndex:D}),payload:Mn(A,m)?P.data[R]:A.props.data[R]}}}return null}},{key:"render",value:function(){var w=this;if(!dp(this))return null;var O=this.props,g=O.children,m=O.className,_=O.width,S=O.height,A=O.style,M=O.compact,E=O.title,P=O.desc,j=km(O,cD),$=ee(j,!1);if(M)return T.createElement(mm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Us,or({},$,{width:_,height:S,title:E,desc:P}),this.renderClipPath(),yp(g,this.renderMap)));if(this.props.accessibilityLayer){var C,R;$.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},$.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return T.createElement(mm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",or({className:te("recharts-wrapper",m),style:I({position:"relative",cursor:"default",width:_,height:S},A)},D,{ref:function(L){w.container=L}}),T.createElement(Us,or({},$,{width:_,height:S,title:E,desc:P,style:AD}),this.renderClipPath(),yp(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);H(y,"displayName",r),H(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(y,"getDerivedStateFromProps",function(p,b){var x=p.dataKey,w=p.data,O=p.children,g=p.width,m=p.height,_=p.layout,S=p.stackOffset,A=p.margin,M=b.dataStartIndex,E=b.dataEndIndex;if(b.updateId===void 0){var P=qm(p);return I(I(I({},P),{},{updateId:0},d(I(I({props:p},P),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||g!==b.prevWidth||m!==b.prevHeight||_!==b.prevLayout||S!==b.prevStackOffset||!ur(A,b.prevMargin)){var j=qm(p),$={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=I(I({},Nm(b,w,_)),{},{updateId:b.updateId+1}),R=I(I(I({},j),$),C);return I(I(I({},R),d(I({props:p},R),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!Ls(O,b.prevChildren)){var D,B,L,W,G=Ne(O,Or),U=G&&(D=(B=G.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:M,K=G&&(L=(W=G.props)===null||W===void 0?void 0:W.endIndex)!==null&&L!==void 0?L:E,ce=U!==M||K!==E,pe=!Z(w),ke=pe&&!ce?b.updateId:b.updateId+1;return I(I({updateId:ke},d(I(I({props:p},b),{},{updateId:ke,dataStartIndex:U,dataEndIndex:K}),b)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:K})}return null}),H(y,"renderActiveDot",function(p,b,x){var w;return N.isValidElement(p)?w=N.cloneElement(p,b):Y(p)?w=p(b):w=T.createElement(ux,b),T.createElement(_e,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(b,x){return T.createElement(y,or({},b,{ref:x}))});return v.displayName=y.displayName,v};function WD(){const[e,t]=N.useState(!0);return N.useEffect(()=>{const r=requestAnimationFrame(()=>t(!1));return()=>cancelAnimationFrame(r)},[]),e}function HD(e){const[t,r]=N.useState(()=>typeof window<"u"&&window.matchMedia(e).matches);return N.useEffect(()=>{const n=window.matchMedia(e),i=()=>r(n.matches);return n.addEventListener("change",i),i(),()=>n.removeEventListener("change",i)},[e]),t}const GD={tick:{fill:"var(--color-fg-dim)",fontSize:10,fontFamily:"var(--font-mono)"},tickLine:!1,axisLine:{stroke:"var(--color-line)"}},KD={stroke:"var(--color-line)",strokeDasharray:"2 5",vertical:!1},XD={stroke:"var(--color-line-2)",strokeDasharray:"3 3"};function kD(e,t={}){return function(n){const{active:i,payload:a,label:o}=n;if(!i||!a||a.length===0)return null;const u=String(o??""),c=e(a,u);return c.length===0?null:ot.jsxs("div",{className:"rounded-md border border-line-2 bg-bg-2/95 px-2.5 py-2 font-mono text-[11px] shadow-lg backdrop-blur",children:[ot.jsx("div",{className:"mb-1 text-fg-faint",children:t.title?t.title(u):Zx(u)}),ot.jsx("div",{className:"flex flex-col gap-0.5",children:c.map((s,f)=>ot.jsxs("div",{className:"flex items-center justify-between gap-4",children:[ot.jsxs("span",{className:"flex items-center gap-1.5 text-fg-dim",children:[s.color&&ot.jsx("span",{className:"inline-block size-2 rounded-[2px]",style:{background:s.color}}),s.label]}),ot.jsx("span",{className:"tnum text-fg-bright",children:s.value})]},f))})]})}}function VD(e,t,r,n){return kD(i=>{var a;return[{label:e,value:t(((a=i[0])==null?void 0:a.value)??0),color:typeof r=="function"?r(i):r}]},n)}function YD({height:e=240,heightClass:t,children:r}){return t?ot.jsx("div",{className:t,style:{width:"100%"},children:r}):ot.jsx("div",{style:{height:e,width:"100%"},children:r})}export{HD as $,Pt as A,DT as B,pg as C,ux as D,Ta as E,Et as F,Ln as G,BT as H,xi as I,Pe as J,FD as K,_e as L,si as M,Ee as N,ze as O,Ve as P,Fb as Q,qD as R,W$ as S,ut as T,mj as U,Ye as V,pt as W,Bx as X,zx as Y,Hn as Z,LD as _,ee as a,er as b,te as c,Wf as d,Z as e,Ze as f,Wt as g,ND as h,Y as i,Je as j,BD as k,q as l,_a as m,qn as n,zD as o,UD as p,WD as q,YD as r,_k as s,KD as t,sa as u,GD as v,XD as w,VD as x,kD as y,S0 as z};
|