vendor: 4,519 bytes, line 1
1import{c as _i,g as le,r as D,a as P,j as w,L as Z1,b as J1}from"./index-iAVlVxvB.js";import{a as ae,S as pe,c as gr,A as Q1,L as ew,E as tw,s as go,C as An,b as nt,d as rw}from"./primitives-B-PYiOq8.js";import{S as Ai,H as nw,T as iw,G as Si}from"./charts-BwJyLGxm.js";import{P as Db,A as Vp}from"./ProteinViewer-CjSM9xM2.js";import{M as aw}from"./Markdown-ByuwkzNG.js";import{c as di,E as ee,T as ow,F as uw}from"./Sidebar-BstMbomz.js";import{c as sw}from"./usePhaseZero-DYXhC0Em.js";import{F as cw}from"./flask-conical-Dut0J8fI.js";const lw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fw=di("chevron-right",lw);const pw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Rb=di("circle-check",pw);const dw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],hw=di("clock",dw);const vw=[["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"}]],yw=di("dollar-sign",vw);const mw=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],gw=di("shield-check",mw);var bo,Xp;function Le(){if(Xp)return bo;Xp=1;var e=Array.isArray;return bo=e,bo}var xo,Yp;function Bb(){if(Yp)return xo;Yp=1;var e=typeof _i=="object"&&_i&&_i.Object===Object&&_i;return xo=e,xo}var wo,Zp;function gt(){if(Zp)return wo;Zp=1;var e=Bb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return wo=r,wo}var Oo,Jp;function hi(){if(Jp)return Oo;Jp=1;var e=gt(),t=e.Symbol;return Oo=t,Oo}var _o,Qp;function bw(){if(Qp)return _o;Qp=1;var e=hi(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return _o=a,_o}var Ao,ed;function xw(){if(ed)return Ao;ed=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ao=r,Ao}var So,td;function Ct(){if(td)return So;td=1;var e=hi(),t=bw(),r=xw(),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,rd;function Mt(){if(rd)return Po;rd=1;function e(t){return t!=null&&typeof t=="object"}return Po=e,Po}var jo,nd;function rn(){if(nd)return jo;nd=1;var e=Ct(),t=Mt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return jo=n,jo}var To,id;function Lf(){if(id)return To;id=1;var e=Le(),t=rn(),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 To=i,To}var Eo,ad;function zt(){if(ad)return Eo;ad=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Eo=e,Eo}var Co,od;function zf(){if(od)return Co;od=1;var e=Ct(),t=zt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return Co=o,Co}var Mo,ud;function ww(){if(ud)return Mo;ud=1;var e=gt(),t=e["__core-js_shared__"];return Mo=t,Mo}var $o,sd;function Ow(){if(sd)return $o;sd=1;var e=ww(),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 $o=r,$o}var Io,cd;function qb(){if(cd)return Io;cd=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,ld;function _w(){if(ld)return ko;ld=1;var e=zf(),t=Ow(),r=zt(),n=qb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(p){if(!r(p)||t(p))return!1;var d=e(p)?f:a;return d.test(n(p))}return ko=l,ko}var No,fd;function Aw(){if(fd)return No;fd=1;function e(t,r){return t?.[r]}return No=e,No}var Do,pd;function pr(){if(pd)return Do;pd=1;var e=_w(),t=Aw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Do=r,Do}var Ro,dd;function qa(){if(dd)return Ro;dd=1;var e=pr(),t=e(Object,"create");return Ro=t,Ro}var Bo,hd;
vendor: 3,873 bytes, line 1
1function Sw(){if(hd)return Bo;hd=1;var e=qa();function t(){this.__data__=e?e(null):{},this.size=0}return Bo=t,Bo}var qo,vd;function Pw(){if(vd)return qo;vd=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return qo=e,qo}var Lo,yd;function jw(){if(yd)return Lo;yd=1;var e=qa(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return Lo=i,Lo}var zo,md;function Tw(){if(md)return zo;md=1;var e=qa(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return zo=n,zo}var Fo,gd;function Ew(){if(gd)return Fo;gd=1;var e=qa(),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 Fo=r,Fo}var Uo,bd;function Cw(){if(bd)return Uo;bd=1;var e=Sw(),t=Pw(),r=jw(),n=Tw(),i=Ew();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Uo=a,Uo}var Wo,xd;function Mw(){if(xd)return Wo;xd=1;function e(){this.__data__=[],this.size=0}return Wo=e,Wo}var Ho,wd;function Ff(){if(wd)return Ho;wd=1;function e(t,r){return t===r||t!==t&&r!==r}return Ho=e,Ho}var Go,Od;function La(){if(Od)return Go;Od=1;var e=Ff();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Go=t,Go}var Ko,_d;function $w(){if(_d)return Ko;_d=1;var e=La(),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 Ko=n,Ko}var Vo,Ad;function Iw(){if(Ad)return Vo;Ad=1;var e=La();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,Sd;function kw(){if(Sd)return Xo;Sd=1;var e=La();function t(r){return e(this.__data__,r)>-1}return Xo=t,Xo}var Yo,Pd;function Nw(){if(Pd)return Yo;Pd=1;var e=La();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,jd;function za(){if(jd)return Zo;jd=1;var e=Mw(),t=$w(),r=Iw(),n=kw(),i=Nw();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Zo=a,Zo}var Jo,Td;function Uf(){if(Td)return Jo;Td=1;var e=pr(),t=gt(),r=e(t,"Map");return Jo=r,Jo}var Qo,Ed;function Dw(){if(Ed)return Qo;Ed=1;var e=Cw(),t=za(),r=Uf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Qo=n,Qo}var eu,Cd;function Rw(){if(Cd)return eu;Cd=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,Md;function Fa(){if(Md)return tu;Md=1;var e=Rw();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,$d;function Bw(){if($d)return ru;$d=1;var e=Fa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ru=t,ru}var nu,Id;function qw(){if(Id)return nu;Id=1;var e=Fa();function t(r){return e(this,r).get(r)}return nu=t,nu}var iu,kd;function Lw(){if(kd)return iu;kd=1;var e=Fa();function t(r){return e(this,r).has(r)}return iu=t,iu}var au,Nd;function zw(){if(Nd)return au;Nd=1;var e=Fa();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,Dd;function Wf(){if(Dd)return ou;Dd=1;var e=Dw(),t=Bw(),r=qw(),n=Lw(),i=zw();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,ou=a,ou}var uu,Rd;
vendor: 7,636 bytes, line 1
1function Lb(){if(Rd)return uu;Rd=1;var e=Wf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,uu=r,uu}var su,Bd;function Fw(){if(Bd)return su;Bd=1;var e=Lb(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return su=r,su}var cu,qd;function Uw(){if(qd)return cu;qd=1;var e=Fw(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return cu=n,cu}var lu,Ld;function Hf(){if(Ld)return lu;Ld=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,zd;function Ww(){if(zd)return fu;zd=1;var e=hi(),t=Hf(),r=Le(),n=rn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return fu=o,fu}var pu,Fd;function zb(){if(Fd)return pu;Fd=1;var e=Ww();function t(r){return r==null?"":e(r)}return pu=t,pu}var du,Ud;function Fb(){if(Ud)return du;Ud=1;var e=Le(),t=Lf(),r=Uw(),n=zb();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return du=i,du}var hu,Wd;function Ua(){if(Wd)return hu;Wd=1;var e=rn();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return hu=t,hu}var vu,Hd;function Gf(){if(Hd)return vu;Hd=1;var e=Fb(),t=Ua();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,Gd;function Ub(){if(Gd)return yu;Gd=1;var e=Gf();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 Hw=Ub();const Ze=le(Hw);var mu,Kd;function Gw(){if(Kd)return mu;Kd=1;function e(t){return t==null}return mu=e,mu}var Kw=Gw();const Q=le(Kw);var gu,Vd;function Vw(){if(Vd)return gu;Vd=1;var e=Ct(),t=Le(),r=Mt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return gu=i,gu}var Xw=Vw();const ur=le(Xw);var Yw=zf();const X=le(Yw);var Zw=zt();const nn=le(Zw);var bu={exports:{}},ne={};var Xd;function Jw(){if(Xd)return ne;Xd=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"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case e:switch(h=h.type,h){case r:case i:case n:case c:case f:return h;default:switch(h=h&&h.$$typeof,h){case u:case o:case s:case p:case l:case a:return h;default:return b}}case t:return b}}}return ne.ContextConsumer=o,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=s,ne.Fragment=r,ne.Lazy=p,ne.Memo=l,ne.Portal=t,ne.Profiler=i,ne.StrictMode=n,ne.Suspense=c,ne.SuspenseList=f,ne.isAsyncMode=function(){return!1},ne.isConcurrentMode=function(){return!1},ne.isContextConsumer=function(h){return v(h)===o},ne.isContextProvider=function(h){return v(h)===a},ne.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ne.isForwardRef=function(h){return v(h)===s},ne.isFragment=function(h){return v(h)===r},ne.isLazy=function(h){return v(h)===p},ne.isMemo=function(h){return v(h)===l},ne.isPortal=function(h){return v(h)===t},ne.isProfiler=function(h){return v(h)===i},ne.isStrictMode=function(h){return v(h)===n},ne.isSuspense=function(h){return v(h)===c},ne.isSuspenseList=function(h){return v(h)===f},ne.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===n||h===c||h===f||h===d||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===l||h.$$typeof===a||h.$$typeof===o||h.$$typeof===s||h.$$typeof===y||h.getModuleId!==void 0)},ne.typeOf=v,ne}var Yd;function Qw(){return Yd||(Yd=1,bu.exports=Jw()),bu.exports}var eO=Qw(),xu,Zd;function Wb(){if(Zd)return xu;Zd=1;var e=Ct(),t=Mt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return xu=n,xu}var wu,Jd;function tO(){if(Jd)return wu;Jd=1;var e=Wb();function t(r){return e(r)&&r!=+r}return wu=t,wu}var rO=tO();const an=le(rO);var nO=Wb();const iO=le(nO);var ut=function(t){return t===0?0:t>0?1:-1},er=function(t){return ur(t)&&t.indexOf("%")===t.length-1},q=function(t){return iO(t)&&!an(t)},aO=function(t){return Q(t)},Ae=function(t){return q(t)||ur(t)},oO=0,on=function(t){var r=++oO;return"".concat(t||"").concat(r)},sr=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!ur(t))return n;var a;if(er(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return an(a)&&(a=n),i&&a>r&&(a=r),a},Rt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},uO=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},Ee=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function qi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ze(n,t))===r})}var sO=function(t,r){return q(t)&&q(r)?t-r:ur(t)&&ur(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Pr(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 cO=["viewBox","children"],lO=["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"],Qd=["points","pathLength"],Ou={svg:cO,polygon:Qd,polyline:Qd},Kf=["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"],Li=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(D.isValidElement(t)&&(n=t.props),!nn(n))return null;var i={};return Object.keys(n).forEach(function(a){Kf.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},fO=function(t,r,n){return function(i){return t(r,n,i),null}},zi=function(t,r,n){if(!nn(t)||wl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Kf.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=fO(o,r,n))}),i},pO=["children"],dO=["children"];function eh(e,t){if(e==null)return{};var r=hO(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 hO(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 th={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"},_t=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},rh=null,_u=null,Vf=function e(t){if(t===rh&&Array.isArray(_u))return _u;var r=[];return D.Children.forEach(t,function(n){Q(n)||(eO.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),_u=r,rh=t,r};function Je(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return _t(i)}):n=[_t(t)],Vf(e).forEach(function(i){var a=Ze(i,"type.displayName")||Ze(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function We(e,t){var r=Je(e,t);return r&&r[0]}var nh=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},vO=["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"],yO=function(t){return t&&t.type&&ur(t.type)&&vO.indexOf(t.type)>=0},Hb=function(t){return t&&Ol(t)==="object"&&"clipDot"in t},mO=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)||lO.includes(r))||n&&Kf.includes(r)},Z=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(D.isValidElement(t)&&(i=t.props),!nn(i))return null;var a={};
1return Object.keys(i).forEach(function(o){var u;mO((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=D.Children.count(t);if(n!==D.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ih(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(!ih(a,o))return!1}return!0},ih=function(t,r){if(Q(t)&&Q(r))return!0;if(!Q(t)&&!Q(r)){var n=t.props||{},i=n.children,a=eh(n,pO),o=r.props||{},u=o.children,s=eh(o,dO);return i&&u?Pr(a,s)&&_l(i,u):!i&&!u?Pr(a,s):!1}return!1},ah=function(t,r){var n=[],i={};return Vf(t).forEach(function(a,o){if(yO(a))n.push(a);else if(a){var u=_t(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},gO=function(t){var r=t&&t.type;return r&&th[r]?th[r]:null},bO=function(t,r){return Vf(r).indexOf(t)},xO=["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 wO(e,t){if(e==null)return{};var r=OO(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 OO(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,s=e.desc,c=wO(e,xO),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return P.createElement("svg",Al({},Z(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,s),t)}var _O=["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 AO(e,t){if(e==null)return{};var r=SO(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 SO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ce=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=AO(e,_O),a=ee("recharts-layer",n);return P.createElement("g",Pl({className:a},Z(i,!0),{ref:t}),r)}),At=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,oh;function PO(){if(oh)return Au;oh=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,uh;function jO(){if(uh)return Su;uh=1;var e=PO();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,sh;function Gb(){if(sh)return Pu;sh=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return Pu=s,Pu}var ju,ch;function TO(){if(ch)return ju;ch=1;function e(t){return t.split("")}return ju=e,ju}var Tu,lh;function EO(){if(lh)return Tu;lh=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=c+"?",v="["+a+"]?",h="(?:"+d+"(?:"+[f,l,p].join("|")+")"+v+y+")*",b=v+y+h,x="(?:"+[f+u+"?",u,l,p,o].join("|")+")",O=RegExp(s+"(?="+s+")|"+x+b,"g");function _(m){return m.match(O)||[]}return Tu=_,Tu}var Eu,fh;function CO(){if(fh)return Eu;fh=1;var e=TO(),t=Gb(),r=EO();function n(i){return t(i)?r(i):e(i)}return Eu=n,Eu}var Cu,ph;function MO(){if(ph)return Cu;ph=1;var e=jO(),t=Gb(),r=CO(),n=zb();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return Cu=i,Cu}var Mu,dh;function $O(){if(dh)return Mu;dh=1;var e=MO(),t=e("toUpperCase");return Mu=t,Mu}var IO=$O();const Wa=le(IO);function se(e){return function(){return e}}const Kb=Math.cos,Fi=Math.sin,st=Math.sqrt,Ui=Math.PI,Ha=2*Ui,jl=Math.PI,Tl=2*jl,Jt=1e-6,kO=Tl-Jt;function Vb(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function NO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Vb;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 DO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Vb:NO(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}
1,${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,p=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>Jt)if(!(Math.abs(l*s-c*f)>Jt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=s*s+c*c,h=d*d+y*y,b=Math.sqrt(v),x=Math.sqrt(p),O=a*Math.tan((jl-Math.acos((v+p-h)/(2*b*x)))/2),_=O/x,m=O/b;Math.abs(_-1)>Jt&&this._append`L${t+_*f},${r+_*l}`,this._append`A${a},${a},0,0,${+(l*d>f*y)},${this._x1=t+m*s},${this._y1=r+m*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Jt||Math.abs(this._y1-f)>Jt)&&this._append`L${c},${f}`,n&&(p<0&&(p=p%Tl+Tl),p>kO?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:p>Jt&&this._append`A${n},${n},0,${+(p>=jl)},${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 Xf(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 DO(t)}function Yf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Xb(e){this._context=e}Xb.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 Ga(e){return new Xb(e)}function Yb(e){return e[0]}function Zb(e){return e[1]}function Jb(e,t){var r=se(!0),n=null,i=Ga,a=null,o=Xf(u);e=typeof e=="function"?e:e===void 0?Yb:se(e),t=typeof t=="function"?t:t===void 0?Zb:se(t);function u(s){var c,f=(s=Yf(s)).length,l,p=!1,d;for(n==null&&(a=i(d=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(l,c,s),+t(l,c,s));if(d)return a=null,d+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:se(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:se(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:se(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Pi(e,t,r){var n=null,i=se(!0),a=null,o=Ga,u=null,s=Xf(c);e=typeof e=="function"?e:e===void 0?Yb:se(+e),t=typeof t=="function"?t:se(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Zb:se(+r);function c(l){var p,d,y,v=(l=Yf(l)).length,h,b=!1,x,O=new Array(v),_=new Array(v);for(a==null&&(u=o(x=s())),p=0;p<=v;++p){if(!(p<v&&i(h=l[p],p,l))===b)if(b=!b)d=p,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=p-1;y>=d;--y)u.point(O[y],_[y]);u.lineEnd(),u.areaEnd()}b&&(O[p]=+e(h,p,l),_[p]=+t(h,p,l),u.point(n?+n(h,p,l):O[p],r?+r(h,p,l):_[p]))}if(x)return u=null,x+""||null}function f(){return Jb().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:se(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:se(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:se(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:se(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:se(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:se(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:se(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class Qb{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 RO(e){return new Qb(e,!0)}function BO(e){return new Qb(e,!1)}const Zf={draw(e,t){const r=st(t/Ui);e.moveTo(r,0),e.arc(0,0,r,0,Ha)}},qO={draw(e,t){const r=st(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()}},e0=st(1/3),LO=e0*2,zO={draw(e,t){const r=st(t/LO),n=r*e0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},FO={draw(e,t){const r=st(t),n=-r/2;e.rect(n,n,r,r)}},UO=.8908130915292852,t0=Fi(Ui/10)/Fi(7*Ui/10),WO=Fi(Ha/10)*t0,HO=-Kb(Ha/10)*t0,GO={draw(e,t){const r=st(t*UO),n=WO*r,i=HO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ha*a/5,u=Kb(o),s=Fi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},$u=st(3),KO={draw(e,t){const r=-st(t/($u*3));e.moveTo(0,r*2),e.lineTo(-$u*r,-r),e.lineTo($u*r,-r),e.closePath()}},Ge=-.5,Ke=st(3)/2,El=1/st(12),VO=(El/2+1)*3,XO={draw(e,t){const r=st(t/VO),n=r/2,i=r*El,a=n,o=r*El+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ge*n-Ke*i,Ke*n+Ge*i),e.lineTo(Ge*a-Ke*o,Ke*a+Ge*o),e.lineTo(Ge*u-Ke*s,Ke*u+Ge*s),e.lineTo(Ge*n+Ke*i,Ge*i-Ke*n),e.lineTo(Ge*a+Ke*o,Ge*o-Ke*a),e.lineTo(Ge*u+Ke*s,Ge*s-Ke*u),e.closePath()}};function YO(e,t){let r=null,n=Xf(i);e=typeof e=="function"?e:se(e||Zf),t=typeof t=="function"?t:se(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:se(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:se(+a),i):t}
vendor: 6,361 bytes, line 1
1,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Wi(){}function Hi(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 r0(e){this._context=e}r0.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:Hi(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:Hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ZO(e){return new r0(e)}function n0(e){this._context=e}n0.prototype={areaStart:Wi,areaEnd:Wi,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:Hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function JO(e){return new n0(e)}function i0(e){this._context=e}i0.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:Hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QO(e){return new i0(e)}function a0(e){this._context=e}a0.prototype={areaStart:Wi,areaEnd:Wi,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 e_(e){return new a0(e)}function hh(e){return e<0?-1:1}function vh(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(hh(a)+hh(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function yh(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 Gi(e){this._context=e}Gi.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,yh(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,yh(this,r=vh(this,e,t)),r);break;default:Iu(this,this._t0,r=vh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function o0(e){this._context=new u0(e)}(o0.prototype=Object.create(Gi.prototype)).point=function(e,t){Gi.prototype.point.call(this,t,e)};function u0(e){this._context=e}u0.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 t_(e){return new Gi(e)}function r_(e){return new o0(e)}function s0(e){this._context=e}s0.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=mh(e),i=mh(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 mh(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 n_(e){return new s0(e)}function Ka(e,t){this._context=e,this._t=t}Ka.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: 19,341 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 i_(e){return new Ka(e,.5)}function a_(e){return new Ka(e,0)}function o_(e){return new Ka(e,1)}function $r(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 Cl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function u_(e,t){return e[t]}function s_(e){const t=[];return t.key=e,t}function c_(){var e=se([]),t=Cl,r=$r,n=u_;function i(a){var o=Array.from(e.apply(this,arguments),s_),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Yf(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:se(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:se(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Cl:typeof a=="function"?a:se(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??$r,i):r},i}function l_(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}$r(e,t)}}function f_(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}$r(e,t)}}function p_(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,p=f[n-1][1]||0,d=(l-p)/2,y=0;y<u;++y){var v=e[t[y]],h=v[n][1]||0,b=v[n-1][1]||0;d+=h-b}s+=l,c+=d*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,$r(e,t)}}function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}var d_=["type","size","sizeType"];function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ml.apply(this,arguments)}function gh(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 bh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(r),!0).forEach(function(n){h_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h_(e,t,r){return t=v_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v_(e){var t=y_(e,"string");return Mn(t)=="symbol"?t:t+""}function y_(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 m_(e,t){if(e==null)return{};var r=g_(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 g_(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 c0={symbolCircle:Zf,symbolCross:qO,symbolDiamond:zO,symbolSquare:FO,symbolStar:GO,symbolTriangle:KO,symbolWye:XO},b_=Math.PI/180,x_=function(t){var r="symbol".concat(Wa(t));return c0[r]||Zf},w_=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*b_;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}},O_=function(t,r){c0["symbol".concat(Wa(t))]=r},Jf=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=m_(t,d_),c=bh(bh({},s),{},{type:n,size:a,sizeType:u}),f=function(){var h=x_(n),b=YO().type(h).size(w_(a,u,n));return b()},l=c.className,p=c.cx,d=c.cy,y=Z(c,!0);return p===+p&&d===+d&&a===+a?P.createElement("path",Ml({},y,{className:ee("recharts-symbols",l),transform:"translate(".concat(p,", ").concat(d,")"),d:f()})):null};Jf.registerSymbol=O_;function Ir(e){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(e)}function $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 xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function __(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xh(Object(r),!0).forEach(function(n){$n(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f0(n.key),n)}}function P_(e,t,r){return t&&S_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function j_(e,t,r){return t=Ki(t),T_(e,l0()?Reflect.construct(t,r||[],Ki(e).constructor):t.apply(e,r))}function T_(e,t){if(t&&(Ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E_(e)}function E_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l0=function(){return!!e})()}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ki(e)}function C_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 $n(e,t,r){return t=f0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f0(e){var t=M_(e,"string");return Ir(t)=="symbol"?t:t+""}function M_(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ve=32,Qf=(function(e){function t(){return A_(this,t),j_(this,t,arguments)}return C_(t,e),P_(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ve/2,o=Ve/6,u=Ve/3,s=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ve,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:s,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 P.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Ve/8,"h").concat(Ve,"v").concat(Ve*3/4,"h").concat(-Ve,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var c=__({},n);return delete c.legendIcon,P.cloneElement(n.legendIcon,c)}return P.createElement(Jf,{fill:s,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,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Ve,height:Ve},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var v=d.formatter||s,h=ee($n($n({"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;At(!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?c:d.color;return P.createElement("li",$l({className:h,style:l,key:"legend-item-".concat(y)},zi(n.props,d,y)),P.createElement(Sl,{width:o,height:o,viewBox:f,style:p},n.renderIcon(d)),P.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 P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(D.PureComponent);$n(Qf,"displayName","Legend");$n(Qf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ku,wh;function $_(){if(wh)return ku;wh=1;var e=za();function t(){this.__data__=new e,this.size=0}return ku=t,ku}var Nu,Oh;function I_(){if(Oh)return Nu;Oh=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Nu=e,Nu}var Du,_h;function k_(){if(_h)return Du;_h=1;function e(t){return this.__data__.get(t)}return Du=e,Du}var Ru,Ah;function N_(){if(Ah)return Ru;Ah=1;function e(t){return this.__data__.has(t)}return Ru=e,Ru}var Bu,Sh;function D_(){if(Sh)return Bu;Sh=1;var e=za(),t=Uf(),r=Wf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return Bu=i,Bu}var qu,Ph;function p0(){if(Ph)return qu;Ph=1;var e=za(),t=$_(),r=I_(),n=k_(),i=N_(),a=D_();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,qu=o,qu}var Lu,jh;function R_(){if(jh)return Lu;jh=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Lu=t,Lu}var zu,Th;function B_(){if(Th)return zu;Th=1;function e(t){return this.__data__.has(t)}return zu=e,zu}var Fu,Eh;function d0(){if(Eh)return Fu;Eh=1;var e=Wf(),t=R_(),r=B_();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,Fu=n,Fu}var Uu,Ch;function h0(){if(Ch)return Uu;Ch=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 Uu=e,Uu}var Wu,Mh;function v0(){if(Mh)return Wu;Mh=1;function e(t,r){return t.has(r)}return Wu=e,Wu}var Hu,$h;function y0(){if($h)return Hu;$h=1;var e=d0(),t=h0(),r=v0(),n=1,i=2;function a(o,u,s,c,f,l){var p=s&n,d=o.length,y=u.length;if(d!=y&&!(p&&y>d))return!1;var v=l.get(o),h=l.get(u);if(v&&h)return v==u&&h==o;var b=-1,x=!0,O=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<d;){var _=o[b],m=u[b];if(c)var g=p?c(m,_,b,u,o,l):c(_,m,b,o,u,l);if(g!==void 0){if(g)continue;x=!1;break}if(O){if(!t(u,function(A,S){if(!r(O,S)&&(_===A||f(_,A,s,c,l)))return O.push(S)})){x=!1;break}}else if(!(_===m||f(_,m,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return Hu=a,Hu}var Gu,Ih;function q_(){if(Ih)return Gu;Ih=1;var e=gt(),t=e.Uint8Array;return Gu=t,Gu}var Ku,kh;function L_(){if(kh)return Ku;kh=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Ku=e,Ku}var Vu,Nh;function ep(){if(Nh)return Vu;Nh=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,Dh;function z_(){if(Dh)return Xu;Dh=1;var e=hi(),t=q_(),r=Ff(),n=y0(),i=L_(),a=ep(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",p="[object Number]",d="[object RegExp]",y="[object Set]",v="[object String]",h="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",O=e?e.prototype:void 0,_=O?O.valueOf:void 0;function m(g,A,S,j,M,E,T){switch(S){case x:if(g.byteLength!=A.byteLength||g.byteOffset!=A.byteOffset)return!1;g=g.buffer,A=A.buffer;case b:return!(g.byteLength!=A.byteLength||!E(new t(g),new t(A)));case s:case c:case p:return r(+g,+A);case f:return g.name==A.name&&g.message==A.message;case d:case v:return g==A+"";case l:var C=i;case y:var I=j&o;if(C||(C=a),g.size!=A.size&&!I)return!1;var $=T.get(g);if($)return $==A;j|=u,T.set(g,A);var N=n(C(g),C(A),j,M,E,T);return T.delete(g),N;case h:if(_)return _.call(g)==_.call(A)}return!1}return Xu=m,Xu}var Yu,Rh;function m0(){if(Rh)return Yu;Rh=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,Bh;function F_(){if(Bh)return Zu;Bh=1;var e=m0(),t=Le();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Zu=r,Zu}var Ju,qh;function U_(){if(qh)return Ju;qh=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,Lh;function W_(){if(Lh)return Qu;Lh=1;function e(){return[]}return Qu=e,Qu}var es,zh;function H_(){if(zh)return es;zh=1;var e=U_(),t=W_(),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 es=a,es}var ts,Fh;function G_(){if(Fh)return ts;Fh=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return ts=e,ts}var rs,Uh;function K_(){if(Uh)return rs;Uh=1;var e=Ct(),t=Mt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return rs=n,rs}var ns,Wh;function tp(){if(Wh)return ns;Wh=1;var e=K_(),t=Mt(),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 ns=a,ns}var wn={exports:{}},is,Hh;function V_(){if(Hh)return is;Hh=1;function e(){return!1}return is=e,is}wn.exports;var Gh;function g0(){return Gh||(Gh=1,(function(e,t){var r=gt(),n=V_(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(wn,wn.exports)),wn.exports}var as,Kh;function rp(){if(Kh)return as;Kh=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 as=r,as}var os,Vh;function np(){if(Vh)return os;Vh=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return os=t,os}var us,Xh;function X_(){if(Xh)return us;Xh=1;var e=Ct(),t=np(),r=Mt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",p="[object RegExp]",d="[object Set]",y="[object String]",v="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",O="[object Float64Array]",_="[object Int8Array]",m="[object Int16Array]",g="[object Int32Array]",A="[object Uint8Array]",S="[object Uint8ClampedArray]",j="[object Uint16Array]",M="[object Uint32Array]",E={};E[x]=E[O]=E[_]=E[m]=E[g]=E[A]=E[S]=E[j]=E[M]=!0,E[n]=E[i]=E[h]=E[a]=E[b]=E[o]=E[u]=E[s]=E[c]=E[f]=E[l]=E[p]=E[d]=E[y]=E[v]=!1;function T(C){return r(C)&&t(C.length)&&!!E[e(C)]}return us=T,us}var ss,Yh;function b0(){if(Yh)return ss;Yh=1;function e(t){return function(r){return t(r)}}return ss=e,ss}var On={exports:{}};On.exports;var Zh;function Y_(){return Zh||(Zh=1,(function(e,t){var r=Bb(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(On,On.exports)),On.exports}var cs,Jh;function x0(){if(Jh)return cs;Jh=1;var e=X_(),t=b0(),r=Y_(),n=r&&r.isTypedArray,i=n?t(n):e;return cs=i,cs}var ls,Qh;function Z_(){if(Qh)return ls;Qh=1;var e=G_(),t=tp(),r=Le(),n=g0(),i=rp(),a=x0(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),p=!l&&t(c),d=!l&&!p&&n(c),y=!l&&!p&&!d&&a(c),v=l||p||d||y,h=v?e(c.length,String):[],b=h.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||d&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&h.push(x);return h}return ls=s,ls}var fs,ev;function J_(){if(ev)return fs;ev=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return fs=t,fs}var ps,tv;function w0(){if(tv)return ps;tv=1;function e(t,r){return function(n){return t(r(n))}}return ps=e,ps}var ds,rv;function Q_(){if(rv)return ds;rv=1;var e=w0(),t=e(Object.keys,Object);return ds=t,ds}var hs,nv;function eA(){if(nv)return hs;nv=1;var e=J_(),t=Q_(),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 hs=i,hs}var vs,iv;function vi(){if(iv)return vs;iv=1;var e=zf(),t=np();function r(n){return n!=null&&t(n.length)&&!e(n)}return vs=r,vs}var ys,av;function Va(){if(av)return ys;av=1;var e=Z_(),t=eA(),r=vi();function n(i){return r(i)?e(i):t(i)}return ys=n,ys}var ms,ov;function tA(){if(ov)return ms;ov=1;var e=F_(),t=H_(),r=Va();function n(i){return e(i,r,t)}return ms=n,ms}var gs,uv;function rA(){if(uv)return gs;uv=1;var e=tA(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,p=e(a),d=p.length,y=e(o),v=y.length;if(d!=v&&!l)return!1;for(var h=d;h--;){var b=p[h];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),O=f.get(o);if(x&&O)return x==o&&O==a;var _=!0;f.set(a,o),f.set(o,a);for(var m=l;++h<d;){b=p[h];var g=a[b],A=o[b];if(s)var S=l?s(A,g,b,o,a,f):s(g,A,b,a,o,f);if(!(S===void 0?g===A||c(g,A,u,s,f):S)){_=!1;break}m||(m=b=="constructor")}if(_&&!m){var j=a.constructor,M=o.constructor;j!=M&&"constructor"in a&&"constructor"in o&&!(typeof j=="function"&&j instanceof j&&typeof M=="function"&&M instanceof M)&&(_=!1)}return f.delete(a),f.delete(o),_}return gs=i,gs}var bs,sv;
vendor: 1,236 bytes, line 4
4function nA(){if(sv)return bs;sv=1;var e=pr(),t=gt(),r=e(t,"DataView");return bs=r,bs}var xs,cv;function iA(){if(cv)return xs;cv=1;var e=pr(),t=gt(),r=e(t,"Promise");return xs=r,xs}var ws,lv;function O0(){if(lv)return ws;lv=1;var e=pr(),t=gt(),r=e(t,"Set");return ws=r,ws}var Os,fv;function aA(){if(fv)return Os;fv=1;var e=pr(),t=gt(),r=e(t,"WeakMap");return Os=r,Os}var _s,pv;function oA(){if(pv)return _s;pv=1;var e=nA(),t=Uf(),r=iA(),n=O0(),i=aA(),a=Ct(),o=qb(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",p="[object DataView]",d=o(e),y=o(t),v=o(r),h=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=p||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(O){var _=a(O),m=_==s?O.constructor:void 0,g=m?o(m):"";if(g)switch(g){case d:return p;case y:return u;case v:return c;case h:return f;case b:return l}return _}),_s=x,_s}var As,dv;function uA(){if(dv)return As;dv=1;var e=p0(),t=y0(),r=z_(),n=rA(),i=oA(),a=Le(),o=g0(),u=x0(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",p=Object.prototype,d=p.hasOwnProperty;function y(v,h,b,x,O,_){var m=a(v),g=a(h),A=m?f:i(v),S=g?f:i(h);A=A==c?l:A,S=S==c?l:S;var j=A==l,M=S==l,E=A==S;
vendor: 48,442 bytes, lines 4-12
4if(E&&o(v)){if(!o(h))return!1;m=!0,j=!1}if(E&&!j)return _||(_=new e),m||u(v)?t(v,h,b,x,O,_):r(v,h,A,b,x,O,_);if(!(b&s)){var T=j&&d.call(v,"__wrapped__"),C=M&&d.call(h,"__wrapped__");if(T||C){var I=T?v.value():v,$=C?h.value():h;return _||(_=new e),O(I,$,b,x,_)}}return E?(_||(_=new e),n(v,h,b,x,O,_)):!1}return As=y,As}var Ss,hv;function ip(){if(hv)return Ss;hv=1;var e=uA(),t=Mt();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 Ss=r,Ss}var Ps,vv;function sA(){if(vv)return Ps;vv=1;var e=p0(),t=ip(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var p=u[c];if(l&&p[2]?p[1]!==a[p[0]]:!(p[0]in a))return!1}for(;++c<f;){p=u[c];var d=p[0],y=a[d],v=p[1];if(l&&p[2]){if(y===void 0&&!(d in a))return!1}else{var h=new e;if(s)var b=s(y,v,d,a,o,h);if(!(b===void 0?t(v,y,r|n,s,h):b))return!1}}return!0}return Ps=i,Ps}var js,yv;function _0(){if(yv)return js;yv=1;var e=zt();function t(r){return r===r&&!e(r)}return js=t,js}var Ts,mv;function cA(){if(mv)return Ts;mv=1;var e=_0(),t=Va();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 Ts=r,Ts}var Es,gv;function A0(){if(gv)return Es;gv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Es=e,Es}var Cs,bv;function lA(){if(bv)return Cs;bv=1;var e=sA(),t=cA(),r=A0();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 Cs=n,Cs}var Ms,xv;function fA(){if(xv)return Ms;xv=1;function e(t,r){return t!=null&&r in Object(t)}return Ms=e,Ms}var $s,wv;function pA(){if(wv)return $s;wv=1;var e=Fb(),t=tp(),r=Le(),n=rp(),i=np(),a=Ua();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,p=!1;++f<l;){var d=a(s[f]);if(!(p=u!=null&&c(u,d)))break;u=u[d]}return p||++f!=l?p:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||t(u)))}return $s=o,$s}var Is,Ov;function dA(){if(Ov)return Is;Ov=1;var e=fA(),t=pA();function r(n,i){return n!=null&&t(n,i,e)}return Is=r,Is}var ks,_v;function hA(){if(_v)return ks;_v=1;var e=ip(),t=Ub(),r=dA(),n=Lf(),i=_0(),a=A0(),o=Ua(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(p){var d=t(p,f);return d===void 0&&d===l?r(p,f):e(l,d,u|s)}}return ks=c,ks}var Ns,Av;function un(){if(Av)return Ns;Av=1;function e(t){return t}return Ns=e,Ns}var Ds,Sv;function vA(){if(Sv)return Ds;Sv=1;function e(t){return function(r){return r?.[t]}}return Ds=e,Ds}var Rs,Pv;function yA(){if(Pv)return Rs;Pv=1;var e=Gf();function t(r){return function(n){return e(n,r)}}return Rs=t,Rs}var Bs,jv;function mA(){if(jv)return Bs;jv=1;var e=vA(),t=yA(),r=Lf(),n=Ua();function i(a){return r(a)?e(n(a)):t(a)}return Bs=i,Bs}var qs,Tv;function Ft(){if(Tv)return qs;Tv=1;var e=lA(),t=hA(),r=un(),n=Le(),i=mA();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 qs=a,qs}var Ls,Ev;function S0(){if(Ev)return Ls;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 Ls=e,Ls}var zs,Cv;function gA(){if(Cv)return zs;Cv=1;function e(t){return t!==t}return zs=e,zs}var Fs,Mv;function bA(){if(Mv)return Fs;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 Fs=e,Fs}var Us,$v;function xA(){if($v)return Us;$v=1;var e=S0(),t=gA(),r=bA();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Us=n,Us}var Ws,Iv;function wA(){if(Iv)return Ws;Iv=1;var e=xA();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Ws=t,Ws}var Hs,kv;function OA(){if(kv)return Hs;kv=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 Hs=e,Hs}var Gs,Nv;function _A(){if(Nv)return Gs;Nv=1;function e(){}return Gs=e,Gs}var Ks,Dv;function AA(){if(Dv)return Ks;Dv=1;var e=O0(),t=_A(),r=ep(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Ks=i,Ks}var Vs,Rv;function SA(){if(Rv)return Vs;Rv=1;var e=d0(),t=wA(),r=OA(),n=v0(),i=AA(),a=ep(),o=200;function u(s,c,f){var l=-1,p=t,d=s.length,y=!0,v=[],h=v;if(f)y=!1,p=r;else if(d>=o){var b=c?null:i(s);if(b)return a(b);y=!1,p=n,h=new e}else h=c?[]:v;e:for(;++l<d;){var x=s[l],O=c?c(x):x;if(x=f||x!==0?x:0,y&&O===O){for(var _=h.length;_--;)if(h[_]===O)continue e;c&&h.push(O),v.push(x)}else p(h,O,f)||(h!==v&&h.push(O),v.push(x))}return v}return Vs=u,Vs}var Xs,Bv;function PA(){if(Bv)return Xs;Bv=1;var e=Ft(),t=SA();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Xs=r,Xs}var jA=PA();const qv=le(jA);function P0(e,t,r){return t===!0?qv(e,r):X(t)?qv(e,t):e}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)}var TA=["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 bt(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){Xa(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 EA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zv(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,T0(n.key),n)}}function CA(e,t,r){return t&&zv(e.prototype,t),r&&zv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function MA(e,t,r){return t=Vi(t),$A(e,j0()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function $A(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 IA(e)}function IA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j0=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function kA(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 Xa(e,t,r){return t=T0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T0(e){var t=NA(e,"string");return kr(t)=="symbol"?t:t+""}function NA(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)}function DA(e,t){if(e==null)return{};var r=RA(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 RA(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 BA(e){return e.value}function qA(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=DA(t,TA);return P.createElement(Qf,r)}var Fv=1,jr=(function(e){function t(){var r;EA(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=MA(this,t,[].concat(i)),Xa(r,"lastBoundingBox",{width:-1,height:-1}),r}return kA(t,e),CA(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?bt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,p;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((c||0)-d.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();p={top:((f||0)-y.height)/2}}else p=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return bt(bt({},l),p)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=bt(bt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},qA(a,bt(bt({},this.props),{},{payload:P0(f,c,BA)})))}}],[{key:"getWithHeight",value:function(n,i){var a=bt(bt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(D.PureComponent);Xa(jr,"displayName","Legend");Xa(jr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ys,Uv;function LA(){if(Uv)return Ys;Uv=1;var e=hi(),t=tp(),r=Le(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Ys=i,Ys}var Zs,Wv;function E0(){if(Wv)return Zs;Wv=1;var e=m0(),t=LA();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Zs=r,Zs}var Js,Hv;function zA(){if(Hv)return Js;Hv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Js=e,Js}var Qs,Gv;function FA(){if(Gv)return Qs;Gv=1;var e=zA(),t=e();return Qs=t,Qs}var ec,Kv;function C0(){if(Kv)return ec;Kv=1;var e=FA(),t=Va();function r(n,i){return n&&e(n,i,t)}return ec=r,ec}var tc,Vv;function UA(){if(Vv)return tc;Vv=1;var e=vi();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return tc=t,tc}var rc,Xv;function ap(){if(Xv)return rc;Xv=1;var e=C0(),t=UA(),r=t(e);return rc=r,rc}var nc,Yv;function M0(){if(Yv)return nc;Yv=1;var e=ap(),t=vi();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return nc=r,nc}var ic,Zv;function WA(){if(Zv)return ic;Zv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return ic=e,ic}var ac,Jv;function HA(){if(Jv)return ac;Jv=1;var e=rn();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return ac=t,ac}var oc,Qv;function GA(){if(Qv)return oc;Qv=1;var e=HA();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return oc=t,oc}var uc,ey;function KA(){if(ey)return uc;ey=1;var e=Hf(),t=Gf(),r=Ft(),n=M0(),i=WA(),a=b0(),o=GA(),u=un(),s=Le();function c(f,l,p){l.length?l=e(l,function(v){return s(v)?function(h){return t(h,v.length===1?v[0]:v)}:v}):l=[u];var d=-1;l=e(l,a(r));var y=n(f,function(v,h,b){var x=e(l,function(O){return O(v)});return{criteria:x,index:++d,value:v}});return i(y,function(v,h){return o(v,h,p)})}return uc=c,uc}var sc,ty;function VA(){if(ty)return sc;ty=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 sc=e,sc}var cc,ry;function XA(){if(ry)return cc;ry=1;var e=VA(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return cc=r,cc}var lc,ny;function YA(){if(ny)return lc;ny=1;function e(t){return function(){return t}}return lc=e,lc}var fc,iy;function $0(){if(iy)return fc;iy=1;var e=pr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return fc=t,fc}var pc,ay;function ZA(){if(ay)return pc;ay=1;var e=YA(),t=$0(),r=un(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return pc=n,pc}var dc,oy;function JA(){if(oy)return dc;oy=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return dc=n,dc}var hc,uy;function QA(){if(uy)return hc;uy=1;var e=ZA(),t=JA(),r=t(e);return hc=r,hc}var vc,sy;function eS(){if(sy)return vc;sy=1;var e=un(),t=XA(),r=QA();function n(i,a){return r(t(i,a,e),i+"")}return vc=n,vc}var yc,cy;function Ya(){if(cy)return yc;cy=1;var e=Ff(),t=vi(),r=rp(),n=zt();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return yc=i,yc}var mc,ly;function tS(){if(ly)return mc;ly=1;var e=E0(),t=KA(),r=eS(),n=Ya(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return mc=i,mc}var rS=tS();const op=le(rS);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 Nl(){return Nl=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},Nl.apply(this,arguments)}function nS(e,t){return uS(e)||oS(e,t)||aS(e,t)||iS()}function iS(){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 aS(e,t){if(e){if(typeof e=="string")return fy(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 fy(e,t)}}function fy(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 oS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function uS(e){if(Array.isArray(e))return 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 gc(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){sS(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 sS(e,t,r){return t=cS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cS(e){var t=lS(e,"string");return In(t)=="symbol"?t:t+""}function lS(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)}function fS(e){return Array.isArray(e)&&Ae(e[0])&&Ae(e[1])?e.join(" ~ "):e}var pS=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,p=t.itemSorter,d=t.wrapperClassName,y=t.labelClassName,v=t.label,h=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,O=function(){if(f&&f.length){var T={padding:0,margin:0},C=(p?op(f,p):f).map(function(I,$){if(I.type==="none")return null;var N=gc({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),R=I.formatter||l||fS,L=I.value,z=I.name,H=L,K=z;if(R&&H!=null&&K!=null){var U=R(L,z,I,$,f);if(Array.isArray(U)){var V=nS(U,2);H=V[0],K=V[1]}else H=U}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:N},Ae(K)?P.createElement("span",{className:"recharts-tooltip-item-name"},K):null,Ae(K)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},H),P.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:T},C)}return null},_=gc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=gc({margin:0},c),g=!Q(v),A=g?v:"",S=ee("recharts-default-tooltip",d),j=ee("recharts-tooltip-label",y);g&&h&&f!==void 0&&f!==null&&(A=h(v,f));var M=x?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",Nl({className:S,style:_},M),P.createElement("p",{className:j,style:m},P.isValidElement(A)?A:"".concat(A)),O())};function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function ji(e,t,r){return t=dS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dS(e){var t=hS(e,"string");return kn(t)=="symbol"?t:t+""}function hS(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pn="recharts-tooltip-wrapper",vS={visibility:"hidden"};function yS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ee(pn,ji(ji(ji(ji({},"".concat(pn,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(pn,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(pn,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(pn,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function dy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&q(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var p=f,d=s[n];return p<d?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,v=s[n]+c;return y>v?Math.max(f,s[n]):Math.max(l,s[n])}function mS(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 gS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=dy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=dy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=mS({translateX:f,translateY:l,useTranslate3d:u})):c=vS,{cssProperties:c,cssClasses:yS({translateX:f,translateY:l,coordinate:r})}}function Nr(e){"@babel/helpers - typeof";return Nr=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},Nr(e)}function hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hy(Object(r),!0).forEach(function(n){Rl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xS(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,k0(n.key),n)}}function wS(e,t,r){return t&&xS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OS(e,t,r){return t=Xi(t),_S(e,I0()?Reflect.construct(t,r||[],Xi(e).constructor):t.apply(e,r))}function _S(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AS(e)}function AS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I0=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(e)}function SS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dl(e,t)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dl(e,t)}function Rl(e,t,r){return t=k0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k0(e){var t=PS(e,"string");return Nr(t)=="symbol"?t:t+""}function PS(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yy=1,jS=(function(e){function t(){var r;bS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=OS(this,t,[].concat(i)),Rl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Rl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return SS(t,e),wS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>yy||Math.abs(n.height-this.state.lastBoundingBox.height)>yy)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,p=i.isAnimationActive,d=i.offset,y=i.position,v=i.reverseDirection,h=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,O=gS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:b}),_=O.cssClasses,m=O.cssProperties,g=vy(vy({transition:p&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return P.createElement("div",{tabIndex:-1,className:_,style:g,ref:function(S){n.wrapperNode=S}},c)}}])})(D.PureComponent),TS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},dr={isSsr:TS()};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 my(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?my(Object(r),!0).forEach(function(n){up(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(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 CS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D0(n.key),n)}}function MS(e,t,r){return t&&CS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $S(e,t,r){return t=Yi(t),IS(e,N0()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function IS(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 kS(e)}function kS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N0=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function NS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bl(e,t)}function Bl(e,t){return Bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bl(e,t)}function up(e,t,r){return t=D0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D0(e){var t=DS(e,"string");return Dr(t)=="symbol"?t:t+""}function DS(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)}function RS(e){return e.dataKey}function BS(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(pS,t)}var Be=(function(e){function t(){return ES(this,t),$S(this,t,arguments)}return NS(t,e),MS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,p=i.isAnimationActive,d=i.offset,y=i.payload,v=i.payloadUniqBy,h=i.position,b=i.reverseDirection,x=i.useTranslate3d,O=i.viewBox,_=i.wrapperStyle,m=y??[];l&&m.length&&(m=P0(y.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),v,RS));var g=m.length>0;return P.createElement(jS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:p,active:a,coordinate:f,hasPayload:g,offset:d,position:h,reverseDirection:b,useTranslate3d:x,viewBox:O,wrapperStyle:_},BS(c,gy(gy({},this.props),{},{payload:m})))}}])})(D.PureComponent);up(Be,"displayName","Tooltip");up(Be,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!dr.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var bc,by;function qS(){if(by)return bc;by=1;var e=gt(),t=function(){return e.Date.now()};return bc=t,bc}var xc,xy;function LS(){if(xy)return xc;xy=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return xc=t,xc}var wc,wy;function zS(){if(wy)return wc;wy=1;var e=LS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return wc=r,wc}var Oc,Oy;function R0(){if(Oy)return Oc;Oy=1;var e=zS(),t=zt(),r=rn(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return Oc=s,Oc}var _c,_y;function FS(){if(_y)return _c;_y=1;var e=zt(),t=qS(),r=R0(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,p,d,y,v,h=0,b=!1,x=!1,O=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(b=!!c.leading,x="maxWait"in c,p=x?i(r(c.maxWait)||0,s):p,O="trailing"in c?!!c.trailing:O);function _(C){var I=f,$=l;return f=l=void 0,h=C,d=u.apply($,I),d}function m(C){return h=C,y=setTimeout(S,s),b?_(C):d}function g(C){var I=C-v,$=C-h,N=s-I;return x?a(N,p-$):N}function A(C){var I=C-v,$=C-h;return v===void 0||I>=s||I<0||x&&$>=p}function S(){var C=t();if(A(C))return j(C);y=setTimeout(S,g(C))}function j(C){return y=void 0,O&&f?_(C):(f=l=void 0,d)}function M(){y!==void 0&&clearTimeout(y),h=0,f=v=l=y=void 0}function E(){return y===void 0?d:j(t())}function T(){var C=t(),I=A(C);if(f=arguments,l=this,v=C,I){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(S,s),_(v)}return y===void 0&&(y=setTimeout(S,s)),d}return T.cancel=M,T.flush=E,T}return _c=o,_c}var Ac,Ay;function US(){if(Ay)return Ac;Ay=1;var e=FS(),t=zt(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return Ac=n,Ac}var WS=US();const B0=le(WS);function Nn(e){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(e)}function Sy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ti(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sy(Object(r),!0).forEach(function(n){HS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HS(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=KS(e,"string");return Nn(t)=="symbol"?t:t+""}function KS(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VS(e,t){return JS(e)||ZS(e,t)||YS(e,t)||XS()}function XS(){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 YS(e,t){if(e){if(typeof e=="string")return Py(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 Py(e,t)}}function Py(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function JS(e){if(Array.isArray(e))return e}var Sn=D.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,p=e.maxHeight,d=e.children,y=e.debounce,v=y===void 0?0:y,h=e.id,b=e.className,x=e.onResize,O=e.style,_=O===void 0?{}:O,m=D.useRef(null),g=D.useRef();g.current=x,D.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 A=D.useState({containerWidth:i.width,containerHeight:i.height}),S=VS(A,2),j=S[0],M=S[1],E=D.useCallback(function(C,I){M(function($){var N=Math.round(C),R=Math.round(I);return $.containerWidth===N&&$.containerHeight===R?$:{containerWidth:N,containerHeight:R}})},[]);D.useEffect(function(){var C=function(z){var H,K=z[0].contentRect,U=K.width,V=K.height;E(U,V),(H=g.current)===null||H===void 0||H.call(g,U,V)};v>0&&(C=B0(C,v,{trailing:!0,leading:!1}));var I=new ResizeObserver(C),$=m.current.getBoundingClientRect(),N=$.width,R=$.height;return E(N,R),I.observe(m.current),function(){I.disconnect()}},[E,v]);var T=D.useMemo(function(){var C=j.containerWidth,I=j.containerHeight;if(C<0||I<0)return null;At(er(o)||er(s),`The width(%s) and height(%s) are both fixed numbers, 7 maybe you don't need to use a ResponsiveContainer.`,o,s),At(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=er(o)?C:o,N=er(s)?I:s;r&&r>0&&($?N=$/r:N&&($=N*r),p&&N>p&&(N=p)),At($>0||N>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.`,$,N,o,s,f,l,r);var R=!Array.isArray(d)&&_t(d.type).endsWith("Chart");return P.Children.map(d,function(L){return P.isValidElement(L)?D.cloneElement(L,Ti({width:$,height:N},R?{style:Ti({height:"100%",width:"100%",maxHeight:N,maxWidth:$},L.props.style)}:{})):L})},[r,d,s,p,l,f,j,o]);return P.createElement("div",{id:h?"".concat(h):void 0,className:ee("recharts-responsive-container",b),style:Ti(Ti({},_),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:p}),ref:m},T)}),sp=function(t){return null};sp.displayName="Cell";function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function jy(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 ql(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jy(Object(r),!0).forEach(function(n){QS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QS(e,t,r){return t=eP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eP(e){var t=tP(e,"string");return Dn(t)=="symbol"?t:t+""}function tP(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var br={widthCache:{},cacheCount:0},rP=2e3,nP={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ty="recharts_measurement_span";function iP(e){var t=ql({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Pn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||dr.isSsr)return{width:0,height:0};var n=iP(r),i=JSON.stringify({text:t,copyStyle:n});if(br.widthCache[i])return br.widthCache[i];try{var a=document.getElementById(Ty);a||(a=document.createElement("span"),a.setAttribute("id",Ty),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ql(ql({},nP),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return br.widthCache[i]=s,++br.cacheCount>rP&&(br.cacheCount=0,br.widthCache={}),s}catch{return{width:0,height:0}}},aP=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(e)}function Zi(e,t){return cP(e)||sP(e,t)||uP(e,t)||oP()}function oP(){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 uP(e,t){if(e){if(typeof e=="string")return Ey(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 Ey(e,t)}}function Ey(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 sP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function cP(e){if(Array.isArray(e))return e}function lP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cy(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,pP(n.key),n)}}function fP(e,t,r){return t&&Cy(e.prototype,t),r&&Cy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pP(e){var t=dP(e,"string");return Rn(t)=="symbol"?t:t+""}function dP(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var My=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$y=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hP=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vP=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,q0={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},yP=Object.keys(q0),_r="NaN";function mP(e,t){return e*q0[t]}var Ei=(function(){function e(t,r){lP(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!hP.test(r)&&(this.num=NaN,this.unit=""),yP.includes(r)&&(this.num=mP(t,r),this.unit="px")}return fP(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=vP.exec(r))!==null&&n!==void 0?n:[],a=Zi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function L0(e){if(e.includes(_r))return _r;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=My.exec(t))!==null&&r!==void 0?r:[],i=Zi(n,4),a=i[1],o=i[2],u=i[3],s=Ei.parse(a??""),c=Ei.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return _r;t=t.replace(My,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,p=(l=$y.exec(t))!==null&&l!==void 0?l:[],d=Zi(p,4),y=d[1],v=d[2],h=d[3],b=Ei.parse(y??""),x=Ei.parse(h??""),O=v==="+"?b.add(x):b.subtract(x);if(O.isNaN())return _r;t=t.replace($y,O.toString())}return t}var Iy=/\(([^()]*)\)/;function gP(e){for(var t=e;t.includes("(");){var r=Iy.exec(t),n=Zi(r,2),i=n[1];t=t.replace(Iy,L0(i))}return t}function bP(e){var t=e.replace(/\s+/g,"");return t=gP(t),t=L0(t),t}function xP(e){try{return bP(e)}catch{return _r}}function Sc(e){var t=xP(e.slice(5,-1));return t===_r?"":t}var wP=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],OP=["dx","dy","angle","className","breakAll"];function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ll.apply(this,arguments)}function ky(e,t){if(e==null)return{};var r=_P(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 _P(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 Ny(e,t){return jP(e)||PP(e,t)||SP(e,t)||AP()}function AP(){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 SP(e,t){if(e){if(typeof e=="string")return Dy(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 Dy(e,t)}}function Dy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function jP(e){if(Array.isArray(e))return e}var z0=/[ \f\n\r\t\v\u2028\u2029]+/,F0=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Q(r)||(n?a=r.toString().split(""):a=r.toString().split(z0));var o=a.map(function(s){return{word:s,width:Pn(s,i).width}}),u=n?0:Pn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},TP=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=q(o),l=u,p=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(N,R){var L=R.word,z=R.width,H=N[N.length-1];if(H&&(i==null||a||H.width+z+n<Number(i)))H.words.push(L),H.width+=z+n;else{var K={words:[L],width:z};N.push(K)}return N},[])},d=p(r),y=function($){return $.reduce(function(N,R){return N.width>R.width?N:R})};if(!f)return d;for(var v="â¦",h=function($){var N=l.slice(0,$),R=F0({breakAll:c,style:s,children:N+v}).wordsWithComputedWidth,L=p(R),z=L.length>o||y(L).width>Number(i);return[z,L]},b=0,x=l.length-1,O=0,_;b<=x&&O<=l.length-1;){var m=Math.floor((b+x)/2),g=m-1,A=h(g),S=Ny(A,2),j=S[0],M=S[1],E=h(m),T=Ny(E,1),C=T[0];if(!j&&!C&&(b=m+1),j&&C&&(x=m-1),!j&&C){_=M;break}O++}return _||d},Ry=function(t){var r=Q(t)?[]:t.toString().split(z0);return[{words:r}]},EP=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!dr.isSsr){var s,c,f=F0({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,p=f.spaceWidth;s=l,c=p}else return Ry(i);return TP({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return Ry(i)},By="#808080",Ji=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,p=t.textAnchor,d=p===void 0?"start":p,y=t.verticalAnchor,v=y===void 0?"end":y,h=t.fill,b=h===void 0?By:h,x=ky(t,wP),O=D.useMemo(function(){return EP({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]),_=x.dx,m=x.dy,g=x.angle,A=x.className,S=x.breakAll,j=ky(x,OP);if(!Ae(n)||!Ae(a))return null;var M=n+(q(_)?_:0),E=a+(q(m)?m:0),T;switch(v){case"start":T=Sc("calc(".concat(c,")"));break;case"middle":T=Sc("calc(".concat((O.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:T=Sc("calc(".concat(O.length-1," * -").concat(u,")"));break}var C=[];if(l){var I=O[0].width,$=x.width;C.push("scale(".concat((q($)?$/I:1)/I,")"))}return g&&C.push("rotate(".concat(g,", ").concat(M,", ").concat(E,")")),C.length&&(j.transform=C.join(" ")),P.createElement("text",Ll({},Z(j,!0),{x:M,y:E,className:ee("recharts-text",A),textAnchor:d,fill:b.includes("url")?By:b}),O.map(function(N,R){var L=N.words.join(S?"":" ");
12return P.createElement("tspan",{x:M,dy:R===0?T:u,key:"".concat(L,"-").concat(R)},L)}))};function Lt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function CP(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cp(e){let t,r,n;e.length!==2?(t=Lt,r=(u,s)=>Lt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Lt||e===CP?e:MP,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function MP(){return 0}function U0(e){return e===null?NaN:+e}function*$P(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const IP=cp(Lt),yi=IP.right;cp(U0).center;class qy extends Map{constructor(t,r=DP){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(Ly(this,t))}has(t){return super.has(Ly(this,t))}set(t,r){return super.set(kP(this,t),r)}delete(t){return super.delete(NP(this,t))}}function Ly({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function kP({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function NP({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function DP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function RP(e=Lt){if(e===Lt)return W0;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 W0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const BP=Math.sqrt(50),qP=Math.sqrt(10),LP=Math.sqrt(2);function Qi(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>=BP?10:a>=qP?5:a>=LP?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?Qi(e,t,r*2):[u,s,c]}function zl(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?Qi(t,e,r):Qi(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function Fl(e,t,r){return t=+t,e=+e,r=+r,Qi(e,t,r)[2]}function Ul(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Fl(t,e,r):Fl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function zy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}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 H0(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?W0:RP(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),d=Math.max(r,Math.floor(t-c*l/s+p)),y=Math.min(n,Math.floor(t+(s-c)*l/s+p));H0(e,t,d,y,i)}const a=e[t];let o=r,u=n;for(dn(e,r,t),i(e[n],a)>0&&dn(e,r,n);o<u;){for(dn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?dn(e,r,u):(++u,dn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function dn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function zP(e,t,r){if(e=Float64Array.from($P(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Fy(e);if(t>=1)return zy(e);var n,i=(n-1)*t,a=Math.floor(i),o=zy(H0(e,a).subarray(0,a+1)),u=Fy(e.subarray(a+1));return o+(u-o)*(i-a)}}function FP(e,t,r=U0){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 UP(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 et(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function $t(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: 13,173 bytes, line 12
12const Wl=Symbol("implicit");function lp(){var e=new qy,t=[],r=[],n=Wl;function i(a){let o=e.get(a);if(o===void 0){if(n!==Wl)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 qy;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 lp(t,r).unknown(n)},et.apply(i,arguments),i}function Bn(){var e=lp().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var p=t().length,d=i<n,y=d?i:n,v=d?n:i;a=(v-y)/Math.max(1,p-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(p-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var h=UP(p).map(function(b){return y+a*b});return r(d?h.reverse():h)}return e.domain=function(p){return arguments.length?(t(p),l()):t()},e.range=function(p){return arguments.length?([n,i]=p,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(p){return[n,i]=p,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(p){return arguments.length?(u=!!p,l()):u},e.padding=function(p){return arguments.length?(s=Math.min(1,c=+p),l()):s},e.paddingInner=function(p){return arguments.length?(s=Math.min(1,p),l()):s},e.paddingOuter=function(p){return arguments.length?(c=+p,l()):c},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),l()):f},e.copy=function(){return Bn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},et.apply(l(),arguments)}function G0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return G0(t())},e}function jn(){return G0(Bn.apply(null,arguments).paddingInner(1))}function fp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function K0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function mi(){}var qn=.7,ea=1/qn,Tr="\\s*([+-]?\\d+)\\s*",Ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",WP=/^#([0-9a-f]{3,8})$/,HP=new RegExp(`^rgb\\(${Tr},${Tr},${Tr}\\)$`),GP=new RegExp(`^rgb\\(${pt},${pt},${pt}\\)$`),KP=new RegExp(`^rgba\\(${Tr},${Tr},${Tr},${Ln}\\)$`),VP=new RegExp(`^rgba\\(${pt},${pt},${pt},${Ln}\\)$`),XP=new RegExp(`^hsl\\(${Ln},${pt},${pt}\\)$`),YP=new RegExp(`^hsla\\(${Ln},${pt},${pt},${Ln}\\)$`),Uy={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};fp(mi,zn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wy,formatHex:Wy,formatHex8:ZP,formatHsl:JP,formatRgb:Hy,toString:Hy});function Wy(){return this.rgb().formatHex()}function ZP(){return this.rgb().formatHex8()}function JP(){return V0(this).formatHsl()}function Hy(){return this.rgb().formatRgb()}function zn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=WP.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Gy(t):r===3?new qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ci(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ci(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=HP.exec(e))?new qe(t[1],t[2],t[3],1):(t=GP.exec(e))?new qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KP.exec(e))?Ci(t[1],t[2],t[3],t[4]):(t=VP.exec(e))?Ci(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=XP.exec(e))?Xy(t[1],t[2]/100,t[3]/100,1):(t=YP.exec(e))?Xy(t[1],t[2]/100,t[3]/100,t[4]):Uy.hasOwnProperty(e)?Gy(Uy[e]):e==="transparent"?new qe(NaN,NaN,NaN,0):null}function Gy(e){return new qe(e>>16&255,e>>8&255,e&255,1)}function Ci(e,t,r,n){return n<=0&&(e=t=r=NaN),new qe(e,t,r,n)}function QP(e){return e instanceof mi||(e=zn(e)),e?(e=e.rgb(),new qe(e.r,e.g,e.b,e.opacity)):new qe}function Hl(e,t,r,n){return arguments.length===1?QP(e):new qe(e,t,r,n??1)}function qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}fp(qe,Hl,K0(mi,{brighter(e){return e=e==null?ea:Math.pow(ea,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qn:Math.pow(qn,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qe(ar(this.r),ar(this.g),ar(this.b),ta(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:Ky,formatHex:Ky,formatHex8:ej,formatRgb:Vy,toString:Vy}));function Ky(){return`#${tr(this.r)}${tr(this.g)}${tr(this.b)}`}function ej(){return`#${tr(this.r)}${tr(this.g)}${tr(this.b)}${tr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Vy(){const e=ta(this.opacity);return`${e===1?"rgb(":"rgba("}${ar(this.r)}, ${ar(this.g)}, ${ar(this.b)}${e===1?")":`, ${e})`}`}function ta(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ar(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tr(e){return e=ar(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 ot(e,t,r,n)}function V0(e){if(e instanceof ot)return new ot(e.h,e.s,e.l,e.opacity);if(e instanceof mi||(e=zn(e)),!e)return new ot;if(e instanceof ot)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new ot(o,u,s,e.opacity)}function tj(e,t,r,n){return arguments.length===1?V0(e):new ot(e,t,r,n??1)}function ot(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}fp(ot,tj,K0(mi,{brighter(e){return e=e==null?ea:Math.pow(ea,e),new ot(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qn:Math.pow(qn,e),new ot(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 qe(Pc(e>=240?e-240:e+120,i,n),Pc(e,i,n),Pc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ot(Yy(this.h),Mi(this.s),Mi(this.l),ta(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=ta(this.opacity);return`${e===1?"hsl(":"hsla("}${Yy(this.h)}, ${Mi(this.s)*100}%, ${Mi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yy(e){return e=(e||0)%360,e<0?e+360:e}function Mi(e){return Math.max(0,Math.min(1,e||0))}function Pc(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 pp=e=>()=>e;function rj(e,t){return function(r){return e+r*t}}function nj(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 ij(e){return(e=+e)==1?X0:function(t,r){return r-t?nj(t,r,e):pp(isNaN(t)?r:t)}}function X0(e,t){var r=t-e;return r?rj(e,r):pp(isNaN(e)?t:e)}const Zy=(function e(t){var r=ij(t);function n(i,a){var o=r((i=Hl(i)).r,(a=Hl(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=X0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function aj(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 oj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uj(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]=sn(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 sj(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ra(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function cj(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]=sn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Gl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jc=new RegExp(Gl.source,"g");function lj(e){return function(){return e}}function fj(e){return function(t){return e(t)+""}}function pj(e,t){var r=Gl.lastIndex=jc.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Gl.exec(e))&&(i=jc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:ra(n,i)})),r=jc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?fj(s[0].x):lj(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function sn(e,t){var r=typeof t,n;return t==null||r==="boolean"?pp(t):(r==="number"?ra:r==="string"?(n=zn(t))?(t=n,Zy):pj:t instanceof zn?Zy:t instanceof Date?sj:oj(t)?aj:Array.isArray(t)?uj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?cj:ra)(e,t)}function dp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function dj(e,t){t===void 0&&(t=e,e=sn);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 hj(e){return function(){return e}}function na(e){return+e}var Jy=[0,1];function ke(e){return e}function Kl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:hj(isNaN(t)?NaN:.5)}function vj(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function yj(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Kl(i,n),a=r(o,a)):(n=Kl(n,i),a=r(a,o)),function(u){return a(n(u))}}function mj(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]=Kl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=yi(e,u,1,n)-1;return a[s](i[s](u))}}function gi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Za(){var e=Jy,t=Jy,r=sn,n,i,a,o=ke,u,s,c;function f(){var p=Math.min(e.length,t.length);return o!==ke&&(o=vj(e[0],e[p-1])),u=p>2?mj:yj,s=c=null,l}function l(p){return p==null||isNaN(p=+p)?a:(s||(s=u(e.map(n),t,r)))(n(o(p)))}return l.invert=function(p){return o(i((c||(c=u(t,e.map(n),ra)))(p)))},l.domain=function(p){return arguments.length?(e=Array.from(p,na),f()):e.slice()},l.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},l.rangeRound=function(p){return t=Array.from(p),r=dp,f()},l.clamp=function(p){return arguments.length?(o=p?!0:ke,f()):o!==ke},l.interpolate=function(p){return arguments.length?(r=p,f()):r},l.unknown=function(p){return arguments.length?(a=p,l):a},function(p,d){return n=p,i=d,f()}}function hp(){return Za()(ke,ke)}
vendor: 7,277 bytes, line 12
12function gj(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ia(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 Rr(e){return e=ia(Math.abs(e)),e?e[1]:NaN}function bj(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function xj(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var wj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fn(e){if(!(t=wj.exec(e)))throw new Error("invalid format: "+e);var t;return new vp({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]})}Fn.prototype=vp.prototype;function vp(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+""}vp.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 Oj(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 aa;function _j(e,t){var r=ia(e,t);if(!r)return aa=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(aa=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")+ia(e,Math.max(0,t+a-1))[0]}function Qy(e,t){var r=ia(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:gj,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:_j,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 Aj(e){var t=e.grouping===void 0||e.thousands===void 0?tm:bj(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:xj(rm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"â":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l,p){l=Fn(l);var d=l.fill,y=l.align,v=l.sign,h=l.symbol,b=l.zero,x=l.width,O=l.comma,_=l.precision,m=l.trim,g=l.type;g==="n"?(O=!0,g="g"):em[g]||(_===void 0&&(_=12),m=!0,g="g"),(b||d==="0"&&y==="=")&&(b=!0,d="0",y="=");var A=(p&&p.prefix!==void 0?p.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():""),S=(h==="$"?n:/[%p]/.test(g)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),j=em[g],M=/[defgprs%]/.test(g);_=_===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function E(T){var C=A,I=S,$,N,R;if(g==="c")I=j(T)+I,T="";else{T=+T;var L=T<0||1/T<0;if(T=isNaN(T)?s:j(Math.abs(T),_),m&&(T=Oj(T)),L&&+T==0&&v!=="+"&&(L=!1),C=(L?v==="("?v:u:v==="-"||v==="("?"":v)+C,I=(g==="s"&&!isNaN(T)&&aa!==void 0?nm[8+aa/3]:"")+I+(L&&v==="("?")":""),M){for($=-1,N=T.length;++$<N;)if(R=T.charCodeAt($),48>R||R>57){I=(R===46?i+T.slice($+1):T.slice($))+I,T=T.slice(0,$);break}}}O&&!b&&(T=t(T,1/0));var z=C.length+T.length+I.length,H=z<x?new Array(x-z+1).join(d):"";switch(O&&b&&(T=t(H+T,H.length?x-I.length:1/0),H=""),y){case"<":T=C+T+I+H;break;case"=":T=C+H+T+I;break;case"^":T=H.slice(0,z=H.length>>1)+C+T+I+H.slice(z);break;default:T=H+C+T+I;break}return a(T)}return E.toString=function(){return l+""},E}function f(l,p){var d=Math.max(-8,Math.min(8,Math.floor(Rr(p)/3)))*3,y=Math.pow(10,-d),v=c((l=Fn(l),l.type="f",l),{suffix:nm[8+d/3]});return function(h){return v(y*h)}}return{format:c,formatPrefix:f}}var $i,yp,Y0;Sj({thousands:",",grouping:[3],currency:["$",""]});function Sj(e){return $i=Aj(e),yp=$i.format,Y0=$i.formatPrefix,$i}function Pj(e){return Math.max(0,-Rr(Math.abs(e)))}function jj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Rr(t)/3)))*3-Rr(Math.abs(e)))}function Tj(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rr(t)-Rr(e))+1}function Z0(e,t,r,n){var i=Ul(e,t,r),a;switch(n=Fn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=jj(i,o))&&(n.precision=a),Y0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Tj(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Pj(i))&&(n.precision=a-(n.type==="%")*2);break}}return yp(n)}function Ut(e){var t=e.domain;return e.ticks=function(r){var n=t();return zl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Z0(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=Fl(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function oa(){var e=hp();return e.copy=function(){return gi(e,oa())},et.apply(e,arguments),Ut(e)}function J0(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,na),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return J0(e).unknown(t)},e=arguments.length?Array.from(e,na):[0,1],Ut(r)}function Q0(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 Ej(e){return-Math.log(-e)}function Cj(e){return-Math.exp(-e)}function Mj(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $j(e){return e===10?Mj:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Ij(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 mp(e){const t=e(im,am),r=t.domain;let n=10,i,a;function o(){return i=Ij(n),a=$j(n),r()[0]<0?(i=om(i),a=om(a),e(Ej,Cj)):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 s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let p=i(c),d=i(f),y,v;const h=u==null?10:+u;let b=[];if(!(n%1)&&d-p<h){if(p=Math.floor(p),d=Math.ceil(d),c>0){for(;p<=d;
vendor: 4,451 bytes, line 12
12++p)for(y=1;y<n;++y)if(v=p<0?y/a(-p):y*a(p),!(v<c)){if(v>f)break;b.push(v)}}else for(;p<=d;++p)for(y=n-1;y>=1;--y)if(v=p>0?y/a(-p):y*a(p),!(v<c)){if(v>f)break;b.push(v)}b.length*2<h&&(b=zl(c,f,h))}else b=zl(p,d,Math.min(d-p,h)).map(a);return l?b.reverse():b},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=Fn(s)).precision==null&&(s.trim=!0),s=yp(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(Q0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function ex(){const e=mp(Za()).domain([1,10]);return e.copy=()=>gi(e,ex()).base(e.base()),et.apply(e,arguments),e}function um(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function sm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gp(e){var t=1,r=e(um(t),sm(t));return r.constant=function(n){return arguments.length?e(um(t=+n),sm(t)):t},Ut(r)}function tx(){var e=gp(Za());return e.copy=function(){return gi(e,tx()).constant(e.constant())},et.apply(e,arguments)}function cm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function kj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Nj(e){return e<0?-e*e:e*e}function bp(e){var t=e(ke,ke),r=1;function n(){return r===1?e(ke,ke):r===.5?e(kj,Nj):e(cm(r),cm(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Ut(t)}function xp(){var e=bp(Za());return e.copy=function(){return gi(e,xp()).exponent(e.exponent())},et.apply(e,arguments),e}function Dj(){return xp.apply(null,arguments).exponent(.5)}function lm(e){return Math.sign(e)*e*e}function Rj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function rx(){var e=hp(),t=[0,1],r=!1,n;function i(a){var o=Rj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(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,na)).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 rx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},et.apply(i,arguments),Ut(i)}function nx(){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]=FP(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[yi(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Lt),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 nx().domain(e).range(t).unknown(n)},et.apply(a,arguments)}function ix(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[yi(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return ix().domain([e,t]).range(i).unknown(a)},et.apply(Ut(o),arguments)}function ax(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[yi(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 ax().domain(e).range(t).unknown(r)},et.apply(i,arguments)}const Tc=new Date,Ec=new Date;function Se(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>
vendor: 5,719 bytes, line 12
12(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Se(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)=>(Tc.setTime(+a),Ec.setTime(+o),e(Tc),e(Ec),Math.floor(r(Tc,Ec))),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 ua=Se(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ua.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Se(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ua);ua.range;const xt=1e3,Ye=xt*60,wt=Ye*60,jt=wt*24,wp=jt*7,fm=jt*30,Cc=jt*365,rr=Se(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*xt)},(e,t)=>(t-e)/xt,e=>e.getUTCSeconds());rr.range;const Op=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xt)},(e,t)=>{e.setTime(+e+t*Ye)},(e,t)=>(t-e)/Ye,e=>e.getMinutes());Op.range;const _p=Se(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ye)},(e,t)=>(t-e)/Ye,e=>e.getUTCMinutes());_p.range;const Ap=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xt-e.getMinutes()*Ye)},(e,t)=>{e.setTime(+e+t*wt)},(e,t)=>(t-e)/wt,e=>e.getHours());Ap.range;const Sp=Se(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*wt)},(e,t)=>(t-e)/wt,e=>e.getUTCHours());Sp.range;const bi=Se(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ye)/jt,e=>e.getDate()-1);bi.range;const Ja=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/jt,e=>e.getUTCDate()-1);Ja.range;const ox=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/jt,e=>Math.floor(e/jt));ox.range;function hr(e){return Se(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)/wp)}const Qa=hr(0),sa=hr(1),Bj=hr(2),qj=hr(3),Br=hr(4),Lj=hr(5),zj=hr(6);Qa.range;sa.range;Bj.range;qj.range;Br.range;Lj.range;zj.range;function vr(e){return Se(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)/wp)}const eo=vr(0),ca=vr(1),Fj=vr(2),Uj=vr(3),qr=vr(4),Wj=vr(5),Hj=vr(6);eo.range;ca.range;Fj.range;Uj.range;qr.range;Wj.range;Hj.range;const Pp=Se(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());Pp.range;const jp=Se(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());jp.range;const Tt=Se(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());Tt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Se(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)});Tt.range;const Et=Se(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());Et.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Se(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)});Et.range;function ux(e,t,r,n,i,a){const o=[[rr,1,xt],[rr,5,5*xt],[rr,15,15*xt],[rr,30,30*xt],[a,1,Ye],[a,5,5*Ye],[a,15,15*Ye],[a,30,30*Ye],[i,1,wt],[i,3,3*wt],[i,6,6*wt],[i,12,12*wt],[n,1,jt],[n,2,2*jt],[r,1,wp],[t,1,fm],[t,3,3*fm],[e,1,Cc]];function u(c,f,l){const p=f<c;p&&([c,f]=[f,c]);const d=l&&typeof l.range=="function"?l:s(c,f,l),y=d?d.range(c,+f+1):[];return p?y.reverse():y}function s(c,f,l){const p=Math.abs(f-c)/l,d=cp(([,,h])=>h).right(o,p);if(d===o.length)return e.every(Ul(c/Cc,f/Cc,l));if(d===0)return ua.every(Math.max(Ul(c,f,l),1));const[y,v]=o[p/o[d-1][2]<o[d][2]/p?d-1:d];return y.every(v)}return[u,s]}const[Gj,Kj]=ux(Et,jp,eo,ox,Sp,_p),[Vj,Xj]=ux(Tt,Pp,Qa,bi,Ap,Op);function Mc(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 $c(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 Yj(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=vn(i),f=yn(i),l=vn(a),p=yn(a),d=vn(o),y=yn(o),v=vn(u),h=yn(u),b=vn(s),x=yn(s),O={a:R,A:L,b:z,B:H,c:null,d:mm,e:mm,f:bT,g:ET,G:MT,H:yT,I:mT,j:gT,L:sx,m:xT,M:wT,p:K,q:U,Q:xm,s:wm,S:OT,u:_T,U:AT,V:ST,w:PT,W:jT,x:null,X:null,y:TT,Y:CT,Z:$T,"%":bm},_={a:V,A:fe,b:me,B:ze,c:null,d:gm,e:gm,f:DT,g:GT,G:VT,H:IT,I:kT,j:NT,L:lx,m:RT,M:BT,p:Kt,q:De,Q:xm,s:wm,S:qT,u:LT,U:zT,V:FT,w:UT,W:WT,x:null,X:null,y:HT,Y:KT,Z:XT,"%":bm},m={a:M,A:E,b:T,B:C,c:I,d:vm,e:vm,f:pT,g:hm,G:dm,H:ym,I:ym,j:sT,L:fT,m:uT,M:cT,p:j,q:oT,Q:hT,s:vT,S:lT,u:tT,U:rT,V:nT,w:eT,W:iT,x:$,X:N,y:hm,Y:dm,Z:aT,"%":dT};O.x=g(r,O),O.X=g(n,O),O.c=g(t,O),_.x=g(r,_),_.X=g(n,_),_.c=g(t,_);function g(F,Y){return function(J){var B=[],ve=-1,te=0,xe=F.length,we,Re,kt;for(J instanceof Date||(J=new Date(+J));++ve<xe;
vendor: 7,457 bytes, line 12
12)F.charCodeAt(ve)===37&&(B.push(F.slice(te,ve)),(Re=pm[we=F.charAt(++ve)])!=null?we=F.charAt(++ve):Re=we==="e"?" ":"0",(kt=Y[we])&&(we=kt(J,Re)),B.push(we),te=ve+1);return B.push(F.slice(te,ve)),B.join("")}}function A(F,Y){return function(J){var B=hn(1900,void 0,1),ve=S(B,F,J+="",0),te,xe;if(ve!=J.length)return null;if("Q"in B)return new Date(B.Q);if("s"in B)return new Date(B.s*1e3+("L"in B?B.L:0));if(Y&&!("Z"in B)&&(B.Z=0),"p"in B&&(B.H=B.H%12+B.p*12),B.m===void 0&&(B.m="q"in B?B.q:0),"V"in B){if(B.V<1||B.V>53)return null;"w"in B||(B.w=1),"Z"in B?(te=$c(hn(B.y,0,1)),xe=te.getUTCDay(),te=xe>4||xe===0?ca.ceil(te):ca(te),te=Ja.offset(te,(B.V-1)*7),B.y=te.getUTCFullYear(),B.m=te.getUTCMonth(),B.d=te.getUTCDate()+(B.w+6)%7):(te=Mc(hn(B.y,0,1)),xe=te.getDay(),te=xe>4||xe===0?sa.ceil(te):sa(te),te=bi.offset(te,(B.V-1)*7),B.y=te.getFullYear(),B.m=te.getMonth(),B.d=te.getDate()+(B.w+6)%7)}else("W"in B||"U"in B)&&("w"in B||(B.w="u"in B?B.u%7:"W"in B?1:0),xe="Z"in B?$c(hn(B.y,0,1)).getUTCDay():Mc(hn(B.y,0,1)).getDay(),B.m=0,B.d="W"in B?(B.w+6)%7+B.W*7-(xe+5)%7:B.w+B.U*7-(xe+6)%7);return"Z"in B?(B.H+=B.Z/100|0,B.M+=B.Z%100,$c(B)):Mc(B)}}function S(F,Y,J,B){for(var ve=0,te=Y.length,xe=J.length,we,Re;ve<te;){if(B>=xe)return-1;if(we=Y.charCodeAt(ve++),we===37){if(we=Y.charAt(ve++),Re=m[we in pm?Y.charAt(ve++):we],!Re||(B=Re(F,J,B))<0)return-1}else if(we!=J.charCodeAt(B++))return-1}return B}function j(F,Y,J){var B=c.exec(Y.slice(J));return B?(F.p=f.get(B[0].toLowerCase()),J+B[0].length):-1}function M(F,Y,J){var B=d.exec(Y.slice(J));return B?(F.w=y.get(B[0].toLowerCase()),J+B[0].length):-1}function E(F,Y,J){var B=l.exec(Y.slice(J));return B?(F.w=p.get(B[0].toLowerCase()),J+B[0].length):-1}function T(F,Y,J){var B=b.exec(Y.slice(J));return B?(F.m=x.get(B[0].toLowerCase()),J+B[0].length):-1}function C(F,Y,J){var B=v.exec(Y.slice(J));return B?(F.m=h.get(B[0].toLowerCase()),J+B[0].length):-1}function I(F,Y,J){return S(F,t,Y,J)}function $(F,Y,J){return S(F,r,Y,J)}function N(F,Y,J){return S(F,n,Y,J)}function R(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function z(F){return s[F.getMonth()]}function H(F){return u[F.getMonth()]}function K(F){return i[+(F.getHours()>=12)]}function U(F){return 1+~~(F.getMonth()/3)}function V(F){return o[F.getUTCDay()]}function fe(F){return a[F.getUTCDay()]}function me(F){return s[F.getUTCMonth()]}function ze(F){return u[F.getUTCMonth()]}function Kt(F){return i[+(F.getUTCHours()>=12)]}function De(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var Y=g(F+="",O);return Y.toString=function(){return F},Y},parse:function(F){var Y=A(F+="",!1);return Y.toString=function(){return F},Y},utcFormat:function(F){var Y=g(F+="",_);return Y.toString=function(){return F},Y},utcParse:function(F){var Y=A(F+="",!0);return Y.toString=function(){return F},Y}}}var pm={"-":"",_:" ",0:"0"},je=/^\s*\d+/,Zj=/^%/,Jj=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Qj(e){return e.replace(Jj,"\\$&")}function vn(e){return new RegExp("^(?:"+e.map(Qj).join("|")+")","i")}function yn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function eT(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function tT(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function rT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function nT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function iT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function dm(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function hm(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 aT(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 oT(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 uT(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 sT(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 cT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lT(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function fT(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function pT(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 dT(e,t,r){var n=Zj.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hT(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function vT(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 re(e.getDate(),t,2)}function yT(e,t){return re(e.getHours(),t,2)}function mT(e,t){return re(e.getHours()%12||12,t,2)}function gT(e,t){return re(1+bi.count(Tt(e),e),t,3)}function sx(e,t){return re(e.getMilliseconds(),t,3)}function bT(e,t){return sx(e,t)+"000"}function xT(e,t){return re(e.getMonth()+1,t,2)}function wT(e,t){return re(e.getMinutes(),t,2)}function OT(e,t){return re(e.getSeconds(),t,2)}function _T(e){var t=e.getDay();return t===0?7:t}function AT(e,t){return re(Qa.count(Tt(e)-1,e),t,2)}function cx(e){var t=e.getDay();return t>=4||t===0?Br(e):Br.ceil(e)}function ST(e,t){return e=cx(e),re(Br.count(Tt(e),e)+(Tt(e).getDay()===4),t,2)}function PT(e){return e.getDay()}function jT(e,t){return re(sa.count(Tt(e)-1,e),t,2)}function TT(e,t){return re(e.getFullYear()%100,t,2)}function ET(e,t){return e=cx(e),re(e.getFullYear()%100,t,2)}function CT(e,t){return re(e.getFullYear()%1e4,t,4)}function MT(e,t){var r=e.getDay();return e=r>=4||r===0?Br(e):Br.ceil(e),re(e.getFullYear()%1e4,t,4)}function $T(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function gm(e,t){return re(e.getUTCDate(),t,2)}function IT(e,t){return re(e.getUTCHours(),t,2)}function kT(e,t){return re(e.getUTCHours()%12||12,t,2)}function NT(e,t){return re(1+Ja.count(Et(e),e),t,3)}function lx(e,t){return re(e.getUTCMilliseconds(),t,3)}function DT(e,t){return lx(e,t)+"000"}function RT(e,t){return re(e.getUTCMonth()+1,t,2)}function BT(e,t){return re(e.getUTCMinutes(),t,2)}function qT(e,t){return re(e.getUTCSeconds(),t,2)}function LT(e){var t=e.getUTCDay();return t===0?7:t}function zT(e,t){return re(eo.count(Et(e)-1,e),t,2)}function fx(e){var t=e.getUTCDay();return t>=4||t===0?qr(e):qr.ceil(e)}function FT(e,t){return e=fx(e),re(qr.count(Et(e),e)+(Et(e).getUTCDay()===4),t,2)}function UT(e){return e.getUTCDay()}function WT(e,t){return re(ca.count(Et(e)-1,e),t,2)}function HT(e,t){return re(e.getUTCFullYear()%100,t,2)}function GT(e,t){return e=fx(e),re(e.getUTCFullYear()%100,t,2)}function KT(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function VT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?qr(e):qr.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function XT(){return"+0000"}function bm(){return"%"}function xm(e){return+e}function wm(e){return Math.floor(+e/1e3)}var xr,px,dx;YT({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 YT(e){return xr=Yj(e),px=xr.format,xr.parse,dx=xr.utcFormat,xr.utcParse,xr}function ZT(e){return new Date(e)}function JT(e){return e instanceof Date?+e:+new Date(+e)}function Tp(e,t,r,n,i,a,o,u,s,c){var f=hp(),l=f.invert,p=f.domain,d=c(".%L"),y=c(":%S"),v=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),x=c("%b %d"),O=c("%B"),_=c("%Y");function m(g){return(s(g)<g?d:u(g)<g?y:o(g)<g?v:a(g)<g?h:n(g)<g?i(g)<g?b:x:r(g)<g?O:_)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?p(Array.from(g,JT)):p().map(ZT)},f.ticks=function(g){var A=p();return e(A[0],A[A.length-1],g??10)},f.tickFormat=function(g,A){return A==null?m:c(A)},f.nice=function(g){var A=p();return(!g||typeof g.range!="function")&&(g=t(A[0],A[A.length-1],g??10)),g?p(Q0(A,g)):f},f.copy=function(){return gi(f,Tp(e,t,r,n,i,a,o,u,s,c))},f}function QT(){return et.apply(Tp(Vj,Xj,Tt,Pp,Qa,bi,Ap,Op,rr,px).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function eE(){return et.apply(Tp(Gj,Kj,Et,jp,eo,Ja,Sp,_p,rr,dx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function to(){var e=0,t=1,r,n,i,a,o=ke,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(p){var d,y;return arguments.length?([d,y]=p,o=l(d,y),c):[o(0),o(1)]}}return c.range=f(sn),c.rangeRound=f(dp),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Wt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function hx(){var e=Ut(to()(ke));return e.copy=function(){return Wt(e,hx())},$t.apply(e,arguments)}function vx(){var e=mp(to()).domain([1,10]);return e.copy=function(){return Wt(e,vx()).base(e.base())},$t.apply(e,arguments)}function yx(){var e=gp(to());return e.copy=function(){return Wt(e,yx()).constant(e.constant())},$t.apply(e,arguments)}function Ep(){var e=bp(to());return e.copy=function(){return Wt(e,Ep()).exponent(e.exponent())},$t.apply(e,arguments)}function tE(){return Ep.apply(null,arguments).exponent(.5)}function mx(){var e=[],t=ke;function r(n){if(n!=null&&!isNaN(n=+n))return t((yi(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(Lt),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)=>zP(e,a/n))},r.copy=function(){return mx(t).domain(e)},$t.apply(r,arguments)}function ro(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=ke,f,l=!1,p;function d(v){return isNaN(v=+v)?p:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(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),s=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?(c=v,d):c};function y(v){return function(h){var b,x,O;return arguments.length?([b,x,O]=h,c=dj(v,[b,x,O]),d):[c(0),c(.5),c(1)]}}return d.range=y(sn),d.rangeRound=y(dp),d.unknown=function(v){return arguments.length?(p=v,d):p},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function gx(){var e=Ut(ro()(ke));return e.copy=function(){return Wt(e,gx())},$t.apply(e,arguments)}function bx(){var e=mp(ro()).domain([.1,1,10]);return e.copy=function(){return Wt(e,bx()).base(e.base())},$t.apply(e,arguments)}function xx(){var e=gp(ro());return e.copy=function(){return Wt(e,xx()).constant(e.constant())},$t.apply(e,arguments)}function Cp(){var e=bp(ro());return e.copy=function(){return Wt(e,Cp()).exponent(e.exponent())},$t.apply(e,arguments)}function rE(){return Cp.apply(null,arguments).exponent(.5)}const Om=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Bn,scaleDiverging:gx,scaleDivergingLog:bx,scaleDivergingPow:Cp,scaleDivergingSqrt:rE,scaleDivergingSymlog:xx,scaleIdentity:J0,scaleImplicit:Wl,scaleLinear:oa,scaleLog:ex,scaleOrdinal:lp,scalePoint:jn,scalePow:xp,scaleQuantile:nx,scaleQuantize:ix,scaleRadial:rx,scaleSequential:hx,scaleSequentialLog:vx,scaleSequentialPow:Ep,scaleSequentialQuantile:mx,scaleSequentialSqrt:tE,scaleSequentialSymlog:yx,scaleSqrt:Dj,scaleSymlog:tx,scaleThreshold:ax,scaleTime:QT,scaleUtc:eE,tick
vendor: 242,065 bytes, lines 12-61
12Format:Z0},Symbol.toStringTag,{value:"Module"}));var Ic,_m;function wx(){if(_m)return Ic;_m=1;var e=rn();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return Ic=t,Ic}var kc,Am;function nE(){if(Am)return kc;Am=1;function e(t,r){return t>r}return kc=e,kc}var Nc,Sm;function iE(){if(Sm)return Nc;Sm=1;var e=wx(),t=nE(),r=un();function n(i){return i&&i.length?e(i,r,t):void 0}return Nc=n,Nc}var aE=iE();const Bt=le(aE);var Dc,Pm;function oE(){if(Pm)return Dc;Pm=1;function e(t,r){return t<r}return Dc=e,Dc}var Rc,jm;function uE(){if(jm)return Rc;jm=1;var e=wx(),t=oE(),r=un();function n(i){return i&&i.length?e(i,r,t):void 0}return Rc=n,Rc}var sE=uE();const no=le(sE);var Bc,Tm;function cE(){if(Tm)return Bc;Tm=1;var e=Hf(),t=Ft(),r=M0(),n=Le();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return Bc=i,Bc}var qc,Em;function lE(){if(Em)return qc;Em=1;var e=E0(),t=cE();function r(n,i){return e(t(n,i),1)}return qc=r,qc}var fE=lE();const pE=le(fE);var Lc,Cm;function dE(){if(Cm)return Lc;Cm=1;var e=ip();function t(r,n){return e(r,n)}return Lc=t,Lc}var hE=dE();const Lr=le(hE);var cn=1e9,vE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},$p,he=!0,Qe="[DecimalError] ",or=Qe+"Invalid argument: ",Mp=Qe+"Exponent out of range: ",ln=Math.floor,Qt=Math.pow,yE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,He,Pe=1e7,de=7,Ox=9007199254740991,la=ln(Ox/de),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)*de;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 St(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return ue(St(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(He))throw Error(Qe+"NaN");if(r.s<1)throw Error(Qe+(r.s?"NaN":"-Infinity"));return r.eq(He)?new n(0):(he=!1,t=St(Un(r,a),Un(e,a),a),he=!0,ue(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Sx(t,e):_x(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(Qe+"NaN");return r.s?(he=!1,t=St(r,e,0,1).times(e),he=!0,r.minus(t)):ue(new n(r),i)};W.naturalExponential=W.exp=function(){return Ax(this)};W.naturalLogarithm=W.ln=function(){return Un(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?_x(t,e):Sx(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(or+e);if(t=be(i)+1,n=i.d.length-1,r=n*de+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};W.squareRoot=W.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(Qe+"NaN")}for(e=be(u),he=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=lt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ln((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(St(u,a,o+2)).times(.5),lt(a.d).slice(0,o)===(t=lt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ue(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return he=!0,ue(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,p=f.d,d=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=p.length,c=d.length,s<c&&(a=p,p=d,d=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+d[n]*p[i-n-1]+t,a[i--]=u%Pe|0,t=u/Pe|0;a[i]=(a[i]+t)%Pe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,he?ue(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:(yt(e,0,cn),t===void 0?t=n.rounding:yt(t,0,8),ue(r,e+be(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=cr(n,!0):(yt(e,0,cn),t===void 0?t=i.rounding:yt(t,0,8),n=ue(new i(n),e+1,t),r=cr(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?cr(i):(yt(e,0,cn),t===void 0?t=a.rounding:yt(t,0,8),n=ue(new a(i),e+be(i)+1,t),r=cr(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 ue(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,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(He);if(u=new s(u),!u.s){if(e.s<1)throw Error(Qe+"Infinity");return u}if(u.eq(He))return u;if(n=s.precision,e.eq(He))return ue(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=Ox){for(i=new s(He),t=Math.ceil(n/de+4),he=!1;r%2&&(i=i.times(u),$m(i.d,t)),r=ln(r/2),r!==0;)u=u.times(u),$m(u.d,t);return he=!0,e.s<0?new s(He).div(i):ue(i,n)}}else if(a<0)throw Error(Qe+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,he=!1,i=e.times(Un(u,n+c)),he=!0,i=Ax(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=cr(i,r<=a.toExpNeg||r>=a.toExpPos)):(yt(e,1,cn),t===void 0?t=a.rounding:yt(t,0,8),i=ue(new a(i),e,t),r=be(i),n=cr(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):(yt(e,1,cn),t===void 0?t=n.rounding:yt(t,0,8)),ue(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 cr(e,t<=r.toExpNeg||t>=r.toExpPos)};function _x(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),he?ue(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/de),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Pe|0,s[a]%=Pe;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,he?ue(t,l):t}function yt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(or+e)}function lt(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=de-n.length,r&&(a+=Dt(r)),a+=n;o=e[t],n=o+"",r=de-n.length,r&&(a+=Dt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var St=(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%Pe|0,o=a/Pe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Pe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,p,d,y,v,h,b,x,O,_,m,g,A,S,j=n.constructor,M=n.s==i.s?1:-1,E=n.d,T=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(Qe+"Division by zero");for(s=n.e-i.e,A=T.length,m=E.length,d=new j(M),y=d.d=[],c=0;T[c]==(E[c]||0);)++c;if(T[c]>(E[c]||0)&&--s,a==null?x=a=j.precision:o?x=a+(be(n)-be(i))+1:x=a,x<0)return new j(0);if(x=x/de+2|0,c=0,A==1)for(f=0,T=T[0],x++;(c<m||f)&&x--;c++)O=f*Pe+(E[c]||0),y[c]=O/T|0,f=O%T|0;else{for(f=Pe/(T[0]+1)|0,f>1&&(T=e(T,f),E=e(E,f),A=T.length,m=E.length),_=A,v=E.slice(0,A),h=v.length;h<A;)v[h++]=0;S=T.slice(),S.unshift(0),g=T[0],T[1]>=Pe/2&&++g;do f=0,u=t(T,v,A,h),u<0?(b=v[0],A!=h&&(b=b*Pe+(v[1]||0)),f=b/g|0,f>1?(f>=Pe&&(f=Pe-1),l=e(T,f),p=l.length,h=v.length,u=t(l,v,p,h),u==1&&(f--,r(l,A<p?S:T,p))):(f==0&&(u=f=1),l=T.slice()),p=l.length,p<h&&l.unshift(0),r(v,l,h),u==-1&&(h=v.length,u=t(T,v,A,h),u<1&&(f++,r(v,A<h?S:T,h))),h=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[h++]=E[_]||0:(v=[E[_]],h=1);while((_++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),d.e=s,ue(d,o?a+be(d)+1:a)}})();function Ax(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(be(e)>16)throw Error(Mp+be(e));if(!e.s)return new f(He);for(he=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Qt(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(He),f.precision=u;;){if(i=ue(i.times(e),u),r=r.times(++s),o=a.plus(St(i,r,u)),lt(o.d).slice(0,u)===lt(a.d).slice(0,u)){for(;c--;)a=ue(a.times(a),u);return f.precision=l,t==null?(he=!0,ue(a,l)):a}a=o}}function be(e){for(var t=e.e*de,r=e.d[0];r>=10;r/=10)t++;return t}function zc(e,t,r){if(t>e.LN10.sd())throw he=!0,r&&(e.precision=r),Error(Qe+"LN10 precision limit exceeded");return ue(new e(e.LN10),t)}function Dt(e){for(var t="";e--;)t+="0";return t}function Un(e,t){var r,n,i,a,o,u,s,c,f,l=1,p=10,d=e,y=d.d,v=d.constructor,h=v.precision;if(d.s<1)throw Error(Qe+(d.s?"NaN":"-Infinity"));if(d.eq(He))return new v(0);if(t==null?(he=!1,c=h):c=t,d.eq(10))return t==null&&(he=!0),zc(v,c);if(c+=p,v.precision=c,r=lt(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=lt(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 s=zc(v,c+2,h).times(a+""),d=Un(new v(n+"."+r.slice(1)),c-p).plus(s),v.precision=h,t==null?(he=!0,ue(d,h)):d;for(u=o=d=St(d.minus(He),d.plus(He),c),f=ue(d.times(d),c),i=3;;){if(o=ue(o.times(f),c),s=u.plus(St(o,new v(i),c)),lt(s.d).slice(0,c)===lt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(zc(v,c+2,h).times(a+""))),u=St(u,new v(l),c),v.precision=h,t==null?(he=!0,ue(u,h)):u;u=s,i+=2}}function Mm(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=ln(r/de),e.d=[],n=(r+1)%de,r<0&&(n+=de),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=de;n<i;)e.d.push(+t.slice(n,n+=de));t=t.slice(n),n=de-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),he&&(e.e>la||e.e<-la))throw Error(Mp+r)}else e.s=0,e.e=0,e.d=[0];return e}function ue(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=de,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/de),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=de,i=n-de+o}if(r!==void 0&&(a=Qt(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/Qt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=be(e),l.length=1,t=t-a-1,l[0]=Qt(10,(de-t%de)%de),e.e=ln(-t/de)||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=Qt(10,de-n),l[f]=i>0?(c/Qt(10,o-i)%Qt(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Pe&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Pe)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(he&&(e.e>la||e.e<-la))throw Error(Mp+be(e));return e}function Sx(e,t){var r,n,i,a,o,u,s,c,f,l,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),he?ue(t,d):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(d/de),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Pe-1;--s[a],s[i]+=Pe}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,he?ue(t,d):t):new p(0)}function cr(e,t,r){var n,i=be(e),a=lt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Dt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Dt(-i-1)+a,r&&(n=r-o)>0&&(a+=Dt(n))):i>=o?(a+=Dt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Dt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Dt(n))),e.s<0?"-"+a:a}function $m(e,t){if(e.length>t)return e.length=t,!0}function Px(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(or+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 Mm(o,a.toString())}else if(typeof a!="string")throw Error(or+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,yE.test(a))Mm(o,a);else throw Error(or+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=Px,i.config=i.set=mE,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 mE(e){if(!e||typeof e!="object")throw Error(Qe+"Object expected");var t,r,n,i=["precision",1,cn,"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(ln(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(or+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(or+r+": "+n);return this}var $p=Px(vE);He=new $p(1);const oe=$p;function gE(e){return OE(e)||wE(e)||xE(e)||bE()}function bE(){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 xE(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 wE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function OE(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 _E=function(t){return t},jx={},Tx=function(t){return t===jx},Im=function(t){return function r(){return arguments.length===0||arguments.length===1&&Tx(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},AE=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!==jx}).length;return o>=t?r.apply(void 0,i):e(t-o,Im(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return Tx(l)?s.shift():l});return r.apply(void 0,gE(f).concat(s))}))})},io=function(t){return AE(t.length,t)},Xl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},SE=io(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),PE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return _E;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Yl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Ex=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function jE(e){var t;return e===0?t=1:t=Math.floor(new oe(e).abs().log(10).toNumber())+1,t}function TE(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 EE=io(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),CE=io(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),ME=io(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const ao={rangeStep:TE,getDigitCount:jE,interpolateNumber:EE,uninterpolateNumber:CE,uninterpolateTruncation:ME};function Zl(e){return kE(e)||IE(e)||Cx(e)||$E()}function $E(){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 IE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function kE(e){if(Array.isArray(e))return Jl(e)}function Wn(e,t){return RE(e)||DE(e,t)||Cx(e,t)||NE()}function NE(){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 Cx(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 DE(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function RE(e){if(Array.isArray(e))return e}function Mx(e){var t=Wn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function $x(e,t,r){if(e.lte(0))return new oe(0);var n=ao.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),s=u.mul(i);return t?s:new oe(Math.ceil(s))}function BE(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(ao.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=PE(SE(function(s){return i.add(new oe(s-o).mul(n)).toNumber()}),Xl);return u(0,t)}function Ix(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=$x(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()),s=Math.ceil(new oe(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?Ix(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new oe(u).mul(a)),tickMax:o.add(new oe(s).mul(a))})}function qE(e){var t=Wn(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=Mx([r,n]),s=Wn(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].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(c===f)return BE(c,i,a);var p=Ix(c,f,o,a),d=p.step,y=p.tickMin,v=p.tickMax,h=ao.rangeStep(y,v.add(new oe(.1).mul(d)),d);return r>n?Yl(h):h}function LE(e,t){var r=Wn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Mx([n,i]),u=Wn(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=$x(new oe(c).sub(s).div(f-1),a,0),p=[].concat(Zl(ao.rangeStep(new oe(s),new oe(c).sub(new oe(.99).mul(l)),l)),[c]);return n>i?Yl(p):p}var zE=Ex(qE),FE=Ex(LE),UE="Invariant failed";function lr(e,t){throw new Error(UE)}var WE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 fa(){return fa=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},fa.apply(this,arguments)}function HE(e,t){return XE(e)||VE(e,t)||KE(e,t)||GE()}function GE(){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 KE(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 VE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function XE(e){if(Array.isArray(e))return e}function YE(e,t){if(e==null)return{};var r=ZE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function JE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QE(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,Dx(n.key),n)}}function eC(e,t,r){return t&&QE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tC(e,t,r){return t=pa(t),rC(e,kx()?Reflect.construct(t,r||[],pa(e).constructor):t.apply(e,r))}function rC(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 nC(e)}function nC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kx=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pa(e)}function iC(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 Nx(e,t,r){return t=Dx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dx(e){var t=aC(e,"string");return zr(t)=="symbol"?t:t+""}function aC(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 xi=(function(e){function t(){return JE(this,t),tC(this,t,arguments)}return iC(t,e),eC(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,p=YE(n,WE),d=Z(p,!1);this.props.direction==="x"&&f.type!=="number"&&lr();var y=s.map(function(v){var h=c(v,u),b=h.x,x=h.y,O=h.value,_=h.errorVal;if(!_)return null;var m=[],g,A;if(Array.isArray(_)){var S=HE(_,2);g=S[0],A=S[1]}else g=A=_;if(a==="vertical"){var j=f.scale,M=x+i,E=M+o,T=M-o,C=j(O-g),I=j(O+A);m.push({x1:I,y1:E,x2:I,y2:T}),m.push({x1:C,y1:M,x2:I,y2:M}),m.push({x1:C,y1:E,x2:C,y2:T})}else if(a==="horizontal"){var $=l.scale,N=b+i,R=N-o,L=N+o,z=$(O-g),H=$(O+A);m.push({x1:R,y1:H,x2:L,y2:H}),m.push({x1:N,y1:z,x2:N,y2:H}),m.push({x1:R,y1:z,x2:L,y2:z})}return P.createElement(ce,fa({className:"recharts-errorBar",key:"bar-".concat(m.map(function(K){return"".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))},d),m.map(function(K){return P.createElement("line",fa({},K,{key:"line-".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))}))});return P.createElement(ce,{className:"recharts-errorBars"},y)}}])})(P.Component);Nx(xi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Nx(xi,"displayName","ErrorBar");function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function Nm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nm(Object(r),!0).forEach(function(n){oC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oC(e,t,r){return t=uC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uC(e){var t=sC(e,"string");return Hn(t)=="symbol"?t:t+""}function sC(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)}var Rx=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=We(r,jr);if(!o)return null;var u=jr.defaultProps,s=u!==void 0?Yt(Yt({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var p=l.item,d=l.props,y=d.sectors||d.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||p.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,p=l.type.defaultProps,d=p!==void 0?Yt(Yt({},p),l.props):{},y=d.dataKey,v=d.name,h=d.legendType,b=d.hide;return{inactive:b,dataKey:y,type:s.iconType||h||"square",color:Ip(l),value:v||y,payload:d}}),Yt(Yt(Yt({},s),jr.getWithHeight(o,i)),{},{payload:c,item:o})};function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function Dm(e){return pC(e)||fC(e)||lC(e)||cC()}function cC(){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 lC(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 fC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pC(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 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 ye(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){Er(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 Er(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=hC(e,"string");return Gn(t)=="symbol"?t:t+""}function hC(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 Ne(e,t,r){return Q(e)||Q(t)?r:Ae(t)?Ze(e,t,r):X(t)?t(e):r}function Tn(e,t,r,n){var i=pE(e,function(u){return Ne(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[no(a),Bt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Q(u)}):i;return o.map(function(u){return Ae(u)||u instanceof Date?u:""})}var vC=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 s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,p=c>=u-1?i[0].coordinate:i[c+1].coordinate,d=void 0;if(ut(l-f)!==ut(p-l)){var y=[];if(ut(p-l)===ut(s[1]-s[0])){d=p;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{d=f;var h=p+s[1]-s[0];y[0]=Math.min(l,(h+l)/2),y[1]=Math.max(l,(h+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[c].index;break}}else{var x=Math.min(f,p),O=Math.max(f,p);if(t>(x+l)/2&&t<=(O+l)/2){o=i[c].index;break}}}else for(var _=0;_<u;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<u-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===u-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},Ip=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,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},yC=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),p=0,d=l.length;p<d;p++){var y=f[l[p]],v=y.items,h=y.cateAxisId,b=v.filter(function(A){return _t(A.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,O=x!==void 0?ye(ye({},x),b[0].props):b[0].props,_=O.barSize,m=O[h];o[m]||(o[m]=[]);var g=Q(_)?r:_;o[m].push({item:b[0],stackList:b.slice(1),barSize:Q(g)?void 0:sr(g,n,0)})}}return o},mC=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=sr(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var p=!1,d=i/s,y=o.reduce(function(_,m){return _+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&d>0&&(p=!0,d*=.9,y=s*d);var v=(i-y)/2>>0,h={offset:v-c,size:0};f=o.reduce(function(_,m){var g={item:m.item,position:{offset:h.offset+h.size+c,size:p?d:m.barSize}},A=[].concat(Dm(_),[g]);return h=A[A.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){A.push({item:S,position:h})}),A},l)}else{var b=sr(n,i,0,!0);i-2*b-(s-1)*c<=0&&(c=0);var x=(i-2*b-(s-1)*c)/s;x>1&&(x>>=0);var O=u===+u?Math.min(x,u):x;f=o.reduce(function(_,m,g){var A=[].concat(Dm(_),[{item:m.item,position:{offset:b+(x+c)*g+(x-O)/2,size:O}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){A.push({item:S,position:A[A.length-1].position})}),A},l)}return f},gC=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=Rx({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,p=f.height,d=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&d!=="center"&&q(t[d]))return ye(ye({},t),{},Er({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&q(t[y]))return ye(ye({},t),{},Er({},y,t[y]+(p||0)))}return t},bC=function(t,r,n){return Q(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Bx=function(t,r,n,i,a){var o=r.props.children,u=Je(o,xi).filter(function(c){return bC(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Ne(f,n);if(Q(l))return c;var p=Array.isArray(l)?[no(l),Bt(l)]:[l,l],d=s.reduce(function(y,v){var h=Ne(f,v,0),b=p[0]-Math.abs(Array.isArray(h)?h[0]:h),x=p[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(d[0],c[0]),Math.max(d[1],c[1])]},[1/0,-1/0])}return null},xC=function(t,r,n,i,a){var o=r.map(function(u){return Bx(t,u,n,a,i)}).filter(function(u){return!Q(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},qx=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&Bx(t,s,c,i)||Tn(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},Lx=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},zx=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},Ot=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?ut(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var p=a?a.indexOf(l):l;return{coordinate:i(p)+c,value:l,offset:c}});return f.filter(function(l){return!an(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,p){return{coordinate:i(l)+c,value:l,index:p,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,p){return{coordinate:i(l)+c,value:a?a[l]:l,index:p,offset:c}})},Fc=new WeakMap,Ii=function(t,r){if(typeof r!="function")return t;Fc.has(t)||Fc.set(t,new WeakMap);var n=Fc.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},wC=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:Bn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:oa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:jn(),realScaleType:"point"}:a==="category"?{scale:Bn(),realScaleType:"band"}:{scale:oa(),realScaleType:"linear"};if(ur(i)){var s="scale".concat(Wa(i));return{scale:(Om[s]||jn)(),realScaleType:Om[s]?s:"point"}}return X(i)?{scale:i}:{scale:jn(),realScaleType:"point"}},Bm=1e-4,OC=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])-Bm,o=Math.max(i[0],i[1])+Bm,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},_C=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},AC=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},SC=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=an(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},PC=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=an(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)}},jC={sign:SC,expand:l_,none:$r,silhouette:f_,wiggle:p_,positive:PC},TC=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=jC[n],o=c_().keys(i).value(function(u,s){return+Ne(u,s,0)}).order(Cl).offset(a);return o(t)},EC=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,p){var d,y=(d=p.type)!==null&&d!==void 0&&d.defaultProps?ye(ye({},p.type.defaultProps),p.props):p.props,v=y.stackId,h=y.hide;if(h)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(Ae(v)){var O=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};O.items.push(p),x.hasStack=!0,x.stackGroups[v]=O}else x.stackGroups[on("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return ye(ye({},l),{},Er({},b,x))},s),f={};return Object.keys(c).reduce(function(l,p){var d=c[p];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(v,h){var b=d.stackGroups[h];return ye(ye({},v),{},Er({},h,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:TC(t,b.items,a)}))},y)}return ye(ye({},l),{},Er({},p,d))},f)},CC=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=zE(c,a,u);return t.domain([no(f),Bt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),p=FE(l,a,u);return{niceTicks:p}}return null};function da(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&&!Q(i[t.dataKey])){var u=qi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=Ne(i,Q(o)?t.dataKey:o);return Q(s)?null:t.scale(s)}var qm=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=Ne(o,r.dataKey,r.domain[u]);return Q(s)?null:r.scale(s)-a/2+i},MC=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]},$C=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(Ae(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},IC=function(t){return t.reduce(function(r,n){return[no(n.concat([r[0]]).filter(q)),Bt(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},Fx=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=IC(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Lm=/^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(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Lm.test(t[0])){var a=+Lm.exec(t[0])[1];i[0]=r[0]-a}else X(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(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},ha=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=op(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Fm=function(t,r,n){return!t||!t.length||Lr(t,Ze(n,"type.defaultProps.domain"))?r:t},Ux=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,s=n.tooltipType,c=n.chartType,f=n.hide;return ye(ye({},Z(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Ip(t),value:Ne(r,i),type:s,payload:r,chartType:c,hide:f})};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 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 Wm(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){kC(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 kC(e,t,r){return t=NC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NC(e){var t=DC(e,"string");return Kn(t)=="symbol"?t:t+""}function DC(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var va=Math.PI/180,RC=function(t){return t*180/Math.PI},Ce=function(t,r,n,i){return{x:t+Math.cos(-va*i)*n,y:r+Math.sin(-va*i)*n}},BC=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))},qC=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=BC({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:RC(c),angleInRadian:c}},LC=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}},zC=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},Hm=function(t,r){var n=t.x,i=t.y,a=qC({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=LC(r),l=f.startAngle,p=f.endAngle,d=u,y;if(l<=p){for(;d>p;)d-=360;for(;d<l;)d+=360;y=d>=l&&d<=p}else{for(;d>l;)d-=360;for(;d<p;)d+=360;y=d>=p&&d<=l}return y?Wm(Wm({},r),{},{radius:o,angle:zC(d,r)}):null};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)}var FC=["offset"];function UC(e){return KC(e)||GC(e)||HC(e)||WC()}function WC(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HC(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 GC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KC(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 VC(e,t){if(e==null)return{};var r=XC(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 XC(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){YC(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 YC(e,t,r){return t=ZC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZC(e){var t=JC(e,"string");return Vn(t)=="symbol"?t:t+""}function JC(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)}function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}var QC=function(t){var r=t.value,n=t.formatter,i=Q(t.children)?r:t.children;return X(n)?n(i):i},eM=function(t,r){var n=ut(r-t),i=Math.min(Math.abs(r-t),360);return n*i},tM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,p=s.outerRadius,d=s.startAngle,y=s.endAngle,v=s.clockWise,h=(l+p)/2,b=eM(d,y),x=b>=0?1:-1,O,_;i==="insideStart"?(O=d+x*o,_=v):i==="insideEnd"?(O=y-x*o,_=!v):i==="end"&&(O=y+x*o,_=v),_=b<=0?_:!_;var m=Ce(c,f,h,O),g=Ce(c,f,h,O+(_?1:-1)*359),A="M".concat(m.x,",").concat(m.y,` 19 A`).concat(h,",").concat(h,",0,1,").concat(_?0:1,`, 20 `).concat(g.x,",").concat(g.y),S=Q(t.id)?on("recharts-radial-line-"):t.id;return P.createElement("text",Xn({},n,{dominantBaseline:"central",className:ee("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:S,d:A})),P.createElement("textPath",{xlinkHref:"#".concat(S)},r))},rM=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,p=(f+l)/2;if(i==="outside"){var d=Ce(o,u,c+n,p),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 h=(s+c)/2,b=Ce(o,u,h,p),x=b.x,O=b.y;return{x,y:O,textAnchor:"middle",verticalAnchor:"middle"}},nM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,p=l*i,d=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,h=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var O={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:d};return _e(_e({},O),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var _={x:u+c/2,y:s+f+p,textAnchor:"middle",verticalAnchor:y};return _e(_e({},_),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-h,y:s+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+c+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return _e(_e({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var A=n?{width:c,height:f}:{};return a==="insideLeft"?_e({x:u+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},A):a==="insideRight"?_e({x:u+c-h,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},A):a==="insideTop"?_e({x:u+c/2,y:s+p,textAnchor:"middle",verticalAnchor:y},A):a==="insideBottom"?_e({x:u+c/2,y:s+f-p,textAnchor:"middle",verticalAnchor:d},A):a==="insideTopLeft"?_e({x:u+h,y:s+p,textAnchor:x,verticalAnchor:y},A):a==="insideTopRight"?_e({x:u+c-h,y:s+p,textAnchor:b,verticalAnchor:y},A):a==="insideBottomLeft"?_e({x:u+h,y:s+f-p,textAnchor:x,verticalAnchor:d},A):a==="insideBottomRight"?_e({x:u+c-h,y:s+f-p,textAnchor:b,verticalAnchor:d},A):nn(a)&&(q(a.x)||er(a.x))&&(q(a.y)||er(a.y))?_e({x:u+sr(a.x,c),y:s+sr(a.y,f),textAnchor:"end",verticalAnchor:"end"},A):_e({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},iM=function(t){return"cx"in t&&q(t.cx)};function $e(e){var t=e.offset,r=t===void 0?5:t,n=VC(e,FC),i=_e({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,p=i.textBreakAll;if(!a||Q(u)&&Q(s)&&!D.isValidElement(c)&&!X(c))return null;if(D.isValidElement(c))return D.cloneElement(c,i);var d;if(X(c)){if(d=D.createElement(c,i),D.isValidElement(d))return d}else d=QC(i);var y=iM(a),v=Z(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return tM(i,d,v);var h=y?rM(i):nM(i);return P.createElement(Ji,Xn({className:ee("recharts-label",l)},v,h,{breakAll:p}),d)}$e.displayName="Label";var Wx=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,p=t.y,d=t.top,y=t.left,v=t.width,h=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(q(v)&&q(h)){if(q(l)&&q(p))return{x:l,y:p,width:v,height:h};if(q(d)&&q(y))return{x:d,y,width:v,height:h}}return q(l)&&q(p)?{x:l,y:p,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},aM=function(t,r){return t?t===!0?P.createElement($e,{key:"label-implicit",viewBox:r}):Ae(t)?P.createElement($e,{key:"label-implicit",viewBox:r,value:t}):D.isValidElement(t)?t.type===$e?D.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement($e,{key:"label-implicit",content:t,viewBox:r}):X(t)?P.createElement($e,{key:"label-implicit",content:t,viewBox:r}):nn(t)?P.createElement($e,Xn({viewBox:r},t,{key:"label-implicit"})):null:null},oM=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=Wx(t),o=Je(i,$e).map(function(s,c){return D.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=aM(t.label,r||a);return[u].concat(UC(o))};$e.parseViewBox=Wx;$e.renderCallByParent=oM;var Uc,Km;function uM(){if(Km)return Uc;Km=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Uc=e,Uc}var sM=uM();const cM=le(sM);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)}var lM=["valueAccessor"],fM=["data","dataKey","clockWise","id","textBreakAll"];function pM(e){return yM(e)||vM(e)||hM(e)||dM()}function dM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hM(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 vM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yM(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 ya(){return ya=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},ya.apply(this,arguments)}function Vm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(r),!0).forEach(function(n){mM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mM(e,t,r){return t=gM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gM(e){var t=bM(e,"string");return Yn(t)=="symbol"?t:t+""}function bM(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ym(e,t){if(e==null)return{};var r=xM(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 xM(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 wM=function(t){return Array.isArray(t.value)?cM(t.value):t.value};function Pt(e){var t=e.valueAccessor,r=t===void 0?wM:t,n=Ym(e,lM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=Ym(n,fM);return!i||!i.length?null:P.createElement(ce,{className:"recharts-label-list"},i.map(function(f,l){var p=Q(a)?r(f,l):Ne(f&&f.payload,a),d=Q(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement($e,ya({},Z(f,!0),c,d,{parentViewBox:f.parentViewBox,value:p,textBreakAll:s,viewBox:$e.parseViewBox(Q(o)?f:Xm(Xm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Pt.displayName="LabelList";function OM(e,t){return e?e===!0?P.createElement(Pt,{key:"labelList-implicit",data:t}):P.isValidElement(e)||X(e)?P.createElement(Pt,{key:"labelList-implicit",data:t,content:e}):nn(e)?P.createElement(Pt,ya({data:t},e,{key:"labelList-implicit"})):null:null}function _M(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=Je(n,Pt).map(function(o,u){return D.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=OM(e.label,t);return[a].concat(pM(i))}Pt.renderCallByParent=_M;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 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 Zm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zm(Object(r),!0).forEach(function(n){AM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AM(e,t,r){return t=SM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SM(e){var t=PM(e,"string");return Zn(t)=="symbol"?t:t+""}function PM(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 jM=function(t,r){var n=ut(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ki=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/va,p=c?a:a+o*l,d=Ce(r,n,f,p),y=Ce(r,n,i,p),v=c?a-o*l:a,h=Ce(r,n,f*Math.cos(l*va),v);return{center:d,circleTangency:y,lineTangency:h,theta:l}},Hx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=jM(o,u),c=o+s,f=Ce(r,n,a,o),l=Ce(r,n,a,c),p="M ".concat(f.x,",").concat(f.y,` 22 A `).concat(a,",").concat(a,`,0, 23 `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`, 24 `).concat(l.x,",").concat(l.y,` 25 `);if(i>0){var d=Ce(r,n,i,o),y=Ce(r,n,i,c);p+="L ".concat(y.x,",").concat(y.y,` 26 A `).concat(i,",").concat(i,`,0, 27 `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`, 28 `).concat(d.x,",").concat(d.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},TM=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=ut(f-c),p=ki({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),d=p.circleTangency,y=p.lineTangency,v=p.theta,h=ki({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),b=h.circleTangency,x=h.lineTangency,O=h.theta,_=s?Math.abs(c-f):Math.abs(c-f)-v-O;if(_<0)return u?"M ".concat(y.x,",").concat(y.y,` 29 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 30 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 31 `):Hx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,` 32 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,` 33 A`).concat(a,",").concat(a,",0,").concat(+(_>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,` 34 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,` 35 `);if(i>0){var g=ki({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=g.circleTangency,S=g.lineTangency,j=g.theta,M=ki({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),E=M.circleTangency,T=M.lineTangency,C=M.theta,I=s?Math.abs(c-f):Math.abs(c-f)-j-C;if(I<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(T.x,",").concat(T.y,` 36 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,` 37 A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(l>0),",").concat(A.x,",").concat(A.y,` 38 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},EM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Gx=function(t){var r=Jm(Jm({},EM),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,p=r.className;if(o<a||f===l)return null;var d=ee("recharts-sector",p),y=o-a,v=sr(u,y,0,!0),h;return v>0&&Math.abs(f-l)<360?h=TM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):h=Hx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",af({},Z(r,!0),{className:d,d:h,role:"img"}))};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 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 Qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(r),!0).forEach(function(n){CM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CM(e,t,r){return t=MM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MM(e){var t=$M(e,"string");return Jn(t)=="symbol"?t:t+""}function $M(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 tg={curveBasisClosed:JO,curveBasisOpen:QO,curveBasis:ZO,curveBumpX:RO,curveBumpY:BO,curveLinearClosed:e_,curveLinear:Ga,curveMonotoneX:t_,curveMonotoneY:r_,curveNatural:n_,curveStep:i_,curveStepAfter:o_,curveStepBefore:a_},Ni=function(t){return t.x===+t.x&&t.y===+t.y},mn=function(t){return t.x},gn=function(t){return t.y},IM=function(t,r){if(X(t))return t;var n="curve".concat(Wa(t));return(n==="curveMonotone"||n==="curveBump")&&r?tg["".concat(n).concat(r==="vertical"?"Y":"X")]:tg[n]||Ga},kM=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=IM(n,u),l=c?a.filter(function(v){return Ni(v)}):a,p;if(Array.isArray(o)){var d=c?o.filter(function(v){return Ni(v)}):o,y=l.map(function(v,h){return eg(eg({},v),{},{base:d[h]})});return u==="vertical"?p=Pi().y(gn).x1(mn).x0(function(v){return v.base.x}):p=Pi().x(mn).y1(gn).y0(function(v){return v.base.y}),p.defined(Ni).curve(f),p(y)}return u==="vertical"&&q(o)?p=Pi().y(gn).x1(mn).x0(o):q(o)?p=Pi().x(mn).y1(gn).y0(o):p=Jb().x(mn).y(gn),p.defined(Ni).curve(f),p(l)},Cr=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?kM(t):i;return D.createElement("path",of({},Z(t,!1),Li(t),{className:ee("recharts-curve",r),d:o,ref:a}))},Wc={exports:{}},Hc,rg;function NM(){if(rg)return Hc;rg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Hc=e,Hc}var Gc,ng;function DM(){if(ng)return Gc;ng=1;var e=NM();function t(){}function r(){}return r.resetWarningCache=t,Gc=function(){function n(o,u,s,c,f,l){if(l!==e){var p=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 p.name="Invariant Violation",p}}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},Gc}var ig;function RM(){return ig||(ig=1,Wc.exports=DM()()),Wc.exports}var BM=RM();const ie=le(BM),{getOwnPropertyNames:qM,getOwnPropertySymbols:LM}=Object,{hasOwnProperty:zM}=Object.prototype;function Kc(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Di(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 s=e(r,n,i);return a.delete(r),a.delete(n),s}}function FM(e){return e?.[Symbol.toStringTag]}function ag(e){return qM(e).concat(LM(e))}const UM=Object.hasOwn||((e,t)=>zM.call(e,t));function yr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const WM="__v",HM="__o",GM="_owner",{getOwnPropertyDescriptor:og,keys:ug}=Object;function KM(e,t){return e.byteLength===t.byteLength&&ma(new Uint8Array(e),new Uint8Array(t))}function VM(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 XM(e,t){return e.byteLength===t.byteLength&&ma(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function YM(e,t){return yr(e.getTime(),t.getTime())}function ZM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function JM(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,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let f=!1,l=0;for(;(u=c.next())&&!u.done;){if(i[l]){l++;continue}const p=o.value,d=u.value;if(r.equals(p[0],d[0],s,l,e,t,r)&&r.equals(p[1],d[1],p[0],d[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}const QM=yr;function e$(e,t,r){const n=ug(e);let i=n.length;if(ug(t).length!==i)return!1;for(;i-- >0;)if(!Kx(e,t,r,n[i]))return!1;return!0}function bn(e,t,r){const n=ag(e);let i=n.length;if(ag(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Kx(e,t,r,a)||(o=og(e,a),u=og(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function t$(e,t){return yr(e.valueOf(),t.valueOf())}function r$(e,t){return e.source===t.source&&e.flags===t.flags}function cg(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 s=t.values();let c=!1,f=0;for(;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function ma(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 n$(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 Kx(e,t,r,n){return(n===GM||n===HM||n===WM)&&(e.$$typeof||t.$$typeof)?!0:UM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const i$="[object ArrayBuffer]",a$="[object Arguments]",o$="[object Boolean]",u$="[object DataView]",s$="[object Date]",c$="[object Error]",l$="[object Map]",f$="[object Number]",p$="[object Object]",d$="[object RegExp]",h$="[object Set]",v$="[object String]",y$={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},m$="[object URL]",g$=Object.prototype.toString;function b$({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:p,areUrlsEqual:d,unknownTagComparators:y}){return function(h,b,x){if(h===b)return!0;if(h==null||b==null)return!1;const O=typeof h;if(O!==typeof b)return!1;if(O!=="object")return O==="number"?u(h,b,x):O==="function"?a(h,b,x):!1;const _=h.constructor;if(_!==b.constructor)return!1;if(_===Object)return s(h,b,x);if(Array.isArray(h))return t(h,b,x);if(_===Date)return n(h,b,x);if(_===RegExp)return f(h,b,x);if(_===Map)return o(h,b,x);if(_===Set)return l(h,b,x);const m=g$.call(h);if(m===s$)return n(h,b,x);if(m===d$)return f(h,b,x);if(m===l$)return o(h,b,x);if(m===h$)return l(h,b,x);if(m===p$)return typeof h.then!="function"&&typeof b.then!="function"&&s(h,b,x);if(m===m$)return d(h,b,x);if(m===c$)return i(h,b,x);if(m===a$)return s(h,b,x);if(y$[m])return p(h,b,x);if(m===i$)return e(h,b,x);if(m===u$)return r(h,b,x);if(m===o$||m===f$||m===v$)return c(h,b,x);if(y){let g=y[m];if(!g){const A=FM(h);A&&(g=y[A])}if(g)return g(h,b,x)}return!1}}function x$({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:KM,areArraysEqual:r?bn:VM,areDataViewsEqual:XM,areDatesEqual:YM,areErrorsEqual:ZM,areFunctionsEqual:JM,areMapsEqual:r?Kc(sg,bn):sg,areNumbersEqual:QM,areObjectsEqual:r?bn:e$,arePrimitiveWrappersEqual:t$,areRegExpsEqual:r$,areSetsEqual:r?Kc(cg,bn):cg,areTypedArraysEqual:r?Kc(ma,bn):ma,areUrlsEqual:n$,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Di(n.areArraysEqual),a=Di(n.areMapsEqual),o=Di(n.areObjectsEqual),u=Di(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function w$(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function O$({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,s){const{cache:c=e?new WeakMap:void 0,meta:f}=r();return t(u,s,{cache:c,equals:n,meta:f,strict:i})};if(e)return function(u,s){return t(u,s,{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,s){return t(u,s,a)}}const _$=Ht();Ht({strict:!0});Ht({circular:!0});Ht({circular:!0,strict:!0});Ht({createInternalComparator:()=>yr});Ht({strict:!0,createInternalComparator:()=>yr});Ht({circular:!0,createInternalComparator:()=>yr});Ht({circular:!0,createInternalComparator:()=>yr,strict:!0});function Ht(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=x$(e),o=b$(a),u=r?r(o):w$(o);return O$({circular:t,comparator:o,createState:n,equals:u,strict:i})}function A$(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function lg(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):A$(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 S$(e){return E$(e)||T$(e)||j$(e)||P$()}function P$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 39In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j$(e,t){if(e){if(typeof e=="string")return fg(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 fg(e,t)}}function fg(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 T$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function E$(e){if(Array.isArray(e))return e}function C$(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=S$(o),s=u[0],c=u.slice(1);if(typeof s=="number"){lg(i.bind(null,c),s);return}i(s),lg(i.bind(null,c));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 Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function 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]:{};t%2?pg(Object(r),!0).forEach(function(n){Vx(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 Vx(e,t,r){return t=M$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M$(e){var t=$$(e,"string");return Qn(t)==="symbol"?t:String(t)}function $$(e,t){if(Qn(e)!=="object"||e===null)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)}var I$=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},k$=function(t){return t},N$=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},En=function(t,r){return Object.keys(r).reduce(function(n,i){return dg(dg({},n),{},Vx({},i,t(i,r[i])))},{})},hg=function(t,r,n){return t.map(function(i){return"".concat(N$(i)," ").concat(r,"ms ").concat(n)}).join(",")};function D$(e,t){return q$(e)||B$(e,t)||Xx(e,t)||R$()}function R$(){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 B$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function q$(e){if(Array.isArray(e))return e}function L$(e){return U$(e)||F$(e)||Xx(e)||z$()}function z$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xx(e,t){if(e){if(typeof e=="string")return sf(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 sf(e,t)}}function F$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function U$(e){if(Array.isArray(e))return sf(e)}function sf(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 ga=1e-4,Yx=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Zx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},vg=function(t,r){return function(n){var i=Yx(t,r);return Zx(i,n)}},W$=function(t,r){return function(n){var i=Yx(t,r),a=[].concat(L$(i.map(function(o,u){return o*u}).slice(1)),[0]);return Zx(a,n)}},yg=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 s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(h){return parseFloat(h)}),f=D$(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=vg(i,o),p=vg(a,u),d=W$(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,O=x,_=0;_<8;++_){var m=l(O)-x,g=d(O);if(Math.abs(m-x)<ga||g<ga)return p(O);O=y(O-m/g)}return p(O)};return v.isStepper=!1,v},H$=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,s=function(f,l,p){var d=-(f-l)*n,y=p*a,v=p+(d-y)*u/1e3,h=p*u/1e3+f;return Math.abs(h-l)<ga&&Math.abs(v)<ga?[l,0]:[h,v]};return s.isStepper=!0,s.dt=u,s},G$=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 yg(i);case"spring":return H$();default:if(i.split("(")[0]==="cubic-bezier")return yg(i)}return typeof i=="function"?i:null};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 mg(e){return X$(e)||V$(e)||Jx(e)||K$()}function K$(){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 V$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X$(e){if(Array.isArray(e))return lf(e)}function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(r),!0).forEach(function(n){cf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cf(e,t,r){return t=Y$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y$(e){var t=Z$(e,"string");return ei(t)==="symbol"?t:String(t)}function Z$(e,t){if(ei(e)!=="object"||e===null)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)}function J$(e,t){return t2(e)||e2(e,t)||Jx(e,t)||Q$()}function Q$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jx(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 e2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function t2(e){if(Array.isArray(e))return e}var ba=function(t,r,n){return t+(r-t)*n},ff=function(t){var r=t.from,n=t.to;return r!==n},r2=function e(t,r,n){var i=En(function(a,o){if(ff(o)){var u=t(o.from,o.to,o.velocity),s=J$(u,2),c=s[0],f=s[1];return Te(Te({},o),{},{from:c,velocity:f})}return o},r);return n<1?En(function(a,o){return ff(o)?Te(Te({},o),{},{velocity:ba(o.velocity,i[a].velocity,n),from:ba(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const n2=(function(e,t,r,n,i){var a=I$(e,t),o=a.reduce(function(h,b){return Te(Te({},h),{},cf({},b,[e[b],t[b]]))},{}),u=a.reduce(function(h,b){return Te(Te({},h),{},cf({},b,{from:e[b],velocity:0,to:t[b]}))},{}),s=-1,c,f,l=function(){return null},p=function(){return En(function(b,x){return x.from},u)},d=function(){return!Object.values(u).filter(ff).length},y=function(b){c||(c=b);var x=b-c,O=x/r.dt;u=r2(r,u,O),i(Te(Te(Te({},e),t),p())),c=b,d()||(s=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,O=En(function(m,g){return ba.apply(void 0,mg(g).concat([r(x)]))},o);if(i(Te(Te(Te({},e),t),O)),x<1)s=requestAnimationFrame(l);else{var _=En(function(m,g){return ba.apply(void 0,mg(g).concat([r(1)]))},o);i(Te(Te(Te({},e),t),_))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});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)}var i2=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function a2(e,t){if(e==null)return{};var r=o2(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 o2(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 Vc(e){return l2(e)||c2(e)||s2(e)||u2()}function u2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s2(e,t){if(e){if(typeof e=="string")return pf(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 pf(e,t)}}function c2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l2(e){if(Array.isArray(e))return pf(e)}function pf(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 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 tt(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){_n(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 _n(e,t,r){return t=Qx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qx(n.key),n)}}function d2(e,t,r){return t&&p2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qx(e){var t=h2(e,"string");return Fr(t)==="symbol"?t:String(t)}function h2(e,t){if(Fr(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function v2(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&&df(e,t)}function df(e,t){return df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},df(e,t)}function y2(e){var t=m2();return function(){var n=xa(e),i;if(t){var a=xa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return hf(this,i)}}function hf(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 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 m2(){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 xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(e)}var mt=(function(e){v2(r,e);var t=y2(r);function r(n,i){var a;f2(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,p=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 p=="function"&&(a.state={style:f}),hf(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof p=="function")return a.state={style:c},hf(a);a.state={style:s?_n({},s,c):c}}else a.state={style:{}};return a}return d2(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,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,p=this.state.style;if(u){if(!o){var d={style:s?_n({},s,f):f};this.state&&p&&(s&&p[s]!==f||!s&&p!==f)&&this.setState(d);return}if(!(_$(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||c?l:i.to;if(this.state&&p){var h={style:s?_n({},s,v):v};(s&&p[s]!==v||!s&&p!==v)&&this.setState(h)}this.runAnimation(tt(tt({},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,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,p=i.onAnimationStart,d=n2(o,u,G$(c),s,this.changeStyle),y=function(){a.stopJSAnimation=d()};this.manager.start([p,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,p=l===void 0?0:l,d=function(v,h,b){if(b===0)return v;var x=h.duration,O=h.easing,_=O===void 0?"ease":O,m=h.style,g=h.properties,A=h.onAnimationEnd,S=b>0?o[b-1]:h,j=g||Object.keys(m);if(typeof _=="function"||_==="spring")return[].concat(Vc(v),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:x,easing:_}),x]);var M=hg(j,x,_),E=tt(tt(tt({},S.style),m),{},{transition:M});return[].concat(Vc(v),[E,x,A]).filter(k$)};return this.manager.start([s].concat(Vc(o.reduce(d,[f,Math.max(p,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=C$());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,p=i.steps,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof d=="function"||c==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var v=u?_n({},u,s):s,h=hg(Object.keys(v),o,c);y.start([f,a,tt(tt({},v),{},{transition:h}),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 s=a2(i,i2),c=D.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(d){var y=d.props,v=y.style,h=v===void 0?{}:v,b=y.className,x=D.cloneElement(d,tt(tt({},s),{},{style:tt(tt({},h),f),className:b}));return x};return c===1?l(D.Children.only(a)):P.createElement("div",null,D.Children.map(a,function(p){return l(p)}))}}]),r})(D.PureComponent);mt.displayName="Animate";mt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};mt.propTypes={from:ie.oneOfType([ie.object,ie.string]),to:ie.oneOfType([ie.object,ie.string]),attributeName:ie.string,duration:ie.number,begin:ie.number,easing:ie.oneOfType([ie.string,ie.func]),steps:ie.arrayOf(ie.shape({duration:ie.number.isRequired,style:ie.object.isRequired,easing:ie.oneOfType([ie.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ie.func]),properties:ie.arrayOf("string"),onAnimationEnd:ie.func})),children:ie.oneOfType([ie.node,ie.func]),isActive:ie.bool,canBegin:ie.bool,onAnimationEnd:ie.func,shouldReAnimate:ie.bool,onAnimationStart:ie.func,onAnimationReStart:ie.func};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 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 g2(e,t){return O2(e)||w2(e,t)||x2(e,t)||b2()}function b2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x2(e,t){if(e){if(typeof e=="string")return xg(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 xg(e,t)}}function xg(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 w2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function O2(e){if(Array.isArray(e))return e}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 Og(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){_2(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 _2(e,t,r){return t=A2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A2(e){var t=S2(e,"string");return ti(t)=="symbol"?t:t+""}function S2(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)}var _g=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],p=0,d=4;p<d;p++)l[p]=a[p]>o?o:a[p];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`, 46 `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`, 47 `).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`, 48 `).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,` 49 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,` 50 L `).concat(t+n-s*y,",").concat(r,` 51 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,` 52 L `).concat(t+n,",").concat(r+i-u*y,` 53 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,` 54 L `).concat(t+s*y,",").concat(r+i,` 55 A `).concat(y,",").concat(y,",0,0,").concat(c,",").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},P2=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),p=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=p}return!1},j2={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},kp=function(t){var r=Og(Og({},j2),t),n=D.useRef(),i=D.useState(-1),a=g2(i,2),o=a[0],u=a[1];D.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&u(_)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,p=r.radius,d=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var O=ee("recharts-rectangle",d);return x?P.createElement(mt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:y,isActive:x},function(_){var m=_.width,g=_.height,A=_.x,S=_.y;return P.createElement(mt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,isActive:b,easing:y},P.createElement("path",wa({},Z(r,!0),{className:O,d:_g(A,S,m,g,p),ref:n})))}):P.createElement("path",wa({},Z(r,!0),{className:O,d:_g(s,c,f,l,p)}))};function yf(){return yf=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},yf.apply(this,arguments)}var oo=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ee("recharts-dot",a);return r===+r&&n===+n&&i===+i?D.createElement("circle",yf({},Z(t,!1),Li(t),{className:o,cx:r,cy:n,r:i})):null};function ri(e){"@babel/helpers - typeof";return ri=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},ri(e)}var T2=["x","y","top","left","width","height","className"];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)}function Ag(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function E2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ag(Object(r),!0).forEach(function(n){C2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C2(e,t,r){return t=M2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M2(e){var t=$2(e,"string");return ri(t)=="symbol"?t:t+""}function $2(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I2(e,t){if(e==null)return{};var r=k2(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 k2(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 N2=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},D2=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,p=t.height,d=p===void 0?0:p,y=t.className,v=I2(t,T2),h=E2({x:n,y:a,top:u,left:c,width:l,height:d},v);return!q(n)||!q(a)||!q(l)||!q(d)||!q(u)||!q(c)?null:P.createElement("path",mf({},Z(h,!0),{className:ee("recharts-cross",y),d:N2(n,a,l,d,u,c)}))},Xc,Sg;function R2(){if(Sg)return Xc;Sg=1;var e=w0(),t=e(Object.getPrototypeOf,Object);return Xc=t,Xc}var Yc,Pg;function B2(){if(Pg)return Yc;Pg=1;var e=Ct(),t=R2(),r=Mt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var p=u.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==s}return Yc=c,Yc}var q2=B2();const L2=le(q2);var Zc,jg;function z2(){if(jg)return Zc;jg=1;var e=Ct(),t=Mt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Zc=n,Zc}var F2=z2();const U2=le(F2);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 Oa(){return Oa=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},Oa.apply(this,arguments)}function W2(e,t){return V2(e)||K2(e,t)||G2(e,t)||H2()}function H2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 56In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G2(e,t){if(e){if(typeof e=="string")return Tg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tg(e,t)}}function Tg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function V2(e){if(Array.isArray(e))return e}function Eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cg(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){X2(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 X2(e,t,r){return t=Y2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y2(e){var t=Z2(e,"string");return ni(t)=="symbol"?t:t+""}function Z2(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 Mg=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},J2={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Q2=function(t){var r=Cg(Cg({},J2),t),n=D.useRef(),i=D.useState(-1),a=W2(i,2),o=a[0],u=a[1];D.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,p=r.height,d=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,b=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||p!==+p||f===0&&l===0||p===0)return null;var x=ee("recharts-trapezoid",d);return b?P.createElement(mt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:p,x:s,y:c},duration:v,animationEasing:y,isActive:b},function(O){var _=O.upperWidth,m=O.lowerWidth,g=O.height,A=O.x,S=O.y;return P.createElement(mt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,easing:y},P.createElement("path",Oa({},Z(r,!0),{className:x,d:Mg(A,S,_,m,g),ref:n})))}):P.createElement("g",null,P.createElement("path",Oa({},Z(r,!0),{className:x,d:Mg(s,c,f,l,p)})))},eI=["option","shapeType","propTransformer","activeClassName","isActive"];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 tI(e,t){if(e==null)return{};var r=rI(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 rI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $g(e,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 _a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(r),!0).forEach(function(n){nI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nI(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=aI(e,"string");return ii(t)=="symbol"?t:t+""}function aI(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 oI(e,t){return _a(_a({},t),e)}function uI(e,t){return e==="symbols"}function Ig(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(kp,r);case"trapezoid":return P.createElement(Q2,r);case"sector":return P.createElement(Gx,r);case"symbols":if(uI(t))return P.createElement(Jf,r);break;default:return null}}function sI(e){return D.isValidElement(e)?e.props:e}function cI(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?oI:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=tI(e,eI),c;if(D.isValidElement(t))c=D.cloneElement(t,_a(_a({},s),sI(t)));else if(X(t))c=t(s);else if(L2(t)&&!U2(t)){var f=i(t,s);c=P.createElement(Ig,{shapeType:r,elementProps:f})}else{var l=s;c=P.createElement(Ig,{shapeType:r,elementProps:l})}return u?P.createElement(ce,{className:o},c):c}function uo(e,t){return t!=null&&"trapezoids"in e.props}function so(e,t){return t!=null&&"sectors"in e.props}function ai(e,t){return t!=null&&"points"in e.props}function lI(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 fI(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function pI(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function dI(e,t){var r;return uo(e,t)?r=lI:so(e,t)?r=fI:ai(e,t)&&(r=pI),r}function hI(e,t){var r;return uo(e,t)?r="trapezoids":so(e,t)?r="sectors":ai(e,t)&&(r="points"),r}function vI(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(so(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 ai(e,t)?t.payload:{}}function yI(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=hI(r,t),a=vI(r,t),o=n.filter(function(s,c){var f=Lr(a,s),l=r.props[i].filter(function(y){var v=dI(r,t);return v(y,t)}),p=r.props[i].indexOf(l[l.length-1]),d=c===p;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var Jc,kg;function mI(){if(kg)return Jc;kg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return Jc=r,Jc}var Qc,Ng;function e1(){if(Ng)return Qc;Ng=1;var e=R0(),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 Qc=n,Qc}var el,Dg;function gI(){if(Dg)return el;Dg=1;var e=mI(),t=Ya(),r=e1();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 el=n,el}var tl,Rg;function bI(){if(Rg)return tl;Rg=1;var e=gI(),t=e();return tl=t,tl}var xI=bI();const Aa=le(xI);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 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 qg(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){t1(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 t1(e,t,r){return t=wI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wI(e){var t=OI(e,"string");return oi(t)=="symbol"?t:t+""}function OI(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)}var _I=["Webkit","Moz","O","ms"],AI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=_I.reduce(function(a,o){return qg(qg({},a),{},t1({},o+n,r))},{});return i[t]=r,i};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 Sa(){return Sa=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},Sa.apply(this,arguments)}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){Ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zg(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,n1(n.key),n)}}function PI(e,t,r){return t&&zg(e.prototype,t),r&&zg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jI(e,t,r){return t=Pa(t),TI(e,r1()?Reflect.construct(t,r||[],Pa(e).constructor):t.apply(e,r))}function TI(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 EI(e)}function EI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r1=function(){return!!e})()}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function CI(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&&gf(e,t)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(e,t)}function Ue(e,t,r){return t=n1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n1(e){var t=MI(e,"string");return Ur(t)=="symbol"?t:t+""}function MI(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 $I=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=jn().domain(Aa(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},Fg=function(t){return t.changedTouches&&!!t.changedTouches.length},Wr=(function(e){function t(r){var n;return SI(this,t),n=jI(this,t,[r]),Ue(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ue(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ue(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()}),Ue(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ue(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ue(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ue(n,"handleSlideDragStart",function(i){var a=Fg(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 CI(t,e),PI(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),p=Math.max(i,a),d=t.getIndexInRange(o,l),y=t.getIndexInRange(o,p);return{startIndex:d-d%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Ne(a[n],u,n);return X(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,p=s.startIndex,d=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var h=this.getIndex({startX:o+v,endX:u+v});(h.startIndex!==p||h.endIndex!==d)&&y&&y(h),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Fg(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,p=f.width,d=f.travellerWidth,y=f.onChange,v=f.gap,h=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+p-d-c):x<0&&(x=Math.max(x,l-c)),b[o]=c+x;var O=this.getIndex(b),_=O.startIndex,m=O.endIndex,g=function(){var S=h.length-1;return o==="startX"&&(u>s?_%v===0:m%v===0)||u<s&&m===S||o==="endX"&&(u>s?m%v===0:_%v===0)||u>s&&m===S};this.setState(Ue(Ue({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&g()&&y(O)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var p=l+n;if(!(p===-1||p>=u.length)){var d=u[p];i==="startX"&&d>=c||i==="endX"&&d<=s||this.setState(Ue({},i,d),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return P.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=D.Children.only(c);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,p=s.traveller,d=s.ariaLabel,y=s.data,v=s.startIndex,h=s.endIndex,b=Math.max(n,this.props.x),x=rl(rl({},Z(this.props,!1)),{},{x:b,y:c,width:f,height:l}),O=d||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[h])===null||o===void 0?void 0:o.name);return P.createElement(ce,{tabIndex:0,role:"slider","aria-label":O,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,p=f.endX,d=5,y={pointerEvents:"none",fill:c};return P.createElement(ce,{className:"recharts-brush-texts"},P.createElement(Ji,Sa({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,p)-d,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(Ji,Sa({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,p)+s+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,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,p=this.state,d=p.startX,y=p.endX,v=p.isTextActive,h=p.isSlideMoving,b=p.isTravellerMoving,x=p.isTravellerFocused;if(!i||!i.length||!q(u)||!q(s)||!q(c)||!q(f)||c<=0||f<=0)return null;var O=ee("recharts-brush",a),_=P.Children.count(o)===1,m=AI("userSelect","none");return P.createElement(ce,{className:O,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(v||h||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),P.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):X(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return rl({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?$I({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var p=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(D.PureComponent);Ue(Wr,"displayName","Brush");Ue(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 nl,Ug;function II(){if(Ug)return nl;Ug=1;var e=ap();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return nl=t,nl}var il,Wg;function kI(){if(Wg)return il;Wg=1;var e=h0(),t=Ft(),r=II(),n=Le(),i=Ya();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return il=a,il}var NI=kI();const DI=le(NI);var dt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},al,Hg;function RI(){if(Hg)return al;Hg=1;var e=$0();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return al=t,al}var ol,Gg;function BI(){if(Gg)return ol;Gg=1;var e=RI(),t=C0(),r=Ft();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return ol=n,ol}var qI=BI();const LI=le(qI);var ul,Kg;function zI(){if(Kg)return ul;Kg=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 ul=e,ul}var sl,Vg;function FI(){if(Vg)return sl;Vg=1;var e=ap();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return sl=t,sl}var cl,Xg;function UI(){if(Xg)return cl;Xg=1;var e=zI(),t=FI(),r=Ft(),n=Le(),i=Ya();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return cl=a,cl}var WI=UI();const i1=le(WI);var HI=["x","y"];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 bf(){return bf=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},bf.apply(this,arguments)}function Yg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yg(Object(r),!0).forEach(function(n){GI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GI(e,t,r){return t=KI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KI(e){var t=VI(e,"string");return ui(t)=="symbol"?t:t+""}function VI(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(t==="string"?String:Number)(e)}function XI(e,t){if(e==null)return{};var r=YI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ZI(e,t){var r=e.x,n=e.y,i=XI(e,HI),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),p=parseInt(l,10);return xn(xn(xn(xn(xn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function Zg(e){return P.createElement(cI,bf({shapeType:"rectangle",propTransformer:ZI,activeClassName:"recharts-active-bar"},e))}var JI=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||aO(n);return a?t(n,i):(a||lr(),r)}},QI=["value","background"],a1;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 ek(e,t){if(e==null)return{};var r=tk(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 tk(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 ja(){return ja=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},ja.apply(this,arguments)}function Jg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jg(Object(r),!0).forEach(function(n){qt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u1(n.key),n)}}function nk(e,t,r){return t&&Qg(e.prototype,t),r&&Qg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ik(e,t,r){return t=Ta(t),ak(e,o1()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function ak(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 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 o1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o1=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function uk(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 qt(e,t,r){return t=u1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u1(e){var t=sk(e,"string");return Hr(t)=="symbol"?t:t+""}function sk(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var It=(function(e){function t(){var r;rk(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ik(this,t,[].concat(i)),qt(r,"state",{isAnimationFinished:!1}),qt(r,"id",on("recharts-bar-")),qt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),qt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return uk(t,e),nk(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=Z(this.props,!1);return n&&n.map(function(l,p){var d=p===s,y=d?c:o,v=ge(ge(ge({},f),l),{},{isActive:d,option:y,index:p,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(ce,ja({className:"recharts-bar-rectangle"},zi(i.props,l,p),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(p)}),P.createElement(Zg,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,p=this.state.prevData;return P.createElement(mt,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var y=d.t,v=a.map(function(h,b){var x=p&&p[b];if(x){var O=Ee(x.x,h.x),_=Ee(x.y,h.y),m=Ee(x.width,h.width),g=Ee(x.height,h.height);return ge(ge({},h),{},{x:O(y),y:_(y),width:m(y),height:g(y)})}if(o==="horizontal"){var A=Ee(0,h.height),S=A(y);return ge(ge({},h),{},{y:h.y+h.height-S,height:S})}var j=Ee(0,h.width),M=j(y);return ge(ge({},h),{},{width:M})});return P.createElement(ce,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||!Lr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=Z(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,p=ek(c,QI);if(!l)return null;var d=ge(ge(ge(ge(ge({},p),{},{fill:"#eee"},l),s),zi(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(Zg,ja({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Je(f,xi);if(!l)return null;var p=c==="vertical"?o[0].height/2:o[0].width/2,d=function(h,b){var x=Array.isArray(h.value)?h.value[1]:h.value;return{x:h.x,y:h.y,value:x,errorVal:Ne(h,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(ce,y,l.map(function(v){return P.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:p,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,p=n.height,d=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,b=ee("recharts-bar",o),x=u&&u.allowDataOverflow,O=s&&s.allowDataOverflow,_=x||O,m=Q(v)?this.id:v;return P.createElement(ce,{className:b},x||O?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:x?c:c-l/2,y:O?f:f-p/2,width:x?l:l*2,height:O?p:p*2}))):null,P.createElement(ce,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,m),(!d||h)&&Pt.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}}])})(D.PureComponent);a1=It;qt(It,"displayName","Bar");qt(It,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!dr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});qt(It,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,p=e.offset,d=_C(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,h=v!==void 0?ge(ge({},v),r.props):r.props,b=h.dataKey,x=h.children,O=h.minPointSize,_=y==="horizontal"?o:a,m=c?_.scale.domain():null,g=MC({numericAxis:_}),A=Je(x,sp),S=l.map(function(j,M){var E,T,C,I,$,N;c?E=AC(c[f+M],m):(E=Ne(j,b),Array.isArray(E)||(E=[g,E]));var R=JI(O,a1.defaultProps.minPointSize)(E[1],M);if(y==="horizontal"){var L,z=[o.scale(E[0]),o.scale(E[1])],H=z[0],K=z[1];T=qm({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:j,index:M}),C=(L=K??H)!==null&&L!==void 0?L:void 0,I=d.size;var U=H-K;if($=Number.isNaN(U)?0:U,N={x:T,y:o.y,width:I,height:o.height},Math.abs(R)>0&&Math.abs($)<Math.abs(R)){var V=ut($||R)*(Math.abs(R)-Math.abs($));C-=V,$+=V}}else{var fe=[a.scale(E[0]),a.scale(E[1])],me=fe[0],ze=fe[1];if(T=me,C=qm({axis:o,ticks:s,bandSize:i,offset:d.offset,entry:j,index:M}),I=ze-me,$=d.size,N={x:a.x,y:C,width:a.width,height:$},Math.abs(R)>0&&Math.abs(I)<Math.abs(R)){var Kt=ut(I||R)*(Math.abs(R)-Math.abs(I));I+=Kt}}return ge(ge(ge({},j),{},{x:T,y:C,width:I,height:$,value:c?E:E[1],payload:j,background:N},A&&A[M]&&A[M].props),{},{tooltipPayload:[Ux(r,j)],tooltipPosition:{x:T+I/2,y:C+$/2}})});return ge({data:S,layout:y},p)});function si(e){"@babel/helpers - typeof";return si=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},si(e)}function ck(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,s1(n.key),n)}}function lk(e,t,r){return t&&eb(e.prototype,t),r&&eb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),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 it(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){co(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 co(e,t,r){return t=s1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s1(e){var t=fk(e,"string");return si(t)=="symbol"?t:t+""}function fk(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Np=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},p=!!We(c,It);return f.reduce(function(d,y){var v=r[y],h=v.orientation,b=v.domain,x=v.padding,O=x===void 0?{}:x,_=v.mirror,m=v.reversed,g="".concat(h).concat(_?"Mirror":""),A,S,j,M,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var T=b[1]-b[0],C=1/0,I=v.categoricalDomain.sort(sO);if(I.forEach(function(fe,me){me>0&&(C=Math.min((fe||0)-(I[me-1]||0),C))}),Number.isFinite(C)){var $=C/T,N=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(A=$*N/2),v.padding==="no-gap"){var R=sr(t.barCategoryGap,$*N),L=$*N/2;A=L-R-(L-R)/N*R}}}i==="xAxis"?S=[n.left+(O.left||0)+(A||0),n.left+n.width-(O.right||0)-(A||0)]:i==="yAxis"?S=s==="horizontal"?[n.top+n.height-(O.bottom||0),n.top+(O.top||0)]:[n.top+(O.top||0)+(A||0),n.top+n.height-(O.bottom||0)-(A||0)]:S=v.range,m&&(S=[S[1],S[0]]);var z=wC(v,a,p),H=z.scale,K=z.realScaleType;H.domain(b).range(S),OC(H);var U=CC(H,it(it({},v),{},{realScaleType:K}));i==="xAxis"?(E=h==="top"&&!_||h==="bottom"&&_,j=n.left,M=l[g]-E*v.height):i==="yAxis"&&(E=h==="left"&&!_||h==="right"&&_,j=l[g]-E*v.width,M=n.top);var V=it(it(it({},v),U),{},{realScaleType:K,x:j,y:M,scale:H,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return V.bandSize=ha(V,U),!v.hide&&i==="xAxis"?l[g]+=(E?-1:1)*V.height:v.hide||(l[g]+=(E?-1:1)*V.width),it(it({},d),{},co({},y,V))},{})},c1=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)}},pk=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return c1({x:r,y:n},{x:i,y:a})},l1=(function(){function e(t){ck(this,e),this.scale=t}return lk(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();co(l1,"EPS",1e-4);var Dp=function(t){var r=Object.keys(t).reduce(function(n,i){return it(it({},n),{},co({},i,l1.create(t[i])))},{});return it(it({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return LI(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return i1(i,function(a,o){return r[o].isInRange(a)})}})};function dk(e){return(e%180+180)%180}var hk=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=dk(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},ll,rb;function vk(){if(rb)return ll;rb=1;var e=Ft(),t=vi(),r=Va();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return ll=n,ll}var fl,nb;function yk(){if(nb)return fl;nb=1;var e=e1();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return fl=t,fl}var pl,ib;function mk(){if(ib)return pl;ib=1;var e=S0(),t=Ft(),r=yk(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return pl=i,pl}var dl,ab;function gk(){if(ab)return dl;ab=1;var e=vk(),t=mk(),r=e(t);return dl=r,dl}var bk=gk();const xk=le(bk);var wk=Lb();const Ok=le(wk);var _k=Ok(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("")}),Rp=D.createContext(void 0),Bp=D.createContext(void 0),f1=D.createContext(void 0),p1=D.createContext({}),d1=D.createContext(void 0),h1=D.createContext(0),v1=D.createContext(0),ob=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=_k(a);return P.createElement(Rp.Provider,{value:n},P.createElement(Bp.Provider,{value:i},P.createElement(p1.Provider,{value:a},P.createElement(f1.Provider,{value:f},P.createElement(d1.Provider,{value:o},P.createElement(h1.Provider,{value:c},P.createElement(v1.Provider,{value:s},u)))))))},Ak=function(){return D.useContext(d1)},y1=function(t){var r=D.useContext(Rp);r==null&&lr();var n=r[t];return n==null&&lr(),n},Sk=function(){var t=D.useContext(Rp);return Rt(t)},Pk=function(){var t=D.useContext(Bp),r=xk(t,function(n){return i1(n.domain,Number.isFinite)});return r||Rt(t)},m1=function(t){var r=D.useContext(Bp);r==null&&lr();var n=r[t];return n==null&&lr(),n},jk=function(){var t=D.useContext(f1);return t},Tk=function(){return D.useContext(p1)},qp=function(){return D.useContext(v1)},Lp=function(){return D.useContext(h1)};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 Ek(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ck(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,b1(n.key),n)}}function Mk(e,t,r){return t&&Ck(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $k(e,t,r){return t=Ea(t),Ik(e,g1()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function Ik(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 kk(e)}function kk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g1=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function Nk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 ub(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 sb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ub(Object(r),!0).forEach(function(n){zp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ub(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zp(e,t,r){return t=b1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b1(e){var t=Dk(e,"string");return Gr(t)=="symbol"?t:t+""}function Dk(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)}function Rk(e,t){return zk(e)||Lk(e,t)||qk(e,t)||Bk()}function Bk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qk(e,t){if(e){if(typeof e=="string")return cb(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 cb(e,t)}}function cb(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 Lk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function zk(e){if(Array.isArray(e))return 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)}var Fk=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):X(t)?n=t(r):n=P.createElement("line",Of({},r,{className:"recharts-reference-line-line"})),n},Uk=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,p=a.width,d=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(dt(c,"discard")&&!t.y.isInRange(v))return null;var h=[{x:f+p,y:v},{x:f,y:v}];return s==="left"?h.reverse():h}if(r){var b=c.x,x=t.x.apply(b,{position:o});if(dt(c,"discard")&&!t.x.isInRange(x))return null;var O=[{x,y:l+d},{x,y:l}];return u==="top"?O.reverse():O}if(i){var _=c.segment,m=_.map(function(g){return t.apply(g,{position:o})});return dt(c,"discard")&&DI(m,function(g){return!t.isInRange(g)})?null:m}return null};function Wk(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=Ak(),f=y1(i),l=m1(a),p=jk();if(!c||!p)return null;At(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Dp({x:f.scale,y:l.scale}),y=Ae(t),v=Ae(r),h=n&&n.length===2,b=Uk(d,y,v,h,p,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=Rk(b,2),O=x[0],_=O.x,m=O.y,g=x[1],A=g.x,S=g.y,j=dt(e,"hidden")?"url(#".concat(c,")"):void 0,M=sb(sb({clipPath:j},Z(e,!0)),{},{x1:_,y1:m,x2:A,y2:S});return P.createElement(ce,{className:ee("recharts-reference-line",u)},Fk(o,M),$e.renderCallByParent(e,pk({x1:_,y1:m,x2:A,y2:S})))}var ci=(function(e){function t(){return Ek(this,t),$k(this,t,arguments)}return Nk(t,e),Mk(t,[{key:"render",value:function(){return P.createElement(Wk,this.props)}}])})(P.Component);zp(ci,"displayName","ReferenceLine");zp(ci,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});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 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 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 fb(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){lo(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 Hk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gk(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,w1(n.key),n)}}function Kk(e,t,r){return t&&Gk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vk(e,t,r){return t=Ca(t),Xk(e,x1()?Reflect.construct(t,r||[],Ca(e).constructor):t.apply(e,r))}function Xk(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 Yk(e)}function Yk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x1=function(){return!!e})()}function Ca(e){return Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ca(e)}function Zk(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 lo(e,t,r){return t=w1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w1(e){var t=Jk(e,"string");return Kr(t)=="symbol"?t:t+""}function Jk(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 Qk=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Dp({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return dt(t,"discard")&&!o.isInRange(u)?null:u},fo=(function(e){function t(){return Hk(this,t),Vk(this,t,arguments)}return Zk(t,e),Kk(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Ae(i),f=Ae(a);if(At(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=Qk(this.props);if(!l)return null;var p=l.x,d=l.y,y=this.props,v=y.shape,h=y.className,b=dt(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=fb(fb({clipPath:b},Z(this.props,!0)),{},{cx:p,cy:d});return P.createElement(ce,{className:ee("recharts-reference-dot",h)},t.renderDot(v,x),$e.renderCallByParent(this.props,{x:p-o,y:d-o,width:2*o,height:2*o}))}}])})(P.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 P.isValidElement(e)?r=P.cloneElement(e,t):X(e)?r=e(t):r=P.createElement(oo,_f({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Sf(){return Sf=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},Sf.apply(this,arguments)}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 pb(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 db(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pb(Object(r),!0).forEach(function(n){po(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tN(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,_1(n.key),n)}}function rN(e,t,r){return t&&tN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nN(e,t,r){return t=Ma(t),iN(e,O1()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function iN(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 aN(e)}function aN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O1=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function oN(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 po(e,t,r){return t=_1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _1(e){var t=uN(e,"string");return Vr(t)=="symbol"?t:t+""}function uN(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(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var p=Dp({x:f.scale,y:l.scale}),d={x:t?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(s,{position:"start"}):p.y.rangeMin},y={x:r?p.x.apply(u,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(c,{position:"end"}):p.y.rangeMax};return dt(a,"discard")&&(!p.isInRange(d)||!p.isInRange(y))?null:c1(d,y)},ho=(function(e){function t(){return eN(this,t),nN(this,t,arguments)}return oN(t,e),rN(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;At(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Ae(i),p=Ae(a),d=Ae(o),y=Ae(u),v=this.props.shape;if(!l&&!p&&!d&&!y&&!v)return null;var h=sN(l,p,d,y,this.props);if(!h&&!v)return null;var b=dt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(ce,{className:ee("recharts-reference-area",s)},t.renderRect(v,db(db({clipPath:b},Z(this.props,!0)),h)),$e.renderCallByParent(this.props,h))}}])})(P.Component);po(ho,"displayName","ReferenceArea");po(ho,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});po(ho,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):X(e)?r=e(t):r=P.createElement(kp,Sf({},t,{className:"recharts-reference-area-rect"})),r});function A1(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 cN(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return hk(n,r)}function lN(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 $a(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 fN(e,t){return A1(e,t+1)}function pN(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n?.[s];if(y===void 0)return{v:A1(n,c)};var v=s,h,b=function(){return h===void 0&&(h=r(y,v)),h},x=y.coordinate,O=s===0||$a(e,x,b,f,u);O||(s=0,f=o,c+=1),O&&(f=x+e*(b()/2+i),s+=c)},p;c<=a.length;)if(p=l(),p)return p.v;return[]}function li(e){"@babel/helpers - typeof";return li=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},li(e)}function hb(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?hb(Object(r),!0).forEach(function(n){dN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dN(e,t,r){return t=hN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hN(e){var t=vN(e,"string");return li(t)=="symbol"?t:t+""}function vN(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yN(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(p){var d=a[p],y,v=function(){return y===void 0&&(y=r(d,p)),y};if(p===o-1){var h=e*(d.coordinate+e*v()/2-s);a[p]=d=Me(Me({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate})}else a[p]=d=Me(Me({},d),{},{tickCoord:d.coordinate});var b=$a(e,d.tickCoord,v,u,s);b&&(s=d.tickCoord-e*(v()/2+i),a[p]=Me(Me({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function mN(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),p=e*(f.coordinate+e*l/2-c);o[u-1]=f=Me(Me({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var d=$a(e,f.tickCoord,function(){return l},s,c);d&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Me(Me({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var O=o[x],_,m=function(){return _===void 0&&(_=r(O,x)),_};if(x===0){var g=e*(O.coordinate-e*m()/2-s);o[x]=O=Me(Me({},O),{},{tickCoord:g<0?O.coordinate-g*e:O.coordinate})}else o[x]=O=Me(Me({},O),{},{tickCoord:O.coordinate});var A=$a(e,O.tickCoord,m,s,c);A&&(s=O.tickCoord+e*(m()/2+i),o[x]=Me(Me({},O),{},{isShow:!0}))},h=0;h<y;h++)v(h);return o}function Fp(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(q(s)||dr.isSsr)return fN(i,typeof s=="number"&&q(s)?s:0);var p=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?Pn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(O,_){var m=X(c)?c(O.value,_):O.value;return d==="width"?cN(Pn(m,{fontSize:t,letterSpacing:r}),y,l):Pn(m,{fontSize:t,letterSpacing:r})[d]},h=i.length>=2?ut(i[1].coordinate-i[0].coordinate):1,b=lN(a,h,d);return s==="equidistantPreserveStart"?pN(h,b,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?p=mN(h,b,v,i,o,s==="preserveStartEnd"):p=yN(h,b,v,i,o),p.filter(function(x){return x.isShow}))}var gN=["viewBox"],bN=["viewBox"],xN=["ticks"];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 Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ar.apply(this,arguments)}function vb(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?vb(Object(r),!0).forEach(function(n){Up(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hl(e,t){if(e==null)return{};var r=wN(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 wN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ON(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yb(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,P1(n.key),n)}}function _N(e,t,r){return t&&yb(e.prototype,t),r&&yb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function AN(e,t,r){return t=Ia(t),SN(e,S1()?Reflect.construct(t,r||[],Ia(e).constructor):t.apply(e,r))}function SN(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 PN(e)}function PN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S1=function(){return!!e})()}function Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ia(e)}function jN(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&&jf(e,t)}function jf(e,t){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jf(e,t)}function Up(e,t,r){return t=P1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P1(e){var t=TN(e,"string");return Xr(t)=="symbol"?t:t+""}function TN(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 fn=(function(e){function t(r){var n;return ON(this,t),n=AN(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return jN(t,e),_N(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=hl(n,gN),u=this.props,s=u.viewBox,c=hl(u,bN);return!Pr(a,s)||!Pr(o,c)||!Pr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,p=i.tickMargin,d,y,v,h,b,x,O=l?-1:1,_=n.tickSize||f,m=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":d=y=n.coordinate,h=o+ +!l*s,v=h-O*_,x=v-O*p,b=m;break;case"left":v=h=n.coordinate,y=a+ +!l*u,d=y-O*_,b=d-O*p,x=m;break;case"right":v=h=n.coordinate,y=a+ +l*u,d=y+O*_,b=d+O*p,x=m;break;default:d=y=n.coordinate,h=o+ +l*s,v=h+O*_,x=v+O*p,b=m;break}return{line:{x1:d,y1:v,x2:y,y2:h},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,s=n.orientation,c=n.mirror,f=n.axisLine,l=Oe(Oe(Oe({},Z(this.props,!1)),Z(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var p=+(s==="top"&&!c||s==="bottom"&&c);l=Oe(Oe({},l),{},{x1:i,y1:a+p*u,x2:i+o,y2:a+p*u})}else{var d=+(s==="left"&&!c||s==="right"&&c);l=Oe(Oe({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return P.createElement("line",Ar({},l,{className:ee("recharts-cartesian-axis-line",Ze(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,p=u.unit,d=Fp(Oe(Oe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),h=Z(this.props,!1),b=Z(f,!1),x=Oe(Oe({},h),{},{fill:"none"},Z(s,!1)),O=d.map(function(_,m){var g=o.getTickLineCoord(_),A=g.line,S=g.tick,j=Oe(Oe(Oe(Oe({textAnchor:y,verticalAnchor:v},h),{},{stroke:"none",fill:c},b),S),{},{index:m,payload:_,visibleTicksCount:d.length,tickFormatter:l});return P.createElement(ce,Ar({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},zi(o.props,_,m)),s&&P.createElement("line",Ar({},x,A,{className:ee("recharts-cartesian-axis-tick-line",Ze(s,"className"))})),f&&t.renderTickItem(f,j,"".concat(X(l)?l(_.value,m):_.value).concat(p||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},O)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,p=l.ticks,d=hl(l,xN),y=p;return X(s)&&(y=p&&p.length>0?s(this.props):s(d)),o<=0||u<=0||!y||!y.length?null:P.createElement(ce,{className:ee("recharts-cartesian-axis",c),ref:function(h){n.layerReference=h}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),$e.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ee(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,Oe(Oe({},i),{},{className:u})):X(n)?o=n(Oe(Oe({},i),{},{className:u})):o=P.createElement(Ji,Ar({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(D.Component);Up(fn,"displayName","CartesianAxis");Up(fn,"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 EN=["x1","y1","x2","y2","key"],CN=["offset"];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 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 Ie(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){MN(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 MN(e,t,r){return t=$N(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $N(e){var t=IN(e,"string");return fr(t)=="symbol"?t:t+""}function IN(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(t==="string"?String:Number)(e)}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nr.apply(this,arguments)}function gb(e,t){if(e==null)return{};var r=kN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var NN=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return P.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function j1(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(X(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=gb(t,EN),c=Z(s,!1);c.offset;var f=gb(c,CN);r=P.createElement("line",nr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function DN(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Ie(Ie({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return j1(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function RN(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Ie(Ie({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return j1(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function BN(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var f=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,d){return p-d});i!==f[0]&&f.unshift(0);var l=f.map(function(p,d){var y=!f[d+1],v=y?i+o-p:f[d+1]-p;if(v<=0)return null;var h=d%t.length;return P.createElement("rect",{key:"react-".concat(d),y:p,x:n,height:v,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function qN(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(p){return Math.round(p+a-a)}).sort(function(p,d){return p-d});a!==f[0]&&f.unshift(0);var l=f.map(function(p,d){var y=!f[d+1],v=y?a+u-p:f[d+1]-p;if(v<=0)return null;var h=d%n.length;return P.createElement("rect",{key:"react-".concat(d),x:p,y:o,width:v,height:s,stroke:"none",fill:n[h],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var LN=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return zx(Fp(Ie(Ie(Ie({},fn.defaultProps),n),{},{ticks:Ot(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},zN=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return zx(Fp(Ie(Ie(Ie({},fn.defaultProps),n),{},{ticks:Ot(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},wr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Mr(e){var t,r,n,i,a,o,u=qp(),s=Lp(),c=Tk(),f=Ie(Ie({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:wr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:wr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:wr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:wr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:wr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:wr.verticalFill,x:q(e.x)?e.x:c.left,y:q(e.y)?e.y:c.top,width:q(e.width)?e.width:c.width,height:q(e.height)?e.height:c.height}),l=f.x,p=f.y,d=f.width,y=f.height,v=f.syncWithTicks,h=f.horizontalValues,b=f.verticalValues,x=Sk(),O=Pk();if(!q(d)||d<=0||!q(y)||y<=0||!q(l)||l!==+l||!q(p)||p!==+p)return null;var _=f.verticalCoordinatesGenerator||LN,m=f.horizontalCoordinatesGenerator||zN,g=f.horizontalPoints,A=f.verticalPoints;if((!g||!g.length)&&X(m)){var S=h&&h.length,j=m({yAxis:O?Ie(Ie({},O),{},{ticks:S?h:O.ticks}):void 0,width:u,height:s,offset:c},S?!0:v);At(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fr(j),"]")),Array.isArray(j)&&(g=j)}if((!A||!A.length)&&X(_)){var M=b&&b.length,E=_({xAxis:x?Ie(Ie({},x),{},{ticks:M?b:x.ticks}):void 0,width:u,height:s,offset:c},M?!0:v);At(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fr(E),"]")),Array.isArray(E)&&(A=E)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(NN,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(DN,nr({},f,{offset:c,horizontalPoints:g,xAxis:x,yAxis:O})),P.createElement(RN,nr({},f,{offset:c,verticalPoints:A,xAxis:x,yAxis:O})),P.createElement(BN,nr({},f,{horizontalPoints:g})),P.createElement(qN,nr({},f,{verticalPoints:A})))}Mr.displayName="CartesianGrid";var FN=["type","layout","connectNulls","ref"],UN=["key"];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 bb(e,t){if(e==null)return{};var r=WN(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 WN(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 Cn(){return Cn=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},Cn.apply(this,arguments)}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 Fe(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){at(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 Or(e){return VN(e)||KN(e)||GN(e)||HN()}function HN(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GN(e,t){if(e){if(typeof e=="string")return Tf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tf(e,t)}}function KN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VN(e){if(Array.isArray(e))return Tf(e)}function Tf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wb(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,E1(n.key),n)}}function YN(e,t,r){return t&&wb(e.prototype,t),r&&wb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZN(e,t,r){return t=ka(t),JN(e,T1()?Reflect.construct(t,r||[],ka(e).constructor):t.apply(e,r))}function JN(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 QN(e)}function QN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T1=function(){return!!e})()}function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ka(e)}function eD(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 at(e,t,r){return t=E1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E1(e){var t=tD(e,"string");return Yr(t)=="symbol"?t:t+""}function tD(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wi=(function(e){function t(){var r;XN(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ZN(this,t,[].concat(i)),at(r,"state",{isAnimationFinished:!0,totalLength:0}),at(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),at(r,"getStrokeDasharray",function(o,u,s){var c=s.reduce(function(b,x){return b+x});if(!c)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/c),l=o%c,p=u-o,d=[],y=0,v=0;y<s.length;v+=s[y],++y)if(v+s[y]>l){d=[].concat(Or(s.slice(0,y)),[l-v]);break}var h=d.length%2===0?[0,p]:[p];return[].concat(Or(t.repeat(s,f)),Or(d),h).map(function(b){return"".concat(b,"px")}).join(", ")}),at(r,"id",on("recharts-line-")),at(r,"pathRef",function(o){r.mainCurve=o}),at(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),at(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return eD(t,e),YN(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=Je(f,xi);if(!l)return null;var p=function(v,h){return{x:v.x,y:v.y,value:v.value,errorVal:Ne(v.payload,h)}},d={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(ce,d,l.map(function(y){return P.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,dataPointFormatter:p})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,s=u.dot,c=u.points,f=u.dataKey,l=Z(this.props,!1),p=Z(s,!0),d=c.map(function(v,h){var b=Fe(Fe(Fe({key:"dot-".concat(h),r:3},l),p),{},{index:h,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:c});return t.renderDotItem(s,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(ce,Cn({className:"recharts-line-dots",key:"dots"},y),d)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,c=u.layout,f=u.connectNulls;u.ref;var l=bb(u,FN),p=Fe(Fe(Fe({},Z(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:c,connectNulls:f});return P.createElement(Cr,Cn({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,d=o.animationId,y=o.animateNewValues,v=o.width,h=o.height,b=this.state,x=b.prevPoints,O=b.totalLength;return P.createElement(mt,{begin:f,duration:l,isActive:c,easing:p,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var m=_.t;if(x){var g=x.length/u.length,A=u.map(function(T,C){var I=Math.floor(C*g);if(x[I]){var $=x[I],N=Ee($.x,T.x),R=Ee($.y,T.y);return Fe(Fe({},T),{},{x:N(m),y:R(m)})}if(y){var L=Ee(v*2,T.x),z=Ee(h/2,T.y);return Fe(Fe({},T),{},{x:L(m),y:z(m)})}return Fe(Fe({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(A,n,i)}var S=Ee(0,O),j=S(m),M;if(s){var E="".concat(s).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});M=a.getStrokeDasharray(j,O,E)}else M=a.generateSimpleStrokeDasharray(O,j);return a.renderCurveStatically(u,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,c=s.prevPoints,f=s.totalLength;return u&&o&&o.length&&(!c&&f>0||!Lr(c,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.xAxis,f=i.yAxis,l=i.top,p=i.left,d=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,O=ee("recharts-line",s),_=c&&c.allowDataOverflow,m=f&&f.allowDataOverflow,g=_||m,A=Q(h)?this.id:h,S=(n=Z(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=S.r,M=j===void 0?3:j,E=S.strokeWidth,T=E===void 0?2:E,C=Hb(o)?o:{},I=C.clipDot,$=I===void 0?!0:I,N=M*2+T;return P.createElement(ce,{className:O},_||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(A)},P.createElement("rect",{x:_?p:p-d/2,y:m?l:l-y/2,width:_?d:d*2,height:m?y:y*2})),!$&&P.createElement("clipPath",{id:"clipPath-dots-".concat(A)},P.createElement("rect",{x:p-N/2,y:l-N/2,width:d+N,height:y+N}))):null,!x&&this.renderCurve(g,A),this.renderErrorBar(g,A),(x||o)&&this.renderDots(g,$,A),(!v||b)&&Pt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Or(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Or(o),Or(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(P.isValidElement(n))a=P.cloneElement(n,i);else if(X(n))a=n(i);else{var o=i.key,u=bb(i,UN),s=ee("recharts-line-dot",typeof n!="boolean"?n.className:"");a=P.createElement(oo,Cn({key:o},u,{className:s}))}return a}}])})(D.PureComponent);at(wi,"displayName","Line");at(wi,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!dr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});at(wi,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,s=e.displayedData,c=e.offset,f=t.layout,l=s.map(function(p,d){var y=Ne(p,o);return f==="horizontal"?{x:da({axis:r,ticks:i,bandSize:u,entry:p,index:d}),y:Q(y)?null:n.scale(y),value:y,payload:p}:{x:Q(y)?null:r.scale(y),y:da({axis:n,ticks:a,bandSize:u,entry:p,index:d}),value:y,payload:p}});return Fe({points:l,layout:f},c)});var rD=["layout","type","stroke","connectNulls","isRange","ref"],nD=["key"],C1;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 M1(e,t){if(e==null)return{};var r=iD(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 iD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}function Ob(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 Nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ob(Object(r),!0).forEach(function(n){ft(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ob(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I1(n.key),n)}}function oD(e,t,r){return t&&_b(e.prototype,t),r&&_b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uD(e,t,r){return t=Na(t),sD(e,$1()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function sD(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 cD(e)}function cD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($1=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(e)}function lD(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 ft(e,t,r){return t=I1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I1(e){var t=fD(e,"string");return Zr(t)=="symbol"?t:t+""}function fD(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 Gt=(function(e){function t(){var r;aD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=uD(this,t,[].concat(i)),ft(r,"state",{isAnimationFinished:!0}),ft(r,"id",on("recharts-area-")),ft(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),X(o)&&o()}),ft(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),X(o)&&o()}),r}return lD(t,e),oD(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,p=Z(this.props,!1),d=Z(c,!0),y=f.map(function(h,b){var x=Nt(Nt(Nt({key:"dot-".concat(b),r:3},p),d),{},{index:b,cx:h.x,cy:h.y,dataKey:l,value:h.value,payload:h.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(ce,ir({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=Bt(o.map(function(p){return p.y||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Bt(a.map(function(p){return p.y||0})),l)),q(l)?P.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=Bt(o.map(function(p){return p.x||0}));return q(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Bt(a.map(function(p){return p.x||0})),l)),q(l)?P.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,p=u.isRange;u.ref;var d=M1(u,rD);return P.createElement(ce,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(Cr,ir({},Z(d,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(Cr,ir({},Z(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&p&&P.createElement(Cr,ir({},Z(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,d=o.animationId,y=this.state,v=y.prevPoints,h=y.prevBaseLine;return P.createElement(mt,{begin:f,duration:l,isActive:c,easing:p,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 O=v.length/u.length,_=u.map(function(S,j){var M=Math.floor(j*O);if(v[M]){var E=v[M],T=Ee(E.x,S.x),C=Ee(E.y,S.y);return Nt(Nt({},S),{},{x:T(x),y:C(x)})}return S}),m;if(q(s)&&typeof s=="number"){var g=Ee(h,s);m=g(x)}else if(Q(s)||an(s)){var A=Ee(h,0);m=A(x)}else m=s.map(function(S,j){var M=Math.floor(j*O);if(h[M]){var E=h[M],T=Ee(E.x,S.x),C=Ee(E.y,S.y);return Nt(Nt({},S),{},{x:T(x),y:C(x)})}return S});return a.renderAreaStatically(_,m,n,i)}return P.createElement(ce,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),P.createElement(ce,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,p=c.totalLength;return s&&o&&o.length&&(!f&&p>0||!Lr(f,o)||!Lr(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,p=i.yAxis,d=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,O=ee("recharts-area",s),_=l&&l.allowDataOverflow,m=p&&p.allowDataOverflow,g=_||m,A=Q(h)?this.id:h,S=(n=Z(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=S.r,M=j===void 0?3:j,E=S.strokeWidth,T=E===void 0?2:E,C=Hb(o)?o:{},I=C.clipDot,$=I===void 0?!0:I,N=M*2+T;return P.createElement(ce,{className:O},_||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(A)},P.createElement("rect",{x:_?f:f-d/2,y:m?c:c-y/2,width:_?d:d*2,height:m?y:y*2})),!$&&P.createElement("clipPath",{id:"clipPath-dots-".concat(A)},P.createElement("rect",{x:f-N/2,y:c-N/2,width:d+N,height:y+N}))):null,x?null:this.renderArea(g,A),(o||x)&&this.renderDots(g,$,A),(!v||b)&&Pt.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}}])})(D.PureComponent);C1=Gt;ft(Gt,"displayName","Area");ft(Gt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!dr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ft(Gt,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(q(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});ft(Gt,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,p=e.offset,d=t.layout,y=c&&c.length,v=C1.getBaseValue(t,r,n,i),h=d==="horizontal",b=!1,x=l.map(function(_,m){var g;y?g=c[f+m]:(g=Ne(_,s),Array.isArray(g)?b=!0:g=[v,g]);var A=g[1]==null||y&&Ne(_,s)==null;return h?{x:da({axis:n,ticks:a,bandSize:u,entry:_,index:m}),y:A?null:i.scale(g[1]),value:g,payload:_}:{x:A?null:n.scale(g[1]),y:da({axis:i,ticks:o,bandSize:u,entry:_,index:m}),value:g,payload:_}}),O;return y||b?O=x.map(function(_){var m=Array.isArray(_.value)?_.value[0]:null;return h?{x:_.x,y:m!=null&&_.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:_.y}}):O=h?i.scale(v):n.scale(v),Nt({points:x,baseLine:O,layout:d,isRange:b},p)});ft(Gt,"renderDotItem",function(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(X(e))r=e(t);else{var n=ee("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=M1(t,nD);r=P.createElement(oo,ir({},a,{key:i,className:n}))}return r});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 pD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D1(n.key),n)}}function hD(e,t,r){return t&&dD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vD(e,t,r){return t=Da(t),yD(e,k1()?Reflect.construct(t,r||[],Da(e).constructor):t.apply(e,r))}function yD(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 mD(e)}function mD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k1=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Da(e)}function gD(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 N1(e,t,r){return t=D1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D1(e){var t=bD(e,"string");return Jr(t)=="symbol"?t:t+""}function bD(e,t){if(Jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $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 xD(e){var t=e.xAxisId,r=qp(),n=Lp(),i=y1(t);return i==null?null:D.createElement(fn,$f({},i,{className:ee("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Ot(o,!0)}}))}var ht=(function(e){function t(){return pD(this,t),vD(this,t,arguments)}return gD(t,e),hD(t,[{key:"render",value:function(){return D.createElement(xD,this.props)}}])})(D.Component);N1(ht,"displayName","XAxis");N1(ht,"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 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)}function wD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OD(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,q1(n.key),n)}}function _D(e,t,r){return t&&OD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AD(e,t,r){return t=Ra(t),SD(e,R1()?Reflect.construct(t,r||[],Ra(e).constructor):t.apply(e,r))}function SD(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 PD(e)}function PD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R1=function(){return!!e})()}function Ra(e){return Ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ra(e)}function jD(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 B1(e,t,r){return t=q1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q1(e){var t=TD(e,"string");return Qr(t)=="symbol"?t:t+""}function TD(e,t){if(Qr(e)!="object"||!e)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 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)}var ED=function(t){var r=t.yAxisId,n=qp(),i=Lp(),a=m1(r);return a==null?null:D.createElement(fn,kf({},a,{className:ee("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Ot(u,!0)}}))},vt=(function(e){function t(){return wD(this,t),AD(this,t,arguments)}return jD(t,e),_D(t,[{key:"render",value:function(){return D.createElement(ED,this.props)}}])})(D.Component);B1(vt,"displayName","YAxis");B1(vt,"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 Ab(e){return ID(e)||$D(e)||MD(e)||CD()}function CD(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 59In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MD(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 $D(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ID(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}var Df=function(t,r,n,i,a){var o=Je(t,ci),u=Je(t,fo),s=[].concat(Ab(o),Ab(u)),c=Je(t,ho),f="".concat(i,"Id"),l=i[0],p=r;if(s.length&&(p=s.reduce(function(v,h){if(h.props[f]===n&&dt(h.props,"extendDomain")&&q(h.props[l])){var b=h.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},p)),c.length){var d="".concat(l,"1"),y="".concat(l,"2");p=c.reduce(function(v,h){if(h.props[f]===n&&dt(h.props,"extendDomain")&&q(h.props[d])&&q(h.props[y])){var b=h.props[d],x=h.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},p)}return a&&a.length&&(p=a.reduce(function(v,h){return q(h)?[Math.min(v[0],h),Math.max(v[1],h)]:v},p)),p},vl={exports:{}},Sb;function kD(){return Sb||(Sb=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||s,p),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],d]:s._events[y].push(d):(s._events[y]=d,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var p=0,d=l.length,y=new Array(d);p<d;p++)y[p]=l[p].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,p,d,y){var v=r?r+c:c;if(!this._events[v])return!1;var h=this._events[v],b=arguments.length,x,O;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,l),!0;case 4:return h.fn.call(h.context,f,l,p),!0;case 5:return h.fn.call(h.context,f,l,p,d),!0;case 6:return h.fn.call(h.context,f,l,p,d,y),!0}for(O=1,x=new Array(b-1);O<b;O++)x[O-1]=arguments[O];h.fn.apply(h.context,x)}else{var _=h.length,m;for(O=0;O<_;O++)switch(h[O].once&&this.removeListener(c,h[O].fn,void 0,!0),b){case 1:h[O].fn.call(h[O].context);break;case 2:h[O].fn.call(h[O].context,f);break;case 3:h[O].fn.call(h[O].context,f,l);break;case 4:h[O].fn.call(h[O].context,f,l,p);break;default:if(!x)for(m=1,x=new Array(b-1);m<b;m++)x[m-1]=arguments[m];h[O].fn.apply(h[O].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,p){var d=r?r+c:c;if(!this._events[d])return this;if(!f)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===f&&(!p||y.once)&&(!l||y.context===l)&&o(this,d);else{for(var v=0,h=[],b=y.length;v<b;v++)(y[v].fn!==f||p&&!y[v].once||l&&y[v].context!==l)&&h.push(y[v]);h.length?this._events[d]=h.length===1?h[0]:h:o(this,d)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(vl)),vl.exports}var ND=kD();const DD=le(ND);var yl=new DD,ml="recharts.syncMouseEvents";function fi(e){"@babel/helpers - typeof";return fi=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},fi(e)}function RD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,L1(n.key),n)}}function qD(e,t,r){return t&&BD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gl(e,t,r){return t=L1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L1(e){var t=LD(e,"string");return fi(t)=="symbol"?t:t+""}function LD(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zD=(function(){function e(){RD(this,e),gl(this,"activeIndex",0),gl(this,"coordinateList",[]),gl(this,"layout","horizontal")}return qD(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,p=r.mouseHandlerCallback,d=p===void 0?null:p;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=d??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,p=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:p})}}}])})();function FD(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&q(n)&&q(i))return!0}return!1}function UD(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 z1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ce(t,r,n,i),u=Ce(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function WD(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,p=Ce(u,s,c,l),d=Ce(u,s,f,l);n=p.x,i=p.y,a=d.x,o=d.y}else return z1(t);return[{x:n,y:i},{x:a,y:o}]}function pi(e){"@babel/helpers - typeof";return pi=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},pi(e)}function Pb(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 Ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pb(Object(r),!0).forEach(function(n){HD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HD(e,t,r){return t=GD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GD(e){var t=KD(e,"string");return pi(t)=="symbol"?t:t+""}function KD(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VD(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,p=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||p!=="ScatterChart"&&i!=="axis")return null;var y,v=Cr;if(p==="ScatterChart")y=o,v=D2;else if(p==="BarChart")y=UD(l,o,s,f),v=kp;else if(l==="radial"){var h=z1(o),b=h.cx,x=h.cy,O=h.radius,_=h.startAngle,m=h.endAngle;y={cx:b,cy:x,startAngle:_,endAngle:m,innerRadius:O,outerRadius:O},v=Gx}else y={points:WD(l,o,s)},v=Cr;var g=Ri(Ri(Ri(Ri({stroke:"#ccc",pointerEvents:"none"},s),y),Z(d,!1)),{},{payload:u,payloadIndex:c,className:ee("recharts-tooltip-cursor",d.className)});return D.isValidElement(d)?D.cloneElement(d,g):D.createElement(v,g)}var XD=["item"],YD=["children","className","width","height","style","compact","title","desc"];function en(e){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(e)}function Sr(){return Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sr.apply(this,arguments)}function jb(e,t){return QD(e)||JD(e,t)||U1(e,t)||ZD()}function ZD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function QD(e){if(Array.isArray(e))return e}function Tb(e,t){if(e==null)return{};var r=eR(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 eR(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 tR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rR(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,W1(n.key),n)}}function nR(e,t,r){return t&&rR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iR(e,t,r){return t=Ba(t),aR(e,F1()?Reflect.construct(t,r||[],Ba(e).constructor):t.apply(e,r))}function aR(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oR(e)}function oR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F1=function(){return!!e})()}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(e)}function uR(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 tn(e){return lR(e)||cR(e)||U1(e)||sR()}function sR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U1(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 cR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lR(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 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 k(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){G(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 G(e,t,r){return t=W1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W1(e){var t=fR(e,"string");return en(t)=="symbol"?t:t+""}function fR(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pR={xAxis:["bottom","top"],yAxis:["left","right"]},dR={width:"100%",height:"100%"},H1={x:0,y:0};function Bi(e){return e}var hR=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},vR=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 k(k(k({},i),Ce(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return k(k(k({},i),Ce(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return H1},vo=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(tn(u),tn(c)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function G1(e){return e==="number"?[0,"auto"]:void 0}var qf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=vo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;p=qi(d,o.dataKey,i)}else p=l&&l[n]||u[n];return p?[].concat(tn(s),[Ux(c,p)]):s},[])},Cb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=hR(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=vC(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,p=qf(t,r,f,l),d=vR(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:p,activeCoordinate:d}}return null},yR=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,p=t.stackOffset,d=Lx(f,a);return n.reduce(function(y,v){var h,b=v.type.defaultProps!==void 0?k(k({},v.type.defaultProps),v.props):v.props,x=b.type,O=b.dataKey,_=b.allowDataOverflow,m=b.allowDuplicatedCategory,g=b.scale,A=b.ticks,S=b.includeHidden,j=b[o];if(y[j])return y;var M=vo(t.data,{graphicalItems:i.filter(function(U){var V,fe=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o];return fe===j}),dataStartIndex:s,dataEndIndex:c}),E=M.length,T,C,I;FD(b.domain,_,x)&&(T=tf(b.domain,null,_),d&&(x==="number"||g!=="auto")&&(I=Tn(M,O,"category")));var $=G1(x);if(!T||T.length===0){var N,R=(N=b.domain)!==null&&N!==void 0?N:$;if(O){if(T=Tn(M,O,x),x==="category"&&d){var L=uO(T);m&&L?(C=T,T=Aa(0,E)):m||(T=Fm(R,T,v).reduce(function(U,V){return U.indexOf(V)>=0?U:[].concat(tn(U),[V])},[]))}else if(x==="category")m?T=T.filter(function(U){return U!==""&&!Q(U)}):T=Fm(R,T,v).reduce(function(U,V){return U.indexOf(V)>=0||V===""||Q(V)?U:[].concat(tn(U),[V])},[]);else if(x==="number"){var z=xC(M,i.filter(function(U){var V,fe,me=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o],ze="hide"in U.props?U.props.hide:(fe=U.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return me===j&&(S||!ze)}),O,a,f);z&&(T=z)}d&&(x==="number"||g!=="auto")&&(I=Tn(M,O,"category"))}else d?T=Aa(0,E):u&&u[j]&&u[j].hasStack&&x==="number"?T=p==="expand"?[0,1]:Fx(u[j].stackGroups,s,c):T=qx(M,i.filter(function(U){var V=o in U.props?U.props[o]:U.type.defaultProps[o],fe="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return V===j&&(S||!fe)}),x,f,!0);if(x==="number")T=Df(l,T,j,a,A),R&&(T=tf(R,T,_));else if(x==="category"&&R){var H=R,K=T.every(function(U){return H.indexOf(U)>=0});K&&(T=H)}}return k(k({},y),{},G({},j,k(k({},b),{},{axisType:a,domain:T,categoricalDomain:I,duplicateDomain:C,originalDomain:(h=b.domain)!==null&&h!==void 0?h:$,isCategorical:d,layout:f})))},{})},mR=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,p=vo(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=p.length,y=Lx(f,a),v=-1;return n.reduce(function(h,b){var x=b.type.defaultProps!==void 0?k(k({},b.type.defaultProps),b.props):b.props,O=x[o],_=G1("number");if(!h[O]){v++;var m;return y?m=Aa(0,d):u&&u[O]&&u[O].hasStack?(m=Fx(u[O].stackGroups,s,c),m=Df(l,m,O,a)):(m=tf(_,qx(p,n.filter(function(g){var A,S,j=o in g.props?g.props[o]:(A=g.type.defaultProps)===null||A===void 0?void 0:A[o],M="hide"in g.props?g.props.hide:(S=g.type.defaultProps)===null||S===void 0?void 0:S.hide;return j===O&&!M}),"number",f),i.defaultProps.allowDataOverflow),m=Df(l,m,O,a)),k(k({},h),{},G({},O,k(k({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ze(pR,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:_,isCategorical:y,layout:f})))}return h},{})},gR=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),p=Je(f,a),d={};return p&&p.length?d=yR(t,{axes:p,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(d=mR(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),d},bR=function(t){var r=Rt(t),n=Ot(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:op(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ha(r,n)}},Mb=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}},xR=function(t){return!t||!t.length?!1:t.some(function(r){var n=_t(r&&r.type);return n&&n.indexOf("Bar")>=0})},$b=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"}},wR=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,p=n.margin||{},d=We(l,Wr),y=We(l,jr),v=Object.keys(s).reduce(function(m,g){var A=s[g],S=A.orientation;return!A.mirror&&!A.hide?k(k({},m),{},G({},S,m[S]+A.width)):m},{left:p.left||0,right:p.right||0}),h=Object.keys(o).reduce(function(m,g){var A=o[g],S=A.orientation;return!A.mirror&&!A.hide?k(k({},m),{},G({},S,Ze(m,"".concat(S))+A.height)):m},{top:p.top||0,bottom:p.bottom||0}),b=k(k({},h),v),x=b.bottom;d&&(b.bottom+=d.props.height||Wr.defaultProps.height),y&&r&&(b=gC(b,i,n,r));var O=c-b.left-b.right,_=f-b.top-b.bottom;return k(k({brushBottom:x},b),{},{width:Math.max(O,0),height:Math.max(_,0)})},OR=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Wp=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,p=function(b,x){var O=x.graphicalItems,_=x.stackGroups,m=x.offset,g=x.updateId,A=x.dataStartIndex,S=x.dataEndIndex,j=b.barSize,M=b.layout,E=b.barGap,T=b.barCategoryGap,C=b.maxBarSize,I=$b(M),$=I.numericAxisName,N=I.cateAxisName,R=xR(O),L=[];return O.forEach(function(z,H){var K=vo(b.data,{graphicalItems:[z],dataStartIndex:A,dataEndIndex:S}),U=z.type.defaultProps!==void 0?k(k({},z.type.defaultProps),z.props):z.props,V=U.dataKey,fe=U.maxBarSize,me=U["".concat($,"Id")],ze=U["".concat(N,"Id")],Kt={},De=s.reduce(function(Vt,Xt){var mo=x["".concat(Xt.axisType,"Map")],Gp=U["".concat(Xt.axisType,"Id")];mo&&mo[Gp]||Xt.axisType==="zAxis"||lr();var Kp=mo[Gp];return k(k({},Vt),{},G(G({},Xt.axisType,Kp),"".concat(Xt.axisType,"Ticks"),Ot(Kp)))},Kt),F=De[N],Y=De["".concat(N,"Ticks")],J=_&&_[me]&&_[me].hasStack&&$C(z,_[me].stackGroups),B=_t(z.type).indexOf("Bar")>=0,ve=ha(F,Y),te=[],xe=R&&yC({barSize:j,stackGroups:_,totalSize:OR(De,N)});if(B){var we,Re,kt=Q(fe)?C:fe,mr=(we=(Re=ha(F,Y,!0))!==null&&Re!==void 0?Re:kt)!==null&&we!==void 0?we:0;te=mC({barGap:E,barCategoryGap:T,bandSize:mr!==ve?mr:ve,sizeList:xe[ze],maxBarSize:kt}),mr!==ve&&(te=te.map(function(Vt){return k(k({},Vt),{},{position:k(k({},Vt.position),{},{offset:Vt.position.offset-mr/2})})}))}var Oi=z&&z.type&&z.type.getComposedData;Oi&&L.push({props:k(k({},Oi(k(k({},De),{},{displayedData:K,props:b,dataKey:V,item:z,bandSize:ve,barPosition:te,offset:m,stackedData:J,layout:M,dataStartIndex:A,dataEndIndex:S}))),{},G(G(G({key:z.key||"item-".concat(H)},$,De[$]),N,De[N]),"animationId",g)),childIndex:bO(z,b.children),item:z})}),L},d=function(b,x){var O=b.props,_=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!nh({props:O}))return null;var A=O.children,S=O.layout,j=O.stackOffset,M=O.data,E=O.reverseStackOrder,T=$b(S),C=T.numericAxisName,I=T.cateAxisName,$=Je(A,n),N=EC(M,$,"".concat(C,"Id"),"".concat(I,"Id"),j,E),R=s.reduce(function(U,V){var fe="".concat(V.axisType,"Map");return k(k({},U),{},G({},fe,gR(O,k(k({},V),{},{graphicalItems:$,stackGroups:V.axisType===C&&N,dataStartIndex:_,dataEndIndex:m}))))},{}),L=wR(k(k({},R),{},{props:O,graphicalItems:$}),x?.legendBBox);Object.keys(R).forEach(function(U){R[U]=f(O,R[U],L,U.replace("Map",""),r)});var z=R["".concat(I,"Map")],H=bR(z),K=p(O,k(k({},R),{},{dataStartIndex:_,dataEndIndex:m,updateId:g,graphicalItems:$,stackGroups:N,offset:L}));return k(k({formattedGraphicalItems:K,graphicalItems:$,offset:L,stackGroups:N},H),R)},y=(function(h){function b(x){var O,_,m;return tR(this,b),m=iR(this,b,[x]),G(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),G(m,"accessibilityManager",new zD),G(m,"handleLegendBBoxUpdate",function(g){if(g){var A=m.state,S=A.dataStartIndex,j=A.dataEndIndex,M=A.updateId;m.setState(k({legendBBox:g},d({props:m.props,dataStartIndex:S,dataEndIndex:j,updateId:M},k(k({},m.state),{},{legendBBox:g}))))}}),G(m,"handleReceiveSyncEvent",function(g,A,S){if(m.props.syncId===g){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(A)}}),G(m,"handleBrushChange",function(g){var A=g.startIndex,S=g.endIndex;if(A!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var j=m.state.updateId;m.setState(function(){return k({dataStartIndex:A,dataEndIndex:S},d({props:m.props,dataStartIndex:A,dataEndIndex:S,updateId:j},m.state))}),m.triggerSyncEvent({dataStartIndex:A,dataEndIndex:S})}}),G(m,"handleMouseEnter",function(g){var A=m.getMouseInfo(g);if(A){var S=k(k({},A),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var j=m.props.onMouseEnter;X(j)&&j(S,g)}}),G(m,"triggeredAfterMouseMove",function(g){var A=m.getMouseInfo(g),S=A?k(k({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var j=m.props.onMouseMove;X(j)&&j(S,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 A={isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var S=m.props.onMouseLeave;X(S)&&S(A,g)}),G(m,"handleOuterEvent",function(g){var A=gO(g),S=Ze(m.props,"".concat(A));if(A&&X(S)){var j,M;/.*touch.*/i.test(A)?M=m.getMouseInfo(g.changedTouches[0]):M=m.getMouseInfo(g),S((j=M)!==null&&j!==void 0?j:{},g)}}),G(m,"handleClick",function(g){var A=m.getMouseInfo(g);if(A){var S=k(k({},A),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var j=m.props.onClick;X(j)&&j(S,g)}}),G(m,"handleMouseDown",function(g){var A=m.props.onMouseDown;if(X(A)){var S=m.getMouseInfo(g);A(S,g)}}),G(m,"handleMouseUp",function(g){var A=m.props.onMouseUp;if(X(A)){var S=m.getMouseInfo(g);A(S,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 A=m.props.onDoubleClick;if(X(A)){var S=m.getMouseInfo(g);A(S,g)}}),G(m,"handleContextMenu",function(g){var A=m.props.onContextMenu;if(X(A)){var S=m.getMouseInfo(g);A(S,g)}}),G(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&yl.emit(ml,m.props.syncId,g,m.eventEmitterSymbol)}),G(m,"applySyncEvent",function(g){var A=m.props,S=A.layout,j=A.syncMethod,M=m.state.updateId,E=g.dataStartIndex,T=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(k({dataStartIndex:E,dataEndIndex:T},d({props:m.props,dataStartIndex:E,dataEndIndex:T,updateId:M},m.state)));else if(g.activeTooltipIndex!==void 0){var C=g.chartX,I=g.chartY,$=g.activeTooltipIndex,N=m.state,R=N.offset,L=N.tooltipTicks;if(!R)return;if(typeof j=="function")$=j(L,g);else if(j==="value"){$=-1;for(var z=0;z<L.length;z++)if(L[z].value===g.activeLabel){$=z;break}}var H=k(k({},R),{},{x:R.left,y:R.top}),K=Math.min(C,H.x+H.width),U=Math.min(I,H.y+H.height),V=L[$]&&L[$].value,fe=qf(m.state,m.props.data,$),me=L[$]?{x:S==="horizontal"?L[$].coordinate:K,y:S==="horizontal"?U:L[$].coordinate}:H1;m.setState(k(k({},g),{},{activeLabel:V,activeCoordinate:me,activePayload:fe,activeTooltipIndex:$}))}else m.setState(g)}),G(m,"renderCursor",function(g){var A,S=m.state,j=S.isTooltipActive,M=S.activeCoordinate,E=S.activePayload,T=S.offset,C=S.activeTooltipIndex,I=S.tooltipAxisBandSize,$=m.getTooltipEventType(),N=(A=g.props.active)!==null&&A!==void 0?A:j,R=m.props.layout,L=g.key||"_recharts-cursor";return P.createElement(VD,{key:L,activeCoordinate:M,activePayload:E,activeTooltipIndex:C,chartName:r,element:g,isActive:N,layout:R,offset:T,tooltipAxisBandSize:I,tooltipEventType:$})}),G(m,"renderPolarAxis",function(g,A,S){var j=Ze(g,"type.axisType"),M=Ze(m.state,"".concat(j,"Map")),E=g.type.defaultProps,T=E!==void 0?k(k({},E),g.props):g.props,C=M&&M[T["".concat(j,"Id")]];return D.cloneElement(g,k(k({},C),{},{className:ee(j,C.className),key:g.key||"".concat(A,"-").concat(S),ticks:Ot(C,!0)}))}),G(m,"renderPolarGrid",function(g){var A=g.props,S=A.radialLines,j=A.polarAngles,M=A.polarRadius,E=m.state,T=E.radiusAxisMap,C=E.angleAxisMap,I=Rt(T),$=Rt(C),N=$.cx,R=$.cy,L=$.innerRadius,z=$.outerRadius;return D.cloneElement(g,{polarAngles:Array.isArray(j)?j:Ot($,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(M)?M:Ot(I,!0).map(function(H){return H.coordinate}),cx:N,cy:R,innerRadius:L,outerRadius:z,key:g.key||"polar-grid",radialLines:S})}),G(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,A=m.props,S=A.children,j=A.width,M=A.height,E=m.props.margin||{},T=j-(E.left||0)-(E.right||0),C=Rx({children:S,formattedGraphicalItems:g,legendWidth:T,legendContent:c});if(!C)return null;var I=C.item,$=Tb(C,XD);return D.cloneElement(I,k(k({},$),{},{chartWidth:j,chartHeight:M,margin:E,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),G(m,"renderTooltip",function(){var g,A=m.props,S=A.children,j=A.accessibilityLayer,M=We(S,Be);if(!M)return null;var E=m.state,T=E.isTooltipActive,C=E.activeCoordinate,I=E.activePayload,$=E.activeLabel,N=E.offset,R=(g=M.props.active)!==null&&g!==void 0?g:T;return D.cloneElement(M,{viewBox:k(k({},N),{},{x:N.left,y:N.top}),active:R,label:$,payload:R?I:[],coordinate:C,accessibilityLayer:j})}),G(m,"renderBrush",function(g){var A=m.props,S=A.margin,j=A.data,M=m.state,E=M.offset,T=M.dataStartIndex,C=M.dataEndIndex,I=M.updateId;return D.cloneElement(g,{key:g.key||"_recharts-brush",onChange:Ii(m.handleBrushChange,g.props.onChange),data:j,x:q(g.props.x)?g.props.x:E.left,y:q(g.props.y)?g.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:q(g.props.width)?g.props.width:E.width,startIndex:T,endIndex:C,updateId:"brush-".concat(I)})}),G(m,"renderReferenceElement",function(g,A,S){if(!g)return null;var j=m,M=j.clipPathId,E=m.state,T=E.xAxisMap,C=E.yAxisMap,I=E.offset,$=g.type.defaultProps||{},N=g.props,R=N.xAxisId,L=R===void 0?$.xAxisId:R,z=N.yAxisId,H=z===void 0?$.yAxisId:z;return D.cloneElement(g,{key:g.key||"".concat(A,"-").concat(S),xAxis:T[L],yAxis:C[H],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:M})}),G(m,"renderActivePoints",function(g){var A=g.item,S=g.activePoint,j=g.basePoint,M=g.childIndex,E=g.isRange,T=[],C=A.props.key,I=A.item.type.defaultProps!==void 0?k(k({},A.item.type.defaultProps),A.item.props):A.item.props,$=I.activeDot,N=I.dataKey,R=k(k({index:M,dataKey:N,cx:S.x,cy:S.y,r:4,fill:Ip(A.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},Z($,!1)),Li($));return T.push(b.renderActiveDot($,R,"".concat(C,"-activePoint-").concat(M))),j?T.push(b.renderActiveDot($,k(k({},R),{},{cx:j.x,cy:j.y}),"".concat(C,"-basePoint-").concat(M))):E&&T.push(null),T}),G(m,"renderGraphicChild",function(g,A,S){var j=m.filterFormatItem(g,A,S);if(!j)return null;var M=m.getTooltipEventType(),E=m.state,T=E.isTooltipActive,C=E.tooltipAxis,I=E.activeTooltipIndex,$=E.activeLabel,N=m.props.children,R=We(N,Be),L=j.props,z=L.points,H=L.isRange,K=L.baseLine,U=j.item.type.defaultProps!==void 0?k(k({},j.item.type.defaultProps),j.item.props):j.item.props,V=U.activeDot,fe=U.hide,me=U.activeBar,ze=U.activeShape,Kt=!!(!fe&&T&&R&&(V||me||ze)),De={};M!=="axis"&&R&&R.props.trigger==="click"?De={onClick:Ii(m.handleItemMouseEnter,g.props.onClick)}:M!=="axis"&&(De={onMouseLeave:Ii(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:Ii(m.handleItemMouseEnter,g.props.onMouseEnter)});var F=D.cloneElement(g,k(k({},j.props),De));function Y(Xt){return typeof C.dataKey=="function"?C.dataKey(Xt.payload):null}if(Kt)if(I>=0){var J,B;if(C.dataKey&&!C.allowDuplicatedCategory){var ve=typeof C.dataKey=="function"?Y:"payload.".concat(C.dataKey.toString());J=qi(z,ve,$),B=H&&K&&qi(K,ve,$)}else J=z?.[I],B=H&&K&&K[I];if(ze||me){var te=g.props.activeIndex!==void 0?g.props.activeIndex:I;return[D.cloneElement(g,k(k(k({},j.props),De),{},{activeIndex:te})),null,null]}if(!Q(J))return[F].concat(tn(m.renderActivePoints({item:j,activePoint:J,basePoint:B,childIndex:I,isRange:H})))}else{var xe,we=(xe=m.getItemByXY(m.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:F},Re=we.graphicalItem,kt=Re.item,mr=kt===void 0?g:kt,Oi=Re.childIndex,Vt=k(k(k({},j.props),De),{},{activeIndex:Oi});return[D.cloneElement(mr,Vt),null,null]}return H?[F,null,null]:[F,null]}),G(m,"renderCustomized",function(g,A,S){return D.cloneElement(g,k(k({key:"recharts-customized-".concat(S)},m.props),m.state))}),G(m,"renderMap",{CartesianGrid:{handler:Bi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Bi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Bi},YAxis:{handler:Bi},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((O=x.id)!==null&&O!==void 0?O:on("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=B0(m.triggeredAfterMouseMove,(_=x.throttleDelay)!==null&&_!==void 0?_:1e3/60),m.state={},m}return uR(b,h),nR(b,[{key:"componentDidMount",value:function(){var O,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var O=this.props,_=O.children,m=O.data,g=O.height,A=O.layout,S=We(_,Be);if(S){var j=S.props.defaultIndex;if(!(typeof j!="number"||j<0||j>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[j]&&this.state.tooltipTicks[j].value,E=qf(this.state,m,j,M),T=this.state.tooltipTicks[j].coordinate,C=(this.state.offset.top+g)/2,I=A==="horizontal",$=I?{x:T,y:C}:{y:T,x:C},N=this.state.formattedGraphicalItems.find(function(L){var z=L.item;return z.type.name==="Scatter"});N&&($=k(k({},$),N.props.points[j].tooltipPosition),E=N.props.points[j].tooltipPayload);var R={activeTooltipIndex:j,isTooltipActive:!0,activeLabel:M,activePayload:E,activeCoordinate:$};this.setState(R),this.renderCursor(S),this.accessibilityManager.setIndex(j)}}}},{key:"getSnapshotBeforeUpdate",value:function(O,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==O.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==O.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(O){_l([We(O.children,Be)],[We(this.props.children,Be)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var O=We(this.props.children,Be);if(O&&typeof O.props.shared=="boolean"){var _=O.props.shared?"axis":"item";return u.indexOf(_)>=0?_:a}return a}},{key:"getMouseInfo",value:function(O){if(!this.container)return null;var _=this.container,m=_.getBoundingClientRect(),g=aP(m),A={chartX:Math.round(O.pageX-g.left),chartY:Math.round(O.pageY-g.top)},S=m.width/_.offsetWidth||1,j=this.inRange(A.chartX,A.chartY,S);if(!j)return null;var M=this.state,E=M.xAxisMap,T=M.yAxisMap,C=this.getTooltipEventType(),I=Cb(this.state,this.props.data,this.props.layout,j);if(C!=="axis"&&E&&T){var $=Rt(E).scale,N=Rt(T).scale,R=$&&$.invert?$.invert(A.chartX):null,L=N&&N.invert?N.invert(A.chartY):null;return k(k({},A),{},{xValue:R,yValue:L},I)}return I?k(k({},A),I):null}},{key:"inRange",value:function(O,_){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,A=O/m,S=_/m;if(g==="horizontal"||g==="vertical"){var j=this.state.offset,M=A>=j.left&&A<=j.left+j.width&&S>=j.top&&S<=j.top+j.height;return M?{x:A,y:S}:null}var E=this.state,T=E.angleAxisMap,C=E.radiusAxisMap;if(T&&C){var I=Rt(T);return Hm({x:A,y:S},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var O=this.props.children,_=this.getTooltipEventType(),m=We(O,Be),g={};m&&_==="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 A=Li(this.props,this.handleOuterEvent);return k(k({},A),g)}},{key:"addListener",value:function(){yl.on(ml,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){yl.removeListener(ml,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(O,_,m){for(var g=this.state.formattedGraphicalItems,A=0,S=g.length;A<S;A++){var j=g[A];if(j.item===O||j.props.key===O.key||_===_t(j.item.type)&&m===j.childIndex)return j}return null}},{key:"renderClipPath",value:function(){var O=this.clipPathId,_=this.state.offset,m=_.left,g=_.top,A=_.height,S=_.width;return P.createElement("defs",null,P.createElement("clipPath",{id:O},P.createElement("rect",{x:m,y:g,height:A,width:S})))}},{key:"getXScales",value:function(){var O=this.state.xAxisMap;return O?Object.entries(O).reduce(function(_,m){var g=jb(m,2),A=g[0],S=g[1];return k(k({},_),{},G({},A,S.scale))},{}):null}},{key:"getYScales",value:function(){var O=this.state.yAxisMap;return O?Object.entries(O).reduce(function(_,m){var g=jb(m,2),A=g[0],S=g[1];return k(k({},_),{},G({},A,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(O){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[O])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(O){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[O])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(O){var _=this.state,m=_.formattedGraphicalItems,g=_.activeItem;if(m&&m.length)for(var A=0,S=m.length;A<S;A++){var j=m[A],M=j.props,E=j.item,T=E.type.defaultProps!==void 0?k(k({},E.type.defaultProps),E.props):E.props,C=_t(E.type);if(C==="Bar"){var I=(M.data||[]).find(function(L){return P2(O,L)});if(I)return{graphicalItem:j,payload:I}}else if(C==="RadialBar"){var $=(M.data||[]).find(function(L){return Hm(O,L)});if($)return{graphicalItem:j,payload:$}}else if(uo(j,g)||so(j,g)||ai(j,g)){var N=yI({graphicalItem:j,activeTooltipItem:g,itemData:T.data}),R=T.activeIndex===void 0?N:T.activeIndex;return{graphicalItem:k(k({},j),{},{childIndex:R}),payload:ai(j,g)?T.data[N]:j.props.data[N]}}}return null}},{key:"render",value:function(){var O=this;if(!nh(this))return null;var _=this.props,m=_.children,g=_.className,A=_.width,S=_.height,j=_.style,M=_.compact,E=_.title,T=_.desc,C=Tb(_,YD),I=Z(C,!1);if(M)return P.createElement(ob,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(Sl,Sr({},I,{width:A,height:S,title:E,desc:T}),this.renderClipPath(),ah(m,this.renderMap)));if(this.props.accessibilityLayer){var $,N;I.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,I.role=(N=this.props.role)!==null&&N!==void 0?N:"application",I.onKeyDown=function(L){O.accessibilityManager.keyboardEvent(L)},I.onFocus=function(){O.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return P.createElement(ob,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Sr({className:ee("recharts-wrapper",g),style:k({position:"relative",curs
61or:"default",width:A,height:S},j)},R,{ref:function(z){O.container=z}}),P.createElement(Sl,Sr({},I,{width:A,height:S,title:E,desc:T,style:dR}),this.renderClipPath(),ah(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(D.Component);G(y,"displayName",r),G(y,"defaultProps",k({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(h,b){var x=h.dataKey,O=h.data,_=h.children,m=h.width,g=h.height,A=h.layout,S=h.stackOffset,j=h.margin,M=b.dataStartIndex,E=b.dataEndIndex;if(b.updateId===void 0){var T=Mb(h);return k(k(k({},T),{},{updateId:0},d(k(k({props:h},T),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:O,prevWidth:m,prevHeight:g,prevLayout:A,prevStackOffset:S,prevMargin:j,prevChildren:_})}if(x!==b.prevDataKey||O!==b.prevData||m!==b.prevWidth||g!==b.prevHeight||A!==b.prevLayout||S!==b.prevStackOffset||!Pr(j,b.prevMargin)){var C=Mb(h),I={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},$=k(k({},Cb(b,O,A)),{},{updateId:b.updateId+1}),N=k(k(k({},C),I),$);return k(k(k({},N),d(k({props:h},N),b)),{},{prevDataKey:x,prevData:O,prevWidth:m,prevHeight:g,prevLayout:A,prevStackOffset:S,prevMargin:j,prevChildren:_})}if(!_l(_,b.prevChildren)){var R,L,z,H,K=We(_,Wr),U=K&&(R=(L=K.props)===null||L===void 0?void 0:L.startIndex)!==null&&R!==void 0?R:M,V=K&&(z=(H=K.props)===null||H===void 0?void 0:H.endIndex)!==null&&z!==void 0?z:E,fe=U!==M||V!==E,me=!Q(O),ze=me&&!fe?b.updateId:b.updateId+1;return k(k({updateId:ze},d(k(k({props:h},b),{},{updateId:ze,dataStartIndex:U,dataEndIndex:V}),b)),{},{prevChildren:_,dataStartIndex:U,dataEndIndex:V})}return null}),G(y,"renderActiveDot",function(h,b,x){var O;return D.isValidElement(h)?O=D.cloneElement(h,b):X(h)?O=h(b):O=P.createElement(oo,b),P.createElement(ce,{className:"recharts-active-dot",key:x},O)});var v=D.forwardRef(function(b,x){return P.createElement(y,Sr({},b,{ref:x}))});return v.displayName=y.displayName,v},_R=Wp({chartName:"LineChart",GraphicalChild:wi,axisComponents:[{axisType:"xAxis",AxisComp:ht},{axisType:"yAxis",AxisComp:vt}],formatAxisMap:Np}),Hp=Wp({chartName:"BarChart",GraphicalChild:It,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ht},{axisType:"yAxis",AxisComp:vt}],formatAxisMap:Np}),AR=Wp({chartName:"AreaChart",GraphicalChild:Gt,axisComponents:[{axisType:"xAxis",AxisComp:ht},{axisType:"yAxis",AxisComp:vt}],formatAxisMap:Np});function Ib(e){const t=Math.random(),r=Math.random();return Math.sqrt(-2*Math.log(Math.max(t,1e-12)))*Math.cos(2*Math.PI*r)*e}function SR(e){return[0,.5,1,2,3,4,6,8,12,...Array.from({length:48},(r,n)=>15+n*12)].map(r=>{const n=80*(e/60)*(Math.exp(-.0072187499999999995*r)-Math.exp(-.46199999999999997*r));return{t:r,C:Math.max(0,n)}})}function PR(){return Array.from({length:51},(e,t)=>{const r=t*3;return{c:r,effect:100*r/(30+r)}})}function jR(e){const r=[];for(let u=0;u<2e3;u++){const s=.006*Math.exp(Ib(.3)),c=30*Math.exp(Ib(.4)),p=e/60*3/s/672,d=100*(p/(c+p));r.push(d)}r.sort((u,s)=>u-s);const n=u=>{const s=Math.floor(u/100*1999);return Math.round(r[s]*10)/10},i=20,a=Array(i).fill(0);for(const u of r){const s=Math.min(i-1,Math.floor(Math.max(0,Math.min(100,u))/100*i));a[s]++}return{bins:a.map((u,s)=>({bin:`${s*5}â${(s+1)*5}%`,count:u})),p10:n(10),p50:n(50),p90:n(90)}}const ct="#A8C979",K1="#D6B25A",V1="#C98A8A";function TR(e){return e>50?ct:e>=20?K1:V1}function ER(e){return e>30?V1:e>=15?K1:ct}const bl="rgba(168,201,121,0.06)",Xe="#8B9288",rt=10,kb="transparent";function CR({candidate:e}){const[t,r]=D.useState(60),n=t*16,i=Math.round(1e3/(1+Math.exp(-.008*(n-480))))/10,a=Math.round(1e3/(1+Math.exp(-.006*(n-1200))))/10,o=(i/Math.max(a,.1)).toFixed(1),u=D.useMemo(()=>SR(t),[t]),s=D.useMemo(()=>PR(),[]),c=80*t/60,f=D.useMemo(()=>jR(t),[t]),l=e.pdbId??"4ETQ",[p,d]=D.useState("both");return w.jsxs("div",{className:"flex flex-col gap-6",children:[w.jsxs(ae,{children:[w.jsx(pe,{children:"Mechanism of Action"}),w.jsxs("p",{className:"mt-3 text-[13px] leading-relaxed text-pz-soft font-light max-w-3xl",children:["An antibody targeting ",w.jsx("span",{className:"text-pz-text",children:e.target})," conjugated to a cytotoxic payload delivers selective tumor cell kill. Payload release is triggered by"," ",w.jsx("span",{className:"text-pz-text",children:e.target})," internalization following ADC binding."]}),w.jsxs("div",{className:"mt-5",children:[w.jsxs("div",{className:"flex items-center justify-between font-mono-pz text-[9.5px] tracking-[0.16em] uppercase text-pz-muted mb-2",children:[w.jsx("span",{children:"Target AUC Exposure"}),w.jsxs("span",{className:"text-pz-soft",children:[n.toFixed(0)," μg·h/mL"]})]}),w.jsx("input",{type:"range",min:0,max:100,value:t,onChange:y=>r(Number(y.target.value)),className:"w-full accent-[#A8C979] cursor-pointer"})]}),w.jsxs("div",{className:"mt-5 grid grid-cols-3 gap-4",children:[w.jsx("div",{children:w.jsx(gr,{label:"P(Response)",value:`${i}%`,color:TR(i)})}),w.jsx("div",{children:w.jsx(gr,{label:"P(Toxicity)",value:`${a}%`,color:ER(a)})}),w.jsx("div",{children:w.jsx(gr,{label:"Therapeutic Index",value:`${o}Ã`})})]})]}),w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[w.jsxs(ae,{children:[w.jsx(pe,{children:"Plasma Concentration vs Time"}),w.jsx("div",{className:"mt-4",style:{height:220,background:kb},children:w.jsx(Sn,{width:"100%",height:"100%",children:w.jsxs(AR,{data:u,margin:{top:8,right:16,bottom:20,left
61:8},children:[w.jsx("defs",{children:w.jsxs("linearGradient",{id:"pkGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[w.jsx("stop",{offset:"0%",stopColor:"rgba(168,201,121,0.3)"}),w.jsx("stop",{offset:"100%",stopColor:"rgba(168,201,121,0)"})]})}),w.jsx(Mr,{stroke:bl}),w.jsx(ht,{dataKey:"t",label:{value:"Time (h)",position:"insideBottom",offset:-10,fill:Xe,fontSize:rt},tick:{fill:Xe,fontSize:rt},tickLine:!1}),w.jsx(vt,{label:{value:"C (μg/mL)",angle:-90,position:"insideLeft",offset:12,fill:Xe,fontSize:rt},tick:{fill:Xe,fontSize:rt},tickLine:!1,width:50}),w.jsx(Be,{contentStyle:{background:"#0d1412",border:"1px solid rgba(168,201,121,0.2)",fontSize:10,color:"#c8ccc5"},formatter:y=>[y.toFixed(2),"C (μg/mL)"],labelFormatter:y=>`t = ${y} h`}),w.jsx(ci,{y:30,stroke:ct,strokeDasharray:"4 3",label:{value:"EC50",fill:ct,fontSize:9,position:"insideTopRight"}}),w.jsx(Gt,{type:"monotone",dataKey:"C",stroke:ct,strokeWidth:1.5,fill:"url(#pkGradient)",dot:!1,isAnimationActive:!1})]})})})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"ConcentrationâEffect"}),w.jsx("div",{className:"mt-4",style:{height:220,background:kb},children:w.jsx(Sn,{width:"100%",height:"100%",children:w.jsxs(_R,{data:s,margin:{top:8,right:16,bottom:20,left:8},children:[w.jsx(Mr,{stroke:bl}),w.jsx(ht,{dataKey:"c",label:{value:"Concentration (μg/mL)",position:"insideBottom",offset:-10,fill:Xe,fontSize:rt},tick:{fill:Xe,fontSize:rt},tickLine:!1}),w.jsx(vt,{label:{value:"Effect (%)",angle:-90,position:"insideLeft",offset:12,fill:Xe,fontSize:rt},tick:{fill:Xe,fontSize:rt},tickLine:!1,width:50}),w.jsx(Be,{contentStyle:{background:"#0d1412",border:"1px solid rgba(168,201,121,0.2)",fontSize:10,color:"#c8ccc5"},formatter:y=>[y.toFixed(1),"Effect (%)"],labelFormatter:y=>`C = ${y} μg/mL`}),w.jsx(ci,{x:c,stroke:ct,strokeDasharray:"4 3",label:{value:"Cmax",fill:ct,fontSize:9,position:"insideTopRight"}}),w.jsx(wi,{type:"monotone",dataKey:"effect",stroke:ct,strokeWidth:1.5,dot:!1,isAnimationActive:!1})]})})})]})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Decision Stress Test · 2 000 runs"}),w.jsxs("div",{className:"mt-4 grid grid-cols-3 gap-4",children:[w.jsx(gr,{label:"P10",value:`${f.p10}%`}),w.jsx(gr,{label:"P50",value:`${f.p50}%`,color:ct}),w.jsx(gr,{label:"P90",value:`${f.p90}%`})]}),w.jsx("div",{className:"mt-5",style:{height:160},children:w.jsx(Sn,{width:"100%",height:"100%",children:w.jsxs(Hp,{data:f.bins,margin:{top:4,right:16,bottom:24,left:8},children:[w.jsx(Mr,{stroke:bl,vertical:!1}),w.jsx(ht,{dataKey:"bin",label:{value:"P(Response) bin",position:"insideBottom",offset:-12,fill:Xe,fontSize:rt},tick:{fill:Xe,fontSize:8},tickLine:!1,interval:3}),w.jsx(vt,{label:{value:"Count",angle:-90,position:"insideLeft",offset:12,fill:Xe,fontSize:rt},tick:{fill:Xe,fontSize:rt},tickLine:!1,width:45}),w.jsx(Be,{contentStyle:{background:"#0d1412",border:"1px solid rgba(168,201,121,0.2)",fontSize:10,color:"#c8ccc5"}}),w.jsx(It,{dataKey:"count",fill:"rgba(168,201,121,0.55)",stroke:ct,strokeWidth:.5,isAnimationActive:!1,radius:[2,2,0,0]})]})})})]}),w.jsxs(ae,{children:[w.jsxs("div",{className:"flex items-center justify-between mb-4",children:[w.jsxs(pe,{children:["Target Structure · ",e.pdbUrl?`AlphaFold / ${l}`:l]}),w.jsx("div",{className:"flex gap-1",children:["cartoon","surface","both"].map(y=>w.jsx("button",{onClick:()=>d(y),className:`font-mono-pz text-[9px] tracking-[0.18em] uppercase px-2.5 py-1 border transition-colors ${p===y?"border-pz-accent text-pz-accent":"pz-border text-pz-muted hover:text-pz-soft"}`,children:y},y))})]}),w.jsx(Db,{pdbUrl:e.pdbUrl,pdbId:l,height:340,mode:p})]})]})}const Nb={"tf-adc":{commercial:{tam:"$2.8B",sam:"$1.1B",pricing:"$180Kâ220K/yr",peakLow:420,peakHigh:780,competitors:[{name:"Tisotumab vedotin (Tivdak)",stage:"Approved",company:"Pfizer / Seagen",moa:"TF-directed ADC"},{name:"MORAb-109",stage:"Phase II",company:"Eisai",moa:"Farletuzumab ecteribulin"},{name:"XMT-1592",stage:"Phase I",company:"Mersana",moa:"TF ADC"}]},regulatory:{designation:"Fast Track + Breakthrough Therapy",pathway:"Accelerated Approval",riskLevel:"Low",precedents:[{name:"Tivdak (tisotumab vedotin)",target:"TF",year:"2021",path:"Accelerated"},{name:"Keytruda (pembrolizumab)",target:"PD-1",year:"2018",path:"Accelerated"}],milestones:[{label:"IND Filing",months:0,done:!0},{label:"Phase I Dose Escalation",months:6,done:!0},{label:"Phase II Enrollment Complete",months:18,done:!1},{label:"NDA Submission",months:30,done:!1},{label:"FDA Decision",months:36,done:!1}]},translational:{biomarker:"Tissue Factor (TF/CD142)",validationStatus:"Clinically Validated",defaultThreshold:25,expression:[{tumor:"Cervical",pct:92},{tumor:"Endometrial",pct:78},{tumor:"Bladder",pct:61},{tumor:"HNSCC",pct:58},{tumor:"NSCLC",pct:44},{tumor:"Ovarian",pct:39}]},bd:{npvBase:650,npvRisk:310,comparables:[{name:"Seagen / Pfizer (Tivdak rights)",year:"2020",upfront:"$125M",total:"$850M",stage:"Phase II"},{name:"AstraZeneca / Daiichi (Enhertu)",year:"2019",upfront:"$1.35B",total:"$6.9B",stage:"Phase II"},{name:"MSD / Immunomedics",year:"2019",upfront:"$300M",total:"$1.65B",stage:"Phase I"}],partnerTypes:[{label:"Large Pharma",value:55},{label:"Specialty Oncology",value:25},{label:"ADC Platform Co.",value:12},{label:"Strategic Regional",value:8}]}},"cldn18-adc":{commercial:{tam:"$3.4B",sam:"$1.3B",pricing:"$195Kâ240K/yr",peakLow:380,peakHigh:720,competitors:[{name:"Zolbetuximab (Vyloy)",stage:"Ap
61proved",company:"Astellas",moa:"CLDN18.2 mAb"},{name:"CMG901",stage:"Phase III",company:"Keymed/AstraZeneca",moa:"CLDN18.2 ADC"},{name:"SYSA1801",stage:"Phase II",company:"Sorrento/SYS",moa:"CLDN18.2 ADC"}]},regulatory:{designation:"Fast Track",pathway:"Standard Review",riskLevel:"Medium",precedents:[{name:"Vyloy (zolbetuximab)",target:"CLDN18.2",year:"2024",path:"Standard"},{name:"Opdivo (nivolumab) GC",target:"PD-1",year:"2021",path:"Standard"}],milestones:[{label:"IND Filing",months:0,done:!0},{label:"Phase I Completion",months:8,done:!0},{label:"Phase II Primary Endpoint",months:22,done:!1},{label:"BLA Submission",months:36,done:!1},{label:"FDA Decision",months:48,done:!1}]},translational:{biomarker:"Claudin 18.2 (CLDN18.2)",validationStatus:"Validated â IHC â¥1+ in â¥75% cells",defaultThreshold:40,expression:[{tumor:"Gastric",pct:42},{tumor:"Pancreatic",pct:31},{tumor:"Esophageal",pct:28},{tumor:"Cholangiocarcinoma",pct:19},{tumor:"Ovarian (mucinous)",pct:16},{tumor:"Lung (adeno)",pct:8}]},bd:{npvBase:480,npvRisk:215,comparables:[{name:"AstraZeneca / Keymed (CMG901)",year:"2021",upfront:"$63M",total:"$2.8B",stage:"Phase I"},{name:"Amgen / BioAtla (BA3021)",year:"2020",upfront:"$75M",total:"$1.6B",stage:"Phase I"},{name:"Pfizer / Arvinas GC",year:"2021",upfront:"$650M",total:"$1.4B",stage:"Phase II"}],partnerTypes:[{label:"Large Pharma",value:60},{label:"ADC Platform Co.",value:20},{label:"Specialty Oncology",value:15},{label:"Regional Biotech",value:5}]}},"nectin4-adc":{commercial:{tam:"$3.3B",sam:"$2.1B",pricing:"$225Kâ270K/yr",peakLow:510,peakHigh:940,competitors:[{name:"Padcev (enfortumab vedotin)",stage:"Approved",company:"Pfizer / Astellas",moa:"Nectin-4 ADC"},{name:"Dato-DXd",stage:"Phase III",company:"Daiichi / AstraZeneca",moa:"TROP2 ADC (overlap)"},{name:"Teliso-V",stage:"Phase II",company:"AbbVie",moa:"cMet ADC"}]},regulatory:{designation:"Breakthrough Therapy (Urothelial) + Fast Track (expansion)",pathway:"Accelerated Approval",riskLevel:"Low",precedents:[{name:"Padcev (enfortumab vedotin)",target:"Nectin-4",year:"2019",path:"Accelerated"},{name:"Trodelvy (sacituzumab)",target:"TROP2",year:"2021",path:"Accelerated (TNBC)"}],milestones:[{label:"Phase I â Urothelial",months:0,done:!0},{label:"Phase II â Solid Tumors Basket",months:10,done:!0},{label:"Phase III Initiation",months:20,done:!1},{label:"sNDA for Expansion Indication",months:32,done:!1},{label:"FDA Decision",months:38,done:!1}]},translational:{biomarker:"Nectin-4 (PVRL4)",validationStatus:"Validated â IHC H-score â¥150",defaultThreshold:30,expression:[{tumor:"Urothelial",pct:88},{tumor:"NSCLC",pct:74},{tumor:"TNBC",pct:69},{tumor:"HNSCC",pct:61},{tumor:"Bladder",pct:56},{tumor:"Ovarian",pct:48}]},bd:{npvBase:820,npvRisk:490,comparables:[{name:"Pfizer / Astellas (Padcev global)",year:"2020",upfront:"$4.5B",total:"$4.5B",stage:"Approved"},{name:"MSD / Seagen (collaboration)",year:"2020",upfront:"$650M",total:"$3.85B",stage:"Phase III"},{name:"Genentech / Roche (TNBC ADC)",year:"2021",upfront:"$300M",total:"$1.8B",stage:"Phase II"}],partnerTypes:[{label:"Large Pharma",value:70},{label:"Specialty Oncology",value:15},{label:"ADC Platform Co.",value:10},{label:"Regional Biotech",value:5}]}},"b7h4-adc":{commercial:{tam:"$4.2B",sam:"$1.8B",pricing:"$210Kâ260K/yr",peakLow:290,peakHigh:650,competitors:[{name:"AZD8205 (VTCN1-ADC)",stage:"Phase II",company:"AstraZeneca",moa:"B7-H4 ADC"},{name:"Vobra duo (ifinatamab)",stage:"Phase II",company:"Synaffix/Jazz",moa:"B7-H4 ADC"},{name:"DS-7300a",stage:"Phase II",company:"Daiichi",moa:"B7-H3 ADC (related)"}]},regulatory:{designation:"Fast Track (TNBC)",pathway:"Accelerated Approval",riskLevel:"High",precedents:[{name:"Trodelvy (sacituzumab)",target:"TROP2",year:"2020",path:"Accelerated (TNBC)"},{name:"Enhertu (T-DXd)",target:"HER2-low",year:"2022",path:"Priority Review"}],milestones:[{label:"Preclinical Package",months:0,done:!0},{label:"IND Filing",months:4,done:!0},{label:"Phase I Dose Escalation",months:12,done:!1},{label:"Phase II Enrollment",months:24,done:!1},{label:"NDA/BLA Decision",months:42,done:!1}]},translational:{biomarker:"B7-H4 (VTCN1)",validationStatus:"Emerging â IHC cutoff not standardized",defaultThreshold:20,expression:[{tumor:"TNBC",pct:42},{tumor:"Ovarian",pct:38},{tumor:"Endometrial",pct:29},{tumor:"Lung (adeno)",pct:22},{tumor:"Cervical",pct:18},{tumor:"Bladder",pct:14}]},bd:{npvBase:390,npvRisk:145,comparables:[{name:"AZ / Synaffix (B7-H4 licensing)",year:"2022",upfront:"$45M",total:"$1.1B",stage:"Phase I"},{name:"Gilead / Immunomedics (TNBC)",year:"2020",upfront:"$2.1B",total:"$4.9B",stage:"Ap
61proved"},{name:"Pfizer / Arvinas (TNBC)",year:"2021",upfront:"$650M",total:"$1.4B",stage:"Phase I"}],partnerTypes:[{label:"Large Pharma",value:45},{label:"Specialty Oncology",value:30},{label:"ADC Platform Co.",value:15},{label:"Regional Biotech",value:10}]}}};function yo(e){return Nb[e]??Nb["tf-adc"]}const X1={contentStyle:{background:"#111511",border:"1px solid rgba(168,201,121,0.2)",borderRadius:2,fontSize:11},labelStyle:{color:"#8B9288",fontSize:10,letterSpacing:"0.1em",textTransform:"uppercase"},itemStyle:{color:"#A8C979"},cursor:{fill:"rgba(168,201,121,0.06)"}};function MR({candidateId:e}){const t=yo(e).commercial,[r,n]=D.useState(20),i=$R(e),a=D.useMemo(()=>{const l=Math.round(i.eligiblePopulation*i.targetExpressionRate),p=Math.round(l*i.lineAccessRate*i.biomarkerTestingUptake),d=i.durationMonths/12,y=Math.round(p*i.annualPrice*d*(r/100)/1e6),v=Math.round(y*i.accessRate*i.adoptionRate*(1-i.competitiveConstraint));return{targetPositive:l,treatable:p,grossRevenue:y,serviceableMarket:v}},[i,r]),o=IR(t.competitors,e),u=Math.min(100,Math.round(o.filter(l=>l.stage==="Approved").length*22+o.filter(l=>l.stage.includes("Phase")).length*13+i.competitiveConstraint*45+i.comparatorDifficulty*.25)),s=Math.min(100,Math.round(30+i.priceConfidenceGap*.35+i.comparatorDifficulty*.25+i.competitiveConstraint*30-i.biomarkerTestingUptake*18)),c=D.useMemo(()=>{const l=r/100,p=Math.round(t.peakLow*(l/.2)*.7),d=Math.round(t.peakHigh*(l/.2)*.7);return{low:Math.min(p,t.peakHigh*2.5),high:Math.min(d,t.peakHigh*2.5)}},[r,t]),f={Approved:"#A8C979","Phase III":"#D6B25A","Phase II":"#7FA8B8","Phase I":"#B8BAB2"};return w.jsxs("div",{className:"mt-6 flex flex-col gap-5",children:[w.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[{label:"Total Addressable Market",value:t.tam},{label:"Serviceable Market (target+)",value:t.sam},{label:"Pricing Benchmark",value:t.pricing}].map(l=>w.jsxs(ae,{children:[w.jsx("div",{className:"font-mono-pz text-[9px] tracking-[0.2em] uppercase text-pz-muted",children:l.label}),w.jsx("div",{className:"mt-2 font-serif-display text-[32px] leading-none text-pz-text",children:l.value})]},l.label))}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Market Opportunity Model"}),w.jsx("p",{className:"mt-3 text-[12.5px] leading-relaxed text-pz-soft font-light",children:"Can this ADC become commercially meaningful, differentiated, reimbursable, and accessible, or is it only scientifically interesting?"}),w.jsxs("div",{className:"mt-3 flex items-center gap-4",children:[w.jsxs("span",{className:"font-mono-pz text-[9px] tracking-[0.16em] uppercase text-pz-muted w-28 shrink-0",children:["Market Share: ",r,"%"]}),w.jsx("input",{type:"range",min:5,max:60,step:5,value:r,onChange:l=>n(+l.target.value),className:"flex-1 accent-[#A8C979] cursor-pointer"})]}),w.jsxs("div",{className:"mt-4 flex items-center gap-8",children:[w.jsxs("div",{children:[w.jsx("div",{className:"font-mono-pz text-[9px] tracking-[0.16em] uppercase text-pz-muted",children:"Peak Low"}),w.jsxs("div",{className:"font-serif-display text-[28px] text-pz-text",children:["$",c.low,"M"]})]}),w.jsx("span",{className:"text-pz-muted text-lg",children:"â"}),w.jsxs("div",{children:[w.jsx("div",{className:"font-mono-pz text-[9px] tracking-[0.16em] uppercase text-pz-muted",children:"Peak High"}),w.jsxs("div",{className:"font-serif-display text-[28px] text-pz-accent",children:["$",c.high,"M"]})]})]}),w.jsxs("div",{className:"mt-5 grid grid-cols-2 lg:grid-cols-4 gap-3",children:[w.jsx(Zt,{label:"Eligible Patients",value:i.eligiblePopulation.toLocaleString()}),w.jsx(Zt,{label:"Target+",value:a.targetPositive.toLocaleString()}),w.jsx(Zt,{label:"Treatable",value:a.treatable.toLocaleString()}),w.jsx(Zt,{label:"Serviceable Revenue",value:`$${a.serviceableMarket}M`,accent:!0})]}),w.jsxs("div",{className:"mt-5 grid grid-cols-1 lg:grid-cols-3 gap-3",children:[w.jsx(xl,{label:"Target Expression",value:`${Math.round(i.targetExpressionRate*100)}%`}),w.jsx(xl,{label:"Testing Uptake",value:`${Math.round(i.biomarkerTestingUptake*100)}%`}),w.jsx(xl,{label:"Duration",value:`${i.durationMonths} mo`})]}),w.jsx("p",{className:"mt-4 text-[11.5px] leading-relaxed text-pz-muted font-light",children:"Market sizing uses public-data/demo assumptions. Target-positive population = eligible population x expression rate. Treatable population then applies line-of-therapy access and biomarker testing uptake. Pricing, access, adoption, and competitive constraints require validation before any BD decision."})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Competitive Differentiation"}),w.jsxs("div",{className:"mt-4 grid grid-cols-1 lg:grid-cols-3 gap-3",children:[w.jsx(Zt,{label:"Crowding Pressure",value:`${u}/100`,accent:u>=65}),w.jsx(Zt,{label:"Payer / Access Risk",value:`${s}/100`,accent:s>=65}),w.jsx(Zt,{label:"Revenue Sensitivity",value:`${Math.round(i.targetExpressionRate*r)} pts`})]}),w.jsx("div",{className:"mt-4 flex flex-col gap-3",children:o.map(l
61=>w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_auto] gap-3 border-t pz-border pt-3",children:[w.jsxs("div",{className:"flex-1 min-w-0",children:[w.jsx("div",{className:"text-[13px] text-pz-text font-medium",children:l.name}),w.jsxs("div",{className:"font-mono-pz text-[9.5px] tracking-[0.12em] text-pz-muted mt-0.5",children:[l.company," · ",l.moa]}),w.jsx("div",{className:"mt-2 text-[12px] leading-relaxed text-pz-soft font-light",children:l.implication}),w.jsxs("div",{className:"mt-2 flex flex-wrap gap-2",children:[w.jsx(An,{label:`Risk: ${l.differentiationRisk}`,color:l.differentiationRisk==="High"?"#C98A8A":l.differentiationRisk==="Medium"?"#D6B25A":"#A8C979"}),w.jsx(An,{label:`Comparator: ${l.comparatorDifficulty}`,color:"#7FA8B8"})]})]}),w.jsx("span",{className:"h-fit w-fit rounded-sm px-2 py-0.5 font-mono-pz text-[8px] tracking-[0.12em] uppercase",style:{background:`${f[l.stage]??"#B8BAB2"}18`,color:f[l.stage]??"#B8BAB2"},children:l.stage})]},l.name))})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Market Access / Payer Risk"}),w.jsxs("div",{className:"mt-4 grid grid-cols-1 lg:grid-cols-3 gap-4",children:[w.jsx(nt,{label:"Access Constraint",value:s}),w.jsx(nt,{label:"Comparator Pressure",value:i.comparatorDifficulty}),w.jsx(nt,{label:"Pricing Confidence",value:100-i.priceConfidenceGap})]}),w.jsx("p",{className:"mt-4 text-[12.5px] leading-relaxed text-pz-soft font-light",children:"Commercial attractiveness depends on a reimbursable clinical delta, usable biomarker workflow, and a price/access story that survives ADC crowding. The highest-value diligence question is whether target-positive patients can be found and treated before the comparator bar moves."})]})]})}function Zt({label:e,value:t,accent:r}){return w.jsxs("div",{className:"rounded-sm border pz-border bg-[rgba(255,255,255,0.015)] px-3 py-3",children:[w.jsx("div",{className:`font-serif-display text-[24px] leading-none ${r?"text-pz-accent":"text-pz-text"}`,children:t}),w.jsx("div",{className:"mt-1 font-mono-pz text-[8.5px] tracking-[0.16em] uppercase text-pz-muted",children:e})]})}function xl({label:e,value:t}){return w.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-sm border pz-border px-3 py-2",children:[w.jsx("span",{className:"font-mono-pz text-[8.5px] tracking-[0.16em] uppercase text-pz-muted",children:e}),w.jsx("span",{className:"text-[12px] text-pz-text",children:t})]})}function $R(e){const t={"tf-adc":{eligiblePopulation:13e3,targetExpressionRate:.72,lineAccessRate:.58,biomarkerTestingUptake:.7,annualPrice:2e5,durationMonths:7,accessRate:.72,adoptionRate:.58,competitiveConstraint:.38,comparatorDifficulty:72,priceConfidenceGap:32},"cldn18-adc":{eligiblePopulation:42e3,targetExpressionRate:.38,lineAccessRate:.5,biomarkerTestingUptake:.62,annualPrice:218e3,durationMonths:6,accessRate:.66,adoptionRate:.48,competitiveConstraint:.48,comparatorDifficulty:76,priceConfidenceGap:42},"nectin4-adc":{eligiblePopulation:36e3,targetExpressionRate:.55,lineAccessRate:.46,biomarkerTestingUptake:.74,annualPrice:248e3,durationMonths:7,accessRate:.7,adoptionRate:.54,competitiveConstraint:.54,comparatorDifficulty:82,priceConfidenceGap:38},"b7h4-adc":{eligiblePopulation:52e3,targetExpressionRate:.34,lineAccessRate:.42,biomarkerTestingUptake:.5,annualPrice:235e3,durationMonths:5,accessRate:.6,adoptionRate:.38,competitiveConstraint:.58,comparatorDifficulty:79,priceConfidenceGap:50}};return t[e]??t["tf-adc"]}function IR(e,t){return e.map((r,n)=>{const i=r.stage==="Approved",a=r.moa.toLowerCase().includes("adc");return{...r,differentiationRisk:i||a&&n<=1?"High":a?"Medium":"Low",comparatorDifficulty:i||r.stage.includes("III")?"High":"Medium",implication:kR(r.name,t,i,a)}})}function kR(e,t,r,n){return t==="tf-adc"&&e.includes("Tisotumab")?"Tisotumab vedotin establishes regulatory and commercial precedent for TF-directed ADCs, but raises comparator difficulty for any new entrant.":r?"Approved therapy validates demand and access precedent, while forcing a clear differentiation claim on efficacy, safety, or sequencing.":n?"Clinical-stage ADC activity signals sponsor density and trial velocity; the opportunity needs a durable biomarker or tolerability edge.":"Adjacent mechanism pressure can move standard of care and compress the addressable commercial window."}function NR({candidateId:e}){const t=yo(e).regulatory,[r,n]=D.useState(t.pathway.toLowerCase().includes("accelerated")?"accelerated":"standard"),a={Low:"#A8C979",Medium:"#D6B25A",High:"#C98A8A"}[t.riskLevel],o=r==="accelerated"?t.milestones.map(s=>({...s,months:Math.round(s.months*.78)})):t.milestones.map(s=>({...s,months:Math.round(s.months*1.25)})),u=Math.max(...o.map(s=>s.months))+6;return w.jsxs("div",{className:"mt-6 flex flex-col gap-5",children:[w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[w.jsxs(ae,{children:[w.jsx("div",{className:"font-mono-pz text-[9px] tracking-[0.2em] uppercase text-pz-muted",children:"FDA Designation"}),w.jsx("div",{className:"mt-2 text-[14px] text-pz-text font-medium leading-snug",children:t.designation})]}),w.jsxs(ae,{children:[w.jsx("div",{className:"font-mono-pz text-[9px] tracking-[0.2em] uppercase text-pz-muted",children:"Regulatory Risk"}),w.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[w.jsx("span",{className:"h-2.5 w-2.5 rounded-full",style:{background:a}}),w.jsx("div",{className:"font-serif-display text-[24px] leading-none",style:{color:a},children:t.riskLevel})]})]}),w.jsxs(ae,{children:[w.jsx("div",{className:"font-mono-pz text-[9px] tracking-[0.2em] uppercase text-pz-muted",children:"Recommended Pathway"}),w.jsx("div",{className:"mt-2 text-[14px] text-pz-text font-medium",children:t.pathway})]})]}),w.jsxs(ae,{children:[w.jsxs("div",{className:"flex items-center justify-between mb-4",children:[w.jsx(pe,{children:"Development Timeline"}),w.jsx("div",{className:"flex rounded-sm overflow-hidden border pz-border text-[9px]",children:["accelerated","standard"].map(s=>w.jsx("button",{onClick:()=>n(s),className:"px-3 py-1.5 font-mono-pz tracking-[0.14em] uppercase transition-colors",style:{background:r===s?"#A8C97918":"transparent",color:r===s?"#A8C979":"#8B9288"},children:s},s))})]}),w.jsxs("div",{className:"relative",children:[w.jsx("div",{className:"absolute left-4 top-0 bottom-0 w-px bg-[rgba(168,201,121,0.15)]"}),w.jsx("div",{className:"flex flex-col gap-5 pl-10",children:o.map((s,c)=>w.jsxs("div",{className:"relative",children:[w.jsx("div",{className:"absolute -left-[34px] top-0.5 h-5 w-5 rounded-full flex items-center justify-center",style:{background:s.done?"#A8C97920":"#11151180",border:`1px solid ${s.done?"#A8C979":"rgba(168,201,121,0.2)"}`},children:s.done?w.jsx(Rb,{size:11,color:"#A8C979"}
61):w.jsx(hw,{size:10,color:"#8B9288"})}),w.jsxs("div",{className:"font-mono-pz text-[9px] tracking-[0.12em] uppercase",style:{color:s.done?"#A8C979":"#8B9288"},children:["Month ",s.months," · ",s.done?"Complete":"Projected"]}),w.jsx("div",{className:"text-[13px] text-pz-text mt-0.5",children:s.label}),w.jsx("div",{className:"mt-1.5 h-1 rounded-full bg-pz-panel overflow-hidden",style:{width:"100%"},children:w.jsx("div",{className:"h-full rounded-full",style:{width:`${Math.round(s.months/u*100)}%`,background:s.done?"#A8C979":"rgba(168,201,121,0.25)"}})})]},c))})]})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Approved Precedents"}),w.jsx("div",{className:"mt-4 flex flex-col gap-3",children:t.precedents.map(s=>w.jsxs("div",{className:"flex items-start justify-between gap-4 border-t pz-border pt-3",children:[w.jsxs("div",{className:"flex-1 min-w-0",children:[w.jsx("div",{className:"text-[13px] text-pz-text font-medium",children:s.name}),w.jsxs("div",{className:"font-mono-pz text-[9.5px] tracking-[0.12em] text-pz-muted mt-0.5",children:["Target: ",s.target]})]}),w.jsxs("div",{className:"text-right shrink-0",children:[w.jsx("div",{className:"font-mono-pz text-[9px] tracking-[0.12em] text-pz-accent uppercase",children:s.path}),w.jsx("div",{className:"font-mono-pz text-[9px] text-pz-muted",children:s.year})]})]},s.name))})]})]})}function DR({candidateId:e}){const t=yo(e).translational,[r,n]=D.useState(t.defaultThreshold),i=D.useMemo(()=>t.expression.reduce((a,o)=>{const u=o.pct>=r?o.pct/100:0;return a+u/t.expression.length},0)*100,[r,t]);return w.jsxs("div",{className:"mt-6 flex flex-col gap-5",children:[w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[w.jsxs(ae,{children:[w.jsx("div",{className:"font-mono-pz text-[9px] tracking-[0.2em] uppercase text-pz-muted",children:"Biomarker"}),w.jsx("div",{className:"mt-2 text-[14px] text-pz-text font-medium",children:t.biomarker})]}),w.jsxs(ae,{children:[w.jsx("div",{className:"font-mono-pz text-[9px] tracking-[0.2em] uppercase text-pz-muted",children:"Validation Status"}),w.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[w.jsx(Rb,{size:14,color:"#A8C979"}),w.jsx("div",{className:"text-[13px] text-pz-text",children:t.validationStatus})]})]})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Target Expression by Tumor Type"}),w.jsx("div",{className:"mt-4 h-52",children:w.jsx(Sn,{width:"100%",height:"100%",children:w.jsxs(Hp,{data:t.expression,margin:{top:4,right:8,bottom:0,left:-16},children:[w.jsx(Mr,{vertical:!1,stroke:"rgba(168,201,121,0.08)"}),w.jsx(ht,{dataKey:"tumor",tick:{fill:"#8B9288",fontSize:10},tickLine:!1,axisLine:!1}),w.jsx(vt,{tick:{fill:"#8B9288",fontSize:10},tickLine:!1,axisLine:!1,tickFormatter:a=>`${a}%`}),w.jsx(Be,{formatter:a=>[`${a}%`,"Expression"],...X1}),w.jsx(It,{dataKey:"pct",radius:[2,2,0,0],children:t.expression.map((a,o)=>w.jsx(sp,{fill:a.pct>=r?"#A8C979":"#A8C97930"},o))})]})})})]}),w.jsxs(ae,{children:[w.jsxs("div",{className:"flex items-center justify-between mb-2",children:[w.jsx(pe,{children:"Patient Eligibility Simulator"}),w.jsxs("span",{className:"font-mono-pz text-[9px] tracking-[0.16em] uppercase text-pz-accent",children:[i.toFixed(0),"% indicatively eligible"]})]}),w.jsx("p",{className:"text-[12.5px] text-pz-muted font-light mb-4",children:"Drag the IHC expression threshold to model patient eligibility across tumor types above."}),w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsxs("span",{className:"font-mono-pz text-[9px] tracking-[0.14em] uppercase text-pz-muted w-36 shrink-0",children:["IHC threshold: â¥",r,"%"]}),w.jsx("input",{type:"range",min:5,max:80,step:5,value:r,onChange:a=>n(+a.target.value),className:"flex-1 accent-[#A8C979] cursor-pointer"})]}),w.jsx("div",{className:"mt-5 flex flex-col gap-2",children:t.expression.map(a=>w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("span",{className:"font-mono-pz text-[9px] tracking-[0.1em] text-pz-muted w-28 shrink-0",children:a.tumor}),w.jsx("div",{className:"flex-1 h-1.5 rounded-full bg-pz-panel",children:w.jsx("div",{className:"h-full rounded-full transition-all duration-200",style:{width:`${a.pct}%`,background:a.pct>=r?"#A8C979":"rgba(168,201,121,0.2)"}})}),w.jsxs("span",{className:"font-mono-pz text-[9px] text-pz-muted w-8 text-right",children:[a.pct,"%"]}),a.pct>=r&&w.jsx("span",{className:"font-mono-pz text-[8px] tracking-[0.1em] text-pz-accent uppercase",children:"eligible"})]},a.tumor))})]})]})}function RR({candidateId:e}){const t=yo(e).bd,[r,n]=D.useState(12),i=D.useMemo(()=>{const o=1-(r-8)*.04;return Math.round(t.npvRisk*o)},[r,t.npvRisk]),a=[{name:"Base NPV",value:t.npvBase},{name:"Risk-Adj NPV",value:t.npvRisk},{name:"Disc-Adj NPV",value:i}];return w.jsxs("div",{className:"mt-6 flex flex-col gap-5",children:[w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[w.jsxs(ae,{children:[w.jsx(pe,{children:"NP
61V Model"}),w.jsx("div",{className:"mt-3 h-44",children:w.jsx(Sn,{width:"100%",height:"100%",children:w.jsxs(Hp,{data:a,margin:{top:4,right:8,bottom:0,left:-16},children:[w.jsx(Mr,{vertical:!1,stroke:"rgba(168,201,121,0.08)"}),w.jsx(ht,{dataKey:"name",tick:{fill:"#8B9288",fontSize:9},tickLine:!1,axisLine:!1}),w.jsx(vt,{tick:{fill:"#8B9288",fontSize:10},tickLine:!1,axisLine:!1,tickFormatter:o=>`$${o}M`}),w.jsx(Be,{formatter:o=>[`$${o}M`,"NPV"],...X1}),w.jsx(It,{dataKey:"value",fill:"#A8C97960",radius:[2,2,0,0]})]})})}),w.jsxs("div",{className:"mt-3 flex items-center gap-4",children:[w.jsxs("span",{className:"font-mono-pz text-[9px] tracking-[0.14em] uppercase text-pz-muted w-36 shrink-0",children:["Discount rate: ",r,"%"]}),w.jsx("input",{type:"range",min:8,max:25,step:1,value:r,onChange:o=>n(+o.target.value),className:"flex-1 accent-[#A8C979] cursor-pointer"})]}),w.jsxs("div",{className:"mt-3",children:[w.jsx("span",{className:"font-mono-pz text-[9px] tracking-[0.12em] text-pz-muted",children:"Discount-Adjusted NPV â "}),w.jsxs("span",{className:"font-serif-display text-[22px] text-pz-accent",children:["$",i,"M"]})]})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Partnership Target Mix"}),w.jsx("div",{className:"mt-4 flex flex-col gap-3",children:t.partnerTypes.map(o=>w.jsxs("div",{children:[w.jsxs("div",{className:"flex justify-between font-mono-pz text-[9px] tracking-[0.1em] uppercase mb-1",children:[w.jsx("span",{className:"text-pz-muted",children:o.label}),w.jsxs("span",{className:"text-pz-accent",children:[o.value,"%"]})]}),w.jsx("div",{className:"h-1.5 rounded-full bg-pz-panel",children:w.jsx("div",{className:"h-full rounded-full bg-pz-accent transition-all",style:{width:`${o.value}%`}})})]},o.label))})]})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Deal Comparables"}),w.jsx("div",{className:"mt-4 overflow-x-auto",children:w.jsxs("table",{className:"w-full text-[12.5px]",children:[w.jsx("thead",{children:w.jsx("tr",{className:"border-b pz-border",children:["Deal","Year","Upfront","Total Value","Stage at Deal"].map(o=>w.jsx("th",{className:"font-mono-pz text-[9px] tracking-[0.14em] uppercase text-pz-muted text-left pb-2 pr-4 font-normal",children:o},o))})}),w.jsx("tbody",{children:t.comparables.map((o,u)=>w.jsxs("tr",{className:"border-b pz-border",children:[w.jsx("td",{className:"py-3 pr-4 text-pz-text font-medium",children:o.name}),w.jsx("td",{className:"py-3 pr-4 font-mono-pz text-pz-muted",children:o.year}),w.jsx("td",{className:"py-3 pr-4 text-pz-accent font-mono-pz",children:o.upfront}),w.jsx("td",{className:"py-3 pr-4 text-pz-text font-mono-pz",children:o.total}),w.jsx("td",{className:"py-3",children:w.jsx("span",{className:"rounded-sm px-2 py-0.5 font-mono-pz text-[8px] tracking-[0.1em] uppercase bg-[rgba(168,201,121,0.1)] text-pz-accent",children:o.stage})})]},u))})]})})]})]})}const Y1=[{id:"clinical",label:"Clinical Development",icon:cw,description:"MoA, AUC simulation, Monte Carlo, PK/PD graphs, 3D structure",color:"#A8C979"},{id:"commercial",label:"Commercial & Market Access",icon:ow,description:"Market sizing, competitive landscape, pricing dynamics",color:"#7FA8B8"},{id:"regulatory",label:"Regulatory Affairs",icon:gw,description:"Filing pathway, precedent analysis, risk classification",color:"#D6B25A"},{id:"translational",label:"Translational Science",icon:uw,description:"Biomarker expression, target validation, patient stratification",color:"#B8BAB2"},{id:"bd",label:"Business Development",icon:yw,description:"Deal comparables, NPV model, partnership landscape",color:"#C98A8A"}];function BR({onSelect:e,candidateName:t}){return w.jsxs("div",{className:"mt-8",children:[w.jsx("div",{className:"font-mono-pz text-[9.5px] tracking-[0.34em] uppercase text-pz-accent mb-2",children:"Select Your Functional Area"}),w.jsxs("h2",{className:"font-serif-display text-[28px] leading-tight text-pz-text mb-1",children:["What lens are you reviewing"," ",w.jsx("em",{className:"italic text-pz-accent font-normal",children:t})," through?"]}),w.jsx("p",{className:"text-[13px] text-pz-soft font-light mb-8",children:"Choose your function to see the data and analyses most relevant to your decision."}),w.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:Y1.map(r=>{const n=r.icon;return w.jsxs("button",{onClick:()=>
61e(r.id),className:"group flex items-start gap-4 rounded-sm border pz-border p-5 text-left hover:border-[color:var(--pz-border-strong)] hover:bg-[color:var(--pz-panel-alt)] transition-all",children:[w.jsx("span",{className:"mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-sm",style:{background:`${r.color}18`,color:r.color},children:w.jsx(n,{size:18})}),w.jsxs("div",{className:"min-w-0 flex-1",children:[w.jsxs("div",{className:"flex items-center justify-between gap-2",children:[w.jsx("span",{className:"text-[13.5px] font-medium text-pz-text group-hover:text-pz-accent transition-colors",children:r.label}),w.jsx(fw,{size:14,className:"text-pz-muted group-hover:text-pz-accent shrink-0 transition-colors"})]}),w.jsx("p",{className:"mt-1 text-[11.5px] leading-snug text-pz-muted font-light",children:r.description})]})]},r.id)})})]})}function qR({area:e,candidateId:t}){return e.id==="commercial"?w.jsx(MR,{candidateId:t}):e.id==="regulatory"?w.jsx(NR,{candidateId:t}):e.id==="translational"?w.jsx(DR,{candidateId:t}):e.id==="bd"?w.jsx(RR,{candidateId:t}):null}const LR=["cartoon","surface","both"];function zR({d:e}){const t=go(e.status_color),[r,n]=D.useState("cartoon");return w.jsxs("div",{className:"mt-5 flex flex-col gap-5",children:[w.jsx(ae,{children:w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1.3fr_1fr] gap-6 items-center",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"font-mono-pz text-[10px] tracking-[0.2em] uppercase text-pz-accent",children:[e.id," · ",e.target]}),w.jsx("h1",{className:"mt-2 font-serif-display text-[40px] leading-[1.02] text-pz-text",children:e.full_name}),w.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[w.jsx(An,{label:e.stage,color:t}),w.jsx(An,{label:`${e.recommendation} · ${e.confidence}`})]}),w.jsx("p",{className:"mt-4 text-[13px] leading-relaxed text-pz-soft font-light max-w-xl",children:e.patient_subgroup})]}),w.jsxs("div",{className:"w-full max-w-[360px] mx-auto flex flex-col gap-2",children:[w.jsx(Db,{pdbUrl:e.bionemo.pdb_url||void 0,pdbId:e.target,height:300,mode:r}),w.jsx("div",{className:"flex gap-1 justify-center",children:LR.map(i=>w.jsx("button",{onClick:()=>n(i),className:`font-mono-pz text-[9px] tracking-[0.18em] uppercase px-2.5 py-1 border transition-colors ${r===i?"border-pz-accent text-pz-accent":"border-pz-border text-pz-muted hover:text-pz-soft hover:border-pz-soft"}`,children:i},i))}),w.jsxs("div",{className:"text-center font-mono-pz text-[8.5px] tracking-[0.16em] uppercase text-pz-muted",children:["AlphaFold v6 · UniProt ",e.target]})]})]})}),w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[w.jsxs(ae,{children:[w.jsx(pe,{children:"Composite Scores"}),w.jsxs("div",{className:"mt-4 flex flex-col gap-3",children:[w.jsx(nt,{label:"Diligence Priority",value:e.scores.diligence_priority,color:rw}),w.jsx(nt,{label:"Readiness",value:e.scores.readiness}),w.jsx(nt,{label:"Commercial Alpha",value:e.scores.commercial_alpha}),w.jsx(nt,{label:"Evidence Quality",value:e.scores.evidence_quality}),w.jsx(nt,{label:"BioNeMo-Style Plausibility",value:e.scores.bionemo_plausibility}),w.jsx(nt,{label:"Failure-Pattern Warning",value:e.scores.failure_similarity,color:"#C98A8A"})]})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Scorecard Breakdown"}),w.jsx("div",{className:"mt-4 flex flex-col gap-3",children:Object.entries(e.score_components).map(([i,a])=>w.jsx(nt,{label:i,value:a},i))})]})]}),w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[w.jsxs(ae,{children:[w.jsx(pe,{children:"Decision Stress Test"}),w.jsxs("div",{className:"mt-4 flex items-end justify-between",children:[w.jsx(Ai,{label:"Downside",value:e.simulation.p10}),w.jsx(Ai,{label:"Base",value:e.simulation.p50,accent:!0}),w.jsx(Ai,{label:"Upside",value:e.simulation.p90}),w.jsx(Ai,{label:"Threshold",value:`${e.simulation.p_threshold}%`})]}),w.jsx(nw,{counts:e.simulation.histogram.counts}),w.jsxs("div",{className:"mt-5",children:[w.jsx(pe,{children:"Top Sensitivity Drivers"}),w.jsx(iw,{data:e.simulation.tornado})]})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Development-State Inference"}),w.jsxs("div",{className:"mt-4 flex items-center gap-2 font-mono-pz text-[11px] tracking-[0.14em] uppercase",children:[w.jsx("span",{className:"text-pz-text",children:e.hmm.current_state}),w.jsx("span",{className:"text-pz-muted",children:"â"}),w.jsx("span",{className:"text-pz-accent",children:e.hmm.next_state}),e.hmm.regime_shift&&w.jsx(An,{label:"Regime Warning",color:"#D6B25A"})]}),w.jsx("p",{className:"mt-3 text-[12px] leading-relaxed text-pz-soft font-light",children:"State inference synthesizes evidence momentum, readiness, and risk signals to show where the opportunity appears to be moving next."}),w.jsx("div",{className:"mt-4 flex flex-col gap-2.5",children:Object.entries(e.hmm.state_probs).map(([i,a])=>w.jsx(nt,{label:i,value:a*100},i))}),w.jsx("p",{className:"mt-4 text-[12px] leading-relaxed text-pz-soft font-light",children:e.hmm.explanation})]})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"BioNeMo-Style Plausibility Layer"}),w.jsxs("div",{className:"mt-4 grid grid-cols-2 md:grid-cols-4 gap-4",children:[w.jsx(Si,{label:"Overall",value:e.bionemo.overall_plausibility}),w.jsx(Si,{label:"Pathway Proximity",value:e.bionemo.pathway_proximity}),w.jsx(Si,{label:"Druggability",value:e.bionemo.druggability_score}),w.jsx(Si,{label:"Internalization",value:e.bionemo.internalization_efficie
61ncy})]}),w.jsx("p",{className:"mt-4 text-[12.5px] leading-relaxed text-pz-soft font-light max-w-3xl",children:"BioNeMo-style plausibility layer â mocked for demo, API-ready. This is a biological plausibility checkpoint inside the broader BD diligence workflow."}),w.jsx("p",{className:"mt-2 text-[12.5px] leading-relaxed text-pz-soft font-light max-w-3xl",children:e.bionemo.summary})]}),w.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[w.jsxs(ae,{children:[w.jsx(pe,{children:"Failure-Pattern Warnings"}),w.jsx("ul",{className:"mt-4 flex flex-col gap-3",children:e.failure_flags.map(i=>w.jsxs("li",{className:"border-l-2 pl-3",style:{borderColor:go(i.severity==="high"?"red":"amber")},children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"font-mono-pz text-[9px] tracking-[0.16em] uppercase",style:{color:go(i.severity==="high"?"red":"amber")},children:i.severity}),w.jsx("span",{className:"text-[12.5px] text-pz-text",children:i.flag})]}),w.jsx("p",{className:"mt-1 text-[12px] leading-snug text-pz-soft font-light",children:i.detail})]},i.flag))})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"What Would Need To Be True"}),w.jsx("p",{className:"mt-3 text-[12.5px] leading-relaxed text-pz-soft font-light",children:e.what_would_need_to_be_true}),w.jsxs("div",{className:"mt-5",children:[w.jsx(pe,{children:"Next Best Diligence Actions"}),w.jsx("ol",{className:"mt-3 flex flex-col gap-2",children:e.recommended_next_actions.map((i,a)=>w.jsxs("li",{className:"flex gap-2.5 text-[12.5px] leading-snug text-pz-soft font-light",children:[w.jsxs("span",{className:"font-mono-pz text-[10px] text-pz-accent pt-0.5",children:["0",a+1]}),w.jsx("span",{children:i})]},a))})]})]})]}),w.jsxs(ae,{children:[w.jsx(pe,{children:"Diligence Memo"}),w.jsx("div",{className:"mt-3 max-h-[520px] overflow-y-auto pr-2",children:w.jsx(aw,{source:e.memo})})]})]})}const FR={"tf-adc":{name:"Tissue Factor ADC",target:"F3 / CD142",indication:"Recurrent / Metastatic Cervical Cancer",pdbId:"1FAK"},"cldn18-adc":{name:"CLDN18.2 ADC",target:"CLDN18",indication:"Gastric Cancer",pdbId:"6O1Y"},"nectin4-adc":{name:"Nectin-4 ADC Expansion",target:"NECTIN4",indication:"Non-Urothelial Solid Tumors",pdbId:"6GTW"},"b7h4-adc":{name:"B7-H4 ADC",target:"VTCN1",indication:"Triple-Negative Breast Cancer",pdbId:"5GKL"}};function UR({id:e}){const[t,r]=D.useState(null),{data:n,loading:i,error:a}=sw(e),o=FR[e]??{name:e,target:"Unknown target",indication:"Oncology",pdbId:"4ETQ"},u=n?{id:n.id,name:n.full_name,target:n.target,indication:n.patient_subgroup??"",pdbId:"4ETQ",pdbUrl:n.bionemo?.pdb_url}:{id:e,...o},s=t?Y1.find(c=>c.id===t):null;return w.jsxs(Q1,{title:"Opportunity Diligence",loading:i,children:[t?w.jsxs("button",{type:"button",onClick:()=>r(null),className:"inline-flex items-center gap-2 font-mono-pz text-[10px] tracking-[0.18em] uppercase text-pz-muted hover:text-pz-accent transition-colors",children:[w.jsx(Vp,{size:12})," Back to Functional Areas"]}):w.jsxs(Z1,{to:"/",className:"inline-flex items-center gap-2 font-mono-pz text-[10px] tracking-[0.18em] uppercase text-pz-muted hover:text-pz-accent transition-colors",children:[w.jsx(Vp,{size:12})," Back to Search"]}),w.jsxs("div",{className:"mt-5 mb-2",children:[w.jsxs("div",{className:"font-mono-pz text-[9.5px] tracking-[0.3em] uppercase text-pz-accent",children:[u.target," · ADC"]}),w.jsx("h1",{className:"mt-1 font-serif-display text-[36px] leading-tight text-pz-text",children:u.name}),w.jsx("p",{className:"mt-1 text-[13px] text-pz-soft font-light",children:u.indication})]}),t&&w.jsxs("div",{className:"flex items-center gap-2 mt-3 mb-1",children:[w.jsx("button",{onClick:()=>r(null),className:"font-mono-pz text-[9px] tracking-[0.18em] uppercase text-pz-muted hover:text-pz-accent transition-colors",children:"â Change area"}),w.jsx("span",{className:"text-pz-muted/40",children:"·"}),w.jsx("span",{className:"font-mono-pz text-[9px] tracking-[0.18em] uppercase",style:{color:s?.color},children:s?.label})]}),t?t==="clinical"?w.jsx("div",{className:"mt-6",children:w.jsx(CR,{candidate:u})}):w.jsx(qR,{area:s,candidateId:e}):w.jsx(BR,{onSelect:r,candidateName:u.name}),!t&&n&&!i&&w.jsxs("div",{className:"mt-12 border-t pz-border pt-8",children:[w.jsx("div",{className:"font-mono-pz text-[10px] tracking-[0.22em] uppercase text-pz-muted mb-4",children:"Full Diligence Report"}),w.jsx(zR,{d:n})]}),i&&!t&&w.jsx(ew,{label:"Running diligence pipeline"}),a&&!i&&!t&&w.jsx("div",{className:"mt-6",children:w.jsx(tw,{label:`Could not load diligence for ${e}.`})})]})}function JR(){const{id:e}=J1.useParams();return w.jsx(UR,{id:e})}export{JR as component};
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.