vendor: 4,096 bytes, line 1
1import{c6 as mi,bu as ue,r as q,bg as Q,aL as S,j as H,H as vO,a as yO}from"./app-anjVnUkh.js";import{A as mO,T as gO}from"./app-layout-CwWe_iWr.js";import{c as Hb}from"./utils-CSCnkbdN.js";import{c as Kb}from"./createLucideIcon-CMZZJvJw.js";import{C as bO}from"./circle-check-_naEx7JK.js";import{C as xO}from"./circle-alert-vu2_p0b4.js";import{C as wO}from"./user-round-CuOQ0zRN.js";import{A as Gh}from"./arrow-right-C_buZCp1.js";import{A as OO}from"./arrow-up-right-Dd3cehxh.js";/* empty css */import"./ship-zznUSV21.js";import"./shells-DEqWw3BS.js";import"./chunk-FHM5GJ2N-CwSfAlKb.js";import"./chunk-E34J3A7S-Cjqq8mFf.js";import"./inertia-i55x0ta-.js";import"./chunk-OTCRKFOC-t1E4pUNY.js";import"./chevron-right-CtHTTYe-.js";import"./index-7GXKiMn0.js";import"./chunk-QEUP7ONY-CM9myYMf.js";import"./useDebounce-CB3Cks8D.js";import"./react-Bxz0dRcs.js";import"./users-DoViuTJS.js";import"./car-ElkD7EEZ.js";import"./id-card-Dd5O1xYi.js";import"./ticket-Cmyj-sMd.js";import"./clock-CquGZBHK.js";import"./credit-card-B7bGSF83.js";import"./receipt-BqrLmhqN.js";import"./user-CiIpvxzw.js";import"./index-B5WTPshZ.js";import"./shield-check-DwljSjLp.js";import"./route-BFlqy7s8.js";import"./user-cog-C9jIMNvJ.js";import"./copy-Woq2Fqij.js";import"./printer-CmjPvTmt.js";const _O=[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]],AO=Kb("ArrowDownRight",_O);const SO=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],PO=Kb("DollarSign",SO);var bo,Vh;function Be(){if(Vh)return bo;Vh=1;var e=Array.isArray;return bo=e,bo}var xo,Xh;function Gb(){if(Xh)return xo;Xh=1;var e=typeof mi=="object"&&mi&&mi.Object===Object&&mi;return xo=e,xo}var wo,Yh;function ht(){if(Yh)return wo;Yh=1;var e=Gb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return wo=r,wo}var Oo,Zh;function si(){if(Zh)return Oo;Zh=1;var e=ht(),t=e.Symbol;return Oo=t,Oo}var _o,Jh;function TO(){if(Jh)return _o;Jh=1;var e=si(),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 _o=a,_o}var Ao,Qh;function EO(){if(Qh)return Ao;Qh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ao=r,Ao}var So,ep;function St(){if(ep)return So;ep=1;var e=si(),t=TO(),r=EO(),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 So=o,So}var Po,tp;function Pt(){if(tp)return Po;tp=1;function e(t){return t!=null&&typeof t=="object"}return Po=e,Po}var To,rp;function en(){if(rp)return To;rp=1;var e=St(),t=Pt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return To=n,To}var Eo,np;function zf(){if(np)return Eo;np=1;var e=Be(),t=en(),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 Eo=i,Eo}var jo,ip;function Nt(){if(ip)return jo;ip=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return jo=e,jo}var Mo,ap;function Wf(){if(ap)return Mo;ap=1;var e=St(),t=Nt(),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 Mo=o,Mo}var $o,op;function jO(){if(op)return $o;op=1;var e=ht(),t=e["__core-js_shared__"];return $o=t,$o}var Co,up;function MO(){if(up)return Co;up=1;var e=jO(),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 Co=r,Co}var Io,cp;function Vb(){if(cp)return Io;cp=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 Io=r,Io}var ko,sp;function $O(){if(sp)return ko;sp=1;
vendor: 5,293 bytes, line 1
1var e=Wf(),t=MO(),r=Nt(),n=Vb(),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 ko=l,ko}var Ro,lp;function CO(){if(lp)return Ro;lp=1;function e(t,r){return t?.[r]}return Ro=e,Ro}var No,fp;function sr(){if(fp)return No;fp=1;var e=$O(),t=CO();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return No=r,No}var Do,hp;function Ca(){if(hp)return Do;hp=1;var e=sr(),t=e(Object,"create");return Do=t,Do}var qo,pp;function IO(){if(pp)return qo;pp=1;var e=Ca();function t(){this.__data__=e?e(null):{},this.size=0}return qo=t,qo}var Lo,dp;function kO(){if(dp)return Lo;dp=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Lo=e,Lo}var Bo,vp;function RO(){if(vp)return Bo;vp=1;var e=Ca(),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 Bo=i,Bo}var Fo,yp;function NO(){if(yp)return Fo;yp=1;var e=Ca(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Fo=n,Fo}var zo,mp;function DO(){if(mp)return zo;mp=1;var e=Ca(),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 zo=r,zo}var Wo,gp;function qO(){if(gp)return Wo;gp=1;var e=IO(),t=kO(),r=RO(),n=NO(),i=DO();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,Wo=a,Wo}var Uo,bp;function LO(){if(bp)return Uo;bp=1;function e(){this.__data__=[],this.size=0}return Uo=e,Uo}var Ho,xp;function Uf(){if(xp)return Ho;xp=1;function e(t,r){return t===r||t!==t&&r!==r}return Ho=e,Ho}var Ko,wp;function Ia(){if(wp)return Ko;wp=1;var e=Uf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Ko=t,Ko}var Go,Op;function BO(){if(Op)return Go;Op=1;var e=Ia(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Go=n,Go}var Vo,_p;function FO(){if(_p)return Vo;_p=1;var e=Ia();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Vo=t,Vo}var Xo,Ap;function zO(){if(Ap)return Xo;Ap=1;var e=Ia();function t(r){return e(this.__data__,r)>-1}return Xo=t,Xo}var Yo,Sp;function WO(){if(Sp)return Yo;Sp=1;var e=Ia();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 Yo=t,Yo}var Zo,Pp;function ka(){if(Pp)return Zo;Pp=1;var e=LO(),t=BO(),r=FO(),n=zO(),i=WO();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,Zo=a,Zo}var Jo,Tp;function Hf(){if(Tp)return Jo;Tp=1;var e=sr(),t=ht(),r=e(t,"Map");return Jo=r,Jo}var Qo,Ep;function UO(){if(Ep)return Qo;Ep=1;var e=qO(),t=ka(),r=Hf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Qo=n,Qo}var eu,jp;function HO(){if(jp)return eu;jp=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return eu=e,eu}var tu,Mp;function Ra(){if(Mp)return tu;Mp=1;var e=HO();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return tu=t,tu}var ru,$p;function KO(){if($p)return ru;$p=1;var e=Ra();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ru=t,ru}var nu,Cp;function GO(){if(Cp)return nu;Cp=1;var e=Ra();function t(r){return e(this,r).get(r)}return nu=t,nu}var iu,Ip;function VO(){if(Ip)return iu;Ip=1;var e=Ra();function t(r){return e(this,r).has(r)}return iu=t,iu}var au,kp;function XO(){if(kp)return au;kp=1;var e=Ra();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 au=t,au}var ou,Rp;function Kf(){if(Rp)return ou;Rp=1;var e=UO(),t=KO(),r=GO(),n=VO(),i=XO();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,ou=a,ou}var uu,Np;function Xb(){if(Np)return uu;Np=1;var e=Kf(),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,uu=r,uu}var cu,Dp;function YO(){if(Dp)return cu;Dp=1;var e=Xb(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return cu=r,cu}var su,qp;function ZO(){if(qp)return su;qp=1;var e=YO(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];
vendor: 6,904 bytes, line 1
1return 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 su=n,su}var lu,Lp;function Gf(){if(Lp)return lu;Lp=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 lu=e,lu}var fu,Bp;function JO(){if(Bp)return fu;Bp=1;var e=si(),t=Gf(),r=Be(),n=en(),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 fu=o,fu}var hu,Fp;function Yb(){if(Fp)return hu;Fp=1;var e=JO();function t(r){return r==null?"":e(r)}return hu=t,hu}var pu,zp;function Zb(){if(zp)return pu;zp=1;var e=Be(),t=zf(),r=ZO(),n=Yb();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return pu=i,pu}var du,Wp;function Na(){if(Wp)return du;Wp=1;var e=en();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return du=t,du}var vu,Up;function Vf(){if(Up)return vu;Up=1;var e=Zb(),t=Na();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 vu=r,vu}var yu,Hp;function Jb(){if(Hp)return yu;Hp=1;var e=Vf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return yu=t,yu}var QO=Jb();const He=ue(QO);var mu,Kp;function e_(){if(Kp)return mu;Kp=1;function e(t){return t==null}return mu=e,mu}var t_=e_();const Z=ue(t_);var gu,Gp;function r_(){if(Gp)return gu;Gp=1;var e=St(),t=Be(),r=Pt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return gu=i,gu}var n_=r_();const nr=ue(n_);var i_=Wf();const X=ue(i_);var a_=Nt();const tn=ue(a_);var bu={exports:{}},ie={};var Vp;function o_(){if(Vp)return ie;Vp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),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 ie.ContextConsumer=o,ie.ContextProvider=a,ie.Element=e,ie.ForwardRef=c,ie.Fragment=r,ie.Lazy=h,ie.Memo=l,ie.Portal=t,ie.Profiler=i,ie.StrictMode=n,ie.Suspense=s,ie.SuspenseList=f,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(p){return v(p)===o},ie.isContextProvider=function(p){return v(p)===a},ie.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ie.isForwardRef=function(p){return v(p)===c},ie.isFragment=function(p){return v(p)===r},ie.isLazy=function(p){return v(p)===h},ie.isMemo=function(p){return v(p)===l},ie.isPortal=function(p){return v(p)===t},ie.isProfiler=function(p){return v(p)===i},ie.isStrictMode=function(p){return v(p)===n},ie.isSuspense=function(p){return v(p)===s},ie.isSuspenseList=function(p){return v(p)===f},ie.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)},ie.typeOf=v,ie}var Xp;function u_(){return Xp||(Xp=1,bu.exports=o_()),bu.exports}var c_=u_(),xu,Yp;function Qb(){if(Yp)return xu;Yp=1;var e=St(),t=Pt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return xu=n,xu}var wu,Zp;function s_(){if(Zp)return wu;Zp=1;var e=Qb();function t(r){return e(r)&&r!=+r}return wu=t,wu}var l_=s_();const rn=ue(l_);var f_=Qb();const h_=ue(f_);var Ie=function(t){return t===0?0:t>0?1:-1},Yt=function(t){return nr(t)&&t.indexOf("%")===t.length-1},D=function(t){return h_(t)&&!rn(t)},p_=function(t){return Z(t)},Se=function(t){return D(t)||nr(t)},d_=0,nn=function(t){var r=++d_;return"".concat(t||"").concat(r)},ke=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(!D(t)&&!nr(t))return n;var a;if(Yt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return rn(a)&&(a=n),i&&a>r&&(a=r),a},Ct=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},v_=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},qe=function(t,r){return D(t)&&D(r)?function(n){return t+n*(r-t)}:function(){return r}};function Ii(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):He(n,t))===r})}var y_=function(t,r){return D(t)&&D(r)?t-r:nr(t)&&nr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function _r(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 wl(e){"@babel/helpers - typeof";return wl=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},wl(e)}var m_=["viewBox","children"],g_=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
1dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Jp=["points","pathLength"],Ou={svg:m_,polygon:Jp,polyline:Jp},Xf=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
1Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],ki=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(q.isValidElement(t)&&(n=t.props),!tn(n))return null;var i={};return Object.keys(n).forEach(function(a){Xf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},b_=function(t,r,n){return function(i){return t(r,n,i),null}},ir=function(t,r,n){if(!tn(t)||wl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Xf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=b_(o,r,n))}),i},x_=["children"],w_=["children"];function Qp(e,t){if(e==null)return{};var r=O_(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 O_(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 Ol(e){"@babel/helpers - typeof";return Ol=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},Ol(e)}var ed={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"},bt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},td=null,_u=null,Yf=function e(t){if(t===td&&Array.isArray(_u))return _u;var r=[];return q.Children.forEach(t,function(n){Z(n)||(c_.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),_u=r,td=t,r};function Ze(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return bt(i)}):n=[bt(t)],Yf(e).forEach(function(i){var a=He(i,"type.displayName")||He(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function We(e,t){var r=Ze(e,t);return r&&r[0]}var rd=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!D(n)||n<=0||!D(i)||i<=0)},__=["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"],A_=function(t){return t&&t.type&&nr(t.type)&&__.indexOf(t.type)>=0},S_=function(t){return t&&Ol(t)==="object"&&"clipDot"in t},P_=function(t,r,n,i){var a,o=(a=Ou?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!X(t)&&(i&&o.includes(r)||g_.includes(r))||n&&Xf.includes(r)},K=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(q.isValidElement(t)&&(i=t.props),!tn(i))return null;var a={};
vendor: 4,242 bytes, line 1
1return Object.keys(i).forEach(function(o){var u;P_((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},_l=function e(t,r){if(t===r)return!0;var n=q.Children.count(t);if(n!==q.Children.count(r))return!1;if(n===0)return!0;if(n===1)return nd(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(!nd(a,o))return!1}return!0},nd=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=Qp(n,x_),o=r.props||{},u=o.children,c=Qp(o,w_);return i&&u?_r(a,c)&&_l(i,u):!i&&!u?_r(a,c):!1}return!1},id=function(t,r){var n=[],i={};return Yf(t).forEach(function(a,o){if(A_(a))n.push(a);else if(a){var u=bt(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},T_=function(t){var r=t&&t.type;return r&&ed[r]?ed[r]:null},E_=function(t,r){return Yf(r).indexOf(t)},j_=["children","width","height","viewBox","className","style","title","desc"];function Al(){return Al=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},Al.apply(this,arguments)}function M_(e,t){if(e==null)return{};var r=$_(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $_(e,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 Sl(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=M_(e,j_),f=i||{width:r,height:n,x:0,y:0},l=Q("recharts-surface",a);return S.createElement("svg",Al({},K(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),S.createElement("title",null,u),S.createElement("desc",null,c),t)}var C_=["children","className"];function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pl.apply(this,arguments)}function I_(e,t){if(e==null)return{};var r=k_(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 k_(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 te=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=I_(e,C_),a=Q("recharts-layer",n);return S.createElement("g",Pl({className:a},K(i,!0),{ref:t}),r)}),it=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]},Au,ad;function R_(){if(ad)return Au;ad=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 Au=e,Au}var Su,od;function N_(){if(od)return Su;od=1;var e=R_();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 Su=t,Su}var Pu,ud;function e0(){if(ud)return Pu;ud=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 Pu=c,Pu}var Tu,cd;function D_(){if(cd)return Tu;cd=1;function e(t){return t.split("")}return Tu=e,Tu}var Eu,sd;function q_(){if(sd)return Eu;sd=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(m){return m.match(w)||[]}return Eu=O,Eu}var ju,ld;function L_(){if(ld)return ju;ld=1;
1var e=D_(),t=e0(),r=q_();function n(i){return t(i)?r(i):e(i)}return ju=n,ju}var Mu,fd;function B_(){if(fd)return Mu;fd=1;var e=N_(),t=e0(),r=L_(),n=Yb();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 Mu=i,Mu}var $u,hd;function F_(){if(hd)return $u;hd=1;var e=B_(),t=e("toUpperCase");return $u=t,$u}var z_=F_();const Da=ue(z_);function le(e){return function(){return e}}const t0=Math.cos,Ri=Math.sin,at=Math.sqrt,Ni=Math.PI,qa=2*Ni,Tl=Math.PI,El=2*Tl,Gt=1e-6,W_=El-Gt;function r0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function U_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return r0;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 H_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?r0:U_(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>Gt)if(!(Math.abs(l*c-s*f)>Gt)||!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((Tl-Math.acos((v+h-p)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>Gt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*y)},${this._x1=t+m*c},${this._y1=r+m*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Gt||Math.abs(this._y1-f)>Gt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%El+El),h>W_?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>Gt&&this._append`A${n},${n},0,${+(h>=Tl)},${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 Zf(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 H_(t)}function Jf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function n0(e){this._context=e}n0.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 La(e){return new n0(e)}function i0(e){return e[0]}function a0(e){return e[1]}function o0(e,t){var r=le(!0),n=null,i=La,a=null,o=Zf(u);e=typeof e=="function"?e:e===void 0?i0:le(e),t=typeof t=="function"?t:t===void 0?a0:le(t);function u(c){var s,f=(c=Jf(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:le(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:le(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:le(!!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 gi(e,t,r){var n=null,i=le(!0),a=null,o=La,u=null,c=Zf(s);
1e=typeof e=="function"?e:e===void 0?i0:le(+e),t=typeof t=="function"?t:le(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?a0:le(+r);function s(l){var h,d,y,v=(l=Jf(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 o0().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:le(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:le(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:le(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:le(+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:le(!!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 u0{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 K_(e){return new u0(e,!0)}function G_(e){return new u0(e,!1)}const Qf={draw(e,t){const r=at(t/Ni);e.moveTo(r,0),e.arc(0,0,r,0,qa)}},V_={draw(e,t){const r=at(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()}},c0=at(1/3),X_=c0*2,Y_={draw(e,t){const r=at(t/X_),n=r*c0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Z_={draw(e,t){const r=at(t),n=-r/2;e.rect(n,n,r,r)}},J_=.8908130915292852,s0=Ri(Ni/10)/Ri(7*Ni/10),Q_=Ri(qa/10)*s0,e1=-t0(qa/10)*s0,t1={draw(e,t){const r=at(t*J_),n=Q_*r,i=e1*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=qa*a/5,u=t0(o),c=Ri(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Cu=at(3),r1={draw(e,t){const r=-at(t/(Cu*3));e.moveTo(0,r*2),e.lineTo(-Cu*r,-r),e.lineTo(Cu*r,-r),e.closePath()}},Ke=-.5,Ge=at(3)/2,jl=1/at(12),n1=(jl/2+1)*3,i1={draw(e,t){const r=at(t/n1),n=r/2,i=r*jl,a=n,o=r*jl+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Ke*n-Ge*i,Ge*n+Ke*i),e.lineTo(Ke*a-Ge*o,Ge*a+Ke*o),e.lineTo(Ke*u-Ge*c,Ge*u+Ke*c),e.lineTo(Ke*n+Ge*i,Ke*i-Ge*n),e.lineTo(Ke*a+Ge*o,Ke*o-Ge*a),e.lineTo(Ke*u+Ge*c,Ke*c-Ge*u),e.closePath()}};function a1(e,t){let r=null,n=Zf(i);e=typeof e=="function"?e:le(e||Qf),t=typeof t=="function"?t:le(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:le(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:le(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Di(){}function qi(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 l0(e){this._context=e}l0.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:qi(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:qi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function o1(e){return new l0(e)}function f0(e){this._context=e}f0.prototype={areaStart:Di,areaEnd:Di,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:qi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function u1(e){return new f0(e)}function h0(e){this._context=e}h0.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:qi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function c1(e){return new h0(e)}function p0(e){this._context=e}p0.prototype={areaStart:Di,areaEnd:Di,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 s1(e){return new p0(e)}function pd(e){return e<0?-1:1}function dd(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(pd(a)+pd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function vd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Iu(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Li(e){this._context=e}Li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Iu(this,this._t0,vd(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Iu(this,vd(this,r=dd(this,e,t)),r);break;default:Iu(this,this._t0,r=dd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function d0(e){this._context=new v0(e)}(d0.prototype=Object.create(Li.prototype)).point=function(e,t){Li.prototype.point.call(this,t,e)};function v0(e){this._context=e}v0.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 l1(e){return new Li(e)}function f1(e){return new d0(e)}function y0(e){this._context=e}y0.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=yd(e),i=yd(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 yd(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 h1(e){return new y0(e)}function Ba(e,t){this._context=e,this._t=t}Ba.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 16,271 bytes, lines 1-4
1default:{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 p1(e){return new Ba(e,.5)}function d1(e){return new Ba(e,0)}function v1(e){return new Ba(e,1)}function Er(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 Ml(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function y1(e,t){return e[t]}function m1(e){const t=[];return t.key=e,t}function g1(){var e=le([]),t=Ml,r=Er,n=y1;function i(a){var o=Array.from(e.apply(this,arguments),m1),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=Jf(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:le(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:le(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Ml:typeof a=="function"?a:le(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Er,i):r},i}function b1(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}Er(e,t)}}function x1(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}Er(e,t)}}function w1(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,Er(e,t)}}function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}var O1=["type","size","sizeType"];function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$l.apply(this,arguments)}function md(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 gd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?md(Object(r),!0).forEach(function(n){_1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _1(e,t,r){return t=A1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A1(e){var t=S1(e,"string");return En(t)=="symbol"?t:t+""}function S1(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P1(e,t){if(e==null)return{};var r=T1(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 T1(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 m0={symbolCircle:Qf,symbolCross:V_,symbolDiamond:Y_,symbolSquare:Z_,symbolStar:t1,symbolTriangle:r1,symbolWye:i1},E1=Math.PI/180,j1=function(t){var r="symbol".concat(Da(t));return m0[r]||Qf},M1=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*E1;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}},$1=function(t,r){m0["symbol".concat(Da(t))]=r},eh=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=P1(t,O1),s=gd(gd({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=j1(n),b=a1().type(p).size(M1(a,u,n));return b()},l=s.className,h=s.cx,d=s.cy,y=K(s,!0);return h===+h&&d===+d&&a===+a?S.createElement("path",$l({},y,{className:Q("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};eh.registerSymbol=$1;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 Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(this,arguments)}function bd(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 C1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bd(Object(r),!0).forEach(function(n){jn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1(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 R1(e,t,r){return t&&k1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N1(e,t,r){return t=Bi(t),D1(e,g0()?Reflect.construct(t,r||[],Bi(e).constructor):t.apply(e,r))}function D1(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 q1(e)}function q1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g0=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bi(e)}function L1(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&&Il(e,t)}function Il(e,t){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Il(e,t)}function jn(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=B1(e,"string");return jr(t)=="symbol"?t:t+""}function B1(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ve=32,th=(function(e){function t(){return I1(this,t),N1(this,t,arguments)}return L1(t,e),R1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ve/2,o=Ve/6,u=Ve/3,c=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ve,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,` 2 A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,` 3 H`).concat(Ve,"M").concat(2*u,",").concat(a,` 4 A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Ve/8,"h").concat(Ve,"v").concat(Ve*3/4,"h").concat(-Ve,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var s=C1({},n);return delete s.legendIcon,S.cloneElement(n.legendIcon,s)}return S.createElement(eh,{fill:c,cx:a,cy:a,size:Ve,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:Ve,height:Ve},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=Q(jn(jn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var b=X(d.value)?null:d.value;it(!X(d.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=d.inactive?s:d.color;return S.createElement("li",Cl({className:p,style:l,key:"legend-item-".concat(y)},ir(n.props,d,y)),S.createElement(Sl,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),S.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 S.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(q.PureComponent);jn(th,"displayName","Legend");jn(th,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ku,xd;function F1(){if(xd)return ku;xd=1;var e=ka();function t(){this.__data__=new e,this.size=0}return ku=t,ku}var Ru,wd;function z1(){if(wd)return Ru;wd=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ru=e,Ru}var Nu,Od;function W1(){if(Od)return Nu;Od=1;function e(t){return this.__data__.get(t)}return Nu=e,Nu}var Du,_d;function U1(){if(_d)return Du;_d=1;function e(t){return this.__data__.has(t)}return Du=e,Du}var qu,Ad;function H1(){if(Ad)return qu;Ad=1;var e=ka(),t=Hf(),r=Kf(),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 qu=i,qu}var Lu,Sd;function x0(){if(Sd)return Lu;Sd=1;var e=ka(),t=F1(),r=z1(),n=W1(),i=U1(),a=H1();function o(u){var c=this.__data__=new e(u);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Lu=o,Lu}var Bu,Pd;function K1(){if(Pd)return Bu;Pd=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Bu=t,Bu}var Fu,Td;function G1(){if(Td)return Fu;Td=1;function e(t){return this.__data__.has(t)}return Fu=e,Fu}var zu,Ed;function w0(){if(Ed)return zu;Ed=1;var e=Kf(),t=K1(),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,zu=n,zu}var Wu,jd;function O0(){if(jd)return Wu;jd=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 Wu=e,Wu}var Uu,Md;function _0(){if(Md)return Uu;Md=1;function e(t,r){return t.has(r)}return Uu=e,Uu}var Hu,$d;function A0(){if($d)return Hu;$d=1;var e=w0(),t=O0(),r=_0(),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],m=u[b];if(s)var g=h?s(m,O,b,u,o,l):s(O,m,b,o,u,l);if(g!==void 0){if(g)continue;x=!1;break}if(w){if(!t(u,function(_,A){if(!r(w,A)&&(O===_||f(O,_,c,s,l)))return w.push(A)})){x=!1;break}}else if(!(O===m||f(O,m,c,s,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return Hu=a,Hu}var Ku,Cd;function V1(){if(Cd)return Ku;Cd=1;var e=ht(),t=e.Uint8Array;return Ku=t,Ku}var Gu,Id;function X1(){if(Id)return Gu;Id=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Gu=e,Gu}var Vu,kd;function rh(){if(kd)return Vu;kd=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Vu=e,Vu}var Xu,Rd;function Y1(){if(Rd)return Xu;Rd=1;var e=si(),t=V1(),r=Uf(),n=A0(),i=X1(),a=rh(),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 m(g,_,A,P,j,E,T){switch(A){case x:if(g.byteLength!=_.byteLength||g.byteOffset!=_.byteOffset)return!1;g=g.buffer,_=_.buffer;case b:return!(g.byteLength!=_.byteLength||!E(new t(g),new t(_)));case c:case s:case h:return r(+g,+_);case f:return g.name==_.name&&g.message==_.message;case d:case v:return g==_+"";case l:var M=i;case y:var C=P&o;if(M||(M=a),g.size!=_.size&&!C)return!1;var $=T.get(g);if($)return $==_;P|=u,T.set(g,_);var k=n(M(g),M(_),P,j,E,T);return T.delete(g),k;case p:if(O)return O.call(g)==O.call(_)}return!1}return Xu=m,Xu}var Yu,Nd;function S0(){if(Nd)return Yu;Nd=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Yu=e,Yu}var Zu,Dd;function Z1(){if(Dd)return Zu;Dd=1;var e=S0(),t=Be();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Zu=r,Zu}var Ju,qd;function J1(){if(qd)return Ju;qd=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 Ju=e,Ju}var Qu,Ld;function Q1(){if(Ld)return Qu;Ld=1;function e(){return[]}return Qu=e,Qu}var ec,Bd;function eA(){if(Bd)return ec;Bd=1;var e=J1(),t=Q1(),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 ec=a,ec}var tc,Fd;function tA(){if(Fd)return tc;Fd=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return tc=e,tc}var rc,zd;function rA(){if(zd)return rc;zd=1;var e=St(),t=Pt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return rc=n,rc}var nc,Wd;function nh(){if(Wd)return nc;Wd=1;var e=rA(),t=Pt(),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 nc=a,nc}var bn={exports:{}},ic,Ud;function nA(){if(Ud)return ic;Ud=1;function e(){return!1}return ic=e,ic}bn.exports;var Hd;function P0(){return Hd||(Hd=1,(function(e,t){var r=ht(),n=nA(),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})(bn,bn.exports)),bn.exports}var ac,Kd;function ih(){if(Kd)return ac;Kd=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return ac=r,ac}var oc,Gd;function ah(){if(Gd)return oc;Gd=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return oc=t,oc}var uc,Vd;function iA(){if(Vd)return uc;Vd=1;var e=St(),t=ah(),r=Pt(),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
4]",O="[object Int8Array]",m="[object Int16Array]",g="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",j="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[m]=E[g]=E[_]=E[A]=E[P]=E[j]=!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 T(M){return r(M)&&t(M.length)&&!!E[e(M)]}return uc=T,uc}var cc,Xd;function T0(){if(Xd)return cc;Xd=1;function e(t){return function(r){return t(r)}}return cc=e,cc}var xn={exports:{}};xn.exports;var Yd;function aA(){return Yd||(Yd=1,(function(e,t){var r=Gb(),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})(xn,xn.exports)),xn.exports}var sc,Zd;function E0(){if(Zd)return sc;Zd=1;var e=iA(),t=T0(),r=aA(),n=r&&r.isTypedArray,i=n?t(n):e;return sc=i,sc}var lc,Jd;function oA(){if(Jd)return lc;Jd=1;var e=tA(),t=nh(),r=Be(),n=P0(),i=ih(),a=E0(),o=Object.prototype,u=o.hasOwnProperty;
vendor: 3,245 bytes, line 4
4function 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 lc=c,lc}var fc,Qd;function uA(){if(Qd)return fc;Qd=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return fc=t,fc}var hc,ev;function j0(){if(ev)return hc;ev=1;function e(t,r){return function(n){return t(r(n))}}return hc=e,hc}var pc,tv;function cA(){if(tv)return pc;tv=1;var e=j0(),t=e(Object.keys,Object);return pc=t,pc}var dc,rv;function sA(){if(rv)return dc;rv=1;var e=uA(),t=cA(),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 dc=i,dc}var vc,nv;function li(){if(nv)return vc;nv=1;var e=Wf(),t=ah();function r(n){return n!=null&&t(n.length)&&!e(n)}return vc=r,vc}var yc,iv;function Fa(){if(iv)return yc;iv=1;var e=oA(),t=sA(),r=li();function n(i){return r(i)?e(i):t(i)}return yc=n,yc}var mc,av;function lA(){if(av)return mc;av=1;var e=Z1(),t=eA(),r=Fa();function n(i){return e(i,r,t)}return mc=n,mc}var gc,ov;function fA(){if(ov)return gc;ov=1;var e=lA(),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 m=l;++p<d;){b=h[p];var g=a[b],_=o[b];if(c)var A=l?c(_,g,b,o,a,f):c(g,_,b,a,o,f);if(!(A===void 0?g===_||s(g,_,u,c,f):A)){O=!1;break}m||(m=b=="constructor")}if(O&&!m){var P=a.constructor,j=o.constructor;P!=j&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof j=="function"&&j instanceof j)&&(O=!1)}return f.delete(a),f.delete(o),O}return gc=i,gc}var bc,uv;function hA(){if(uv)return bc;uv=1;var e=sr(),t=ht(),r=e(t,"DataView");return bc=r,bc}var xc,cv;function pA(){if(cv)return xc;cv=1;var e=sr(),t=ht(),r=e(t,"Promise");return xc=r,xc}var wc,sv;function M0(){if(sv)return wc;sv=1;var e=sr(),t=ht(),r=e(t,"Set");return wc=r,wc}var Oc,lv;function dA(){if(lv)return Oc;lv=1;var e=sr(),t=ht(),r=e(t,"WeakMap");return Oc=r,Oc}var _c,fv;function vA(){if(fv)return _c;fv=1;var e=hA(),t=Hf(),r=pA(),n=M0(),i=dA(),a=St(),o=Vb(),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),m=O==c?w.constructor:void 0,g=m?o(m):"";if(g)switch(g){case d:return h;case y:return u;case v:return s;case p:return f;case b:return l}return O}),_c=x,_c}var Ac,hv;function yA(){if(hv)return Ac;hv=1;var e=x0(),t=A0(),r=Y1(),n=fA(),i=vA(),a=Be(),o=P0(),u=E0(),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 m=a(v),g=a(p),_=m?f:i(v),A=g?f:i(p);_=_==s?l:_,A=A==s?l:A;var P=_==l,j=A==l,E=_==A;
vendor: 48,437 bytes, lines 4-12
4if(E&&o(v)){if(!o(p))return!1;m=!0,P=!1}if(E&&!P)return O||(O=new e),m||u(v)?t(v,p,b,x,w,O):r(v,p,_,b,x,w,O);if(!(b&c)){var T=P&&d.call(v,"__wrapped__"),M=j&&d.call(p,"__wrapped__");if(T||M){var C=T?v.value():v,$=M?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 Ac=y,Ac}var Sc,pv;function oh(){if(pv)return Sc;pv=1;var e=yA(),t=Pt();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 Sc=r,Sc}var Pc,dv;function mA(){if(dv)return Pc;dv=1;var e=x0(),t=oh(),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 Pc=i,Pc}var Tc,vv;function $0(){if(vv)return Tc;vv=1;var e=Nt();function t(r){return r===r&&!e(r)}return Tc=t,Tc}var Ec,yv;function gA(){if(yv)return Ec;yv=1;var e=$0(),t=Fa();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 Ec=r,Ec}var jc,mv;function C0(){if(mv)return jc;mv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return jc=e,jc}var Mc,gv;function bA(){if(gv)return Mc;gv=1;var e=mA(),t=gA(),r=C0();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 Mc=n,Mc}var $c,bv;function xA(){if(bv)return $c;bv=1;function e(t,r){return t!=null&&r in Object(t)}return $c=e,$c}var Cc,xv;function wA(){if(xv)return Cc;xv=1;var e=Zb(),t=nh(),r=Be(),n=ih(),i=ah(),a=Na();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 Cc=o,Cc}var Ic,wv;function OA(){if(wv)return Ic;wv=1;var e=xA(),t=wA();function r(n,i){return n!=null&&t(n,i,e)}return Ic=r,Ic}var kc,Ov;function _A(){if(Ov)return kc;Ov=1;var e=oh(),t=Jb(),r=OA(),n=zf(),i=$0(),a=C0(),o=Na(),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 kc=s,kc}var Rc,_v;function an(){if(_v)return Rc;_v=1;function e(t){return t}return Rc=e,Rc}var Nc,Av;function AA(){if(Av)return Nc;Av=1;function e(t){return function(r){return r?.[t]}}return Nc=e,Nc}var Dc,Sv;function SA(){if(Sv)return Dc;Sv=1;var e=Vf();function t(r){return function(n){return e(n,r)}}return Dc=t,Dc}var qc,Pv;function PA(){if(Pv)return qc;Pv=1;var e=AA(),t=SA(),r=zf(),n=Na();function i(a){return r(a)?e(n(a)):t(a)}return qc=i,qc}var Lc,Tv;function pt(){if(Tv)return Lc;Tv=1;var e=bA(),t=_A(),r=an(),n=Be(),i=PA();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return Lc=a,Lc}var Bc,Ev;function I0(){if(Ev)return Bc;Ev=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 Bc=e,Bc}var Fc,jv;function TA(){if(jv)return Fc;jv=1;function e(t){return t!==t}return Fc=e,Fc}var zc,Mv;function EA(){if(Mv)return zc;Mv=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 zc=e,zc}var Wc,$v;function jA(){if($v)return Wc;$v=1;var e=I0(),t=TA(),r=EA();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Wc=n,Wc}var Uc,Cv;function MA(){if(Cv)return Uc;Cv=1;var e=jA();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Uc=t,Uc}var Hc,Iv;function $A(){if(Iv)return Hc;Iv=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 Hc=e,Hc}var Kc,kv;function CA(){if(kv)return Kc;kv=1;function e(){}return Kc=e,Kc}var Gc,Rv;function IA(){if(Rv)return Gc;Rv=1;var e=M0(),t=CA(),r=rh(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Gc=i,Gc}var Vc,Nv;function kA(){if(Nv)return Vc;Nv=1;var e=w0(),t=MA(),r=$A(),n=_0(),i=IA(),a=rh(),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 Vc=u,Vc}var Xc,Dv;function RA(){if(Dv)return Xc;Dv=1;var e=pt(),t=kA();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Xc=r,Xc}var NA=RA();const qv=ue(NA);function k0(e,t,r){return t===!0?qv(e,r):X(t)?qv(e,t):e}function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}var DA=["ref"];function Lv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lv(Object(r),!0).forEach(function(n){za(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N0(n.key),n)}}function LA(e,t,r){return t&&Bv(e.prototype,t),r&&Bv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function BA(e,t,r){return t=Fi(t),FA(e,R0()?Reflect.construct(t,r||[],Fi(e).constructor):t.apply(e,r))}function FA(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 zA(e)}function zA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R0=function(){return!!e})()}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fi(e)}function WA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kl(e,t)}function kl(e,t){return kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kl(e,t)}function za(e,t,r){return t=N0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N0(e){var t=UA(e,"string");return Mr(t)=="symbol"?t:t+""}function UA(e,t){if(Mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function HA(e,t){if(e==null)return{};var r=KA(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 KA(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 GA(e){return e.value}function VA(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=HA(t,DA);return S.createElement(th,r)}var Fv=1,Ar=(function(e){function t(){var r;qA(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=BA(this,t,[].concat(i)),za(r,"lastBoundingBox",{width:-1,height:-1}),r}return WA(t,e),LA(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)>Fv||Math.abs(i.height-this.lastBoundingBox.height)>Fv)&&(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?dt({},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 dt(dt({},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=dt(dt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return S.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},VA(a,dt(dt({},this.props),{},{payload:k0(f,s,GA)})))}}],[{key:"getWithHeight",value:function(n,i){var a=dt(dt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&D(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(q.PureComponent);za(Ar,"displayName","Legend");za(Ar,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Yc,zv;function XA(){if(zv)return Yc;zv=1;var e=si(),t=nh(),r=Be(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Yc=i,Yc}var Zc,Wv;function D0(){if(Wv)return Zc;Wv=1;var e=S0(),t=XA();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 Zc=r,Zc}var Jc,Uv;function YA(){if(Uv)return Jc;Uv=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 Jc=e,Jc}var Qc,Hv;function ZA(){if(Hv)return Qc;Hv=1;var e=YA(),t=e();return Qc=t,Qc}var es,Kv;function q0(){if(Kv)return es;Kv=1;var e=ZA(),t=Fa();function r(n,i){return n&&e(n,i,t)}return es=r,es}var ts,Gv;function JA(){if(Gv)return ts;Gv=1;var e=li();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 ts=t,ts}var rs,Vv;function uh(){if(Vv)return rs;Vv=1;var e=q0(),t=JA(),r=t(e);return rs=r,rs}var ns,Xv;function L0(){if(Xv)return ns;Xv=1;var e=uh(),t=li();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 ns=r,ns}var is,Yv;function QA(){if(Yv)return is;Yv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return is=e,is}var as,Zv;function eS(){if(Zv)return as;Zv=1;var e=en();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 as=t,as}var os,Jv;function tS(){if(Jv)return os;Jv=1;var e=eS();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 os=t,os}var us,Qv;function rS(){if(Qv)return us;Qv=1;var e=Gf(),t=Vf(),r=pt(),n=L0(),i=QA(),a=T0(),o=tS(),u=an(),c=Be();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 us=s,us}var cs,ey;function nS(){if(ey)return cs;ey=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 cs=e,cs}var ss,ty;function iS(){if(ty)return ss;ty=1;var e=nS(),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 ss=r,ss}var ls,ry;function aS(){if(ry)return ls;ry=1;function e(t){return function(){return t}}return ls=e,ls}var fs,ny;function B0(){if(ny)return fs;ny=1;var e=sr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return fs=t,fs}var hs,iy;function oS(){if(iy)return hs;iy=1;var e=aS(),t=B0(),r=an(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return hs=n,hs}var ps,ay;function uS(){if(ay)return ps;ay=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 ps=n,ps}var ds,oy;function cS(){if(oy)return ds;oy=1;var e=oS(),t=uS(),r=t(e);return ds=r,ds}var vs,uy;function sS(){if(uy)return vs;uy=1;var e=an(),t=iS(),r=cS();function n(i,a){return r(t(i,a,e),i+"")}return vs=n,vs}var ys,cy;function Wa(){if(cy)return ys;cy=1;var e=Uf(),t=li(),r=ih(),n=Nt();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 ys=i,ys}var ms,sy;function lS(){if(sy)return ms;sy=1;var e=D0(),t=rS(),r=sS(),n=Wa(),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 ms=i,ms}var fS=lS();const ch=ue(fS);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 Rl(){return Rl=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},Rl.apply(this,arguments)}function hS(e,t){return yS(e)||vS(e,t)||dS(e,t)||pS()}function pS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dS(e,t){if(e){if(typeof e=="string")return ly(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 ly(e,t)}}function ly(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 vS(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 yS(e){if(Array.isArray(e))return e}function fy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(r),!0).forEach(function(n){mS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mS(e,t,r){return t=gS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gS(e){var t=bS(e,"string");return Mn(t)=="symbol"?t:t+""}function bS(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 xS(e){return Array.isArray(e)&&Se(e[0])&&Se(e[1])?e.join(" ~ "):e}var wS=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 T={padding:0,margin:0},M=(h?ch(f,h):f).map(function(C,$){if(C.type==="none")return null;var k=gs({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},u),R=C.formatter||l||xS,L=C.value,B=C.name,U=L,V=B;if(R&&U!=null&&V!=null){var z=R(L,B,C,$,f);if(Array.isArray(z)){var Y=hS(z,2);U=Y[0],V=Y[1]}else U=z}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:k},Se(V)?S.createElement("span",{className:"recharts-tooltip-item-name"},V):null,Se(V)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},U),S.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:T},M)}return null},O=gs({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=gs({margin:0},s),g=!Z(v),_=g?v:"",A=Q("recharts-default-tooltip",d),P=Q("recharts-tooltip-label",y);g&&p&&f!==void 0&&f!==null&&(_=p(v,f));var j=x?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Rl({className:A,style:O},j),S.createElement("p",{className:P,style:m},S.isValidElement(_)?_:"".concat(_)),w())};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 bi(e,t,r){return t=OS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OS(e){var t=_S(e,"string");return $n(t)=="symbol"?t:t+""}function _S(e,t){if($n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ln="recharts-tooltip-wrapper",AS={visibility:"hidden"};function SS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Q(ln,bi(bi(bi(bi({},"".concat(ln,"-right"),D(r)&&t&&D(t.x)&&r>=t.x),"".concat(ln,"-left"),D(r)&&t&&D(t.x)&&r<t.x),"".concat(ln,"-bottom"),D(n)&&t&&D(t.y)&&n>=t.y),"".concat(ln,"-top"),D(n)&&t&&D(t.y)&&n<t.y))}function hy(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&&D(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 PS(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 TS(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=hy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=hy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=PS({translateX:f,translateY:l,useTranslate3d:u})):s=AS,{cssProperties:s,cssClasses:SS({translateX:f,translateY:l,coordinate:r})}}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 py(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 dy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?py(Object(r),!0).forEach(function(n){Dl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):py(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ES(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jS(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,z0(n.key),n)}}function MS(e,t,r){return t&&jS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $S(e,t,r){return t=zi(t),CS(e,F0()?Reflect.construct(t,r||[],zi(e).constructor):t.apply(e,r))}function CS(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 IS(e)}function IS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F0=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zi(e)}function kS(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 Dl(e,t,r){return t=z0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z0(e){var t=RS(e,"string");return $r(t)=="symbol"?t:t+""}function RS(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 vy=1,NS=(function(e){function t(){var r;ES(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=$S(this,t,[].concat(i)),Dl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Dl(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 kS(t,e),MS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>vy||Math.abs(n.height-this.state.lastBoundingBox.height)>vy)&&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=TS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:b}),O=w.cssClasses,m=w.cssProperties,g=dy(dy({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return S.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(A){n.wrapperNode=A}},s)}}])})(q.PureComponent),DS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},lr={isSsr:DS()};function Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}function yy(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 my(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yy(Object(r),!0).forEach(function(n){sh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LS(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,U0(n.key),n)}}function BS(e,t,r){return t&&LS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FS(e,t,r){return t=Wi(t),zS(e,W0()?Reflect.construct(t,r||[],Wi(e).constructor):t.apply(e,r))}function zS(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WS(e)}function WS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W0=function(){return!!e})()}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wi(e)}function US(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ql(e,t)}function ql(e,t){return ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ql(e,t)}function sh(e,t,r){return t=U0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U0(e){var t=HS(e,"string");return Cr(t)=="symbol"?t:t+""}function HS(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KS(e){return e.dataKey}function GS(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(wS,t)}var tt=(function(e){function t(){return qS(this,t),FS(this,t,arguments)}return US(t,e),BS(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,m=y??[];l&&m.length&&(m=k0(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,KS));var g=m.length>0;return S.createElement(NS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:g,offset:d,position:p,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},GS(s,my(my({},this.props),{},{payload:m})))}}])})(q.PureComponent);sh(tt,"displayName","Tooltip");sh(tt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!lr.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 bs,gy;function VS(){if(gy)return bs;gy=1;var e=ht(),t=function(){return e.Date.now()};return bs=t,bs}var xs,by;function XS(){if(by)return xs;by=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return xs=t,xs}var ws,xy;function YS(){if(xy)return ws;xy=1;var e=XS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return ws=r,ws}var Os,wy;function H0(){if(wy)return Os;wy=1;var e=YS(),t=Nt(),r=en(),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 Os=c,Os}var _s,Oy;function ZS(){if(Oy)return _s;Oy=1;var e=Nt(),t=VS(),r=H0(),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(M){var C=f,$=l;return f=l=void 0,p=M,d=u.apply($,C),d}function m(M){return p=M,y=setTimeout(A,c),b?O(M):d}function g(M){var C=M-v,$=M-p,k=c-C;return x?a(k,h-$):k}function _(M){var C=M-v,$=M-p;return v===void 0||C>=c||C<0||x&&$>=h}function A(){var M=t();if(_(M))return P(M);y=setTimeout(A,g(M))}function P(M){return y=void 0,w&&f?O(M):(f=l=void 0,d)}function j(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function E(){return y===void 0?d:P(t())}function T(){var M=t(),C=_(M);if(f=arguments,l=this,v=M,C){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(A,c),O(v)}return y===void 0&&(y=setTimeout(A,c)),d}return T.cancel=j,T.flush=E,T}return _s=o,_s}var As,_y;function JS(){if(_y)return As;_y=1;var e=ZS(),t=Nt(),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 As=n,As}var QS=JS();const K0=ue(QS);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 Ay(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 xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ay(Object(r),!0).forEach(function(n){eP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ay(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eP(e,t,r){return t=tP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tP(e){var t=rP(e,"string");return Cn(t)=="symbol"?t:t+""}function rP(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)}function nP(e,t){return uP(e)||oP(e,t)||aP(e,t)||iP()}function iP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aP(e,t){if(e){if(typeof e=="string")return Sy(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 Sy(e,t)}}function Sy(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 oP(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 uP(e){if(Array.isArray(e))return e}var Py=q.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,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,m=q.useRef(null),g=q.useRef();g.current=x,q.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=q.useState({containerWidth:i.width,containerHeight:i.height}),A=nP(_,2),P=A[0],j=A[1],E=q.useCallback(function(M,C){j(function($){var k=Math.round(M),R=Math.round(C);return $.containerWidth===k&&$.containerHeight===R?$:{containerWidth:k,containerHeight:R}})},[]);q.useEffect(function(){var M=function(B){var U,V=B[0].contentRect,z=V.width,Y=V.height;E(z,Y),(U=g.current)===null||U===void 0||U.call(g,z,Y)};v>0&&(M=K0(M,v,{trailing:!0,leading:!1}));var C=new ResizeObserver(M),$=m.current.getBoundingClientRect(),k=$.width,R=$.height;return E(k,R),C.observe(m.current),function(){C.disconnect()}},[E,v]);var T=q.useMemo(function(){var M=P.containerWidth,C=P.containerHeight;if(M<0||C<0)return null;it(Yt(o)||Yt(c),`The width(%s) and height(%s) are both fixed numbers, 7 maybe you don't need to use a ResponsiveContainer.`,o,c),it(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=Yt(o)?M:o,k=Yt(c)?C:c;r&&r>0&&($?k=$/r:k&&($=k*r),h&&k>h&&(k=h)),it($>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0, 8 please check the style of container, or the props width(%s) and height(%s), 9 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 10 height and width.`,$,k,o,c,f,l,r);var R=!Array.isArray(d)&&bt(d.type).endsWith("Chart");return S.Children.map(d,function(L){return S.isValidElement(L)?q.cloneElement(L,xi({width:$,height:k},R?{style:xi({height:"100%",width:"100%",maxHeight:k,maxWidth:$},L.props.style)}:{})):L})},[r,d,c,h,l,f,P,o]);return S.createElement("div",{id:p?"".concat(p):void 0,className:Q("recharts-responsive-container",b),style:xi(xi({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},T)}),Ua=function(t){return null};Ua.displayName="Cell";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 Ty(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 Ll(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ty(Object(r),!0).forEach(function(n){cP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ty(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cP(e,t,r){return t=sP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sP(e){var t=lP(e,"string");return In(t)=="symbol"?t:t+""}function lP(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 vr={widthCache:{},cacheCount:0},fP=2e3,hP={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ey="recharts_measurement_span";function pP(e){var t=Ll({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var On=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||lr.isSsr)return{width:0,height:0};var n=pP(r),i=JSON.stringify({text:t,copyStyle:n});if(vr.widthCache[i])return vr.widthCache[i];try{var a=document.getElementById(Ey);a||(a=document.createElement("span"),a.setAttribute("id",Ey),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Ll(Ll({},hP),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return vr.widthCache[i]=c,++vr.cacheCount>fP&&(vr.cacheCount=0,vr.widthCache={}),c}catch{return{width:0,height:0}}},dP=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ui(e,t){return gP(e)||mP(e,t)||yP(e,t)||vP()}function vP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yP(e,t){if(e){if(typeof e=="string")return jy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jy(e,t)}}function jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function gP(e){if(Array.isArray(e))return e}function bP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function My(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,wP(n.key),n)}}function xP(e,t,r){return t&&My(e.prototype,t),r&&My(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wP(e){var t=OP(e,"string");return kn(t)=="symbol"?t:t+""}function OP(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 $y=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Cy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_P=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,AP=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,G0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},SP=Object.keys(G0),gr="NaN";function PP(e,t){return e*G0[t]}var wi=(function(){function e(t,r){bP(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!_P.test(r)&&(this.num=NaN,this.unit=""),SP.includes(r)&&(this.num=PP(t,r),this.unit="px")}return xP(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=AP.exec(r))!==null&&n!==void 0?n:[],a=Ui(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function V0(e){if(e.includes(gr))return gr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=$y.exec(t))!==null&&r!==void 0?r:[],i=Ui(n,4),a=i[1],o=i[2],u=i[3],c=wi.parse(a??""),s=wi.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return gr;t=t.replace($y,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Cy.exec(t))!==null&&l!==void 0?l:[],d=Ui(h,4),y=d[1],v=d[2],p=d[3],b=wi.parse(y??""),x=wi.parse(p??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return gr;t=t.replace(Cy,w.toString())}return t}var Iy=/\(([^()]*)\)/;function TP(e){for(var t=e;t.includes("(");){var r=Iy.exec(t),n=Ui(r,2),i=n[1];t=t.replace(Iy,V0(i))}return t}function EP(e){var t=e.replace(/\s+/g,"");return t=TP(t),t=V0(t),t}function jP(e){try{return EP(e)}catch{return gr}}function Ss(e){var t=jP(e.slice(5,-1));return t===gr?"":t}var MP=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],$P=["dx","dy","angle","className","breakAll"];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 ky(e,t){if(e==null)return{};var r=CP(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 CP(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 Ry(e,t){return NP(e)||RP(e,t)||kP(e,t)||IP()}function IP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kP(e,t){if(e){if(typeof e=="string")return Ny(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 Ny(e,t)}}function Ny(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 RP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function NP(e){if(Array.isArray(e))return e}var X0=/[ \f\n\r\t\v\u2028\u2029]+/,Y0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Z(r)||(n?a=r.toString().split(""):a=r.toString().split(X0));var o=a.map(function(c){return{word:c,width:On(c,i).width}}),u=n?0:On(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},DP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=D(o),l=u,h=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(k,R){var L=R.word,B=R.width,U=k[k.length-1];if(U&&(i==null||a||U.width+B+n<Number(i)))U.words.push(L),U.width+=B+n;else{var V={words:[L],width:B};k.push(V)}return k},[])},d=h(r),y=function($){return $.reduce(function(k,R){return k.width>R.width?k:R})};if(!f)return d;for(var v="â¦",p=function($){var k=l.slice(0,$),R=Y0({breakAll:s,style:c,children:k+v}).wordsWithComputedWidth,L=h(R),B=L.length>o||y(L).width>Number(i);return[B,L]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var m=Math.floor((b+x)/2),g=m-1,_=p(g),A=Ry(_,2),P=A[0],j=A[1],E=p(m),T=Ry(E,1),M=T[0];if(!P&&!M&&(b=m+1),P&&M&&(x=m-1),!P&&M){O=j;break}w++}return O||d},Dy=function(t){var r=Z(t)?[]:t.toString().split(X0);return[{words:r}]},qP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!lr.isSsr){var c,s,f=Y0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return Dy(i);return DP({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return Dy(i)},qy="#808080",ar=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,d=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,b=p===void 0?qy:p,x=ky(t,MP),w=q.useMemo(function(){return qP({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,g=x.angle,_=x.className,A=x.breakAll,P=ky(x,$P);if(!Se(n)||!Se(a))return null;var j=n+(D(O)?O:0),E=a+(D(m)?m:0),T;switch(v){case"start":T=Ss("calc(".concat(s,")"));break;case"middle":T=Ss("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:T=Ss("calc(".concat(w.length-1," * -").concat(u,")"));break}var M=[];if(l){var C=w[0].width,$=x.width;M.push("scale(".concat((D($)?$/C:1)/C,")"))}return g&&M.push("rotate(".concat(g,", ").concat(j,", ").concat(E,")")),M.length&&(P.transform=M.join(" ")),S.createElement("text",Bl({},K(P,!0),{x:j,y:E,className:Q("recharts-text",_),textAnchor:d,fill:b.includes("url")?qy:b}),w.map(function(k,R){var L=k.words.join(A?"":" ");
12return S.createElement("tspan",{x:j,dy:R===0?T:u,key:"".concat(L,"-").concat(R)},L)}))};function Rt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lh(e){let t,r,n;e.length!==2?(t=Rt,r=(u,c)=>Rt(e(u),c),n=(u,c)=>e(u)-c):(t=e===Rt||e===LP?e:BP,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function BP(){return 0}function Z0(e){return e===null?NaN:+e}function*FP(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const zP=lh(Rt),fi=zP.right;lh(Z0).center;class Ly extends Map{constructor(t,r=HP){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(By(this,t))}has(t){return super.has(By(this,t))}set(t,r){return super.set(WP(this,t),r)}delete(t){return super.delete(UP(this,t))}}function By({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function WP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function UP({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function HP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function KP(e=Rt){if(e===Rt)return J0;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function J0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const GP=Math.sqrt(50),VP=Math.sqrt(10),XP=Math.sqrt(2);function Hi(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=GP?10:a>=VP?5:a>=XP?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?Hi(e,t,r*2):[u,c,s]}function Fl(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Hi(t,e,r):Hi(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function zl(e,t,r){return t=+t,e=+e,r=+r,Hi(e,t,r)[2]}function Wl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?zl(t,e,r):zl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Fy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function zy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Q0(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?J0:KP(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),d=Math.max(r,Math.floor(t-s*l/c+h)),y=Math.min(n,Math.floor(t+(c-s)*l/c+h));Q0(e,t,d,y,i)}const a=e[t];let o=r,u=n;for(fn(e,r,t),i(e[n],a)>0&&fn(e,r,n);o<u;){for(fn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?fn(e,r,u):(++u,fn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function fn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function YP(e,t,r){if(e=Float64Array.from(FP(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return zy(e);if(t>=1)return Fy(e);var n,i=(n-1)*t,a=Math.floor(i),o=Fy(Q0(e,a).subarray(0,a+1)),u=zy(e.subarray(a+1));return o+(u-o)*(i-a)}}function ZP(e,t,r=Z0){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function JP(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Qe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Tt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 7,482 bytes, line 12
12const Ul=Symbol("implicit");function fh(){var e=new Ly,t=[],r=[],n=Ul;function i(a){let o=e.get(a);if(o===void 0){if(n!==Ul)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ly;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return fh(t,r).unknown(n)},Qe.apply(i,arguments),i}function Rn(){var e=fh().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var h=t().length,d=i<n,y=d?i:n,v=d?n:i;a=(v-y)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-c))*f,o=a*(1-c),u&&(y=Math.round(y),o=Math.round(o));var p=JP(h).map(function(b){return y+a*b});return r(d?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return Rn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Qe.apply(l(),arguments)}function ex(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ex(t())},e}function _n(){return ex(Rn.apply(null,arguments).paddingInner(1))}function hh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function tx(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function hi(){}var Nn=.7,Ki=1/Nn,Sr="\\s*([+-]?\\d+)\\s*",Dn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ct="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",QP=/^#([0-9a-f]{3,8})$/,eT=new RegExp(`^rgb\\(${Sr},${Sr},${Sr}\\)$`),tT=new RegExp(`^rgb\\(${ct},${ct},${ct}\\)$`),rT=new RegExp(`^rgba\\(${Sr},${Sr},${Sr},${Dn}\\)$`),nT=new RegExp(`^rgba\\(${ct},${ct},${ct},${Dn}\\)$`),iT=new RegExp(`^hsl\\(${Dn},${ct},${ct}\\)$`),aT=new RegExp(`^hsla\\(${Dn},${ct},${ct},${Dn}\\)$`),Wy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};hh(hi,qn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Uy,formatHex:Uy,formatHex8:oT,formatHsl:uT,formatRgb:Hy,toString:Hy});function Uy(){return this.rgb().formatHex()}function oT(){return this.rgb().formatHex8()}function uT(){return rx(this).formatHsl()}function Hy(){return this.rgb().formatRgb()}function qn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=QP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Ky(t):r===3?new Le(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Oi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Oi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=eT.exec(e))?new Le(t[1],t[2],t[3],1):(t=tT.exec(e))?new Le(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=rT.exec(e))?Oi(t[1],t[2],t[3],t[4]):(t=nT.exec(e))?Oi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iT.exec(e))?Xy(t[1],t[2]/100,t[3]/100,1):(t=aT.exec(e))?Xy(t[1],t[2]/100,t[3]/100,t[4]):Wy.hasOwnProperty(e)?Ky(Wy[e]):e==="transparent"?new Le(NaN,NaN,NaN,0):null}function Ky(e){return new Le(e>>16&255,e>>8&255,e&255,1)}function Oi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Le(e,t,r,n)}function cT(e){return e instanceof hi||(e=qn(e)),e?(e=e.rgb(),new Le(e.r,e.g,e.b,e.opacity)):new Le}function Hl(e,t,r,n){return arguments.length===1?cT(e):new Le(e,t,r,n??1)}function Le(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}hh(Le,Hl,tx(hi,{brighter(e){return e=e==null?Ki:Math.pow(Ki,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Nn:Math.pow(Nn,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(tr(this.r),tr(this.g),tr(this.b),Gi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gy,formatHex:Gy,formatHex8:sT,formatRgb:Vy,toString:Vy}));function Gy(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}`}function sT(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}${Zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Vy(){const e=Gi(this.opacity);return`${e===1?"rgb(":"rgba("}${tr(this.r)}, ${tr(this.g)}, ${tr(this.b)}${e===1?")":`, ${e})`}`}function Gi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}
vendor: 5,691 bytes, line 12
12function Zt(e){return e=tr(e),(e<16?"0":"")+e.toString(16)}function Xy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new nt(e,t,r,n)}function rx(e){if(e instanceof nt)return new nt(e.h,e.s,e.l,e.opacity);if(e instanceof hi||(e=qn(e)),!e)return new nt;if(e instanceof nt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new nt(o,u,c,e.opacity)}function lT(e,t,r,n){return arguments.length===1?rx(e):new nt(e,t,r,n??1)}function nt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}hh(nt,lT,tx(hi,{brighter(e){return e=e==null?Ki:Math.pow(Ki,e),new nt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Nn:Math.pow(Nn,e),new nt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Le(Ps(e>=240?e-240:e+120,i,n),Ps(e,i,n),Ps(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new nt(Yy(this.h),_i(this.s),_i(this.l),Gi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Gi(this.opacity);return`${e===1?"hsl(":"hsla("}${Yy(this.h)}, ${_i(this.s)*100}%, ${_i(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yy(e){return e=(e||0)%360,e<0?e+360:e}function _i(e){return Math.max(0,Math.min(1,e||0))}function Ps(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ph=e=>()=>e;function fT(e,t){return function(r){return e+r*t}}function hT(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function pT(e){return(e=+e)==1?nx:function(t,r){return r-t?hT(t,r,e):ph(isNaN(t)?r:t)}}function nx(e,t){var r=t-e;return r?fT(e,r):ph(isNaN(e)?t:e)}const Zy=(function e(t){var r=pT(t);function n(i,a){var o=r((i=Hl(i)).r,(a=Hl(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=nx(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n})(1);function dT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function vT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yT(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=on(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function mT(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Vi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function gT(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=on(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Kl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ts=new RegExp(Kl.source,"g");function bT(e){return function(){return e}}function xT(e){return function(t){return e(t)+""}}function wT(e,t){var r=Kl.lastIndex=Ts.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=Kl.exec(e))&&(i=Ts.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:Vi(n,i)})),r=Ts.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?xT(c[0].x):bT(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function on(e,t){var r=typeof t,n;return t==null||r==="boolean"?ph(t):(r==="number"?Vi:r==="string"?(n=qn(t))?(t=n,Zy):wT:t instanceof qn?Zy:t instanceof Date?mT:vT(t)?dT:Array.isArray(t)?yT:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?gT:Vi)(e,t)}function dh(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function OT(e,t){t===void 0&&(t=e,e=on);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function _T(e){return function(){return e}}function Xi(e){return+e}var Jy=[0,1];function Re(e){return e}function Gl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:_T(isNaN(t)?NaN:.5)}function AT(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ST(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Gl(i,n),a=r(o,a)):(n=Gl(n,i),a=r(a,o)),function(u){return a(n(u))}}function PT(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Gl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=fi(e,u,1,n)-1;return a[c](i[c](u))}}function pi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ha(){var e=Jy,t=Jy,r=on,n,i,a,o=Re,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Re&&(o=AT(e[0],e[h-1])),u=h>2?PT:ST,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),Vi)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Xi),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=dh,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Re,f()):o!==Re},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,d){return n=h,i=d,f()}}function vh(){return Ha()(Re,Re)}
vendor: 4,584 bytes, line 12
12function TT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Yi(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ir(e){return e=Yi(Math.abs(e)),e?e[1]:NaN}function ET(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function jT(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var MT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ln(e){if(!(t=MT.exec(e)))throw new Error("invalid format: "+e);var t;return new yh({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ln.prototype=yh.prototype;function yh(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}yh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $T(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Zi;function CT(e,t){var r=Yi(e,t);if(!r)return Zi=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Zi=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Yi(e,Math.max(0,t+a-1))[0]}function Qy(e,t){var r=Yi(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const em={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:TT,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Qy(e*100,t),r:Qy,s:CT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function tm(e){return e}var rm=Array.prototype.map,nm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function IT(e){var t=e.grouping===void 0||e.thousands===void 0?tm:ET(rm.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?tm:jT(rm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l,h){l=Ln(l);var d=l.fill,y=l.align,v=l.sign,p=l.symbol,b=l.zero,x=l.width,w=l.comma,O=l.precision,m=l.trim,g=l.type;g==="n"?(w=!0,g="g"):em[g]||(O===void 0&&(O=12),m=!0,g="g"),(b||d==="0"&&y==="=")&&(b=!0,d="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?r:p==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():""),A=(p==="$"?n:/[%p]/.test(g)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),P=em[g],j=/[defgprs%]/.test(g);O=O===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(T){var M=_,C=A,$,k,R;if(g==="c")C=P(T)+C,T="";else{T=+T;var L=T<0||1/T<0;if(T=isNaN(T)?c:P(Math.abs(T),O),m&&(T=$T(T)),L&&+T==0&&v!=="+"&&(L=!1),M=(L?v==="("?v:u:v==="-"||v==="("?"":v)+M,C=(g==="s"&&!isNaN(T)&&Zi!==void 0?nm[8+Zi/3]:"")+C+(L&&v==="("?")":""),j){for($=-1,k=T.length;++$<k;)if(R=T.charCodeAt($),48>R||R>57){C=(R===46?i+T.slice($+1):T.slice($))+C,T=T.slice(0,$);break}}}w&&!b&&(T=t(T,1/0));var B=M.length+T.length+C.length,U=B<x?new Array(x-B+1).join(d):"";switch(w&&b&&(T=t(U+T,U.length?x-C.length:1/0),U=""),y){case"<":T=M+T+C+U;break;case"=":T=M+U+T+C;break;case"^":T=U.slice(0,B=U.length>>1)+M+T+C+U.slice(B);break;default:T=U+M+T+C;break}return a(T)}return E.toString=function(){return l+""},E}function f(l,h){var d=Math.max(-8,Math.min(8,Math.floor(Ir(h)/3)))*3,y=Math.pow(10,-d),v=s((l=Ln(l),l.type="f",l),{suffix:nm[8+d/3]});return function(p){return v(y*p)}}return{format:s,formatPrefix:f}}var Ai,mh,ix;
12kT({thousands:",",grouping:[3],currency:["$",""]});function kT(e){return Ai=IT(e),mh=Ai.format,ix=Ai.formatPrefix,Ai}function RT(e){return Math.max(0,-Ir(Math.abs(e)))}function NT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ir(t)/3)))*3-Ir(Math.abs(e)))}function DT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ir(t)-Ir(e))+1}function ax(e,t,r,n){var i=Wl(e,t,r),a;switch(n=Ln(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=NT(i,o))&&(n.precision=a),ix(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=DT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=RT(i))&&(n.precision=a-(n.type==="%")*2);break}}return mh(n)}function Dt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Fl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ax(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=zl(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function Ji(){var e=vh();return e.copy=function(){return pi(e,Ji())},Qe.apply(e,arguments),Dt(e)}function ox(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Xi),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return ox(e).unknown(t)},e=arguments.length?Array.from(e,Xi):[0,1],Dt(r)}function ux(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function im(e){return Math.log(e)}function am(e){return Math.exp(e)}function qT(e){return-Math.log(-e)}function LT(e){return-Math.exp(-e)}function BT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function FT(e){return e===10?BT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function zT(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function om(e){return(t,r)=>-e(-t,r)}function gh(e){const t=e(im,am),r=t.domain;let n=10,i,a;function o(){return i=zT(n),a=FT(n),r()[0]<0?(i=om(i),a=om(a),e(qT,LT)):e(im,am),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let h=i(s),d=i(f),y,v;const p=u==null?10:+u;let b=[];if(!(n%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),s>0){for(;h<=d;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}}else for(;h<=d;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}b.length*2<p&&(b=Fl(s,f,p))}else b=Fl(h,d,Math.min(d-h,p)).map(a);return l?b.reverse():b},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Ln(c)).precision==null&&(c.trim=!0),c=mh(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},t.nice=()=>r(ux(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function cx(){const e=gh(Ha()).domain([1,10]);return e.copy=()=>pi(e,cx()).base(e.base()),Qe.apply(e,arguments),e}function um(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function cm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function bh(e){var t=1,r=e(um(t),cm(t));return r.constant=function(n){return arguments.length?e(um(t=+n),cm(t)):t},Dt(r)}function sx(){var e=bh(Ha());return e.copy=function(){return pi(e,sx()).constant(e.constant())},Qe.apply(e,arguments)}function sm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function WT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function UT(e){return e<0?-e*e:e*e}function xh(e){var t=e(Re,Re),r=1;function n(){return r===1?e(Re,Re):r===.5?e(WT,UT):e(sm(r),sm(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Dt(t)}function wh(){var e=xh(Ha());return e.copy=function(){return pi(e,wh()).exponent(e.exponent())},Qe.apply(e,arguments),e}function HT(){return wh.apply(null,arguments).exponent(.5)}function lm(e){return Math.sign(e)*e*e}function KT(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function lx(){var e=vh(),t=[0,1],r=!1,n;function i(a){var o=KT(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(lm(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Xi)).map(lm)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return lx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qe.apply(i,arguments),Dt(i)}function fx(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=ZP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[fi(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]}
12,a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Rt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return fx().domain(e).range(t).unknown(n)},Qe.apply(a,arguments)}function hx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[fi(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return hx().domain([e,t]).range(i).unknown(a)},Qe.apply(Dt(o),arguments)}function px(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[fi(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return px().domain(e).range(t).unknown(r)},Qe.apply(i,arguments)}const Es=new Date,js=new Date;function Pe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>Pe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Es.setTime(+a),js.setTime(+o),e(Es),e(js),Math.floor(r(Es,js))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Qi=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Qi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Qi);Qi.range;const yt=1e3,Ye=yt*60,mt=Ye*60,Ot=mt*24,Oh=Ot*7,fm=Ot*30,Ms=Ot*365,Jt=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*yt)},(e,t)=>(t-e)/yt,e=>e.getUTCSeconds());Jt.range;const _h=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yt)},(e,t)=>{e.setTime(+e+t*Ye)},(e,t)=>(t-e)/Ye,e=>e.getMinutes());_h.range;const Ah=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ye)},(e,t)=>(t-e)/Ye,e=>e.getUTCMinutes());Ah.range;const Sh=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yt-e.getMinutes()*Ye)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getHours());Sh.range;const Ph=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getUTCHours());Ph.range;const di=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ye)/Ot,e=>e.getDate()-1);di.range;const Ka=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ot,e=>e.getUTCDate()-1);Ka.range;const dx=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ot,e=>Math.floor(e/Ot));dx.range;function fr(e){return Pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ye)/Oh)}const Ga=fr(0),ea=fr(1),GT=fr(2),VT=fr(3),kr=fr(4),XT=fr(5),YT=fr(6);Ga.range;ea.range;GT.range;VT.range;kr.range;XT.range;YT.range;function hr(e){return Pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Oh)}const Va=hr(0),ta=hr(1),ZT=hr(2),JT=hr(3),Rr=hr(4),QT=hr(5),eE=hr(6);Va.range;ta.range;ZT.range;JT.range;Rr.range;QT.range;eE.range;const Th=Pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Th.range;const Eh=Pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Eh.range;const _t=Pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());_t.every=e=>
vendor: 4,070 bytes, line 12
12!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});_t.range;const At=Pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());At.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});At.range;function vx(e,t,r,n,i,a){const o=[[Jt,1,yt],[Jt,5,5*yt],[Jt,15,15*yt],[Jt,30,30*yt],[a,1,Ye],[a,5,5*Ye],[a,15,15*Ye],[a,30,30*Ye],[i,1,mt],[i,3,3*mt],[i,6,6*mt],[i,12,12*mt],[n,1,Ot],[n,2,2*Ot],[r,1,Oh],[t,1,fm],[t,3,3*fm],[e,1,Ms]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const d=l&&typeof l.range=="function"?l:c(s,f,l),y=d?d.range(s,+f+1):[];return h?y.reverse():y}function c(s,f,l){const h=Math.abs(f-s)/l,d=lh(([,,p])=>p).right(o,h);if(d===o.length)return e.every(Wl(s/Ms,f/Ms,l));if(d===0)return Qi.every(Math.max(Wl(s,f,l),1));const[y,v]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return y.every(v)}return[u,c]}const[tE,rE]=vx(At,Eh,Va,dx,Ph,Ah),[nE,iE]=vx(_t,Th,Ga,di,Sh,_h);function $s(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Cs(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function hn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function aE(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=pn(i),f=dn(i),l=pn(a),h=dn(a),d=pn(o),y=dn(o),v=pn(u),p=dn(u),b=pn(c),x=dn(c),w={a:R,A:L,b:B,B:U,c:null,d:mm,e:mm,f:EE,g:qE,G:BE,H:SE,I:PE,j:TE,L:yx,m:jE,M:ME,p:V,q:z,Q:xm,s:wm,S:$E,u:CE,U:IE,V:kE,w:RE,W:NE,x:null,X:null,y:DE,Y:LE,Z:FE,"%":bm},O={a:Y,A:he,b:me,B:Fe,c:null,d:gm,e:gm,f:HE,g:tj,G:nj,H:zE,I:WE,j:UE,L:gx,m:KE,M:GE,p:Ft,q:Ne,Q:xm,s:wm,S:VE,u:XE,U:YE,V:ZE,w:JE,W:QE,x:null,X:null,y:ej,Y:rj,Z:ij,"%":bm},m={a:j,A:E,b:T,B:M,c:C,d:vm,e:vm,f:wE,g:dm,G:pm,H:ym,I:ym,j:mE,L:xE,m:yE,M:gE,p:P,q:vE,Q:_E,s:AE,S:bE,u:lE,U:fE,V:hE,w:sE,W:pE,x:$,X:k,y:dm,Y:pm,Z:dE,"%":OE};w.x=g(r,w),w.X=g(n,w),w.c=g(t,w),O.x=g(r,O),O.X=g(n,O),O.c=g(t,O);function g(F,J){return function(ee){var N=[],ve=-1,re=0,xe=F.length,we,De,jt;for(ee instanceof Date||(ee=new Date(+ee));++ve<xe;)F.charCodeAt(ve)===37&&(N.push(F.slice(re,ve)),(De=hm[we=F.charAt(++ve)])!=null?we=F.charAt(++ve):De=we==="e"?" ":"0",(jt=J[we])&&(we=jt(ee,De)),N.push(we),re=ve+1);return N.push(F.slice(re,ve)),N.join("")}}function _(F,J){return function(ee){var N=hn(1900,void 0,1),ve=A(N,F,ee+="",0),re,xe;if(ve!=ee.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(J&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(re=Cs(hn(N.y,0,1)),xe=re.getUTCDay(),re=xe>4||xe===0?ta.ceil(re):ta(re),re=Ka.offset(re,(N.V-1)*7),N.y=re.getUTCFullYear(),N.m=re.getUTCMonth(),N.d=re.getUTCDate()+(N.w+6)%7):(re=$s(hn(N.y,0,1)),xe=re.getDay(),re=xe>4||xe===0?ea.ceil(re):ea(re),re=di.offset(re,(N.V-1)*7),N.y=re.getFullYear(),N.m=re.getMonth(),N.d=re.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),xe="Z"in N?Cs(hn(N.y,0,1)).getUTCDay():$s(hn(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(xe+5)%7:N.w+N.U*7-(xe+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Cs(N)):$s(N)}}function A(F,J,ee,N){for(var ve=0,re=J.length,xe=ee.length,we,De;ve<re;){if(N>=xe)return-1;if(we=J.charCodeAt(ve++),we===37){if(we=J.charAt(ve++),De=m[we in hm?J.charAt(ve++):we],!De||(N=De(F,ee,N))<0)return-1}else if(we!=ee.charCodeAt(N++))return-1}return N}function P(F,J,ee){var N=s.exec(J.slice(ee));return N?(F.p=f.get(N[0].toLowerCase()),ee+N[0].length):-1}function j(F,J,ee){var N=d.exec(J.slice(ee));
vendor: 5,930 bytes, line 12
12return N?(F.w=y.get(N[0].toLowerCase()),ee+N[0].length):-1}function E(F,J,ee){var N=l.exec(J.slice(ee));return N?(F.w=h.get(N[0].toLowerCase()),ee+N[0].length):-1}function T(F,J,ee){var N=b.exec(J.slice(ee));return N?(F.m=x.get(N[0].toLowerCase()),ee+N[0].length):-1}function M(F,J,ee){var N=v.exec(J.slice(ee));return N?(F.m=p.get(N[0].toLowerCase()),ee+N[0].length):-1}function C(F,J,ee){return A(F,t,J,ee)}function $(F,J,ee){return A(F,r,J,ee)}function k(F,J,ee){return A(F,n,J,ee)}function R(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function B(F){return c[F.getMonth()]}function U(F){return u[F.getMonth()]}function V(F){return i[+(F.getHours()>=12)]}function z(F){return 1+~~(F.getMonth()/3)}function Y(F){return o[F.getUTCDay()]}function he(F){return a[F.getUTCDay()]}function me(F){return c[F.getUTCMonth()]}function Fe(F){return u[F.getUTCMonth()]}function Ft(F){return i[+(F.getUTCHours()>=12)]}function Ne(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var J=g(F+="",w);return J.toString=function(){return F},J},parse:function(F){var J=_(F+="",!1);return J.toString=function(){return F},J},utcFormat:function(F){var J=g(F+="",O);return J.toString=function(){return F},J},utcParse:function(F){var J=_(F+="",!0);return J.toString=function(){return F},J}}}var hm={"-":"",_:" ",0:"0"},je=/^\s*\d+/,oE=/^%/,uE=/[\\^$*+?|[\]().{}]/g;function ne(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function cE(e){return e.replace(uE,"\\$&")}function pn(e){return new RegExp("^(?:"+e.map(cE).join("|")+")","i")}function dn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function sE(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function lE(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function fE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function hE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function pE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function pm(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function dm(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function dE(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function vE(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function yE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function vm(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function mE(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ym(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function gE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function bE(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function xE(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function wE(e,t,r){var n=je.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function OE(e,t,r){var n=oE.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function _E(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function AE(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function mm(e,t){return ne(e.getDate(),t,2)}function SE(e,t){return ne(e.getHours(),t,2)}function PE(e,t){return ne(e.getHours()%12||12,t,2)}function TE(e,t){return ne(1+di.count(_t(e),e),t,3)}function yx(e,t){return ne(e.getMilliseconds(),t,3)}function EE(e,t){return yx(e,t)+"000"}function jE(e,t){return ne(e.getMonth()+1,t,2)}function ME(e,t){return ne(e.getMinutes(),t,2)}function $E(e,t){return ne(e.getSeconds(),t,2)}function CE(e){var t=e.getDay();return t===0?7:t}function IE(e,t){return ne(Ga.count(_t(e)-1,e),t,2)}function mx(e){var t=e.getDay();return t>=4||t===0?kr(e):kr.ceil(e)}function kE(e,t){return e=mx(e),ne(kr.count(_t(e),e)+(_t(e).getDay()===4),t,2)}function RE(e){return e.getDay()}function NE(e,t){return ne(ea.count(_t(e)-1,e),t,2)}function DE(e,t){return ne(e.getFullYear()%100,t,2)}function qE(e,t){return e=mx(e),ne(e.getFullYear()%100,t,2)}function LE(e,t){return ne(e.getFullYear()%1e4,t,4)}function BE(e,t){var r=e.getDay();return e=r>=4||r===0?kr(e):kr.ceil(e),ne(e.getFullYear()%1e4,t,4)}function FE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ne(t/60|0,"0",2)+ne(t%60,"0",2)}function gm(e,t){return ne(e.getUTCDate(),t,2)}function zE(e,t){return ne(e.getUTCHours(),t,2)}function WE(e,t){return ne(e.getUTCHours()%12||12,t,2)}function UE(e,t){return ne(1+Ka.count(At(e),e),t,3)}function gx(e,t){return ne(e.getUTCMilliseconds(),t,3)}function HE(e,t){return gx(e,t)+"000"}function KE(e,t){return ne(e.getUTCMonth()+1,t,2)}function GE(e,t){return ne(e.getUTCMinutes(),t,2)}function VE(e,t){return ne(e.getUTCSeconds(),t,2)}function XE(e){var t=e.getUTCDay();return t===0?7:t}function YE(e,t){return ne(Va.count(At(e)-1,e),t,2)}function bx(e){var t=e.getUTCDay();return t>=4||t===0?Rr(e):Rr.ceil(e)}function ZE(e,t){return e=bx(e),ne(Rr.count(At(e),e)+(At(e).getUTCDay()===4),t,2)}function JE(e){return e.getUTCDay()}function QE(e,t){return ne(ta.count(At(e)-1,e),t,2)}function ej(e,t){return ne(e.getUTCFullYear()%100,t,2)}function tj(e,t){return e=bx(e),ne(e.getUTCFullYear()%100,t,2)}function rj(e,t){return ne(e.getUTCFullYear()%1e4,t,4)}function nj(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Rr(e):Rr.ceil(e),ne(e.getUTCFullYear()%1e4,t,4)}function ij(){return"+0000"}function bm(){return"%"}function xm(e){return+e}function wm(e){return Math.floor(+e/1e3)}var yr,xx,wx;aj({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
12ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function aj(e){return yr=aE(e),xx=yr.format,yr.parse,wx=yr.utcFormat,yr.utcParse,yr}function oj(e){return new Date(e)}function uj(e){return e instanceof Date?+e:+new Date(+e)}function jh(e,t,r,n,i,a,o,u,c,s){var f=vh(),l=f.invert,h=f.domain,d=s(".%L"),y=s(":%S"),v=s("%I:%M"),p=s("%I %p"),b=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function m(g){return(c(g)<g?d:u(g)<g?y:o(g)<g?v:a(g)<g?p:n(g)<g?i(g)<g?b:x:r(g)<g?w:O)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?h(Array.from(g,uj)):h().map(oj)},f.ticks=function(g){var _=h();return e(_[0],_[_.length-1],g??10)},f.tickFormat=function(g,_){return _==null?m:s(_)},f.nice=function(g){var _=h();return(!g||typeof g.range!="function")&&(g=t(_[0],_[_.length-1],g??10)),g?h(ux(_,g)):f},f.copy=function(){return pi(f,jh(e,t,r,n,i,a,o,u,c,s))},f}function cj(){return Qe.apply(jh(nE,iE,_t,Th,Ga,di,Sh,_h,Jt,xx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function sj(){return Qe.apply(jh(tE,rE,At,Eh,Va,Ka,Ph,Ah,Jt,wx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Xa(){var e=0,t=1,r,n,i,a,o=Re,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(h){var d,y;return arguments.length?([d,y]=h,o=l(d,y),s):[o(0),o(1)]}}return s.range=f(on),s.rangeRound=f(dh),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function qt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ox(){var e=Dt(Xa()(Re));return e.copy=function(){return qt(e,Ox())},Tt.apply(e,arguments)}function _x(){var e=gh(Xa()).domain([1,10]);return e.copy=function(){return qt(e,_x()).base(e.base())},Tt.apply(e,arguments)}function Ax(){var e=bh(Xa());return e.copy=function(){return qt(e,Ax()).constant(e.constant())},Tt.apply(e,arguments)}function Mh(){var e=xh(Xa());return e.copy=function(){return qt(e,Mh()).exponent(e.exponent())},Tt.apply(e,arguments)}function lj(){return Mh.apply(null,arguments).exponent(.5)}function Sx(){var e=[],t=Re;function r(n){if(n!=null&&!isNaN(n=+n))return t((fi(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Rt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>YP(e,a/n))},r.copy=function(){return Sx(t).domain(e)},Tt.apply(r,arguments)}function Ya(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Re,f,l=!1,h;function d(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}d.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d):[e,t,r]},d.clamp=function(v){return arguments.length?(l=!!v,d):l},d.interpolator=function(v){return arguments.length?(s=v,d):s};function y(v){return function(p){var b,x,w;return arguments.length?([b,x,w]=p,s=OT(v,[b,x,w]),d):[s(0),s(.5),s(1)]}}return d.range=y(on),d.rangeRound=y(dh),d.unknown=function(v){return arguments.length?(h=v,d):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function Px(){var e=Dt(Ya()(Re));return e.copy=function(){return qt(e,Px())},Tt.apply(e,arguments)}function Tx(){var e=gh(Ya()).domain([.1,1,10]);return e.copy=function(){return qt(e,Tx()).base(e.base())},Tt.apply(e,arguments)}function Ex(){var e=bh(Ya());return e.copy=function(){return qt(e,Ex()).constant(e.constant())},Tt.apply(e,arguments)}function $h(){var e=xh(Ya());return e.copy=function(){return qt(e,$h()).exponent(e.exponent())},Tt.apply(e,arguments)}function fj(){return $h.apply(null,arguments).exponent(.5)}const Om=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Rn,scaleDiverging:Px,scaleDivergingLog:Tx,scaleDivergingPow:$h,scaleDivergingSqrt:fj,scaleDivergingSymlog:Ex,scaleIdentity:ox,scaleImplicit:Ul,scaleLinear:Ji,scaleLog:cx,scaleOrdinal:fh,scalePoint:_n,scalePow:wh,scaleQuantile:fx,scaleQuantize:hx,scaleRadial:lx,scaleSequential:Ox,scaleSequentialLog:_x,scaleSequentialPow:Mh,scaleSequentialQuantile:Sx,scaleSequentialSqrt:lj,scaleSequentialSymlog:Ax,scaleSqrt:HT,scaleSymlog:sx,scaleThreshold:px,scaleTime:cj,scaleUtc:sj,tickFormat:ax},Symbol.toStringTag,{value:"Module"}));var Is,_m;function Za(){if(_m)return Is;_m=1;var e=en();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!e(c):i(c,s)))var s=c,f=u}return f}return Is=t,Is}var ks,Am;function jx(){if(Am)return ks;Am=1;function e(t,r){return t>r}return ks=e,ks}var Rs,Sm;function hj(){if(Sm)return Rs;Sm=1;var e=Za(),t=jx(),r=an();function n(i){return i&&i.length?e(i,r,t):void 0}return Rs=n,Rs}var pj=hj();const It=ue(pj);var Ns,Pm;function Mx(){if(Pm)return Ns;Pm=1;function e(t,r){return t<r}return Ns=e,Ns}var Ds,Tm;function dj(){if(Tm)return Ds;Tm=1;var e=Za(),t=Mx(),r=an();function n(i){return i&&i.length?e(i,r,t):void 0}return Ds=n,Ds}var vj=dj();const Ja=ue(vj);var qs,Em;function yj(){if(Em)return qs;Em=1;var e=Gf(),t=pt(),r=L0(),n=Be();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return qs=i,qs}var Ls,jm;function mj(){if(jm)return Ls;jm=1;var e=D0(),t=yj();function r(n,i){return e(t(n,i),1)}return Ls=r,Ls}var gj=mj();const bj=ue(gj);var Bs,Mm;function xj(){if(Mm)return Bs;Mm=1;var e=oh();function t(r,n){return e(r,n)}return Bs=t,Bs}var wj=xj();const Nr=ue(wj);
vendor: 68,572 bytes, lines 12-39
12var un=1e9,Oj={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ih,de=!0,Je="[DecimalError] ",rr=Je+"Invalid argument: ",Ch=Je+"Exponent out of range: ",cn=Math.floor,Vt=Math.pow,_j=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ue,Te=1e7,pe=7,$x=9007199254740991,ra=cn($x/pe),W={};W.absoluteValue=W.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};W.comparedTo=W.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};W.decimalPlaces=W.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*pe;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};W.dividedBy=W.div=function(e){return xt(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return ce(xt(t,new r(e),0,1),r.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return be(this)};W.greaterThan=W.gt=function(e){return this.cmp(e)>0};W.greaterThanOrEqualTo=W.gte=function(e){return this.cmp(e)>=0};W.isInteger=W.isint=function(){return this.e>this.d.length-2};W.isNegative=W.isneg=function(){return this.s<0};W.isPositive=W.ispos=function(){return this.s>0};W.isZero=function(){return this.s===0};W.lessThan=W.lt=function(e){return this.cmp(e)<0};W.lessThanOrEqualTo=W.lte=function(e){return this.cmp(e)<1};W.logarithm=W.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ue))throw Error(Je+"NaN");if(r.s<1)throw Error(Je+(r.s?"NaN":"-Infinity"));return r.eq(Ue)?new n(0):(de=!1,t=xt(Bn(r,a),Bn(e,a),a),de=!0,ce(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kx(t,e):Cx(t,(e.s=-e.s,e))};W.modulo=W.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Je+"NaN");return r.s?(de=!1,t=xt(r,e,0,1).times(e),de=!0,r.minus(t)):ce(new n(r),i)};W.naturalExponential=W.exp=function(){return Ix(this)};W.naturalLogarithm=W.ln=function(){return Bn(this)};W.negated=W.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};W.plus=W.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Cx(t,e):kx(t,(e.s=-e.s,e))};W.precision=W.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(rr+e);if(t=be(i)+1,n=i.d.length-1,r=n*pe+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};W.squareRoot=W.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Je+"NaN")}for(e=be(u),de=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ot(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=cn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(xt(u,a,o+2)).times(.5),ot(a.d).slice(0,o)===(t=ot(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ce(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return de=!0,ce(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,d=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=d.length,c<s&&(a=h,h=d,d=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+d[n]*h[i-n-1]+t,a[i--]=u%Te|0,t=u/Te|0;a[i]=(a[i]+t)%Te|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,de?ce(e,l.precision):e};W.toDecimalPlaces=W.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(lt(e,0,un),t===void 0?t=n.rounding:lt(t,0,8),ce(r,e+be(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=or(n,!0):(lt(e,0,un),t===void 0?t=i.rounding:lt(t,0,8),n=ce(new i(n),e+1,t),r=or(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?or(i):(lt(e,0,un),t===void 0?t=a.rounding:lt(t,0,8),n=ce(new a(i),e+be(i)+1,t),r=or(n.abs(),!1,e+be(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return ce(new t(e),be(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(Ue);if(u=new c(u),!u.s){if(e.s<1)throw Error(Je+"Infinity");return u}if(u.eq(Ue))return u;if(n=c.precision,e.eq(Ue))return ce(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=$x){for(i=new c(Ue),t=Math.ceil(n/pe+4),de=!1;r%2&&(i=i.times(u),Cm(i.d,t)),r=cn(r/2),r!==0;)u=u.times(u),Cm(u.d,t);return de=!0,e.s<0?new c(Ue).div(i):ce(i,n)}}else if(a<0)throw Error(Je+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,de=!1,i=e.times(Bn(u,n+s)),de=!0,i=Ix(i),i.s=a,i};W.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=be(i),n=or(i,r<=a.toExpNeg||r>=a.toExpPos)):(lt(e,1,un),t===void 0?t=a.rounding:lt(t,0,8),i=ce(new a(i),e,t),r=be(i),n=or(i,e<=r||r<=a.toExpNeg,e)),n};W.toSignificantDigits=W.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(lt(e,1,un),t===void 0?t=n.rounding:lt(t,0,8)),ce(new n(r),e,t)};W.toString=W.valueOf=W.val=W.toJSON=W[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=be(e),r=e.constructor;return or(e,t<=r.toExpNeg||t>=r.toExpPos)};function Cx(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),de?ce(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/pe),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/Te|0,c[a]%=Te;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,de?ce(t,l):t}function lt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(rr+e)}function ot(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=pe-n.length,r&&(a+=$t(r)),a+=n;o=e[t],n=o+"",r=pe-n.length,r&&(a+=$t(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var xt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Te|0,o=a/Te|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Te+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,d,y,v,p,b,x,w,O,m,g,_,A,P=n.constructor,j=n.s==i.s?1:-1,E=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Je+"Division by zero");for(c=n.e-i.e,_=T.length,m=E.length,d=new P(j),y=d.d=[],s=0;T[s]==(E[s]||0);)++s;if(T[s]>(E[s]||0)&&--c,a==null?x=a=P.precision:o?x=a+(be(n)-be(i))+1:x=a,x<0)return new P(0);if(x=x/pe+2|0,s=0,_==1)for(f=0,T=T[0],x++;(s<m||f)&&x--;s++)w=f*Te+(E[s]||0),y[s]=w/T|0,f=w%T|0;else{for(f=Te/(T[0]+1)|0,f>1&&(T=e(T,f),E=e(E,f),_=T.length,m=E.length),O=_,v=E.slice(0,_),p=v.length;p<_;)v[p++]=0;A=T.slice(),A.unshift(0),g=T[0],T[1]>=Te/2&&++g;do f=0,u=t(T,v,_,p),u<0?(b=v[0],_!=p&&(b=b*Te+(v[1]||0)),f=b/g|0,f>1?(f>=Te&&(f=Te-1),l=e(T,f),h=l.length,p=v.length,u=t(l,v,h,p),u==1&&(f--,r(l,_<h?A:T,h))):(f==0&&(u=f=1),l=T.slice()),h=l.length,h<p&&l.unshift(0),r(v,l,p),u==-1&&(p=v.length,u=t(T,v,_,p),u<1&&(f++,r(v,_<p?A:T,p))),p=v.length):u===0&&(f++,v=[0]),y[s++]=f,u&&v[0]?v[p++]=E[O]||0:(v=[E[O]],p=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),d.e=c,ce(d,o?a+be(d)+1:a)}})();function Ix(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(be(e)>16)throw Error(Ch+be(e));if(!e.s)return new f(Ue);for(de=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Vt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ue),f.precision=u;;){if(i=ce(i.times(e),u),r=r.times(++c),o=a.plus(xt(i,r,u)),ot(o.d).slice(0,u)===ot(a.d).slice(0,u)){for(;s--;)a=ce(a.times(a),u);return f.precision=l,t==null?(de=!0,ce(a,l)):a}a=o}}function be(e){for(var t=e.e*pe,r=e.d[0];r>=10;r/=10)t++;return t}function Fs(e,t,r){if(t>e.LN10.sd())throw de=!0,r&&(e.precision=r),Error(Je+"LN10 precision limit exceeded");return ce(new e(e.LN10),t)}function $t(e){for(var t="";e--;)t+="0";return t}function Bn(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,d=e,y=d.d,v=d.constructor,p=v.precision;if(d.s<1)throw Error(Je+(d.s?"NaN":"-Infinity"));if(d.eq(Ue))return new v(0);if(t==null?(de=!1,s=p):s=t,d.eq(10))return t==null&&(de=!0),Fs(v,s);if(s+=h,v.precision=s,r=ot(y),n=r.charAt(0),a=be(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=ot(d.d),n=r.charAt(0),l++;a=be(d),n>1?(d=new v("0."+r),a++):d=new v(n+"."+r.slice(1))}else return c=Fs(v,s+2,p).times(a+""),d=Bn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=p,t==null?(de=!0,ce(d,p)):d;for(u=o=d=xt(d.minus(Ue),d.plus(Ue),s),f=ce(d.times(d),s),i=3;;){if(o=ce(o.times(f),s),c=u.plus(xt(o,new v(i),s)),ot(c.d).slice(0,s)===ot(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Fs(v,s+2,p).times(a+""))),u=xt(u,new v(l),s),v.precision=p,t==null?(de=!0,ce(u,p)):u;u=c,i+=2}}function $m(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=cn(r/pe),e.d=[],n=(r+1)%pe,r<0&&(n+=pe),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=pe;n<i;)e.d.push(+t.slice(n,n+=pe));t=t.slice(n),n=pe-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),de&&(e.e>ra||e.e<-ra))throw Error(Ch+r)}else e.s=0,e.e=0,e.d=[0];return e}function ce(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=pe,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/pe),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=pe,i=n-pe+o}if(r!==void 0&&(a=Vt(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Vt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=be(e),l.length=1,t=t-a-1,l[0]=Vt(10,(pe-t%pe)%pe),e.e=cn(-t/pe)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Vt(10,pe-n),l[f]=i>0?(s/Vt(10,o-i)%Vt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==Te&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Te)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(de&&(e.e>ra||e.e<-ra))throw Error(Ch+be(e));return e}function kx(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),de?ce(t,d):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(d/pe),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,t.s=-t.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=Te-1;--c[a],c[i]+=Te}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,de?ce(t,d):t):new h(0)}function or(e,t,r){var n,i=be(e),a=ot(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+$t(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+$t(-i-1)+a,r&&(n=r-o)>0&&(a+=$t(n))):i>=o?(a+=$t(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+$t(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=$t(n))),e.s<0?"-"+a:a}function Cm(e,t){if(e.length>t)return e.length=t,!0}function Rx(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(rr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return $m(o,a.toString())}else if(typeof a!="string")throw Error(rr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,_j.test(a))$m(o,a);else throw Error(rr+a)}if(i.prototype=W,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Rx,i.config=i.set=Aj,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function Aj(e){if(!e||typeof e!="object")throw Error(Je+"Object expected");var t,r,n,i=["precision",1,un,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(cn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(rr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(rr+r+": "+n);return this}var Ih=Rx(Oj);Ue=new Ih(1);const oe=Ih;function Sj(e){return jj(e)||Ej(e)||Tj(e)||Pj()}function Pj(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tj(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 Ej(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function jj(e){if(Array.isArray(e))return Vl(e)}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}var Mj=function(t){return t},Nx={},Dx=function(t){return t===Nx},Im=function(t){return function r(){return arguments.length===0||arguments.length===1&&Dx(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},$j=function e(t,r){return t===1?r:Im(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==Nx}).length;return o>=t?r.apply(void 0,i):e(t-o,Im(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return Dx(l)?c.shift():l});return r.apply(void 0,Sj(f).concat(c))}))})},Qa=function(t){return $j(t.length,t)},Xl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},Cj=Qa(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),Ij=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Mj;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},Yl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},qx=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function kj(e){var t;return e===0?t=1:t=Math.floor(new oe(e).abs().log(10).toNumber())+1,t}function Rj(e,t,r){for(var n=new oe(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Nj=Qa(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),Dj=Qa(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),qj=Qa(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const eo={rangeStep:Rj,getDigitCount:kj,interpolateNumber:Nj,uninterpolateNumber:Dj,uninterpolateTruncation:qj};function Zl(e){return Fj(e)||Bj(e)||Lx(e)||Lj()}function Lj(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bj(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Fj(e){if(Array.isArray(e))return Jl(e)}function Fn(e,t){return Uj(e)||Wj(e,t)||Lx(e,t)||zj()}function zj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lx(e,t){if(e){if(typeof e=="string")return Jl(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 Jl(e,t)}}function Jl(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 Wj(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 Uj(e){if(Array.isArray(e))return e}function Bx(e){var t=Fn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Fx(e,t,r){if(e.lte(0))return new oe(0);var n=eo.getDigitCount(e.toNumber()),i=new oe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new oe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new oe(Math.ceil(c))}function Hj(e,t,r){var n=1,i=new oe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new oe(10).pow(eo.getDigitCount(e)-1),i=new oe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new oe(Math.floor(e)))}else e===0?i=new oe(Math.floor((t-1)/2)):r||(i=new oe(Math.floor(e)));var o=Math.floor((t-1)/2),u=Ij(Cj(function(c){return i.add(new oe(c-o).mul(n)).toNumber()}),Xl);return u(0,t)}function zx(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 oe(0),tickMin:new oe(0),tickMax:new oe(0)};var a=Fx(new oe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new oe(0):(o=new oe(e).add(t).div(2),o=o.sub(new oe(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new oe(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?zx(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 oe(u).mul(a)),tickMax:o.add(new oe(c).mul(a))})}function Kj(e){var t=Fn(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=Bx([r,n]),c=Fn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(Zl(Xl(0,i-1).map(function(){return 1/0}))):[].concat(Zl(Xl(0,i-1).map(function(){return-1/0})),[f]);return r>n?Yl(l):l}if(s===f)return Hj(s,i,a);var h=zx(s,f,o,a),d=h.step,y=h.tickMin,v=h.tickMax,p=eo.rangeStep(y,v.add(new oe(.1).mul(d)),d);return r>n?Yl(p):p}function Gj(e,t){var r=Fn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Bx([n,i]),u=Fn(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=Fx(new oe(s).sub(c).div(f-1),a,0),h=[].concat(Zl(eo.rangeStep(new oe(c),new oe(s).sub(new oe(.99).mul(l)),l)),[s]);return n>i?Yl(h):h}var Vj=qx(Kj),Xj=qx(Gj),Yj="Invariant failed";function ur(e,t){throw new Error(Yj)}var Zj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 na(){return na=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},na.apply(this,arguments)}function Jj(e,t){return rM(e)||tM(e,t)||eM(e,t)||Qj()}function Qj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 16In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eM(e,t){if(e){if(typeof e=="string")return km(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 km(e,t)}}function km(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 tM(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 rM(e){if(Array.isArray(e))return e}function nM(e,t){if(e==null)return{};var r=iM(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 iM(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 aM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oM(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,Hx(n.key),n)}}function uM(e,t,r){return t&&oM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cM(e,t,r){return t=ia(t),sM(e,Wx()?Reflect.construct(t,r||[],ia(e).constructor):t.apply(e,r))}function sM(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 lM(e)}function lM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wx=function(){return!!e})()}function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ia(e)}function fM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ql(e,t)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ql(e,t)}function Ux(e,t,r){return t=Hx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hx(e){var t=hM(e,"string");return Dr(t)=="symbol"?t:t+""}function hM(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 to=(function(e){function t(){return aM(this,t),cM(this,t,arguments)}return fM(t,e),uM(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=nM(n,Zj),d=K(h,!1);this.props.direction==="x"&&f.type!=="number"&&ur();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 m=[],g,_;if(Array.isArray(O)){var A=Jj(O,2);g=A[0],_=A[1]}else g=_=O;if(a==="vertical"){var P=f.scale,j=x+i,E=j+o,T=j-o,M=P(w-g),C=P(w+_);m.push({x1:C,y1:E,x2:C,y2:T}),m.push({x1:M,y1:j,x2:C,y2:j}),m.push({x1:M,y1:E,x2:M,y2:T})}else if(a==="horizontal"){var $=l.scale,k=b+i,R=k-o,L=k+o,B=$(w-g),U=$(w+_);m.push({x1:R,y1:U,x2:L,y2:U}),m.push({x1:k,y1:B,x2:k,y2:U}),m.push({x1:R,y1:B,x2:L,y2:B})}return S.createElement(te,na({className:"recharts-errorBar",key:"bar-".concat(m.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},d),m.map(function(V){return S.createElement("line",na({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return S.createElement(te,{className:"recharts-errorBars"},y)}}])})(S.Component);Ux(to,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Ux(to,"displayName","ErrorBar");function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function Rm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(r),!0).forEach(function(n){pM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pM(e,t,r){return t=dM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dM(e){var t=vM(e,"string");return zn(t)=="symbol"?t:t+""}function vM(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=We(r,Ar);if(!o)return null;var u=Ar.defaultProps,c=u!==void 0?Ut(Ut({},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?Ut(Ut({},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:kh(l),value:v||y,payload:d}}),Ut(Ut(Ut({},c),Ar.getWithHeight(o,i)),{},{payload:s,item:o})};function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function Nm(e){return bM(e)||gM(e)||mM(e)||yM()}function yM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mM(e,t){if(e){if(typeof e=="string")return ef(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ef(e,t)}}function gM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bM(e){if(Array.isArray(e))return ef(e)}function ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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 ye(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){Pr(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 Pr(e,t,r){return t=xM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e){var t=wM(e,"string");return Wn(t)=="symbol"?t:t+""}function wM(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ae(e,t,r){return Z(e)||Z(t)?r:Se(t)?He(e,t,r):X(t)?t(e):r}function An(e,t,r,n){var i=bj(e,function(u){return Ae(u,t)});if(r==="number"){var a=i.filter(function(u){return D(u)||parseFloat(u)});return a.length?[Ja(a),It(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return Se(u)||u instanceof Date?u:""})}var OM=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Ie(l-f)!==Ie(h-l)){var y=[];if(Ie(h-l)===Ie(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},kh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ye(ye({},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},_M=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 bt(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?ye(ye({},x),b[0].props):b[0].props,O=w.barSize,m=w[p];o[m]||(o[m]=[]);var g=Z(O)?r:O;o[m].push({item:b[0],stackList:b.slice(1),barSize:Z(g)?void 0:ke(g,n,0)})}}return o},AM=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=ke(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/c,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&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,m){var g={item:m.item,position:{offset:p.offset+p.size+s,size:h?d:m.barSize}},_=[].concat(Nm(O),[g]);return p=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:p})}),_},l)}else{var b=ke(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var x=(i-2*b-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,g){var _=[].concat(Nm(O),[{item:m.item,position:{offset:b+(x+s)*g+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},l)}return f},SM=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=Kx({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"&&D(t[d]))return ye(ye({},t),{},Pr({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&D(t[y]))return ye(ye({},t),{},Pr({},y,t[y]+(h||0)))}return t},PM=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Gx=function(t,r,n,i,a){var o=r.props.children,u=Ze(o,to).filter(function(s){return PM(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=Ae(f,n);if(Z(l))return s;var h=Array.isArray(l)?[Ja(l),It(l)]:[l,l],d=c.reduce(function(y,v){var p=Ae(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},TM=function(t,r,n,i,a){var o=r.map(function(u){return Gx(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},Vx=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&Gx(t,c,s,i)||An(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},[])},Xx=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Yx=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},gt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&u?.length>=2?Ie(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!rn(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}})},zs=new WeakMap,Si=function(t,r){if(typeof r!="function")return t;zs.has(t)||zs.set(t,new WeakMap);var n=zs.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},Zx=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:Rn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Ji(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:_n(),realScaleType:"point"}:a==="category"?{scale:Rn(),realScaleType:"band"}:{scale:Ji(),realScaleType:"linear"};if(nr(i)){var c="scale".concat(Da(i));return{scale:(Om[c]||_n)(),realScaleType:Om[c]?c:"point"}}return X(i)?{scale:i}:{scale:_n(),realScaleType:"point"}},qm=1e-4,Jx=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])-qm,o=Math.max(i[0],i[1])+qm,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},EM=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},jM=function(t,r){if(!r||r.length!==2||!D(r[0])||!D(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(!D(t[0])||t[0]<n)&&(a[0]=n),(!D(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},MM=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=rn(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])}},$M=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=rn(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)}},CM={sign:MM,expand:b1,none:Er,silhouette:x1,wiggle:w1,positive:$M},IM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=CM[n],o=g1().keys(i).value(function(u,c){return+Ae(u,c,0)}).order(Ml).offset(a);return o(t)},kM=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?ye(ye({},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(Se(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[nn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ye(ye({},l),{},Pr({},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 ye(ye({},v),{},Pr({},p,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:IM(t,b.items,a)}))},y)}return ye(ye({},l),{},Pr({},h,d))},f)},Qx=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=Vj(s,a,u);return t.domain([Ja(f),It(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=Xj(l,a,u);return{niceTicks:h}}return null};function Lm(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=Ii(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Ae(i,Z(o)?t.dataKey:o);return Z(c)?null:t.scale(c)}var Bm=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=Ae(o,r.dataKey,r.domain[u]);return Z(c)?null:r.scale(c)-a/2+i},RM=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]},NM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ye(ye({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Se(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},DM=function(t){return t.reduce(function(r,n){return[Ja(n.concat([r[0]]).filter(D)),It(n.concat([r[1]]).filter(D))]},[1/0,-1/0])},ew=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=DM(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})},Fm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tf=function(t,r,n){if(X(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(D(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Fm.test(t[0])){var a=+Fm.exec(t[0])[1];i[0]=r[0]-a}else X(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(D(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(zm.test(t[1])){var o=+zm.exec(t[1])[1];i[1]=r[1]+o}else X(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},aa=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=ch(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},Wm=function(t,r,n){return!t||!t.length||Nr(t,He(n,"type.defaultProps.domain"))?r:t},tw=function(t,r){var n=t.type.defaultProps?ye(ye({},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 ye(ye({},K(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:kh(t),value:Ae(r,i),type:c,payload:r,chartType:s,hide:f})};function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}function Um(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 vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Um(Object(r),!0).forEach(function(n){rw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rw(e,t,r){return t=qM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qM(e){var t=LM(e,"string");return Un(t)=="symbol"?t:t+""}function LM(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BM(e,t){return UM(e)||WM(e,t)||zM(e,t)||FM()}function FM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zM(e,t){if(e){if(typeof e=="string")return Hm(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 Hm(e,t)}}function Hm(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 WM(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 UM(e){if(Array.isArray(e))return e}var oa=Math.PI/180,HM=function(t){return t*180/Math.PI},fe=function(t,r,n,i){return{x:t+Math.cos(-oa*i)*n,y:r+Math.sin(-oa*i)*n}},nw=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},KM=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=ke(t.cx,o,o/2),l=ke(t.cy,u,u/2),h=nw(o,u,n),d=ke(t.innerRadius,h,0),y=ke(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,m;if(Z(x.range))i==="angleAxis"?m=[c,s]:i==="radiusAxis"&&(m=[d,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var g=m,_=BM(g,2);c=_[0],s=_[1]}var A=Zx(x,a),P=A.realScaleType,j=A.scale;j.domain(w).range(m),Jx(j);var E=Qx(j,vt(vt({},x),{},{realScaleType:P})),T=vt(vt(vt({},x),E),{},{range:m,radius:y,realScaleType:P,scale:j,cx:f,cy:l,innerRadius:d,outerRadius:y,startAngle:c,endAngle:s});return vt(vt({},p),{},rw({},b,T))},{})},GM=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))},VM=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=GM({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:HM(s),angleInRadian:s}},XM=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}},YM=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},Km=function(t,r){var n=t.x,i=t.y,a=VM({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=XM(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?vt(vt({},r),{},{radius:o,angle:YM(d,r)}):null},iw=function(t){return!q.isValidElement(t)&&!X(t)&&typeof t!="boolean"?t.className:""};function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}var ZM=["offset"];function JM(e){return r$(e)||t$(e)||e$(e)||QM()}function QM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e$(e,t){if(e){if(typeof e=="string")return rf(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 rf(e,t)}}function t$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function r$(e){if(Array.isArray(e))return rf(e)}function rf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n$(e,t){if(e==null)return{};var r=i$(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 i$(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 Gm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gm(Object(r),!0).forEach(function(n){a$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a$(e,t,r){return t=o$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$(e){var t=u$(e,"string");return Hn(t)=="symbol"?t:t+""}function u$(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kn(){return Kn=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},Kn.apply(this,arguments)}var c$=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return X(n)?n(i):i},s$=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),360);return n*i},l$=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=s$(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 m=fe(s,f,p,w),g=fe(s,f,p,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,` 20 A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`, 21 `).concat(g.x,",").concat(g.y),A=Z(t.id)?nn("recharts-radial-line-"):t.id;return S.createElement("text",Kn({},n,{dominantBaseline:"central",className:Q("recharts-radial-bar-label",u)}),S.createElement("defs",null,S.createElement("path",{id:A,d:_})),S.createElement("textPath",{xlinkHref:"#".concat(A)},r))},f$=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=fe(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=fe(o,u,p,h),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},h$=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 _e(_e({},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 _e(_e({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return _e(_e({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+s+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return _e(_e({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?_e({x:u+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?_e({x:u+s-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?_e({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?_e({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?_e({x:u+p,y:c+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?_e({x:u+s-p,y:c+h,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?_e({x:u+p,y:c+f-h,textAnchor:x,verticalAnchor:d},_):a==="insideBottomRight"?_e({x:u+s-p,y:c+f-h,textAnchor:b,verticalAnchor:d},_):tn(a)&&(D(a.x)||Yt(a.x))&&(D(a.y)||Yt(a.y))?_e({x:u+ke(a.x,s),y:c+ke(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):_e({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},p$=function(t){return"cx"in t&&D(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=n$(e,ZM),i=_e({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)&&!q.isValidElement(s)&&!X(s))return null;if(q.isValidElement(s))return q.cloneElement(s,i);var d;if(X(s)){if(d=q.createElement(s,i),q.isValidElement(d))return d}else d=c$(i);var y=p$(a),v=K(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return l$(i,d,v);var p=y?f$(i):h$(i);return S.createElement(ar,Kn({className:Q("recharts-label",l)},v,p,{breakAll:h}),d)}Ee.displayName="Label";var aw=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(D(v)&&D(p)){if(D(l)&&D(h))return{x:l,y:h,width:v,height:p};if(D(d)&&D(y))return{x:d,y,width:v,height:p}}return D(l)&&D(h)?{x:l,y:h,width:0,height:0}:D(r)&&D(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:{}},d$=function(t,r){return t?t===!0?S.createElement(Ee,{key:"label-implicit",viewBox:r}):Se(t)?S.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):q.isValidElement(t)?t.type===Ee?q.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):X(t)?S.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):tn(t)?S.createElement(Ee,Kn({viewBox:r},t,{key:"label-implicit"})):null:null},v$=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=aw(t),o=Ze(i,Ee).map(function(c,s){return q.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=d$(t.label,r||a);return[u].concat(JM(o))};Ee.parseViewBox=aw;Ee.renderCallByParent=v$;var Ws,Vm;function y$(){if(Vm)return Ws;Vm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Ws=e,Ws}var m$=y$();const g$=ue(m$);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)}var b$=["valueAccessor"],x$=["data","dataKey","clockWise","id","textBreakAll"];function w$(e){return S$(e)||A$(e)||_$(e)||O$()}function O$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _$(e,t){if(e){if(typeof e=="string")return nf(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 nf(e,t)}}function A$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S$(e){if(Array.isArray(e))return nf(e)}function nf(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 ua(){return ua=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},ua.apply(this,arguments)}function Xm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ym(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xm(Object(r),!0).forEach(function(n){P$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P$(e,t,r){return t=T$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T$(e){var t=E$(e,"string");return Gn(t)=="symbol"?t:t+""}function E$(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 Zm(e,t){if(e==null)return{};var r=j$(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 j$(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 M$=function(t){return Array.isArray(t.value)?g$(t.value):t.value};function wt(e){var t=e.valueAccessor,r=t===void 0?M$:t,n=Zm(e,b$),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=Zm(n,x$);return!i||!i.length?null:S.createElement(te,{className:"recharts-label-list"},i.map(function(f,l){var h=Z(a)?r(f,l):Ae(f&&f.payload,a),d=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return S.createElement(Ee,ua({},K(f,!0),s,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Ee.parseViewBox(Z(o)?f:Ym(Ym({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}wt.displayName="LabelList";function $$(e,t){return e?e===!0?S.createElement(wt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||X(e)?S.createElement(wt,{key:"labelList-implicit",data:t,content:e}):tn(e)?S.createElement(wt,ua({data:t},e,{key:"labelList-implicit"})):null:null}function C$(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Ze(n,wt).map(function(o,u){return q.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=$$(e.label,t);return[a].concat(w$(i))}wt.renderCallByParent=C$;function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function af(){return af=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},af.apply(this,arguments)}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 Qm(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){I$(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 I$(e,t,r){return t=k$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k$(e){var t=R$(e,"string");return Vn(t)=="symbol"?t:t+""}function R$(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var N$=function(t,r){var n=Ie(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Pi=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/oa,h=s?a:a+o*l,d=fe(r,n,f,h),y=fe(r,n,i,h),v=s?a-o*l:a,p=fe(r,n,f*Math.cos(l*oa),v);return{center:d,circleTangency:y,lineTangency:p,theta:l}},ow=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=N$(o,u),s=o+c,f=fe(r,n,a,o),l=fe(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,` 23 A `).concat(a,",").concat(a,`,0, 24 `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`, 25 `).concat(l.x,",").concat(l.y,` 26 `);if(i>0){var d=fe(r,n,i,o),y=fe(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,` 27 A `).concat(i,",").concat(i,`,0, 28 `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`, 29 `).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},D$=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=Ie(f-s),h=Pi({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=h.circleTangency,y=h.lineTangency,v=h.theta,p=Pi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=p.circleTangency,x=p.lineTangency,w=p.theta,O=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,` 30 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 31 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 32 `):ow({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,` 33 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,` 34 A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,` 35 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,` 36 `);if(i>0){var g=Pi({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=g.circleTangency,A=g.lineTangency,P=g.theta,j=Pi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=j.circleTangency,T=j.lineTangency,M=j.theta,C=c?Math.abs(s-f):Math.abs(s-f)-P-M;if(C<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,` 37 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,` 38 A`).concat(i,",").concat(i,",0,").concat(+(C>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,` 39 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},q$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},uw=function(t){var r=Qm(Qm({},q$),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var d=Q("recharts-sector",h),y=o-a,v=ke(u,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=D$({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):p=ow({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),S.createElement("path",af({},K(r,!0),{className:d,d:p,role:"img"}))};function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function of(){return of=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},of.apply(this,arguments)}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 tg(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){L$(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 L$(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=F$(e,"string");return Xn(t)=="symbol"?t:t+""}function F$(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rg={curveBasisClosed:u1,curveBasisOpen:c1,curveBasis:o1,curveBumpX:K_,curveBumpY:G_,curveLinearClosed:s1,curveLinear:La,curveMonotoneX:l1,curveMonotoneY:f1,curveNatural:h1,curveStep:p1,curveStepAfter:v1,curveStepBefore:d1},Ti=function(t){return t.x===+t.x&&t.y===+t.y},vn=function(t){return t.x},yn=function(t){return t.y},z$=function(t,r){if(X(t))return t;var n="curve".concat(Da(t));return(n==="curveMonotone"||n==="curveBump")&&r?rg["".concat(n).concat(r==="vertical"?"Y":"X")]:rg[n]||La},W$=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,c=t.connectNulls,s=c===void 0?!1:c,f=z$(n,u),l=s?a.filter(function(v){return Ti(v)}):a,h;if(Array.isArray(o)){var d=s?o.filter(function(v){return Ti(v)}):o,y=l.map(function(v,p){return tg(tg({},v),{},{base:d[p]})});return u==="vertical"?h=gi().y(yn).x1(vn).x0(function(v){return v.base.x}):h=gi().x(vn).y1(yn).y0(function(v){return v.base.y}),h.defined(Ti).curve(f),h(y)}return u==="vertical"&&D(o)?h=gi().y(yn).x1(vn).x0(o):D(o)?h=gi().x(vn).y1(yn).y0(o):h=o0().x(vn).y(yn),h.defined(Ti).curve(f),h(l)},Tr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?W$(t):i;return q.createElement("path",of({},K(t,!1),ki(t),{className:Q("recharts-curve",r),d:o,ref:a}))},Us={exports:{}},Hs,ng;function U$(){if(ng)return Hs;ng=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Hs=e,Hs}var Ks,ig;function H$(){if(ig)return Ks;ig=1;var e=U$();function t(){}function r(){}return r.resetWarningCache=t,Ks=function(){function n(o,u,c,s,f,l){if(l!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Ks}var ag;function K$(){return ag||(ag=1,Us.exports=H$()()),Us.exports}var G$=K$();const ae=ue(G$),{getOwnPropertyNames:V$,getOwnPropertySymbols:X$}=Object,{hasOwnProperty:Y$}=Object.prototype;function Gs(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Ei(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function Z$(e){return e?.[Symbol.toStringTag]}function og(e){return V$(e).concat(X$(e))}const J$=Object.hasOwn||((e,t)=>Y$.call(e,t));function pr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Q$="__v",eC="__o",tC="_owner",{getOwnPropertyDescriptor:ug,keys:cg}=Object;function rC(e,t){return e.byteLength===t.byteLength&&ca(new Uint8Array(e),new Uint8Array(t))}function nC(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function iC(e,t){return e.byteLength===t.byteLength&&ca(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function aC(e,t){return pr(e.getTime(),t.getTime())}function oC(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function uC(e,t){return e===t}function sg(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const s=t.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,d=u.value;if(r.equals(h[0],d[0],c,l,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const cC=pr;function sC(e,t,r){const n=cg(e);let i=n.length;if(cg(t).length!==i)return!1;for(;i-- >0;)if(!cw(e,t,r,n[i]))return!1;return!0}function mn(e,t,r){const n=og(e);let i=n.length;if(og(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!cw(e,t,r,a)||(o=ug(e,a),u=ug(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function lC(e,t){return pr(e.valueOf(),t.valueOf())}function fC(e,t){return e.source===t.source&&e.flags===t.flags}function lg(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const c=t.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function ca(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function hC(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function cw(e,t,r,n){return(n===tC||n===eC||n===Q$)&&(e.$$typeof||t.$$typeof)?!0:J$(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const pC="[object ArrayBuffer]",dC="[object Arguments]",vC="[object Boolean]",yC="[object DataView]",mC="[object Date]",gC="[object Error]",bC="[object Map]",xC="[object Number]",wC="[object Object]",OC="[object RegExp]",_C="[object Set]",AC="[object String]",SC={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
39]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},PC="[object URL]",TC=Object.prototype.toString;function EC({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:d,unknownTagComparators:y}){return function(p,b,x){if(p===b)return!0;if(p==null||b==null)return!1;const w=typeof p;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(p,b,x):w==="function"?a(p,b,x):!1;const O=p.constructor;if(O!==b.constructor)return!1;if(O===Object)return c(p,b,x);if(Array.isArray(p))return t(p,b,x);if(O===Date)return n(p,b,x);if(O===RegExp)return f(p,b,x);if(O===Map)return o(p,b,x);if(O===Set)return l(p,b,x);const m=TC.call(p);if(m===mC)return n(p,b,x);if(m===OC)return f(p,b,x);if(m===bC)return o(p,b,x);if(m===_C)return l(p,b,x);if(m===wC)return typeof p.then!="function"&&typeof b.then!="function"&&c(p,b,x);if(m===PC)return d(p,b,x);if(m===gC)return i(p,b,x);if(m===dC)return c(p,b,x);if(SC[m])return h(p,b,x);if(m===pC)return e(p,b,x);if(m===yC)return r(p,b,x);if(m===vC||m===xC||m===AC)return s(p,b,x);if(y){let g=y[m];if(!g){const _=Z$(p);_&&(g=y[_])}if(g)return g(p,b,x)}return!1}}function jC({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:rC,areArraysEqual:r?mn:nC,areDataViewsEqual:iC,areDatesEqual:aC,areErrorsEqual:oC,areFunctionsEqual:uC,areMapsEqual:r?Gs(sg,mn):sg,areNumbersEqual:cC,areObjectsEqual:r?mn:sC,arePrimitiveWrappersEqual:lC,areRegExpsEqual:fC,areSetsEqual:r?Gs(lg,mn):lg,areTypedArraysEqual:r?Gs(ca,mn):ca,areUrlsEqual:hC,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Ei(n.areArraysEqual),a=Ei(n.areMapsEqual),o=Ei(n.areObjectsEqual),u=Ei(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function MC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function $C({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=e?new WeakMap:void 0,meta:f}=r();return t(u,c,{cache:s,equals:n,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const CC=Lt();Lt({strict:!0});Lt({circular:!0});Lt({circular:!0,strict:!0});Lt({createInternalComparator:()=>pr});Lt({strict:!0,createInternalComparator:()=>pr});Lt({circular:!0,createInternalComparator:()=>pr});Lt({circular:!0,createInternalComparator:()=>pr,strict:!0});function Lt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=jC(e),o=EC(a),u=r?r(o):MC(o);return $C({circular:t,comparator:o,createState:n,equals:u,strict:i})}function IC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function fg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):IC(i)};requestAnimationFrame(n)}function uf(e){"@babel/helpers - typeof";return uf=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},uf(e)}function kC(e){return qC(e)||DC(e)||NC(e)||RC()}function RC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 40In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e,t){if(e){if(typeof e=="string")return hg(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 hg(e,t)}}function hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function DC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qC(e){if(Array.isArray(e))return e}function LC(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=kC(o),c=u[0],s=u.slice(1);if(typeof c=="number"){fg(i.bind(null,s),c);return}i(c),fg(i.bind(null,s));return}uf(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function 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 pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 58,450 bytes, lines 40-58
40t%2?pg(Object(r),!0).forEach(function(n){sw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sw(e,t,r){return t=BC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BC(e){var t=FC(e,"string");return Yn(t)==="symbol"?t:String(t)}function FC(e,t){if(Yn(e)!=="object"||e===null)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 zC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},WC=function(t){return t},UC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Sn=function(t,r){return Object.keys(r).reduce(function(n,i){return dg(dg({},n),{},sw({},i,t(i,r[i])))},{})},vg=function(t,r,n){return t.map(function(i){return"".concat(UC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function HC(e,t){return VC(e)||GC(e,t)||lw(e,t)||KC()}function KC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function VC(e){if(Array.isArray(e))return e}function XC(e){return JC(e)||ZC(e)||lw(e)||YC()}function YC(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 42In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lw(e,t){if(e){if(typeof e=="string")return cf(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 cf(e,t)}}function ZC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JC(e){if(Array.isArray(e))return cf(e)}function cf(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 sa=1e-4,fw=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},hw=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},yg=function(t,r){return function(n){var i=fw(t,r);return hw(i,n)}},QC=function(t,r){return function(n){var i=fw(t,r),a=[].concat(XC(i.map(function(o,u){return o*u}).slice(1)),[0]);return hw(a,n)}},mg=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),f=HC(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=yg(i,o),h=yg(a,u),d=QC(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var m=l(w)-x,g=d(w);if(Math.abs(m-x)<sa||g<sa)return h(w);w=y(w-m/g)}return h(w)};return v.isStepper=!1,v},eI=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,h){var d=-(f-l)*n,y=h*a,v=h+(d-y)*u/1e3,p=h*u/1e3+f;return Math.abs(p-l)<sa&&Math.abs(v)<sa?[l,0]:[p,v]};return c.isStepper=!0,c.dt=u,c},tI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return mg(i);case"spring":return eI();default:if(i.split("(")[0]==="cubic-bezier")return mg(i)}return typeof i=="function"?i:null};function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function gg(e){return iI(e)||nI(e)||pw(e)||rI()}function rI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iI(e){if(Array.isArray(e))return lf(e)}function bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){sf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sf(e,t,r){return t=aI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aI(e){var t=oI(e,"string");return Zn(t)==="symbol"?t:String(t)}function oI(e,t){if(Zn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uI(e,t){return lI(e)||sI(e,t)||pw(e,t)||cI()}function cI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pw(e,t){if(e){if(typeof e=="string")return lf(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 lf(e,t)}}function lf(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 sI(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 lI(e){if(Array.isArray(e))return e}var la=function(t,r,n){return t+(r-t)*n},ff=function(t){var r=t.from,n=t.to;return r!==n},fI=function e(t,r,n){var i=Sn(function(a,o){if(ff(o)){var u=t(o.from,o.to,o.velocity),c=uI(u,2),s=c[0],f=c[1];return Me(Me({},o),{},{from:s,velocity:f})}return o},r);return n<1?Sn(function(a,o){return ff(o)?Me(Me({},o),{},{velocity:la(o.velocity,i[a].velocity,n),from:la(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const hI=(function(e,t,r,n,i){var a=zC(e,t),o=a.reduce(function(p,b){return Me(Me({},p),{},sf({},b,[e[b],t[b]]))},{}),u=a.reduce(function(p,b){return Me(Me({},p),{},sf({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return Sn(function(b,x){return x.from},u)},d=function(){return!Object.values(u).filter(ff).length},y=function(b){s||(s=b);var x=b-s,w=x/r.dt;u=fI(r,u,w),i(Me(Me(Me({},e),t),h())),s=b,d()||(c=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=Sn(function(m,g){return la.apply(void 0,gg(g).concat([r(x)]))},o);if(i(Me(Me(Me({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=Sn(function(m,g){return la.apply(void 0,gg(g).concat([r(1)]))},o);i(Me(Me(Me({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});function qr(e){"@babel/helpers - typeof";return qr=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},qr(e)}var pI=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function dI(e,t){if(e==null)return{};var r=vI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Vs(e){return bI(e)||gI(e)||mI(e)||yI()}function yI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mI(e,t){if(e){if(typeof e=="string")return hf(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 hf(e,t)}}function gI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bI(e){if(Array.isArray(e))return hf(e)}function hf(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 xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wn(e,t,r){return t=dw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wI(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,dw(n.key),n)}}function OI(e,t,r){return t&&wI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dw(e){var t=_I(e,"string");return qr(t)==="symbol"?t:String(t)}function _I(e,t){if(qr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AI(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&&pf(e,t)}function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pf(e,t)}function SI(e){var t=PI();return function(){var n=fa(e),i;if(t){var a=fa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return df(this,i)}}function df(e,t){if(t&&(qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vf(e)}function vf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fa(e){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fa(e)}var ft=(function(e){AI(r,e);var t=SI(r);function r(n,i){var a;xI(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(vf(a)),a.changeStyle=a.changeStyle.bind(vf(a)),!u||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),df(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},df(a);a.state={style:c?wn({},c,s):s}}else a.state={style:{}};return a}return OI(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var d={style:c?wn({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(d);return}if(!(CC(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||s?l:i.to;if(this.state&&h){var p={style:c?wn({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(p)}this.runAnimation(et(et({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,d=hI(o,u,tI(s),c,this.changeStyle),y=function(){a.stopJSAnimation=d()};this.manager.start([h,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,h=l===void 0?0:l,d=function(v,p,b){if(b===0)return v;var x=p.duration,w=p.easing,O=w===void 0?"ease":w,m=p.style,g=p.properties,_=p.onAnimationEnd,A=b>0?o[b-1]:p,P=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Vs(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:x,easing:O}),x]);var j=vg(P,x,O),E=et(et(et({},A.style),m),{},{transition:j});return[].concat(Vs(v),[E,x,_]).filter(WC)};return this.manager.start([c].concat(Vs(o.reduce(d,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=LC());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof d=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?wn({},u,c):c,p=vg(Object.keys(v),o,s);y.start([f,a,et(et({},v),{},{transition:p}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=dI(i,pI),s=q.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(d){var y=d.props,v=y.style,p=v===void 0?{}:v,b=y.className,x=q.cloneElement(d,et(et({},c),{},{style:et(et({},p),f),className:b}));return x};return s===1?l(q.Children.only(a)):S.createElement("div",null,q.Children.map(a,function(h){return l(h)}))}}]),r})(q.PureComponent);ft.displayName="Animate";ft.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ft.propTypes={from:ae.oneOfType([ae.object,ae.string]),to:ae.oneOfType([ae.object,ae.string]),attributeName:ae.string,duration:ae.number,begin:ae.number,easing:ae.oneOfType([ae.string,ae.func]),steps:ae.arrayOf(ae.shape({duration:ae.number.isRequired,style:ae.object.isRequired,easing:ae.oneOfType([ae.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ae.func]),properties:ae.arrayOf("string"),onAnimationEnd:ae.func})),children:ae.oneOfType([ae.node,ae.func]),isActive:ae.bool,canBegin:ae.bool,onAnimationEnd:ae.func,shouldReAnimate:ae.bool,onAnimationStart:ae.func,onAnimationReStart:ae.func};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 ha(){return ha=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},ha.apply(this,arguments)}function TI(e,t){return $I(e)||MI(e,t)||jI(e,t)||EI()}function EI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jI(e,t){if(e){if(typeof e=="string")return wg(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 wg(e,t)}}function wg(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 MI(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 $I(e){if(Array.isArray(e))return e}function Og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _g(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Og(Object(r),!0).forEach(function(n){CI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CI(e,t,r){return t=II(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function II(e){var t=kI(e,"string");return Jn(t)=="symbol"?t:t+""}function kI(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)}var Ag=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,d=4;h<d;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`, 47 `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`, 48 `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`, 49 `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,` 50 A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,` 51 L `).concat(t+n-c*y,",").concat(r,` 52 A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,` 53 L `).concat(t+n,",").concat(r+i-u*y,` 54 A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,` 55 L `).concat(t+c*y,",").concat(r+i,` 56 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},RI=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},NI={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rh=function(t){var r=_g(_g({},NI),t),n=q.useRef(),i=q.useState(-1),a=TI(i,2),o=a[0],u=a[1];q.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var 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=Q("recharts-rectangle",d);return x?S.createElement(ft,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,g=O.height,_=O.x,A=O.y;return S.createElement(ft,{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},S.createElement("path",ha({},K(r,!0),{className:w,d:Ag(_,A,m,g,h),ref:n})))}):S.createElement("path",ha({},K(r,!0),{className:w,d:Ag(c,s,f,l,h)}))},DI=["points","className","baseLinePoints","connectNulls"];function br(){return br=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},br.apply(this,arguments)}function qI(e,t){if(e==null)return{};var r=LI(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 LI(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 Sg(e){return WI(e)||zI(e)||FI(e)||BI()}function BI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FI(e,t){if(e){if(typeof e=="string")return yf(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 yf(e,t)}}function zI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WI(e){if(Array.isArray(e))return yf(e)}function yf(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 Pg=function(t){return t&&t.x===+t.x&&t.y===+t.y},UI=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Pg(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Pg(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Pn=function(t,r){var n=UI(t);r&&(n=[n.reduce(function(a,o){return[].concat(Sg(a),Sg(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,c){return"".concat(o).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},HI=function(t,r,n){var i=Pn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Pn(r.reverse(),n).slice(1))},KI=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=qI(t,DI);if(!r||!r.length)return null;var u=Q("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",s=HI(r,i,a);return S.createElement("g",{className:u},S.createElement("path",br({},K(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),c?S.createElement("path",br({},K(o,!0),{fill:"none",d:Pn(r,a)})):null,c?S.createElement("path",br({},K(o,!0),{fill:"none",d:Pn(i,a)})):null)}var f=Pn(r,a);return S.createElement("path",br({},K(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function mf(){return mf=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},mf.apply(this,arguments)}var ro=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Q("recharts-dot",a);return r===+r&&n===+n&&i===+i?q.createElement("circle",mf({},K(t,!1),ki(t),{className:o,cx:r,cy:n,r:i})):null};function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}var GI=["x","y","top","left","width","height","className"];function gf(){return gf=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},gf.apply(this,arguments)}function Tg(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 VI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(r),!0).forEach(function(n){XI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XI(e,t,r){return t=YI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YI(e){var t=ZI(e,"string");return Qn(t)=="symbol"?t:t+""}function ZI(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JI(e,t){if(e==null)return{};var r=QI(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 QI(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 ek=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},tk=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=JI(t,GI),p=VI({x:n,y:a,top:u,left:s,width:l,height:d},v);return!D(n)||!D(a)||!D(l)||!D(d)||!D(u)||!D(s)?null:S.createElement("path",gf({},K(p,!0),{className:Q("recharts-cross",y),d:ek(n,a,l,d,u,s)}))},Xs,Eg;function rk(){if(Eg)return Xs;Eg=1;var e=Za(),t=jx(),r=pt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Xs=n,Xs}var nk=rk();const ik=ue(nk);var Ys,jg;function ak(){if(jg)return Ys;jg=1;var e=Za(),t=pt(),r=Mx();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Ys=n,Ys}var ok=ak();const uk=ue(ok);var ck=["cx","cy","angle","ticks","axisLine"],sk=["ticks","tick","angle","tickFormatter","stroke"];function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function Tn(){return Tn=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},Tn.apply(this,arguments)}function Mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mg(Object(r),!0).forEach(function(n){no(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $g(e,t){if(e==null)return{};var r=lk(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 lk(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 fk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yw(n.key),n)}}function hk(e,t,r){return t&&Cg(e.prototype,t),r&&Cg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pk(e,t,r){return t=pa(t),dk(e,vw()?Reflect.construct(t,r||[],pa(e).constructor):t.apply(e,r))}function dk(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vk(e)}function vk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vw=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}function yk(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&&bf(e,t)}function bf(e,t){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bf(e,t)}function no(e,t,r){return t=yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yw(e){var t=mk(e,"string");return Lr(t)=="symbol"?t:t+""}function mk(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var io=(function(e){function t(){return fk(this,t),pk(this,t,arguments)}return yk(t,e),hk(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,c=a.cy;return fe(u,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=ik(u,function(f){return f.coordinate||0}),s=uk(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:s.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=n.axisLine,s=$g(n,ck),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=fe(i,a,f[0],o),h=fe(i,a,f[1],o),d=Ht(Ht(Ht({},K(s,!1)),{},{fill:"none"},K(c,!1)),{},{x1:l.x,y1:l.y,x2:h.x,y2:h.y});return S.createElement("line",Tn({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,c=i.tickFormatter,s=i.stroke,f=$g(i,sk),l=this.getTickTextAnchor(),h=K(f,!1),d=K(o,!1),y=a.map(function(v,p){var b=n.getTickValueCoord(v),x=Ht(Ht(Ht(Ht({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(b.x,", ").concat(b.y,")")},h),{},{stroke:"none",fill:s},d),{},{index:p},b),{},{payload:v});return S.createElement(te,Tn({className:Q("recharts-polar-radius-axis-tick",iw(o)),key:"tick-".concat(v.coordinate)},ir(n.props,v,p)),t.renderTickItem(o,x,c?c(v.value,p):v.value))});return S.createElement(te,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:S.createElement(te,{className:Q("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Ee.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):X(n)?o=n(i):o=S.createElement(ar,Tn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(q.PureComponent);no(io,"displayName","PolarRadiusAxis");no(io,"axisType","radiusAxis");no(io,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});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 Xt(){return Xt=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},Xt.apply(this,arguments)}function Ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ig(Object(r),!0).forEach(function(n){ao(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kg(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,gw(n.key),n)}}function bk(e,t,r){return t&&kg(e.prototype,t),r&&kg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xk(e,t,r){return t=da(t),wk(e,mw()?Reflect.construct(t,r||[],da(e).constructor):t.apply(e,r))}function wk(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 Ok(e)}function Ok(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mw=function(){return!!e})()}function da(e){return da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},da(e)}function _k(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&&xf(e,t)}function xf(e,t){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xf(e,t)}function ao(e,t,r){return t=gw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gw(e){var t=Ak(e,"string");return Br(t)=="symbol"?t:t+""}function Ak(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(t==="string"?String:Number)(e)}var Sk=Math.PI/180,Rg=1e-5,oo=(function(e){function t(){return gk(this,t),xk(this,t,arguments)}return _k(t,e),bk(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,c=i.orientation,s=i.tickSize,f=s||8,l=fe(a,o,u,n.coordinate),h=fe(a,o,u+(c==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Sk),o;return a>Rg?o=i==="outer"?"start":"end":a<-Rg?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,c=n.axisLineType,s=Kt(Kt({},K(this.props,!1)),{},{fill:"none"},K(u,!1));if(c==="circle")return S.createElement(ro,Xt({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(h){return fe(i,a,o,h.coordinate)});return S.createElement(KI,Xt({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,c=i.tickFormatter,s=i.stroke,f=K(this.props,!1),l=K(o,!1),h=Kt(Kt({},f),{},{fill:"none"},K(u,!1)),d=a.map(function(y,v){var p=n.getTickLineCoord(y),b=n.getTickTextAnchor(y),x=Kt(Kt(Kt({textAnchor:b},f),{},{stroke:"none",fill:s},l),{},{index:v,payload:y,x:p.x2,y:p.y2});return S.createElement(te,Xt({className:Q("recharts-polar-angle-axis-tick",iw(o)),key:"tick-".concat(y.coordinate)},ir(n.props,y,v)),u&&S.createElement("line",Xt({className:"recharts-polar-angle-axis-tick-line"},h,p)),o&&t.renderTickItem(o,x,c?c(y.value,v):y.value))});return S.createElement(te,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(te,{className:Q("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):X(n)?o=n(i):o=S.createElement(ar,Xt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(q.PureComponent);ao(oo,"displayName","PolarAngleAxis");ao(oo,"axisType","angleAxis");ao(oo,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Zs,Ng;function Pk(){if(Ng)return Zs;Ng=1;var e=j0(),t=e(Object.getPrototypeOf,Object);return Zs=t,Zs}var Js,Dg;function Tk(){if(Dg)return Js;Dg=1;var e=St(),t=Pk(),r=Pt(),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 Js=s,Js}var Ek=Tk();const jk=ue(Ek);var Qs,qg;function Mk(){if(qg)return Qs;qg=1;var e=St(),t=Pt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Qs=n,Qs}var $k=Mk();const Ck=ue($k);function ei(e){"@babel/helpers - typeof";return ei=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},ei(e)}function va(){return va=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},va.apply(this,arguments)}function Ik(e,t){return Dk(e)||Nk(e,t)||Rk(e,t)||kk()}function kk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rk(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 Nk(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 Dk(e){if(Array.isArray(e))return e}function Bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bg(Object(r),!0).forEach(function(n){qk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qk(e,t,r){return t=Lk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lk(e){var t=Bk(e,"string");return ei(t)=="symbol"?t:t+""}function Bk(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(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},Fk={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zk=function(t){var r=Fg(Fg({},Fk),t),n=q.useRef(),i=q.useState(-1),a=Ik(i,2),o=a[0],u=a[1];q.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=Q("recharts-trapezoid",d);return b?S.createElement(ft,{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,m=w.lowerWidth,g=w.height,_=w.x,A=w.y;return S.createElement(ft,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},S.createElement("path",va({},K(r,!0),{className:x,d:zg(_,A,O,m,g),ref:n})))}):S.createElement("g",null,S.createElement("path",va({},K(r,!0),{className:x,d:zg(c,s,f,l,h)})))},Wk=["option","shapeType","propTransformer","activeClassName","isActive"];function ti(e){"@babel/helpers - typeof";return ti=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},ti(e)}function Uk(e,t){if(e==null)return{};var r=Hk(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 Hk(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 ya(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){Kk(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 Kk(e,t,r){return t=Gk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gk(e){var t=Vk(e,"string");return ti(t)=="symbol"?t:t+""}function Vk(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xk(e,t){return ya(ya({},t),e)}function Yk(e,t){return e==="symbols"}function Ug(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(Rh,r);case"trapezoid":return S.createElement(zk,r);case"sector":return S.createElement(uw,r);case"symbols":if(Yk(t))return S.createElement(eh,r);break;default:return null}}function Zk(e){return q.isValidElement(e)?e.props:e}function bw(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Xk:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=Uk(e,Wk),s;if(q.isValidElement(t))s=q.cloneElement(t,ya(ya({},c),Zk(t)));else if(X(t))s=t(c);else if(jk(t)&&!Ck(t)){var f=i(t,c);s=S.createElement(Ug,{shapeType:r,elementProps:f})}else{var l=c;s=S.createElement(Ug,{shapeType:r,elementProps:l})}return u?S.createElement(te,{className:o},s):s}function uo(e,t){return t!=null&&"trapezoids"in e.props}function co(e,t){return t!=null&&"sectors"in e.props}function ri(e,t){return t!=null&&"points"in e.props}function Jk(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 Qk(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function eR(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function tR(e,t){var r;return uo(e,t)?r=Jk:co(e,t)?r=Qk:ri(e,t)&&(r=eR),r}function rR(e,t){var r;return uo(e,t)?r="trapezoids":co(e,t)?r="sectors":ri(e,t)&&(r="points"),r}function nR(e,t){if(uo(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(co(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 ri(e,t)?t.payload:{}}function iR(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=rR(r,t),a=nR(r,t),o=n.filter(function(c,s){var f=Nr(a,c),l=r.props[i].filter(function(y){var v=tR(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 Ci;function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function xr(){return xr=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},xr.apply(this,arguments)}function Hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hg(Object(r),!0).forEach(function(n){Xe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kg(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,ww(n.key),n)}}function oR(e,t,r){return t&&Kg(e.prototype,t),r&&Kg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uR(e,t,r){return t=ma(t),cR(e,xw()?Reflect.construct(t,r||[],ma(e).constructor):t.apply(e,r))}function cR(e,t){if(t&&(Fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sR(e)}function sR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xw=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(e)}function lR(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&&wf(e,t)}function wf(e,t){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wf(e,t)}function Xe(e,t,r){return t=ww(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ww(e){var t=fR(e,"string");return Fr(t)=="symbol"?t:t+""}function fR(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Et=(function(e){function t(r){var n;return aR(this,t),n=uR(this,t,[r]),Xe(n,"pieRef",null),Xe(n,"sectorRefs",[]),Xe(n,"id",nn("recharts-pie-")),Xe(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),X(i)&&i()}),Xe(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),X(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return lR(t,e),oR(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,c=a.dataKey,s=a.valueKey,f=K(this.props,!1),l=K(o,!1),h=K(u,!1),d=o&&o.offsetRadius||20,y=n.map(function(v,p){var b=(v.startAngle+v.endAngle)/2,x=fe(v.cx,v.cy,v.outerRadius+d,b),w=se(se(se(se({},f),v),{},{stroke:"none"},l),{},{index:p,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=se(se(se(se({},f),v),{},{fill:"none",stroke:v.fill},h),{},{index:p,points:[fe(v.cx,v.cy,v.outerRadius,b),x]}),m=c;return Z(c)&&Z(s)?m="value":Z(c)&&(m=s),S.createElement(te,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(p)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,Ae(v,m)))});return S.createElement(te,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,c=a.inactiveShape;return n.map(function(s,f){if(s?.startAngle===0&&s?.endAngle===0&&n.length!==1)return null;var l=i.isActiveIndex(f),h=c&&i.hasActiveIndex()?c:null,d=l?o:h,y=se(se({},s),{},{stroke:u?s.fill:s.stroke,tabIndex:-1});return S.createElement(te,xr({ref:function(p){p&&!i.sectorRefs.includes(p)&&i.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},ir(i.props,s,f),{key:"sector-".concat(s?.startAngle,"-").concat(s?.endAngle,"-").concat(s.midAngle,"-").concat(f)}),S.createElement(bw,xr({option:d,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,s=i.animationEasing,f=i.animationId,l=this.state,h=l.prevSectors,d=l.prevIsAnimationActive;return S.createElement(ft,{begin:u,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,p=[],b=a&&a[0],x=b.startAngle;return a.forEach(function(w,O){var m=h&&h[O],g=O>0?He(w,"paddingAngle",0):0;if(m){var _=qe(m.endAngle-m.startAngle,w.endAngle-w.startAngle),A=se(se({},w),{},{startAngle:x+g,endAngle:x+_(v)+g});p.push(A),x=A.endAngle}else{var P=w.endAngle,j=w.startAngle,E=qe(0,P-j),T=E(v),M=se(se({},w),{},{startAngle:x+g,endAngle:x+T+g});p.push(M),x=M.endAngle}}),S.createElement(te,null,n.renderSectorsStatically(p))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Nr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,c=i.label,s=i.cx,f=i.cy,l=i.innerRadius,h=i.outerRadius,d=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!D(s)||!D(f)||!D(l)||!D(h))return null;var v=Q("recharts-pie",u);return S.createElement(te,{tabIndex:this.props.rootTabIndex,className:v,ref:function(b){n.pieRef=b}},this.renderSectors(),c&&this.renderLabels(o),Ee.renderCallByParent(this.props,null,!1),(!d||y)&&wt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(X(n))return n(i);var o=Q("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(Tr,xr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(X(n)&&(o=n(i),S.isValidElement(o)))return o;var u=Q("recharts-pie-label-text",typeof n!="boolean"&&!X(n)?n.className:"");return S.createElement(ar,xr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(q.PureComponent);Ci=Et;Xe(Et,"displayName","Pie");Xe(Et,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!lr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Xe(Et,"parseDeltaAngle",function(e,t){var r=Ie(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Xe(Et,"getRealPieData",function(e){var t=e.data,r=e.children,n=K(e,!1),i=Ze(r,Ua);return t&&t.length?t.map(function(a,o){return se(se(se({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return se(se({},n),a.props)}):[]});Xe(Et,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=nw(i,a),u=n+ke(e.cx,i,i/2),c=r+ke(e.cy,a,a/2),s=ke(e.innerRadius,o,0),f=ke(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:c,innerRadius:s,outerRadius:f,maxRadius:l}});Xe(Et,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?se(se({},t.type.defaultProps),t.props):t.props,i=Ci.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,c=n.paddingAngle,s=n.dataKey,f=n.nameKey,l=n.valueKey,h=n.tooltipType,d=Math.abs(n.minAngle),y=Ci.parseCoordinateOfPie(n,r),v=Ci.parseDeltaAngle(o,u),p=Math.abs(v),b=s;Z(s)&&Z(l)?(it(!1,`Use "dataKey" to specify the value of pie,
59 the props "valueKey" will be deprecated in 1.1.0`),b="value"):Z(s)&&(it(!1,`Use "dataKey" to specify the value of pie, 60 the props "valueKey" will be deprecated in 1.1.0`),b=l);var x=i.filter(function(A){return Ae(A,b,0)!==0}).length,w=(p>=360?x:x-1)*c,O=p-x*d-w,m=i.reduce(function(A,P){var j=Ae(P,b,0);return A+(D(j)?j:0)},0),g;if(m>0){var _;g=i.map(function(A,P){var j=Ae(A,b,0),E=Ae(A,f,P),T=(D(j)?j:0)/m,M;P?M=_.endAngle+Ie(v)*c*(j!==0?1:0):M=o;var C=M+Ie(v)*((j!==0?d:0)+T*O),$=(M+C)/2,k=(y.innerRadius+y.outerRadius)/2,R=[{name:E,value:j,payload:A,dataKey:b,type:h}],L=fe(y.cx,y.cy,k,$);return _=se(se(se({percent:T,cornerRadius:a,name:E,tooltipPayload:R,midAngle:$,middleRadius:k,tooltipPosition:L},A),y),{},{value:Ae(A,b),startAngle:M,endAngle:C,payload:A,paddingAngle:Ie(v)*c}),_})}return se(se({},y),{},{sectors:g,data:i})});var el,Gg;function hR(){if(Gg)return el;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 el=r,el}var tl,Vg;function Ow(){if(Vg)return tl;Vg=1;var e=H0(),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 tl=n,tl}var rl,Xg;function pR(){if(Xg)return rl;Xg=1;var e=hR(),t=Wa(),r=Ow();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 rl=n,rl}var nl,Yg;function dR(){if(Yg)return nl;Yg=1;var e=pR(),t=e();return nl=t,nl}var vR=dR();const ga=ue(vR);function ni(e){"@babel/helpers - typeof";return ni=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},ni(e)}function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){_w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _w(e,t,r){return t=yR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yR(e){var t=mR(e,"string");return ni(t)=="symbol"?t:t+""}function mR(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gR=["Webkit","Moz","O","ms"],bR=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=gR.reduce(function(a,o){return Jg(Jg({},a),{},_w({},o+n,r))},{});return i[t]=r,i};function zr(e){"@babel/helpers - typeof";return zr=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},zr(e)}function ba(){return ba=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},ba.apply(this,arguments)}function Qg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function il(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qg(Object(r),!0).forEach(function(n){ze(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eb(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,Sw(n.key),n)}}function wR(e,t,r){return t&&eb(e.prototype,t),r&&eb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OR(e,t,r){return t=xa(t),_R(e,Aw()?Reflect.construct(t,r||[],xa(e).constructor):t.apply(e,r))}function _R(e,t){if(t&&(zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AR(e)}function AR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Aw=function(){return!!e})()}
vendor: 119,273 bytes, lines 60-64
60function xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(e)}function SR(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&&Of(e,t)}function Of(e,t){return Of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Of(e,t)}function ze(e,t,r){return t=Sw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sw(e){var t=PR(e,"string");return zr(t)=="symbol"?t:t+""}function PR(e,t){if(zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TR=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=_n().domain(ga(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}},tb=function(t){return t.changedTouches&&!!t.changedTouches.length},Wr=(function(e){function t(r){var n;return xR(this,t),n=OR(this,t,[r]),ze(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),ze(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),ze(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),ze(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ze(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ze(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ze(n,"handleSlideDragStart",function(i){var a=tb(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 SR(t,e),wR(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=Ae(a[n],u,n);return X(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=tb(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,m=w.endIndex,g=function(){var A=p.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||u<c&&m===A||o==="endX"&&(u>c?m%v===0:O%v===0)||u>c&&m===A};this.setState(ze(ze({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&g()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(ze({},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 S.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=q.Children.only(s);return l?S.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=il(il({},K(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 S.createElement(te,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(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 S.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 S.createElement(te,{className:"recharts-brush-texts"},S.createElement(ar,ba({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},y),this.getTextOfTick(i)),S.createElement(ar,ba({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||!D(u)||!D(c)||!D(s)||!D(f)||s<=0||f<=0)return null;var w=Q("recharts-brush",a),O=S.Children.count(o)===1,m=bR("userSelect","none");return S.createElement(te,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},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 S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),S.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),S.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 S.isValidElement(n)?a=S.cloneElement(n,i):X(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return il({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?TR({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}}])})(q.PureComponent);ze(Wr,"displayName","Brush");ze(Wr,"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 al,rb;function ER(){if(rb)return al;rb=1;var e=uh();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return al=t,al}var ol,nb;function jR(){if(nb)return ol;nb=1;var e=O0(),t=pt(),r=ER(),n=Be(),i=Wa();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 ol=a,ol}var MR=jR();const $R=ue(MR);var st=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},ul,ib;function CR(){if(ib)return ul;ib=1;var e=B0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return ul=t,ul}var cl,ab;function IR(){if(ab)return cl;ab=1;var e=CR(),t=q0(),r=pt();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 cl=n,cl}var kR=IR();const RR=ue(kR);var sl,ob;function NR(){if(ob)return sl;ob=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 sl=e,sl}var ll,ub;function DR(){if(ub)return ll;ub=1;var e=uh();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return ll=t,ll}var fl,cb;function qR(){if(cb)return fl;cb=1;var e=NR(),t=DR(),r=pt(),n=Be(),i=Wa();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 fl=a,fl}var LR=qR();const Pw=ue(LR);var BR=["x","y"];function ii(e){"@babel/helpers - typeof";return ii=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},ii(e)}function _f(){return _f=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},_f.apply(this,arguments)}function sb(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 gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(r),!0).forEach(function(n){FR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FR(e,t,r){return t=zR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zR(e){var t=WR(e,"string");return ii(t)=="symbol"?t:t+""}function WR(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UR(e,t){if(e==null)return{};var r=HR(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 HR(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 KR(e,t){var r=e.x,n=e.y,i=UR(e,BR),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 gn(gn(gn(gn(gn({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function lb(e){return S.createElement(bw,_f({shapeType:"rectangle",propTransformer:KR,activeClassName:"recharts-active-bar"},e))}var GR=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=D(n)||p_(n);return a?t(n,i):(a||ur(),r)}},VR=["value","background"],Tw;function Ur(e){"@babel/helpers - typeof";return Ur=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},Ur(e)}function XR(e,t){if(e==null)return{};var r=YR(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 YR(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 wa(){return wa=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},wa.apply(this,arguments)}function fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fb(Object(r),!0).forEach(function(n){kt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jw(n.key),n)}}function JR(e,t,r){return t&&hb(e.prototype,t),r&&hb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QR(e,t,r){return t=Oa(t),eN(e,Ew()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function eN(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tN(e)}function tN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ew=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function rN(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&&Af(e,t)}function Af(e,t){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Af(e,t)}function kt(e,t,r){return t=jw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jw(e){var t=nN(e,"string");return Ur(t)=="symbol"?t:t+""}function nN(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vi=(function(e){function t(){var r;ZR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=QR(this,t,[].concat(i)),kt(r,"state",{isAnimationFinished:!1}),kt(r,"id",nn("recharts-bar-")),kt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),kt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return rN(t,e),JR(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=K(this.props,!1);return n&&n.map(function(l,h){var d=h===c,y=d?s:o,v=ge(ge(ge({},f),l),{},{isActive:d,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(te,wa({className:"recharts-bar-rectangle"},ir(i.props,l,h),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(h)}),S.createElement(lb,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 S.createElement(ft,{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=qe(x.x,p.x),O=qe(x.y,p.y),m=qe(x.width,p.width),g=qe(x.height,p.height);return ge(ge({},p),{},{x:w(y),y:O(y),width:m(y),height:g(y)})}if(o==="horizontal"){var _=qe(0,p.height),A=_(y);return ge(ge({},p),{},{y:p.y+p.height-A,height:A})}var P=qe(0,p.width),j=P(y);return ge(ge({},p),{},{width:j})});return S.createElement(te,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||!Nr(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=K(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=XR(s,VR);if(!l)return null;var d=ge(ge(ge(ge(ge({},h),{},{fill:"#eee"},l),c),ir(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return S.createElement(lb,wa({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,to);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:Ae(p,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(te,y,l.map(function(v){return S.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=Q("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,m=Z(v)?this.id:v;return S.createElement(te,{className:b},x||w?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.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,S.createElement(te,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!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}}])})(q.PureComponent);Tw=vi;kt(vi,"displayName","Bar");kt(vi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!lr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});kt(vi,"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=EM(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?ge(ge({},v),r.props):r.props,b=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,g=RM({numericAxis:O}),_=Ze(x,Ua),A=l.map(function(P,j){var E,T,M,C,$,k;s?E=jM(s[f+j],m):(E=Ae(P,b),Array.isArray(E)||(E=[g,E]));var R=GR(w,Tw.defaultProps.minPointSize)(E[1],j);if(y==="horizontal"){var L,B=[o.scale(E[0]),o.scale(E[1])],U=B[0],V=B[1];T=Bm({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:P,index:j}),M=(L=V??U)!==null&&L!==void 0?L:void 0,C=d.size;var z=U-V;if($=Number.isNaN(z)?0:z,k={x:T,y:o.y,width:C,height:o.height},Math.abs(R)>0&&Math.abs($)<Math.abs(R)){var Y=Ie($||R)*(Math.abs(R)-Math.abs($));M-=Y,$+=Y}}else{var he=[a.scale(E[0]),a.scale(E[1])],me=he[0],Fe=he[1];if(T=me,M=Bm({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:P,index:j}),C=Fe-me,$=d.size,k={x:a.x,y:M,width:a.width,height:$},Math.abs(R)>0&&Math.abs(C)<Math.abs(R)){var Ft=Ie(C||R)*(Math.abs(R)-Math.abs(C));C+=Ft}}return ge(ge(ge({},P),{},{x:T,y:M,width:C,height:$,value:s?E:E[1],payload:P,background:k},_&&_[j]&&_[j].props),{},{tooltipPayload:[tw(r,P)],tooltipPosition:{x:T+C/2,y:M+$/2}})});return ge({data:A,layout:y},h)});function ai(e){"@babel/helpers - typeof";return ai=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},ai(e)}function iN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pb(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,Mw(n.key),n)}}function aN(e,t,r){return t&&pb(e.prototype,t),r&&pb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function db(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 rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?db(Object(r),!0).forEach(function(n){so(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function so(e,t,r){return t=Mw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mw(e){var t=oN(e,"string");return ai(t)=="symbol"?t:t+""}function oN(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uN=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=!!We(s,vi);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,m=v.reversed,g="".concat(p).concat(O?"Mirror":""),_,A,P,j,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=b[1]-b[0],M=1/0,C=v.categoricalDomain.sort(y_);if(C.forEach(function(he,me){me>0&&(M=Math.min((he||0)-(C[me-1]||0),M))}),Number.isFinite(M)){var $=M/T,k=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=$*k/2),v.padding==="no-gap"){var R=ke(t.barCategoryGap,$*k),L=$*k/2;_=L-R-(L-R)/k*R}}}i==="xAxis"?A=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?A=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)]:A=v.range,m&&(A=[A[1],A[0]]);var B=Zx(v,a,h),U=B.scale,V=B.realScaleType;U.domain(b).range(A),Jx(U);var z=Qx(U,rt(rt({},v),{},{realScaleType:V}));i==="xAxis"?(E=p==="top"&&!O||p==="bottom"&&O,P=n.left,j=l[g]-E*v.height):i==="yAxis"&&(E=p==="left"&&!O||p==="right"&&O,P=l[g]-E*v.width,j=n.top);var Y=rt(rt(rt({},v),z),{},{realScaleType:V,x:P,y:j,scale:U,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return Y.bandSize=aa(Y,z),!v.hide&&i==="xAxis"?l[g]+=(E?-1:1)*Y.height:v.hide||(l[g]+=(E?-1:1)*Y.width),rt(rt({},d),{},so({},y,Y))},{})},$w=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)}},cN=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return $w({x:r,y:n},{x:i,y:a})},Cw=(function(){function e(t){iN(this,e),this.scale=t}return aN(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)}}])})();so(Cw,"EPS",1e-4);var Nh=function(t){var r=Object.keys(t).reduce(function(n,i){return rt(rt({},n),{},so({},i,Cw.create(t[i])))},{});return rt(rt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return RR(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return Pw(i,function(a,o){return r[o].isInRange(a)})}})};function sN(e){return(e%180+180)%180}var lN=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=sN(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)},hl,vb;function fN(){if(vb)return hl;vb=1;var e=pt(),t=li(),r=Fa();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 hl=n,hl}var pl,yb;function hN(){if(yb)return pl;yb=1;var e=Ow();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return pl=t,pl}var dl,mb;function pN(){if(mb)return dl;mb=1;var e=I0(),t=pt(),r=hN(),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 dl=i,dl}var vl,gb;function dN(){if(gb)return vl;gb=1;var e=fN(),t=pN(),r=e(t);return vl=r,vl}var vN=dN();const yN=ue(vN);var mN=Xb();const gN=ue(mN);var bN=gN(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("")}),Dh=q.createContext(void 0),qh=q.createContext(void 0),Iw=q.createContext(void 0),kw=q.createContext({}),Rw=q.createContext(void 0),Nw=q.createContext(0),Dw=q.createContext(0),bb=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=bN(a);return S.createElement(Dh.Provider,{value:n},S.createElement(qh.Provider,{value:i},S.createElement(kw.Provider,{value:a},S.createElement(Iw.Provider,{value:f},S.createElement(Rw.Provider,{value:o},S.createElement(Nw.Provider,{value:s},S.createElement(Dw.Provider,{value:c},u)))))))},xN=function(){return q.useContext(Rw)},qw=function(t){var r=q.useContext(Dh);r==null&&ur();var n=r[t];return n==null&&ur(),n},wN=function(){var t=q.useContext(Dh);return Ct(t)},ON=function(){var t=q.useContext(qh),r=yN(t,function(n){return Pw(n.domain,Number.isFinite)});return r||Ct(t)},Lw=function(t){var r=q.useContext(qh);r==null&&ur();var n=r[t];return n==null&&ur(),n},_N=function(){var t=q.useContext(Iw);return t},AN=function(){return q.useContext(kw)},Lh=function(){return q.useContext(Dw)},Bh=function(){return q.useContext(Nw)};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 SN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PN(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,Fw(n.key),n)}}function TN(e,t,r){return t&&PN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EN(e,t,r){return t=_a(t),jN(e,Bw()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function jN(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 MN(e)}function MN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bw=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function $N(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sf(e,t)}function Sf(e,t){return Sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sf(e,t)}function xb(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 wb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xb(Object(r),!0).forEach(function(n){Fh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fh(e,t,r){return t=Fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fw(e){var t=CN(e,"string");return Hr(t)=="symbol"?t:t+""}function CN(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function IN(e,t){return DN(e)||NN(e,t)||RN(e,t)||kN()}function kN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RN(e,t){if(e){if(typeof e=="string")return Ob(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 Ob(e,t)}}function Ob(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 NN(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 DN(e){if(Array.isArray(e))return e}function Pf(){return Pf=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},Pf.apply(this,arguments)}var qN=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):X(t)?n=t(r):n=S.createElement("line",Pf({},r,{className:"recharts-reference-line-line"})),n},LN=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(st(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(st(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,m=O.map(function(g){return t.apply(g,{position:o})});return st(s,"discard")&&$R(m,function(g){return!t.isInRange(g)})?null:m}return null};function BN(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=xN(),f=qw(i),l=Lw(a),h=_N();if(!s||!h)return null;it(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Nh({x:f.scale,y:l.scale}),y=Se(t),v=Se(r),p=n&&n.length===2,b=LN(d,y,v,p,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=IN(b,2),w=x[0],O=w.x,m=w.y,g=x[1],_=g.x,A=g.y,P=st(e,"hidden")?"url(#".concat(s,")"):void 0,j=wb(wb({clipPath:P},K(e,!0)),{},{x1:O,y1:m,x2:_,y2:A});return S.createElement(te,{className:Q("recharts-reference-line",u)},qN(o,j),Ee.renderCallByParent(e,cN({x1:O,y1:m,x2:_,y2:A})))}var zh=(function(e){function t(){return SN(this,t),EN(this,t,arguments)}return $N(t,e),TN(t,[{key:"render",value:function(){return S.createElement(BN,this.props)}}])})(S.Component);Fh(zh,"displayName","ReferenceLine");Fh(zh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Tf(){return Tf=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},Tf.apply(this,arguments)}function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}function _b(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 Ab(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_b(Object(r),!0).forEach(function(n){lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zN(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,Ww(n.key),n)}}function WN(e,t,r){return t&&zN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UN(e,t,r){return t=Aa(t),HN(e,zw()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function HN(e,t){if(t&&(Kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KN(e)}function KN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zw=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function GN(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&&Ef(e,t)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ef(e,t)}function lo(e,t,r){return t=Ww(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ww(e){var t=VN(e,"string");return Kr(t)=="symbol"?t:t+""}function VN(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var XN=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Nh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return st(t,"discard")&&!o.isInRange(u)?null:u},fo=(function(e){function t(){return FN(this,t),UN(this,t,arguments)}return GN(t,e),WN(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=Se(i),f=Se(a);if(it(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=XN(this.props);if(!l)return null;var h=l.x,d=l.y,y=this.props,v=y.shape,p=y.className,b=st(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=Ab(Ab({clipPath:b},K(this.props,!0)),{},{cx:h,cy:d});return S.createElement(te,{className:Q("recharts-reference-dot",p)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(S.Component);lo(fo,"displayName","ReferenceDot");lo(fo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});lo(fo,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):X(e)?r=e(t):r=S.createElement(ro,Tf({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function jf(){return jf=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},jf.apply(this,arguments)}function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function Sb(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 Pb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(r),!0).forEach(function(n){ho(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZN(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,Hw(n.key),n)}}function JN(e,t,r){return t&&ZN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QN(e,t,r){return t=Sa(t),eD(e,Uw()?Reflect.construct(t,r||[],Sa(e).constructor):t.apply(e,r))}function eD(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tD(e)}function tD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uw=function(){return!!e})()}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(e)}function rD(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&&Mf(e,t)}function Mf(e,t){return Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mf(e,t)}function ho(e,t,r){return t=Hw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hw(e){var t=nD(e,"string");return Gr(t)=="symbol"?t:t+""}function nD(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iD=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=Nh({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 st(a,"discard")&&(!h.isInRange(d)||!h.isInRange(y))?null:$w(d,y)},po=(function(e){function t(){return YN(this,t),QN(this,t,arguments)}return rD(t,e),JN(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;it(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Se(i),h=Se(a),d=Se(o),y=Se(u),v=this.props.shape;if(!l&&!h&&!d&&!y&&!v)return null;var p=iD(l,h,d,y,this.props);if(!p&&!v)return null;var b=st(this.props,"hidden")?"url(#".concat(f,")"):void 0;return S.createElement(te,{className:Q("recharts-reference-area",c)},t.renderRect(v,Pb(Pb({clipPath:b},K(this.props,!0)),p)),Ee.renderCallByParent(this.props,p))}}])})(S.Component);ho(po,"displayName","ReferenceArea");ho(po,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ho(po,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):X(e)?r=e(t):r=S.createElement(Rh,jf({},t,{className:"recharts-reference-area-rect"})),r});function Kw(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 aD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return lN(n,r)}function oD(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 Pa(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 uD(e,t){return Kw(e,t+1)}function cD(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?.[c];if(y===void 0)return{v:Kw(n,s)};var v=c,p,b=function(){return p===void 0&&(p=r(y,v)),p},x=y.coordinate,w=c===0||Pa(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 oi(e){"@babel/helpers - typeof";return oi=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},oi(e)}function Tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tb(Object(r),!0).forEach(function(n){sD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sD(e,t,r){return t=lD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lD(e){var t=fD(e,"string");return oi(t)=="symbol"?t:t+""}function fD(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hD(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=$e($e({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=$e($e({},d),{},{tickCoord:d.coordinate});var b=Pa(e,d.tickCoord,v,u,c);b&&(c=d.tickCoord-e*(v()/2+i),a[h]=$e($e({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function pD(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=$e($e({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=Pa(e,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-e*(l/2+i),o[u-1]=$e($e({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var g=e*(w.coordinate-e*m()/2-c);o[x]=w=$e($e({},w),{},{tickCoord:g<0?w.coordinate-g*e:w.coordinate})}else o[x]=w=$e($e({},w),{},{tickCoord:w.coordinate});var _=Pa(e,w.tickCoord,m,c,s);_&&(c=w.tickCoord+e*(m()/2+i),o[x]=$e($e({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function Wh(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(D(c)||lr.isSsr)return uD(i,typeof c=="number"&&D(c)?c:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?On(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=X(s)?s(w.value,O):w.value;return d==="width"?aD(On(m,{fontSize:t,letterSpacing:r}),y,l):On(m,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Ie(i[1].coordinate-i[0].coordinate):1,b=oD(a,p,d);return c==="equidistantPreserveStart"?cD(p,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=pD(p,b,v,i,o,c==="preserveStartEnd"):h=hD(p,b,v,i,o),h.filter(function(x){return x.isShow}))}var dD=["viewBox"],vD=["viewBox"],yD=["ticks"];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 wr(){return wr=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},wr.apply(this,arguments)}function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eb(Object(r),!0).forEach(function(n){Uh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yl(e,t){if(e==null)return{};var r=mD(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 mD(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 gD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jb(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,Vw(n.key),n)}}function bD(e,t,r){return t&&jb(e.prototype,t),r&&jb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xD(e,t,r){return t=Ta(t),wD(e,Gw()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function wD(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 OD(e)}function OD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gw=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function _D(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&&$f(e,t)}function $f(e,t){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$f(e,t)}function Uh(e,t,r){return t=Vw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vw(e){var t=AD(e,"string");return Vr(t)=="symbol"?t:t+""}function AD(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)}var sn=(function(e){function t(r){var n;return gD(this,t),n=xD(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return _D(t,e),bD(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=yl(n,dD),u=this.props,c=u.viewBox,s=yl(u,vD);return!_r(a,c)||!_r(o,s)||!_r(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,m=D(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=m;break;case"left":v=p=n.coordinate,y=a+ +!l*u,d=y-w*O,b=d-w*h,x=m;break;case"right":v=p=n.coordinate,y=a+ +l*u,d=y+w*O,b=d+w*h,x=m;break;default:d=y=n.coordinate,p=o+ +l*c,v=p+w*O,x=v+w*h,b=m;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=Oe(Oe(Oe({},K(this.props,!1)),K(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=Oe(Oe({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=Oe(Oe({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return S.createElement("line",wr({},l,{className:Q("recharts-cartesian-axis-line",He(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,d=Wh(Oe(Oe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=K(this.props,!1),b=K(f,!1),x=Oe(Oe({},p),{},{fill:"none"},K(c,!1)),w=d.map(function(O,m){var g=o.getTickLineCoord(O),_=g.line,A=g.tick,P=Oe(Oe(Oe(Oe({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:s},b),A),{},{index:m,payload:O,visibleTicksCount:d.length,tickFormatter:l});return S.createElement(te,wr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},ir(o.props,O,m)),c&&S.createElement("line",wr({},x,_,{className:Q("recharts-cartesian-axis-tick-line",He(c,"className"))})),f&&t.renderTickItem(f,P,"".concat(X(l)?l(O.value,m):O.value).concat(h||"")))});return S.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=yl(l,yD),y=h;return X(c)&&(y=h&&h.length>0?c(this.props):c(d)),o<=0||u<=0||!y||!y.length?null:S.createElement(te,{className:Q("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=Q(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,Oe(Oe({},i),{},{className:u})):X(n)?o=n(Oe(Oe({},i),{},{className:u})):o=S.createElement(ar,wr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(q.Component);Uh(sn,"displayName","CartesianAxis");Uh(sn,"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 SD=["x1","y1","x2","y2","key"],PD=["offset"];function cr(e){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(e)}function Mb(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 Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(n){TD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TD(e,t,r){return t=ED(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ED(e){var t=jD(e,"string");return cr(t)=="symbol"?t:t+""}function jD(e,t){if(cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qt(){return Qt=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},Qt.apply(this,arguments)}function $b(e,t){if(e==null)return{};var r=MD(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 MD(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 $D=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 S.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Xw(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(X(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=$b(t,SD),s=K(c,!1);s.offset;var f=$b(s,PD);r=S.createElement("line",Qt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function CD(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=Ce(Ce({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Xw(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function ID(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=Ce(Ce({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Xw(i,s)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function kD(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 S.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 S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function RD(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 S.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 S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var ND=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Yx(Wh(Ce(Ce(Ce({},sn.defaultProps),n),{},{ticks:gt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},DD=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Yx(Wh(Ce(Ce(Ce({},sn.defaultProps),n),{},{ticks:gt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},mr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Yw(e){var t,r,n,i,a,o,u=Lh(),c=Bh(),s=AN(),f=Ce(Ce({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:mr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:mr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:mr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:mr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:mr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:mr.verticalFill,x:D(e.x)?e.x:s.left,y:D(e.y)?e.y:s.top,width:D(e.width)?e.width:s.width,height:D(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=wN(),w=ON();if(!D(d)||d<=0||!D(y)||y<=0||!D(l)||l!==+l||!D(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||ND,m=f.horizontalCoordinatesGenerator||DD,g=f.horizontalPoints,_=f.verticalPoints;if((!g||!g.length)&&X(m)){var A=p&&p.length,P=m({yAxis:w?Ce(Ce({},w),{},{ticks:A?p:w.ticks}):void 0,width:u,height:c,offset:s},A?!0:v);it(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(cr(P),"]")),Array.isArray(P)&&(g=P)}if((!_||!_.length)&&X(O)){var j=b&&b.length,E=O({xAxis:x?Ce(Ce({},x),{},{ticks:j?b:x.ticks}):void 0,width:u,height:c,offset:s},j?!0:v);it(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(cr(E),"]")),Array.isArray(E)&&(_=E)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement($D,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),S.createElement(CD,Qt({},f,{offset:s,horizontalPoints:g,xAxis:x,yAxis:w})),S.createElement(ID,Qt({},f,{offset:s,verticalPoints:_,xAxis:x,yAxis:w})),S.createElement(kD,Qt({},f,{horizontalPoints:g})),S.createElement(RD,Qt({},f,{verticalPoints:_})))}Yw.displayName="CartesianGrid";var qD=["layout","type","stroke","connectNulls","isRange","ref"],LD=["key"],Zw;function Xr(e){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(e)}function Jw(e,t){if(e==null)return{};var r=BD(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 BD(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 er(){return er=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},er.apply(this,arguments)}function Cb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cb(Object(r),!0).forEach(function(n){ut(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ib(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,eO(n.key),n)}}function zD(e,t,r){return t&&Ib(e.prototype,t),r&&Ib(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function WD(e,t,r){return t=Ea(t),UD(e,Qw()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function UD(e,t){if(t&&(Xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HD(e)}function HD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qw=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function KD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cf(e,t)}function Cf(e,t){return Cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cf(e,t)}function ut(e,t,r){return t=eO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eO(e){var t=GD(e,"string");return Xr(t)=="symbol"?t:t+""}function GD(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bt=(function(e){function t(){var r;FD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=WD(this,t,[].concat(i)),ut(r,"state",{isAnimationFinished:!0}),ut(r,"id",nn("recharts-area-")),ut(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),X(o)&&o()}),ut(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),X(o)&&o()}),r}return KD(t,e),zD(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var c=this.props,s=c.dot,f=c.points,l=c.dataKey,h=K(this.props,!1),d=K(s,!0),y=f.map(function(p,b){var x=Mt(Mt(Mt({key:"dot-".concat(b),r:3},h),d),{},{index:b,cx:p.x,cy:p.y,dataKey:l,value:p.value,payload:p.payload,points:f});return t.renderDotItem(s,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(te,er({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].x,s=o[o.length-1].x,f=n*Math.abs(c-s),l=It(o.map(function(h){return h.y||0}));return D(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(It(a.map(function(h){return h.y||0})),l)),D(l)?S.createElement("rect",{x:c<s?c:c-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].y,s=o[o.length-1].y,f=n*Math.abs(c-s),l=It(o.map(function(h){return h.x||0}));return D(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(It(a.map(function(h){return h.x||0})),l)),D(l)?S.createElement("rect",{x:0,y:c<s?c:c-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,c=u.layout,s=u.type,f=u.stroke,l=u.connectNulls,h=u.isRange;u.ref;var d=Jw(u,qD);return S.createElement(te,{clipPath:a?"url(#clipPath-".concat(o,")"):null},S.createElement(Tr,er({},K(d,!0),{points:n,connectNulls:l,type:s,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&S.createElement(Tr,er({},K(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:n})),f!=="none"&&h&&S.createElement(Tr,er({},K(this.props,!1),{className:"recharts-area-curve",layout:c,type:s,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.baseLine,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,d=o.animationId,y=this.state,v=y.prevPoints,p=y.prevBaseLine;return S.createElement(ft,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t;if(v){var w=v.length/u.length,O=u.map(function(A,P){var j=Math.floor(P*w);if(v[j]){var E=v[j],T=qe(E.x,A.x),M=qe(E.y,A.y);return Mt(Mt({},A),{},{x:T(x),y:M(x)})}return A}),m;if(D(c)&&typeof c=="number"){var g=qe(p,c);m=g(x)}else if(Z(c)||rn(c)){var _=qe(p,0);m=_(x)}else m=c.map(function(A,P){var j=Math.floor(P*w);if(p[j]){var E=p[j],T=qe(E.x,A.x),M=qe(E.y,A.y);return Mt(Mt({},A),{},{x:T(x),y:M(x)})}return A});return a.renderAreaStatically(O,m,n,i)}return S.createElement(te,null,S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),S.createElement(te,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,c=a.isAnimationActive,s=this.state,f=s.prevPoints,l=s.prevBaseLine,h=s.totalLength;return c&&o&&o.length&&(!f&&h>0||!Nr(f,o)||!Nr(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,s=i.top,f=i.left,l=i.xAxis,h=i.yAxis,d=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=Q("recharts-area",c),O=l&&l.allowDataOverflow,m=h&&h.allowDataOverflow,g=O||m,_=Z(p)?this.id:p,A=(n=K(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,j=P===void 0?3:P,E=A.strokeWidth,T=E===void 0?2:E,M=S_(o)?o:{},C=M.clipDot,$=C===void 0?!0:C,k=j*2+T;return S.createElement(te,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(_)},S.createElement("rect",{x:O?f:f-d/2,y:m?s:s-y/2,width:O?d:d*2,height:m?y:y*2})),!$&&S.createElement("clipPath",{id:"clipPath-dots-".concat(_)},S.createElement("rect",{x:f-k/2,y:s-k/2,width:d+k,height:y+k}))):null,x?null:this.renderArea(g,_),(o||x)&&this.renderDots(g,$,_),(!v||b)&&wt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(q.PureComponent);Zw=Bt;ut(Bt,"displayName","Area");ut(Bt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!lr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ut(Bt,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(D(u)&&typeof u=="number")return u;var c=i==="horizontal"?n:r,s=c.scale.domain();if(c.type==="number"){var f=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(s[0],s[1]),0)}return u==="dataMin"?s[0]:u==="dataMax"?s[1]:s[0]});ut(Bt,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,c=e.dataKey,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=t.layout,y=s&&s.length,v=Zw.getBaseValue(t,r,n,i),p=d==="horizontal",b=!1,x=l.map(function(O,m){var g;y?g=s[f+m]:(g=Ae(O,c),Array.isArray(g)?b=!0:g=[v,g]);var _=g[1]==null||y&&Ae(O,c)==null;return p?{x:Lm({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(g[1]),value:g,payload:O}:{x:_?null:n.scale(g[1]),y:Lm({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:g,payload:O}}),w;return y||b?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return p?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=p?i.scale(v):n.scale(v),Mt({points:x,baseLine:w,layout:d,isRange:b},h)});ut(Bt,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(X(e))r=e(t);else{var n=Q("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=Jw(t,LD);r=S.createElement(ro,er({},a,{key:i,className:n}))}return r});function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}function VD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XD(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,nO(n.key),n)}}function YD(e,t,r){return t&&XD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZD(e,t,r){return t=ja(t),JD(e,tO()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function JD(e,t){if(t&&(Yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QD(e)}function QD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tO=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function e2(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&&If(e,t)}function If(e,t){return If=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},If(e,t)}function rO(e,t,r){return t=nO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nO(e){var t=t2(e,"string");return Yr(t)=="symbol"?t:t+""}function t2(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function kf(){return kf=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},kf.apply(this,arguments)}function r2(e){var t=e.xAxisId,r=Lh(),n=Bh(),i=qw(t);return i==null?null:q.createElement(sn,kf({},i,{className:Q("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return gt(o,!0)}}))}var vo=(function(e){function t(){return VD(this,t),ZD(this,t,arguments)}return e2(t,e),YD(t,[{key:"render",value:function(){return q.createElement(r2,this.props)}}])})(q.Component);rO(vo,"displayName","XAxis");rO(vo,"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 Zr(e){"@babel/helpers - typeof";return Zr=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},Zr(e)}function n2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i2(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,oO(n.key),n)}}function a2(e,t,r){return t&&i2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o2(e,t,r){return t=Ma(t),u2(e,iO()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function u2(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c2(e)}function c2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iO=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function s2(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&&Rf(e,t)}function Rf(e,t){return Rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rf(e,t)}function aO(e,t,r){return t=oO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oO(e){var t=l2(e,"string");return Zr(t)=="symbol"?t:t+""}function l2(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Nf(){return Nf=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},Nf.apply(this,arguments)}var f2=function(t){var r=t.yAxisId,n=Lh(),i=Bh(),a=Lw(r);return a==null?null:q.createElement(sn,Nf({},a,{className:Q("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return gt(u,!0)}}))},yo=(function(e){function t(){return n2(this,t),o2(this,t,arguments)}return s2(t,e),a2(t,[{key:"render",value:function(){return q.createElement(f2,this.props)}}])})(q.Component);aO(yo,"displayName","YAxis");aO(yo,"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 kb(e){return v2(e)||d2(e)||p2(e)||h2()}function h2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p2(e,t){if(e){if(typeof e=="string")return Df(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 Df(e,t)}}function d2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function v2(e){if(Array.isArray(e))return Df(e)}function Df(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 qf=function(t,r,n,i,a){var o=Ze(t,zh),u=Ze(t,fo),c=[].concat(kb(o),kb(u)),s=Ze(t,po),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,p){if(p.props[f]===n&&st(p.props,"extendDomain")&&D(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&&st(p.props,"extendDomain")&&D(p.props[d])&&D(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 D(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},h)),h},ml={exports:{}},Rb;function y2(){return Rb||(Rb=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,m;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(m=1,x=new Array(b-1);m<b;m++)x[m-1]=arguments[m];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})(ml)),ml.exports}var m2=y2();const g2=ue(m2);var gl=new g2,bl="recharts.syncMouseEvents";function ui(e){"@babel/helpers - typeof";return ui=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},ui(e)}function b2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x2(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,uO(n.key),n)}}function w2(e,t,r){return t&&x2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xl(e,t,r){return t=uO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uO(e){var t=O2(e,"string");return ui(t)=="symbol"?t:t+""}function O2(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _2=(function(){function e(){b2(this,e),xl(this,"activeIndex",0),xl(this,"coordinateList",[]),xl(this,"layout","horizontal")}return w2(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 A2(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&D(n)&&D(i))return!0}return!1}function S2(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 cO(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=fe(t,r,n,i),u=fe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function P2(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=fe(u,c,s,l),d=fe(u,c,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return cO(t);return[{x:n,y:i},{x:a,y:o}]}function ci(e){"@babel/helpers - typeof";return ci=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},ci(e)}function Nb(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 ji(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nb(Object(r),!0).forEach(function(n){T2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T2(e,t,r){return t=E2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E2(e){var t=j2(e,"string");return ci(t)=="symbol"?t:t+""}function j2(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M2(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=Tr;if(h==="ScatterChart")y=o,v=tk;else if(h==="BarChart")y=S2(l,o,c,f),v=Rh;else if(l==="radial"){var p=cO(o),b=p.cx,x=p.cy,w=p.radius,O=p.startAngle,m=p.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=uw}else y={points:P2(l,o,c)},v=Tr;var g=ji(ji(ji(ji({stroke:"#ccc",pointerEvents:"none"},c),y),K(d,!1)),{},{payload:u,payloadIndex:s,className:Q("recharts-tooltip-cursor",d.className)});return q.isValidElement(d)?q.cloneElement(d,g):q.createElement(v,g)}var $2=["item"],C2=["children","className","width","height","style","compact","title","desc"];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 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 Db(e,t){return R2(e)||k2(e,t)||lO(e,t)||I2()}function I2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 63In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k2(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 R2(e){if(Array.isArray(e))return e}function qb(e,t){if(e==null)return{};var r=N2(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 N2(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 D2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q2(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,fO(n.key),n)}}function L2(e,t,r){return t&&q2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function B2(e,t,r){return t=$a(t),F2(e,sO()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function F2(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 z2(e)}function z2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sO=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function W2(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&&Lf(e,t)}function Lf(e,t){return Lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lf(e,t)}function Qr(e){return K2(e)||H2(e)||lO(e)||U2()}function U2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lO(e,t){if(e){if(typeof e=="string")return Bf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bf(e,t)}}function H2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function K2(e){if(Array.isArray(e))return Bf(e)}function Bf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lb(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?Lb(Object(r),!0).forEach(function(n){G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G(e,t,r){return t=fO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fO(e){var t=G2(e,"string");return Jr(t)=="symbol"?t:t+""}function G2(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(t==="string"?String:Number)(e)}var V2={xAxis:["bottom","top"],yAxis:["left","right"]},X2={width:"100%",height:"100%"},hO={x:0,y:0};function Mi(e){return e}var Y2=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Z2=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),fe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return I(I(I({},i),fe(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return hO},mo=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(Qr(u),Qr(s)):u},[]);return o.length>0?o:t&&t.length&&D(i)&&D(a)?t.slice(i,a+1):[]};function pO(e){return e==="number"?[0,"auto"]:void 0}var Ff=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=mo(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=Ii(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Qr(c),[tw(s,h)]):c},[])},Bb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Y2(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=OM(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=Ff(t,r,f,l),d=Z2(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},J2=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=Xx(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,m=b.allowDuplicatedCategory,g=b.scale,_=b.ticks,A=b.includeHidden,P=b[o];if(y[P])return y;var j=mo(t.data,{graphicalItems:i.filter(function(z){var Y,he=o in z.props?z.props[o]:(Y=z.type.defaultProps)===null||Y===void 0?void 0:Y[o];return he===P}),dataStartIndex:c,dataEndIndex:s}),E=j.length,T,M,C;A2(b.domain,O,x)&&(T=tf(b.domain,null,O),d&&(x==="number"||g!=="auto")&&(C=An(j,w,"category")));var $=pO(x);if(!T||T.length===0){var k,R=(k=b.domain)!==null&&k!==void 0?k:$;if(w){if(T=An(j,w,x),x==="category"&&d){var L=v_(T);m&&L?(M=T,T=ga(0,E)):m||(T=Wm(R,T,v).reduce(function(z,Y){return z.indexOf(Y)>=0?z:[].concat(Qr(z),[Y])},[]))}else if(x==="category")m?T=T.filter(function(z){return z!==""&&!Z(z)}):T=Wm(R,T,v).reduce(function(z,Y){return z.indexOf(Y)>=0||Y===""||Z(Y)?z:[].concat(Qr(z),[Y])},[]);else if(x==="number"){var B=TM(j,i.filter(function(z){var Y,he,me=o in z.props?z.props[o]:(Y=z.type.defaultProps)===null||Y===void 0?void 0:Y[o],Fe="hide"in z.props?z.props.hide:(he=z.type.defaultProps)===null||he===void 0?void 0:he.hide;return me===P&&(A||!Fe)}),w,a,f);B&&(T=B)}d&&(x==="number"||g!=="auto")&&(C=An(j,w,"category"))}else d?T=ga(0,E):u&&u[P]&&u[P].hasStack&&x==="number"?T=h==="expand"?[0,1]:ew(u[P].stackGroups,c,s):T=Vx(j,i.filter(function(z){var Y=o in z.props?z.props[o]:z.type.defaultProps[o],he="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return Y===P&&(A||!he)}),x,f,!0);if(x==="number")T=qf(l,T,P,a,_),R&&(T=tf(R,T,O));else if(x==="category"&&R){var U=R,V=T.every(function(z){return U.indexOf(z)>=0});V&&(T=U)}}return I(I({},y),{},G({},P,I(I({},b),{},{axisType:a,domain:T,categoricalDomain:C,duplicateDomain:M,originalDomain:(p=b.domain)!==null&&p!==void 0?p:$,isCategorical:d,layout:f})))},{})},Q2=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=mo(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,y=Xx(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=pO("number");if(!p[w]){v++;var m;return y?m=ga(0,d):u&&u[w]&&u[w].hasStack?(m=ew(u[w].stackGroups,c,s),m=qf(l,m,w,a)):(m=tf(O,Vx(h,n.filter(function(g){var _,A,P=o in g.props?g.props[o]:(_=g.type.defaultProps)===null||_===void 0?void 0:_[o],j="hide"in g.props?g.props.hide:(A=g.type.defaultProps)===null||A===void 0?void 0:A.hide;return P===w&&!j}),"number",f),i.defaultProps.allowDataOverflow),m=qf(l,m,w,a)),I(I({},p),{},G({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:He(V2,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},eq=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=J2(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=Q2(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},tq=function(t){var r=Ct(t),n=gt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:ch(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:aa(r,n)}},Fb=function(t){var r=t.children,n=t.defaultShowTooltip,i=We(r,Wr),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}},rq=function(t){return!t||!t.length?!1:t.some(function(r){var n=bt(r&&r.type);return n&&n.indexOf("Bar")>=0})},zb=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"}},nq=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=We(l,Wr),y=We(l,Ar),v=Object.keys(c).reduce(function(m,g){var _=c[g],A=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},G({},A,m[A]+_.width)):m},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(m,g){var _=o[g],A=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},G({},A,He(m,"".concat(A))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),b=I(I({},p),v),x=b.bottom;d&&(b.bottom+=d.props.height||Wr.defaultProps.height),y&&r&&(b=SM(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)})},iq=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},dO=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,m=x.offset,g=x.updateId,_=x.dataStartIndex,A=x.dataEndIndex,P=b.barSize,j=b.layout,E=b.barGap,T=b.barCategoryGap,M=b.maxBarSize,C=zb(j),$=C.numericAxisName,k=C.cateAxisName,R=rq(w),L=[];return w.forEach(function(B,U){var V=mo(b.data,{graphicalItems:[B],dataStartIndex:_,dataEndIndex:A}),z=B.type.defaultProps!==void 0?I(I({},B.type.defaultProps),B.props):B.props,Y=z.dataKey,he=z.maxBarSize,me=z["".concat($,"Id")],Fe=z["".concat(k,"Id")],Ft={},Ne=c.reduce(function(zt,Wt){var go=x["".concat(Wt.axisType,"Map")],Hh=z["".concat(Wt.axisType,"Id")];go&&go[Hh]||Wt.axisType==="zAxis"||ur();var Kh=go[Hh];return I(I({},zt),{},G(G({},Wt.axisType,Kh),"".concat(Wt.axisType,"Ticks"),gt(Kh)))},Ft),F=Ne[k],J=Ne["".concat(k,"Ticks")],ee=O&&O[me]&&O[me].hasStack&&NM(B,O[me].stackGroups),N=bt(B.type).indexOf("Bar")>=0,ve=aa(F,J),re=[],xe=R&&_M({barSize:P,stackGroups:O,totalSize:iq(Ne,k)});if(N){var we,De,jt=Z(he)?M:he,dr=(we=(De=aa(F,J,!0))!==null&&De!==void 0?De:jt)!==null&&we!==void 0?we:0;re=AM({barGap:E,barCategoryGap:T,bandSize:dr!==ve?dr:ve,sizeList:xe[Fe],maxBarSize:jt}),dr!==ve&&(re=re.map(function(zt){return I(I({},zt),{},{position:I(I({},zt.position),{},{offset:zt.position.offset-dr/2})})}))}var yi=B&&B.type&&B.type.getComposedData;yi&&L.push({props:I(I({},yi(I(I({},Ne),{},{displayedData:V,props:b,dataKey:Y,item:B,bandSize:ve,barPosition:re,offset:m,stackedData:ee,layout:j,dataStartIndex:_,dataEndIndex:A}))),{},G(G(G({key:B.key||"item-".concat(U)},$,Ne[$]),k,Ne[k]),"animationId",g)),childIndex:E_(B,b.children),item:B})}),L},d=function(b,x){var w=b.props,O=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!rd({props:w}))return null;var _=w.children,A=w.layout,P=w.stackOffset,j=w.data,E=w.reverseStackOrder,T=zb(A),M=T.numericAxisName,C=T.cateAxisName,$=Ze(_,n),k=kM(j,$,"".concat(M,"Id"),"".concat(C,"Id"),P,E),R=c.reduce(function(z,Y){var he="".concat(Y.axisType,"Map");return I(I({},z),{},G({},he,eq(w,I(I({},Y),{},{graphicalItems:$,stackGroups:Y.axisType===M&&k,dataStartIndex:O,dataEndIndex:m}))))},{}),L=nq(I(I({},R),{},{props:w,graphicalItems:$}),x?.legendBBox);Object.keys(R).forEach(function(z){R[z]=f(w,R[z],L,z.replace("Map",""),r)});var B=R["".concat(C,"Map")],U=tq(B),V=h(w,I(I({},R),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:$,stackGroups:k,offset:L}));return I(I({formattedGraphicalItems:V,graphicalItems:$,offset:L,stackGroups:k},U),R)},y=(function(p){function b(x){var w,O,m;return D2(this,b),m=B2(this,b,[x]),G(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),G(m,"accessibilityManager",new _2),G(m,"handleLegendBBoxUpdate",function(g){if(g){var _=m.state,A=_.dataStartIndex,P=_.dataEndIndex,j=_.updateId;m.setState(I({legendBBox:g},d({props:m.props,dataStartIndex:A,dataEndIndex:P,updateId:j},I(I({},m.state),{},{legendBBox:g}))))}}),G(m,"handleReceiveSyncEvent",function(g,_,A){if(m.props.syncId===g){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),G(m,"handleBrushChange",function(g){var _=g.startIndex,A=g.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var P=m.state.updateId;m.setState(function(){return I({dataStartIndex:_,dataEndIndex:A},d({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:P},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),G(m,"handleMouseEnter",function(g){var _=m.getMouseInfo(g);if(_){var A=I(I({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseEnter;X(P)&&P(A,g)}}),G(m,"triggeredAfterMouseMove",function(g){var _=m.getMouseInfo(g),A=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseMove;X(P)&&P(A,g)}),G(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),G(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),G(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),G(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;X(A)&&A(_,g)}),G(m,"handleOuterEvent",function(g){var _=T_(g),A=He(m.props,"".concat(_));if(_&&X(A)){var P,j;/.*touch.*/i.test(_)?j=m.getMouseInfo(g.changedTouches[0]):j=m.getMouseInfo(g),A((P=j)!==null&&P!==void 0?P:{},g)}}),G(m,"handleClick",function(g){var _=m.getMouseInfo(g);if(_){var A=I(I({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var P=m.props.onClick;X(P)&&P(A,g)}}),G(m,"handleMouseDown",function(g){var _=m.props.onMouseDown;if(X(_)){var A=m.getMouseInfo(g);_(A,g)}}),G(m,"handleMouseUp",function(g){var _=m.props.onMouseUp;if(X(_)){var A=m.getMouseInfo(g);_(A,g)}}),G(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),G(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),G(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),G(m,"handleDoubleClick",function(g){var _=m.props.onDoubleClick;if(X(_)){var A=m.getMouseInfo(g);_(A,g)}}),G(m,"handleContextMenu",function(g){var _=m.props.onContextMenu;if(X(_)){var A=m.getMouseInfo(g);_(A,g)}}),G(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&gl.emit(bl,m.props.syncId,g,m.eventEmitterSymbol)}),G(m,"applySyncEvent",function(g){var _=m.props,A=_.layout,P=_.syncMethod,j=m.state.updateId,E=g.dataStartIndex,T=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(I({dataStartIndex:E,dataEndIndex:T},d({props:m.props,dataStartIndex:E,dataEndIndex:T,updateId:j},m.state)));else if(g.activeTooltipIndex!==void 0){var M=g.chartX,C=g.chartY,$=g.activeTooltipIndex,k=m.state,R=k.offset,L=k.tooltipTicks;if(!R)return;if(typeof P=="function")$=P(L,g);else if(P==="value"){$=-1;for(var B=0;B<L.length;B++)if(L[B].value===g.activeLabel){$=B;break}}var U=I(I({},R),{},{x:R.left,y:R.top}),V=Math.min(M,U.x+U.width),z=Math.min(C,U.y+U.height),Y=L[$]&&L[$].value,he=Ff(m.state,m.props.data,$),me=L[$]?{x:A==="horizontal"?L[$].coordinate:V,y:A==="horizontal"?z:L[$].coordinate}:hO;m.setState(I(I({},g),{},{activeLabel:Y,activeCoordinate:me,activePayload:he,activeTooltipIndex:$}))}else m.setState(g)}),G(m,"renderCursor",function(g){var _,A=m.state,P=A.isTooltipActive,j=A.activeCoordinate,E=A.activePayload,T=A.offset,M=A.activeTooltipIndex,C=A.tooltipAxisBandSize,$=m.getTooltipEventType(),k=(_=g.props.active)!==null&&_!==void 0?_:P,R=m.props.layout,L=g.key||"_recharts-cursor";return S.createElement(M2,{key:L,activeCoordinate:j,activePayload:E,activeTooltipIndex:M,chartName:r,element:g,isActive:k,layout:R,offset:T,tooltipAxisBandSize:C,tooltipEventType:$})}),G(m,"renderPolarAxis",function(g,_,A){var P=He(g,"type.axisType"),j=He(m.state,"".concat(P,"Map")),E=g.type.defaultProps,T=E!==void 0?I(I({},E),g.props):g.props,M=j&&j[T["".concat(P,"Id")]];return q.cloneElement(g,I(I({},M),{},{className:Q(P,M.className),key:g.key||"".concat(_,"-").concat(A),ticks:gt(M,!0)}))}),G(m,"renderPolarGrid",function(g){var _=g.props,A=_.radialLines,P=_.polarAngles,j=_.polarRadius,E=m.state,T=E.radiusAxisMap,M=E.angleAxisMap,C=Ct(T),$=Ct(M),k=$.cx,R=$.cy,L=$.innerRadius,B=$.outerRadius;return q.cloneElement(g,{polarAngles:Array.isArray(P)?P:gt($,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(j)?j:gt(C,!0).map(function(U){return U.coordinate}),cx:k,cy:R,innerRadius:L,outerRadius:B,key:g.key||"polar-grid",radialLines:A})}),G(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,_=m.props,A=_.children,P=_.width,j=_.height,E=m.props.margin||{},T=P-(E.left||0)-(E.right||0),M=Kx({children:A,formattedGraphicalItems:g,legendWidth:T,legendContent:s});if(!M)return null;var C=M.item,$=qb(M,$2);return q.cloneElement(C,I(I({},$),{},{chartWidth:P,chartHeight:j,margin:E,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),G(m,"renderTooltip",function(){var g,_=m.props,A=_.children,P=_.accessibilityLayer,j=We(A,tt);if(!j)return null;var E=m.state,T=E.isTooltipActive,M=E.activeCoordinate,C=E.activePayload,$=E.activeLabel,k=E.offset,R=(g=j.props.active)!==null&&g!==void 0?g:T;return q.cloneElement(j,{viewBox:I(I({},k),{},{x:k.left,y:k.top}),active:R,label:$,payload:R?C:[],coordinate:M,accessibilityLayer:P})}),G(m,"renderBrush",function(g){var _=m.props,A=_.margin,P=_.data,j=m.state,E=j.offset,T=j.dataStartIndex,M=j.dataEndIndex,C=j.updateId;return q.cloneElement(g,{key:g.key||"_recharts-brush",onChange:Si(m.handleBrushChange,g.props.onChange),data:P,x:D(g.props.x)?g.props.x:E.left,y:D(g.props.y)?g.props.y:E.top+E.height+E.brushBottom-(A.bottom||0),width:D(g.props.width)?g.props.width:E.width,startIndex:T,endIndex:M,updateId:"brush-".concat(C)})}),G(m,"renderReferenceElement",function(g,_,A){if(!g)return null;var P=m,j=P.clipPathId,E=m.state,T=E.xAxisMap,M=E.yAxisMap,C=E.offset,$=g.type.defaultProps||{},k=g.props,R=k.xAxisId,L=R===void 0?$.xAxisId:R,B=k.yAxisId,U=B===void 0?$.yAxisId:B;return q.cloneElement(g,{key:g.key||"".concat(_,"-").concat(A),xAxis:T[L],yAxis:M[U],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:j})}),G(m,"renderActivePoints",function(g){var _=g.item,A=g.activePoint,P=g.basePoint,j=g.childIndex,E=g.isRange,T=[],M=_.props.key,C=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,$=C.activeDot,k=C.dataKey,R=I(I({index:j,dataKey:k,cx:A.x,cy:A.y,r:4,fill:kh(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},K($,!1)),ki($));return T.push(b.renderActiveDot($,R,"".concat(M,"-activePoint-").concat(j))),P?T.push(b.renderActiveDot($,I(I({},R),{},{cx:P.x,cy:P.y}),"".concat(M,"-basePoint-").concat(j))):E&&T.push(null),T}),G(m,"renderGraphicChild",function(g,_,A){var P=m.filterFormatItem(g,_,A);if(!P)return null;var j=m.getTooltipEventType(),E=m.state,T=E.isTooltipActive,M=E.tooltipAxis,C=E.activeTooltipIndex,$=E.activeLabel,k=m.props.children,R=We(k,tt),L=P.props,B=L.points,U=L.isRange,V=L.baseLine,z=P.item.type.defaultProps!==void 0?I(I({},P.item.type.defaultProps),P.item.props):P.item.props,Y=z.activeDot,he=z.hide,me=z.activeBar,Fe=z.activeShape,Ft=!!(!he&&T&&R&&(Y||me||Fe)),Ne={};j!=="axis"&&R&&R.props.trigger==="click"?Ne={onClick:Si(m.handleItemMouseEnter,g.props.onClick)}:j!=="axis"&&(Ne={onMouseLeave:Si(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:Si(m.handleItemMouseEnter,g.props.onMouseEnter)});var F=q.cloneElement(g,I(I({},P.props),Ne));function J(Wt){return typeof M.dataKey=="function"?M.dataKey(Wt.payload):null}if(Ft)if(C>=0){var ee,N;if(M.dataKey&&!M.allowDuplicatedCategory){var ve=typeof M.dataKey=="function"?J:"payload.".concat(M.dataKey.toString());ee=Ii(B,ve,$),N=U&&V&&Ii(V,ve,$)}else ee=B?.[C],N=U&&V&&V[C];if(Fe||me){var re=g.props.activeIndex!==void 0?g.props.activeIndex:C;return[q.cloneElement(g,I(I(I({},P.props),Ne),{},{activeIndex:re})),null,null]}if(!Z(ee))return[F].concat(Qr(m.renderActivePoints({item:P,activePoint:ee,basePoint:N,childIndex:C,isRange:U})))}else{var xe,we=(xe=m.getItemByXY(m.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:F},De=we.graphicalItem,jt=De.item,dr=jt===void 0?g:jt,yi=De.childIndex,zt=I(I(I({},P.props),Ne),{},{activeIndex:yi});return[q.cloneElement(dr,zt),null,null]}return U?[F,null,null]:[F,null]}),G(m,"renderCustomized",function(g,_,A){return q.cloneElement(g,I(I({key:"recharts-customized-".concat(A)},m.props),m.state))}),G(m,"renderMap",{CartesianGrid:{handler:Mi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Mi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Mi},YAxis:{handler:Mi},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:nn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=K0(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return W2(b,p),L2(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,g=w.height,_=w.layout,A=We(O,tt);if(A){var P=A.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,E=Ff(this.state,m,P,j),T=this.state.tooltipTicks[P].coordinate,M=(this.state.offset.top+g)/2,C=_==="horizontal",$=C?{x:T,y:M}:{y:T,x:M},k=this.state.formattedGraphicalItems.find(function(L){var B=L.item;return B.type.name==="Scatter"});k&&($=I(I({},$),k.props.points[P].tooltipPosition),E=k.props.points[P].tooltipPayload);var R={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:j,activePayload:E,activeCoordinate:$};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(w){_l([We(w.children,tt)],[We(this.props.children,tt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=We(this.props.children,tt);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),g=dP(m),_={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},A=m.width/O.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,A);if(!P)return null;var j=this.state,E=j.xAxisMap,T=j.yAxisMap,M=this.getTooltipEventType(),C=Bb(this.state,this.props.data,this.props.layout,P);if(M!=="axis"&&E&&T){var $=Ct(E).scale,k=Ct(T).scale,R=$&&$.invert?$.invert(_.chartX):null,L=k&&k.invert?k.invert(_.chartY):null;return I(I({},_),{},{xValue:R,yValue:L},C)}return C?I(I({},_),C):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,_=w/m,A=O/m;if(g==="horizontal"||g==="vertical"){var P=this.state.offset,j=_>=P.left&&_<=P.left+P.width&&A>=P.top&&A<=P.top+P.height;return j?{x:_,y:A}:null}var E=this.state,T=E.angleAxisMap,M=E.radiusAxisMap;if(T&&M){var C=Ct(T);return Km({x:_,y:A},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=We(w,tt),g={};m&&O==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=ki(this.props,this.handleOuterEvent);return I(I({},_),g)}},{key:"addListener",value:function(){gl.on(bl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){gl.removeListener(bl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var g=this.state.formattedGraphicalItems,_=0,A=g.length;_<A;_++){var P=g[_];if(P.item===w||P.props.key===w.key||O===bt(P.item.type)&&m===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,g=O.top,_=O.height,A=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:w},S.createElement("rect",{x:m,y:g,height:_,width:A})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Db(m,2),_=g[0],A=g[1];return I(I({},O),{},G({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Db(m,2),_=g[0],A=g[1];return I(I({},O),{},G({},_,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,g=O.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var P=m[_],j=P.props,E=P.item,T=E.type.defaultProps!==void 0?I(I({},E.type.defaultProps),E.props):E.props,M=bt(E.type);if(M==="Bar"){var C=(j.data||[]).find(function(L){return RI(w,L)});if(C)return{graphicalItem:P,payload:C}}else if(M==="RadialBar"){var $=(j.data||[]).find(function(L){return Km(w,L)});if($)return{graphicalItem:P,payload:$}}else if(uo(P,g)||co(P,g)||ri(P,g)){var k=iR({graphicalItem:P,activeTooltipItem:g,itemData:T.data}),R=T.activeIndex===void 0?k:T.activeIndex;
64return{graphicalItem:I(I({},P),{},{childIndex:R}),payload:ri(P,g)?T.data[k]:P.props.data[k]}}}return null}},{key:"render",value:function(){var w=this;if(!rd(this))return null;var O=this.props,m=O.children,g=O.className,_=O.width,A=O.height,P=O.style,j=O.compact,E=O.title,T=O.desc,M=qb(O,C2),C=K(M,!1);if(j)return S.createElement(bb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(Sl,Or({},C,{width:_,height:A,title:E,desc:T}),this.renderClipPath(),id(m,this.renderMap)));if(this.props.accessibilityLayer){var $,k;C.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,C.role=(k=this.props.role)!==null&&k!==void 0?k:"application",C.onKeyDown=function(L){w.accessibilityManager.keyboardEvent(L)},C.onFocus=function(){w.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return S.createElement(bb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Or({className:Q("recharts-wrapper",g),style:I({position:"relative",cursor:"default",width:_,height:A},P)},R,{ref:function(B){w.container=B}}),S.createElement(Sl,Or({},C,{width:_,height:A,title:E,desc:T,style:X2}),this.renderClipPath(),id(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(q.Component);G(y,"displayName",r),G(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)),G(y,"getDerivedStateFromProps",function(p,b){var x=p.dataKey,w=p.data,O=p.children,m=p.width,g=p.height,_=p.layout,A=p.stackOffset,P=p.margin,j=b.dataStartIndex,E=b.dataEndIndex;if(b.updateId===void 0){var T=Fb(p);return I(I(I({},T),{},{updateId:0},d(I(I({props:p},T),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||m!==b.prevWidth||g!==b.prevHeight||_!==b.prevLayout||A!==b.prevStackOffset||!_r(P,b.prevMargin)){var M=Fb(p),C={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},$=I(I({},Bb(b,w,_)),{},{updateId:b.updateId+1}),k=I(I(I({},M),C),$);return I(I(I({},k),d(I({props:p},k),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:A,prevMargin:P,prevChildren:O})}if(!_l(O,b.prevChildren)){var R,L,B,U,V=We(O,Wr),z=V&&(R=(L=V.props)===null||L===void 0?void 0:L.startIndex)!==null&&R!==void 0?R:j,Y=V&&(B=(U=V.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:E,he=z!==j||Y!==E,me=!Z(w),Fe=me&&!he?b.updateId:b.updateId+1;return I(I({updateId:Fe},d(I(I({props:p},b),{},{updateId:Fe,dataStartIndex:z,dataEndIndex:Y}),b)),{},{prevChildren:O,dataStartIndex:z,dataEndIndex:Y})}return null}),G(y,"renderActiveDot",function(p,b,x){var w;return q.isValidElement(p)?w=q.cloneElement(p,b):X(p)?w=p(b):w=S.createElement(ro,b),S.createElement(te,{className:"recharts-active-dot",key:x},w)});var v=q.forwardRef(function(b,x){return S.createElement(y,Or({},b,{ref:x}))});return v.displayName=y.displayName,v},aq=dO({chartName:"PieChart",GraphicalChild:Et,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:oo},{axisType:"radiusAxis",AxisComp:io}],formatAxisMap:KM,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),oq=dO({chartName:"AreaChart",GraphicalChild:Bt,axisComponents:[{axisType:"xAxis",AxisComp:vo},{axisType:"yAxis",AxisComp:yo}],formatAxisMap:uN});const uq=[{title:"Dashboard de Pagamentos",href:"/sisp/dashboard"}],$i=({title:e,value:t,icon:r,trend:n,color:i,comparisonLabel:a})=>{const u=(s=>{if(s==null||Number.isNaN(s))return{label:"0%",tone:"neutral",icon:Gh};const f=Math.abs(s)<.05?0:s;return f===0?{label:"0%",tone:"neutral",icon:Gh}:f>0?{label:`+${f.toFixed(1)}%`,tone:"positive",icon:OO}:{label:`${f.toFixed(1)}%`,tone:"negative",icon:AO}}
64)(n),c=s=>s==="positive"?"text-emerald-500":s==="negative"?"text-red-500":"text-zinc-500 dark:text-zinc-400";return H.jsxs("div",{className:"flex h-full flex-col justify-between rounded-[2.5rem] border border-zinc-200 bg-card p-8 shadow-2xl dark:border-white/10",children:[H.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[H.jsx("div",{className:`rounded-2xl p-4 ${i}`,children:H.jsx(r,{className:"size-8"})}),H.jsxs("div",{className:"text-right",children:[H.jsxs("span",{className:Hb("inline-flex items-center text-sm font-black",c(u.tone)),children:[u.label," ",H.jsx(u.icon,{className:"ml-1 size-4"})]}),H.jsx("p",{className:"mt-1 text-[10px] font-bold tracking-wider text-zinc-400 uppercase",children:a})]})]}),H.jsxs("div",{children:[H.jsx("p",{className:"mb-1 text-sm font-bold tracking-wider text-zinc-400 uppercase",children:e}),H.jsx("p",{className:"text-3xl font-black text-zinc-900 tabular-nums dark:text-white",children:t})]})]})},cq=e=>e==null||Number.isNaN(e)?"0.0%":`${e.toFixed(1)}%`;function sq({current:e,onChange:t}){const r=[{label:"1 hour",value:"1h"},{label:"6 hours",value:"6h"},{label:"24 hours",value:"24h"},{label:"7 days",value:"7d"},{label:"1 month",value:"1m"}];return H.jsx("div",{className:"flex items-center rounded-xl bg-zinc-100 p-1 dark:bg-zinc-800/50",children:r.map(n=>H.jsx("button",{onClick:()=>t(n.value),className:Hb("rounded-lg px-3 py-1.5 text-xs font-bold transition-all",e===n.value?"bg-primary text-primary-foreground shadow-sm":"text-zinc-500 hover:text-zinc-900 dark:hover:text-white"),children:n.label},n.value))})}const Wb={completed:"#10b981",pending:"#f59e0b",failed:"#ef4444",cancelled:"#71717a"},Ub="#3b82f6";function Hq({stats:e,filters:t}){const r=Object.entries(e.status_distribution).map(([o,u])=>({name:o,value:u})),n=o=>{yO.get("/sisp/dashboard",{filter:{period:o}},{preserveState:!0,preserveScroll:!0,replace:!0})},i=t.filter?.period||"1m",a={"1h":"vs hora anterior","6h":"vs 6 horas anteriores","24h":"vs 24 horas anteriores","7d":"vs 7 dias anteriores","1m":"vs mês anterior"}[i]??"vs perÃodo anterior";return H.jsxs(mO,{breadcrumbs:uq,children:[H.jsx(vO,{title:"Dashboard"}),H.jsxs("div",{className:"space-y-8 p-6",children:[H.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[H.jsxs("div",{children:[H.jsx("h1",{className:"text-4xl font-black tracking-tight text-zinc-900 uppercase dark:text-white",children:"SISP Analytics"}),H.jsx("p",{className:"mt-1 font-medium text-zinc-500",children:"Monitorização de pagamentos e desempenho"})]}),H.jsx(sq,{current:i,onChange:n})]}),H.jsxs("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:[H.jsx($i,{title:"Receita Total",value:e.total_revenue_formatted,icon:PO,color:"bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400",trend:e.revenue_change,comparisonLabel:a}),H.jsx($i,{title:"Transações",value:e.total_transactions_formatted||e.total_transactions,icon:gO,color:"bg-zinc-100 text-zinc-900 dark:bg-white/5 dark:text-white",trend:e.transactions_change,comparisonLabel:a}),H.jsx($i,{title:"Taxa de Sucesso",value:cq(e.success_rate),icon:bO,color:"bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400",trend:e.success_rate_change,comparisonLabel:a}),H.jsx($i,{title:"Falhas / Cancelados",value:e.failed_cancelled_count??0,icon:xO,color:"bg-amber-50 text-amber-600 dark:bg-amber-500/10 dark:text-amber-400",trend:e.failed_cancelled_change,comparisonLabel:a})]}),H.jsxs("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[H.jsxs("div",{className:"rounded-[2.5rem] border border-zinc-200 bg-card p-8 shadow-2xl lg:col-span-2 dark:border-white/10",children:[H.jsx("div",{className:"mb-8 flex items-center justify-between",children:H.jsxs("h2",{className:"flex items-center gap-2 text-xl font-bold tracking-tight uppercase",children:[H.jsx(wO,{className:"size-5 text-red-600"}),"Receita ao Longo do Tempo"]})}),H.jsx("div",{className:"h-[400px] w-full",children:H.jsx(Py,{width:"100%",height:"100%",children:H.jsxs(oq,{data:e.daily_transactions,children:[H.jsx("defs",{children:H.jsxs("linearGradient",{id:"colorRevenue",x1:"0",y1:"0",x2:"0",y2:"1",children:[H.jsx("stop",{offset:"5%",
64stopColor:"#ef4444",stopOpacity:.3}),H.jsx("stop",{offset:"95%",stopColor:"#ef4444",stopOpacity:0})]})}),H.jsx(Yw,{strokeDasharray:"3 3",vertical:!1,stroke:"#E2E8F0",opacity:.5}),H.jsx(vo,{dataKey:"date",axisLine:!1,tickLine:!1,tick:{fill:"#94a3b8",fontSize:10,fontWeight:700},dy:10,minTickGap:30}),H.jsx(yo,{axisLine:!1,tickLine:!1,tick:{fill:"#94a3b8",fontSize:12,fontWeight:700}}),H.jsx(tt,{contentStyle:{backgroundColor:"rgba(255, 255, 255, 0.9)",borderRadius:"16px",border:"none",boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1)",backdropFilter:"blur(8px)"}}),H.jsx(Bt,{type:"monotone",dataKey:"revenue",stroke:"#ef4444",strokeWidth:4,fillOpacity:1,fill:"url(#colorRevenue)"})]})})})]}),H.jsxs("div",{className:"rounded-[2.5rem] border border-zinc-200 bg-card p-8 shadow-2xl dark:border-white/10",children:[H.jsx("h2",{className:"mb-8 text-xl font-bold tracking-tight uppercase",children:"Distribuição de Estado"}),H.jsx("div",{className:"flex h-[300px] w-full items-center justify-center",children:H.jsx(Py,{width:"100%",height:"100%",children:H.jsxs(aq,{children:[H.jsx(Et,{data:r,innerRadius:80,outerRadius:100,cornerRadius:10,paddingAngle:5,dataKey:"value",children:r.map((o,u)=>H.jsx(Ua,{fill:Wb[o.name]||Ub},`cell-${u}`))}),H.jsx(tt,{})]})})}),H.jsx("div",{className:"mt-8 space-y-4",children:r.map(o=>H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx("div",{className:"size-3 rounded-full",style:{backgroundColor:Wb[o.name]||Ub}}),H.jsx("span",{className:"text-sm font-bold tracking-wider text-zinc-500 uppercase",children:o.name})]}),H.jsx("span",{className:"font-bold text-zinc-900 dark:text-white",children:o.value})]},o.name))})]})]})]})]})}export{Hq as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.