1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./containers-table-DpO71UwP.js","./index-gNQQtUxR.js","./index-DnzfrvvL.css","./index-CQ0VaKbh.js","./sheet-BMKE6c0w.js","./table-YWvfEs97.js","./badge-BTHEkLRP.js","./clock-C381cLKC.js","./loader-circle-BwCifAOc.js","./refresh-cw-GSL-8kS7.js","./smart-table-CY5oQgKZ.js","./alert-CKbklZa6.js","./ellipsis-BAL0TCQv.js","./trash-2-CuXiYXHp.js","./activity-PhRDQpao.js","./rotate-cw-DvZHSPXn.js"])))=>i.map(i=>d[i]); 2import{c as fd,aH as ft,aI as Er,aJ as dd,aK as Ln,aL as zi,aM as Ph,aN as jh,aO as Ko,aP as z0,aQ as U0,aR as M_,aS as K0,aT as H0,aU as uo,r as C,u as tt,aV as Mr,aW as ur,aX as oa,a0 as Ft,j as x,aY as G0,aZ as V0,a_ as X0,a as he,a$ as Y0,b0 as zl,af as hd,b1 as _n,b2 as C_,b3 as $_,b4 as I_,O as sa,b5 as k_,a8 as N_,a4 as se,P as Ul,b6 as pe,Z as Rt,aB as pd,ac as Th,ad as Eh,ae as Mh,a9 as D_,aa as R_,ab as q_,aG as Yn,A as L_,B as B_,C as cn,F as F_,ax as Ch,T as we,aj as Ho,ay as $h,az as Ui,b7 as vd,p as dr,b8 as W_,b9 as z_,v as U_,ba as Z0,as as Kl,a1 as gr,aE as zn,bb as K_,bc as H_,bd as G_,be as Ih,n as kh,$ as Nh,bf as Ki,bg as be,bh as ne,bi as E,bj as yd,bk as ua,bl as Q0,at as J0,au as ex,av as V_,i as D,I as tx,aw as X_,bm as Y_,bn as Z_,m as md,a3 as ae,bo as gt,bp as Dh,a5 as Rh,a6 as Q_,_ as gd,bq as ca,br as rx,bs as Un,bt as J_,bu as rr,bv as eO,x as tO,y as rO,z as On,Q as nO,R as iO,bw as aO,H as Sn}from"./index-gNQQtUxR.js";import{G as oO,C as sO,a as uO,b as cO,S as nx,A as lO}from"./square-terminal-CZt1eXz6.js";import{S as co,a as bd,b as lo,u as fO,c as dO,d as hO}from"./sheet-BMKE6c0w.js";import{L as ix}from"./loader-circle-BwCifAOc.js";import{E as xd}from"./ellipsis-BAL0TCQv.js";import{u as pO,g as vO,a as yO,b as mO,f as ax}from"./index-CQ0VaKbh.js";import{B as qh}from"./badge-BTHEkLRP.js";import{A as Lh}from"./activity-PhRDQpao.js";import{C as gO}from"./clock-C381cLKC.js";import{A as bO,a as xO,b as wO}from"./alert-CKbklZa6.js";import{T as _O,a as ox,b as sx,c as OO,d as SO}from"./table-YWvfEs97.js";import AO from"./containers-table-DpO71UwP.js";import"./refresh-cw-GSL-8kS7.js";const PO=fd("Apple",[["path",{d:"M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z",key:"3s7exb"}],["path",{d:"M10 2c1 .5 2 2 2 5",key:"fcco2y"}]]);const jO=fd("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);const TO=fd("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),la=ft(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);la.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ft(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):la);la.range;const nr=ft(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Er)},(e,t)=>(t-e)/Er,e=>e.getUTCSeconds());nr.range;function br(e){return ft(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())*Ln)/dd)}const fo=br(0),fa=br(1),EO=br(2),MO=br(3),qr=br(4),CO=br(5),$O=br(6);fo.range;fa.range;EO.range;MO.range;qr.range;CO.range;$O.range;function xr(e){return ft(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)/dd)}const ho=xr(0),da=xr(1),IO=xr(2),kO=xr(3),Lr=xr(4),NO=xr(5),DO=xr(6);ho.range;da.range;IO.range;kO.range;Lr.range;NO.range;DO.range;const wd=ft(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());wd.range;const _d=ft(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());_d.range;const Mt=ft(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Mt.every=e=>
2!isFinite(e=Math.floor(e))||!(e>0)?null:ft(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Mt.range;const Ct=ft(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());Ct.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(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)});Ct.range;function Ut(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function RO(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Od(e){let t,r,n;e.length!==2?(t=Ut,r=(s,u)=>Ut(e(s),u),n=(s,u)=>e(s)-u):(t=e===Ut||e===RO?e:qO,r=e,n=e);function i(s,u,c=0,f=s.length){if(c<f){if(t(u,u)!==0)return f;do{const l=c+f>>>1;r(s[l],u)<0?c=l+1:f=l}while(c<f)}return c}function a(s,u,c=0,f=s.length){if(c<f){if(t(u,u)!==0)return f;do{const l=c+f>>>1;r(s[l],u)<=0?c=l+1:f=l}while(c<f)}return c}function o(s,u,c=0,f=s.length){const l=i(s,u,c,f-1);return l>c&&n(s[l-1],u)>-n(s[l],u)?l-1:l}return{left:i,center:o,right:a}}function qO(){return 0}function ux(e){return e===null?NaN:+e}function*LO(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const BO=Od(Ut),Ii=BO.right;Od(ux).center;class Bh extends Map{constructor(t,r=zO){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(Fh(this,t))}has(t){return super.has(Fh(this,t))}set(t,r){return super.set(FO(this,t),r)}delete(t){return super.delete(WO(this,t))}}function Fh({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function FO({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function WO({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function zO(e){return e!==null&&typeof e=="object"?e.valueOf():e}function UO(e=Ut){if(e===Ut)return cx;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 cx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const KO=Math.sqrt(50),HO=Math.sqrt(10),GO=Math.sqrt(2);function ha(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>=KO?10:a>=HO?5:a>=GO?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=r&&r<2?ha(e,t,r*2):[s,u,c]}function Hl(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?ha(t,e,r):ha(e,t,r);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function Gl(e,t,r){return t=+t,e=+e,r=+r,ha(e,t,r)[2]}function Vl(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Gl(t,e,r):Gl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Wh(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function zh(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function lx(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?cx:UO(i);n>r;){if(n-r>600){const u=n-r+1,c=t-r+1,f=Math.log(u),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(u-l)/u)*(c-u/2<0?-1:1),h=Math.max(r,Math.floor(t-c*l/u+d)),y=Math.min(n,Math.floor(t+(u-c)*l/u+d));lx(e,t,h,y,i)}const a=e[t];let o=r,s=n;for(An(e,r,t),i(e[n],a)>0&&An(e,r,n);o<s;){for(An(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?An(e,r,s):(++s,An(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function An(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function VO(e,t,r){if(e=Float64Array.from(LO(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return zh(e);if(t>=1)return Wh(e);var n,i=(n-1)*t,a=Math.floor(i),o=Wh(lx(e,a).subarray(0,a+1)),s=zh(e.subarray(a+1));return o+(s-o)*(i-a)}}function XO(e,t,r=ux){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),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function YO(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 fx(e,t,r,n,i,a){const o=[[nr,1,Er],[nr,5,5*Er],[nr,15,15*Er],[nr,30,30*Er],[a,1,Ln],[a,5,5*Ln],[a,15,15*Ln],[a,30,30*Ln],[i,1,zi],[i,3,3*zi],[i,6,6*zi],[i,12,12*zi],[n,1,Ph],[n,2,2*Ph],[r,1,dd],[t,1,jh],[t,3,3*jh],[e,1,Ko]];function s(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const h=l&&typeof l.range=="function"?l:u(c,f,l),y=h?h.range(c,+f+1):[];return d?y.reverse():y}function u(c,f,l){const d=Math.abs(f-c)/l,h=Od(([,,p])=>p).right(o,d);if(h===o.length)return e.every(Vl(c/Ko,f/Ko,l));if(h===0)return la.every(Math.max(Vl(c,f,l),1));const[y,v]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return y.every(v)}return[s,u]}const[ZO,QO]=fx(Ct,_d,ho,M_,U0,z0),[dx,JO]=fx(Mt,wd,fo,uo,H0,K0),po=C.memo(function({className:t,agentVersion:r}){const n=tt(Mr),i=Object.entries(ur).filter(([a,{minVersion:o}])=>o?oa(r,Ft(o))>=0:!0);return x.jsxs(G0,{defaultValue:"1h",value:n,onValueChange:a=>
2Mr.set(a),children:[x.jsxs(V0,{className:he(t,"relative ps-10 pe-5"),children:[x.jsx(jO,{className:"h-4 w-4 absolute start-4 top-1/2 -translate-y-1/2 opacity-85"}),x.jsx(X0,{})]}),x.jsx(Y0,{children:i.map(([a,{label:o}])=>x.jsx(zl,{value:a,children:o()},a))})]})});function eS({system:e,chartData:t,grid:r,setGrid:n,displayMode:i,setDisplayMode:a,details:o}){const{i18n:s,_:u}=hd(),c=C.useMemo(()=>{if(!e.info)return[];const l=o?.hostname??e.info.h,d=o?.kernel??e.info.k,h=o?.cores??e.info.c,y=o?.threads??e.info.t??0,v=o?.cpu??e.info.m,p=o?.os??e.info.os??_n.Linux,g=o?.os_name,b=o?.arch,_=o?.memory,O={[_n.Linux]:{Icon:I_,value:g||d,label:g?d:void 0},[_n.Darwin]:{Icon:PO,value:g||`macOS ${d}`},[_n.Windows]:{Icon:$_,value:g||d,label:g?d:void 0},[_n.FreeBSD]:{Icon:C_,value:g||d,label:g?d:void 0}},m=[{value:k_(e),Icon:oO},{value:l,Icon:TO,label:"Hostname",hide:l===e.host||l===e.name},{value:N_(e.info.u),Icon:sO,label:s._({id:"TjrbDj"}),hide:!e.info.u},O[p],{value:v,Icon:sa,hide:!v,label:`${s._({id:"Aiq/gC",values:{cores:h}})} / ${s._({id:"Ai/MOk",values:{threads:y}})}${b?` / ${b}`:""}`}];if(_){const w=se(_,!1,void 0,!1);m.push({value:`${pe(w.value,w.value>=10?1:2)} ${w.unit}`,Icon:Ul,hide:!_,label:s._({id:"v8o+Rn"})})}return m},[e,o,u]);let f=e.status;return e.status===Rt.Up?f=s._({id:"n+PHuv"}):e.status===Rt.Down&&(f=s._({id:"gUjkl/"})),x.jsx(pd,{children:x.jsxs("div",{className:"grid xl:flex xl:gap-4 px-4 sm:px-6 pt-3 sm:pt-4 pb-5",children:[x.jsxs("div",{className:"min-w-0",children:[x.jsx("h1",{className:"text-2xl sm:text-[1.6rem] font-semibold mb-1.5",children:e.name}),x.jsxs("div",{className:"flex xl:flex-wrap items-center py-4 xl:p-0 -mt-3 xl:mt-1 gap-3 text-sm text-nowrap opacity-90 overflow-x-auto scrollbar-hide -mx-4 px-4 xl:mx-0",children:[x.jsxs(Th,{children:[x.jsx(Eh,{asChild:!0,children:x.jsxs("div",{className:"capitalize flex gap-2 items-center",children:[x.jsxs("span",{className:he("relative flex h-3 w-3"),children:[e.status===Rt.Up&&x.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75",style:{animationDuration:"1.5s"}}),x.jsx("span",{className:he("relative inline-flex rounded-full h-3 w-3",{"bg-green-500":e.status===Rt.Up,"bg-red-500":e.status===Rt.Down,"bg-primary/40":e.status===Rt.Paused,"bg-yellow-500":e.status===Rt.Pending})})]}),f]})}),e.info.ct&&x.jsx(Mh,{children:x.jsxs("div",{className:"flex gap-1 items-center",children:[e.info.ct===R_.WebSocket?x.jsx(q_,{className:"size-4"}):x.jsx(uO,{className:"size-4",strokeWidth:2}),D_[e.info.ct]]})})]}),c.map(({value:l,label:d,Icon:h,hide:y})=>{if(y||!l)return null;const v=x.jsxs("div",{className:"flex gap-1.5 items-center",children:[x.jsx(h,{className:"h-4 w-4"})," ",l]});return x.jsxs("div",{className:"contents",children:[x.jsx(Yn,{orientation:"vertical",className:"h-4 bg-primary/30"}),d?x.jsxs(Th,{delayDuration:100,children:[x.jsx(Eh,{asChild:!0,children:v}),x.jsx(Mh,{children:d})]}):v]},l)})]})]}),x.jsxs("div",{className:"xl:ms-auto flex items-center gap-2 max-sm:-mb-1",children:[x.jsx(po,{className:"w-full xl:w-40",agentVersion:t.agentVersion}),x.jsxs(L_,{children:[x.jsx(B_,{asChild:!0,children:x.jsx(cn,{"aria-label":s._({id:"Tz0i8g"}),variant:"outline",size:"icon",className:"hidden xl:flex p-0 text-primary",children:x.jsx(cO,{className:"size-4 opacity-90"})})}),x.jsxs(F_,{align:"end",className:"min-w-44",children:[x.jsx(Ch,{className:"px-3.5",children:x.jsx(we,{id:"pZKQNh"})}),x.jsx(Ho,{}),x.jsxs($h,{className:"px-1 pb-1",value:i,onValueChange:l=>a(l),children:[x.jsx(Ui,{value:"default",onSelect:l=>l.preventDefault(),children:x.jsx(we,{id:"plYd/E"})}),x.jsx(Ui,{value:"tabs",onSelect:l=>l.preventDefault(),children:x.jsx(we,{id:"rWlCgN"})})]}),x.jsx(Ho,{}),x.jsx(Ch,{className:"px-3.5",children:x.jsx(we,{id:"lrCy0K"})}),x.jsx(Ho,{}),x.jsxs($h,{className:"px-1 pb-1",value:r?"grid":"full",onValueChange:l=>n(l==="grid"),children:[x.jsx(Ui,{value:"grid",onSelect:l=>l.preventDefault(),children:x.jsx(we,{id:"CXDHcv"})}),x.jsx(Ui,{value:"full",onSelect:l=>l.preventDefault(),children:x.jsx(we,{id:"g2Tj8R"})})]})]})]})]})]})})}function tS(e){return C.useMemo(()=>{const t={cpu:{},memory:{},network:{}},r={cpu:new Map,memory:new Map,network:new Map};for(let n=0;n<e.length;n++){const i=e[n],a=Object.keys(i);for(let o=0;o<a.length;o++){const s=a[o];if(s==="created")continue;const u=i[s];if(!u)continue;
2const c=r.cpu.get(s)??0,f=r.memory.get(s)??0,l=r.network.get(s)??0,d=u.b?.[0]??(u.ns??0)*1024*1024,h=u.b?.[1]??(u.nr??0)*1024*1024;r.cpu.set(s,c+(u.c??0)),r.memory.set(s,f+(u.m??0)),r.network.set(s,l+d+h)}}return Object.entries(r).forEach(([n,i])=>{const a=Array.from(i.entries()).sort(([,u],[,c])=>c-u),o={},s=a.length;for(let u=0;u<s;u++){const[c]=a[u],f=u*360/s%360;o[c]={label:c,color:`hsl(${f}, var(--chart-saturation), var(--chart-lightness))`}}t[n]=o}),t},[e])}function hx(){const[e,t]=C.useState(0);let r=0,n;function i(a){if(a.length>r){r=a.length;const o=document.createElement("div");o.className="text-xs tabular-nums tracking-tighter table sr-only",o.innerHTML=a,clearTimeout(n),n=setTimeout(()=>{document.body.appendChild(o);const s=o.offsetWidth+20;s>e&&t(s),document.body.removeChild(o)})}return a}return{yAxisWidth:e,updateYAxisWidth:i}}function Sd(e,t){const r=tt(vd),{dataPoints:n,filteredKeys:i}=C.useMemo(()=>{const a=r?r.toLowerCase().split(" ").filter(u=>u.length>0):[],o=new Set;return{dataPoints:Object.keys(e).map(u=>{const c=a.length>0&&!a.some(f=>u.toLowerCase().includes(f));return c&&o.add(u),{label:u,dataKey:f=>t(u,f),color:e[u].color??"",opacity:c?.05:.4,strokeOpacity:c?.1:1,activeDot:!c,stackId:"a"}}),filteredKeys:o}},[e,r]);return{filter:r,dataPoints:n,filteredKeys:i}}function rS(e){const r=Object.keys(e??{}).sort((n,i)=>(e?.[i]?.[3]??0)-(e?.[n]?.[3]??0));return{length:r.length,data:(n=3)=>r.map(i=>({label:i,dataKey:({stats:a})=>a?.ni?.[i]?.[n],color:`hsl(${220+r.indexOf(i)*360/r.length%360}, 70%, 50%)`,opacity:.3}))}}const Ot=new Map;function nS(e,t){const r=Ot.get("td");if(r&&r.chartTime===e&&(!t||r.time>=t))return r.data;const n=new Date(Date.now()),i=ur[e].getOffset(n),o={ticks:dx(i,n,ur[e].ticks??12).map(s=>s.getTime()),domain:[ur[e].getOffset(n).getTime(),n.getTime()]};return Ot.set("td",{time:n.getTime(),data:o,chartTime:e}),o}function Hi(e,t,r,n){if(!t.length)return e;const i=n&&e.length>=n?e.slice(-(n-t.length)):e,a=i.slice();let o=i.at(-1)?.created??0;for(const s of t)s.created!==null&&(typeof s.created=="string"&&(s.created=new Date(s.created).getTime()),o&&s.created-o>r*1.5&&a.push({created:null,..."stats"in s?{stats:null}:{}}),o=s.created),a.push(s);return a}async function Uh(e,t,r){const i=Ot.get(`${t}_${r}_${e}`)?.at(-1)?.created;return await dr.collection(e).getFullList({filter:dr.filter("system={:id} && created > {:created} && type={:type}",{id:t,created:W_(r,i?new Date(i+1e3):void 0),type:ur[r].type}),fields:"created,stats",sort:"created"})}function iS(e){const t=[];for(const{created:r,stats:n}of e){if(!r){t.push({created:null});continue}t.push(px(new Date(r).getTime(),n))}return t}function px(e,t){const r={created:e};for(const n of t)r[n.n]=n;return r}function Zn(e,t){return t?e.replace("docker","podman").replace("Docker","Podman"):e}function aS(e){const t=tt(z_),r=tt(U_),n=tt(Mr),i=tt(Z0),[a,o]=Kl("grid",!0),[s,u]=Kl("displayMode","default"),[c,f]=C.useState("core"),[l,d]=C.useState(()=>new Set(["core"])),h=C.useRef(["core","disk"]);function y(W){f(W),d(U=>U.has(W)?U:new Set([...U,W]))}const[v,p]=C.useState({}),[g,b]=C.useState([]),[_,O]=C.useState([]),m=C.useRef(!1),w=C.useRef(0),[S,A]=C.useState(!0),[T,I]=C.useState({});C.useEffect(()=>()=>{m.current||Mr.set(gr.get().chartTime),m.current=!1,b([]),O([]),I({}),vd.set("")},[e]),C.useEffect(()=>{if(!r.length)return;const W=zn.get()[e]?zn:K_;return H_(W,[e],U=>{const Y=U[e];Y&&(p(Y),document.title=`${Y?.name} / Beszel`)})},[e,r.length]),C.useEffect(()=>{Ft(v?.info?.v)<Ft("0.13.0")&&Mr.set("1h")},[v?.info?.v]),C.useEffect(()=>{!v.id||v.info?.m||dr.collection("system_details").getOne(v.id,{fields:"hostname,kernel,cores,threads,cpu,os,os_name,arch,memory,podman",headers:{"Cache-Control":"public, max-age=60"}}).then(I)},[v.id]),C.useEffect(()=>{let W=()=>{};if(!v.id||n!=="1m")return;if(v.status!==Rt.Up||Ft(v?.info?.v).minor<13){Mr.set("1h");return}let U=!0;return dr.realtime.subscribe("rt_metrics",Y=>{const ue=Date.now(),Ae={created:ue,stats:Y.stats},fe=Y.container?.length>0?px(ue,Y.container):null;if(U){U=!1,b([Ae]),O(fe?[fe]:[]);return}b(Se=>Hi(Se,[Ae],1e3,60)),fe&&O(Se=>Hi(Se,[fe],1e3,60))},{query:{system:v.id}}).then(Y=>{W=Y}),()=>{W?.()}},[n,v.id]);const P=C.useMemo(()=>Ft(v?.info?.v),[v?.info?.v]),j=C.useMemo(()=>{const W=Math.max(g.at(-1)?.created??0,_.at(-1)?.created??0);return{systemStats:g,containerData:_,chartTime:n,orientation:t==="rtl"?"right":"left",...nS(n,W),agentVersion:P}},[g,_,t]),M=tS(_);C.useEffect(()=>{if(!v.id||!n||n==="1m")return;const W=v.id,{expectedInterval:U}
2=ur[n],Y=`${W}_${n}_system_stats`,ue=`${W}_${n}_container_stats`,Ae=++w.current,fe=Ot.get(Y),Se=Ot.get(ue);if(fe?.length){b(fe),O(Se||[]),A(!1);const H=fe.at(-1)?.created;if(H&&Date.now()-H<U*.9)return}else A(!0);Promise.allSettled([Uh("system_stats",W,n),Uh("container_stats",W,n)]).then(([H,Z])=>{if(Ae!==w.current)return;A(!1);let Q=Ot.get(Y)||[];H.status==="fulfilled"&&H.value.length&&(Q=Hi(Q,H.value,U,100),Ot.set(Y,Q)),b(Q);let F=Ot.get(ue)||[];Z.status==="fulfilled"&&Z.value.length&&(F=Hi(F,iS(Z.value),U,100),Ot.set(ue,F)),O(F)})},[v,n]),C.useEffect(()=>r.length?G_(document,"keyup",U=>{if(U.target instanceof HTMLInputElement||U.target instanceof HTMLTextAreaElement||U.ctrlKey||U.metaKey||U.altKey)return;const Y=U.key==="ArrowLeft"||U.key==="h",ue=U.key==="ArrowRight"||U.key==="l";if(!Y&&!ue)return;if(s==="tabs"){if(!U.shiftKey){if(U.target instanceof HTMLElement&&U.target.closest('[role="tablist"]'))return;const fe=h.current,Se=fe.indexOf(c),H=Y?(Se-1+fe.length)%fe.length:(Se+1)%fe.length;y(fe[H]);return}}else if(U.shiftKey)return;const Ae=r.findIndex(fe=>fe.id===e);if(!(Ae===-1||r.length<=1)){if(Y){const fe=(Ae-1+r.length)%r.length;return m.current=!0,f("core"),d(new Set(["core"])),Ih(kh(Nh,"system",{id:r[fe].id}))}if(ue){const fe=(Ae+1)%r.length;return m.current=!0,f("core"),d(new Set(["core"])),Ih(kh(Nh,"system",{id:r[fe].id}))}}}):void 0,[e,r,s,c]);const N=!["1m","1h"].includes(n),k=i&&N,$=!S&&j.systemStats.length===0,B=g.at(-1)?.stats?.g,q=T?.podman??v.info?.p??!1;let L=!1,K=!1,G=!1;if(B){L=Object.keys(B).length>0;for(let W=0;W<g.length&&(!K||!G);W++){const U=g[W].stats?.g;if(U){for(const Y in U)if(!K&&U[Y].e!==void 0&&(K=!0),!G&&(U[Y].p!==void 0||U[Y].pp!==void 0)&&(G=!0),K&&G)break}}}return{system:v,systemStats:g,containerData:_,chartData:j,containerChartConfigs:M,details:T,grid:a,setGrid:o,displayMode:s,setDisplayMode:u,activeTab:c,setActiveTab:y,mountedTabs:l,tabsRef:h,maxValues:i,isLongerChart:N,showMax:k,dataEmpty:$,isPodman:q,lastGpu
vendor: 4,560 bytes, line 2
2s:B,hasGpuData:L,hasGpuEnginesData:K,hasGpuPowerData:G}}var Go,Kh;function Ge(){if(Kh)return Go;Kh=1;var e=Array.isArray;return Go=e,Go}var Vo,Hh;function vx(){if(Hh)return Vo;Hh=1;var e=typeof Ki=="object"&&Ki&&Ki.Object===Object&&Ki;return Vo=e,Vo}var Xo,Gh;function wt(){if(Gh)return Xo;Gh=1;var e=vx(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Xo=r,Xo}var Yo,Vh;function ki(){if(Vh)return Yo;Vh=1;var e=wt(),t=e.Symbol;return Yo=t,Yo}var Zo,Xh;function oS(){if(Xh)return Zo;Xh=1;var e=ki(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),u=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(s?o[i]=u:delete o[i]),f}return Zo=a,Zo}var Qo,Yh;function sS(){if(Yh)return Qo;Yh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qo=r,Qo}var Jo,Zh;function $t(){if(Zh)return Jo;Zh=1;var e=ki(),t=oS(),r=sS(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return Jo=o,Jo}var es,Qh;function It(){if(Qh)return es;Qh=1;function e(t){return t!=null&&typeof t=="object"}return es=e,es}var ts,Jh;function ln(){if(Jh)return ts;Jh=1;var e=$t(),t=It(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return ts=n,ts}var rs,ep;function Ad(){if(ep)return rs;ep=1;var e=Ge(),t=ln(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return rs=i,rs}var ns,tp;function Kt(){if(tp)return ns;tp=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ns=e,ns}var is,rp;function Pd(){if(rp)return is;rp=1;var e=$t(),t=Kt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var u=e(s);return u==n||u==i||u==r||u==a}return is=o,is}var as,np;function uS(){if(np)return as;np=1;var e=wt(),t=e["__core-js_shared__"];return as=t,as}var os,ip;function cS(){if(ip)return os;ip=1;var e=uS(),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 os=r,os}var ss,ap;function yx(){if(ap)return ss;ap=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 ss=r,ss}var us,op;function lS(){if(op)return us;op=1;var e=Pd(),t=cS(),r=Kt(),n=yx(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,c=s.hasOwnProperty,f=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var h=e(d)?f:a;return h.test(n(d))}return us=l,us}var cs,sp;function fS(){if(sp)return cs;sp=1;function e(t,r){return t?.[r]}return cs=e,cs}var ls,up;function wr(){if(up)return ls;up=1;var e=lS(),t=fS();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return ls=r,ls}var fs,cp;function vo(){if(cp)return fs;cp=1;var e=wr(),t=e(Object,"create");return fs=t,fs}var ds,lp;function dS(){if(lp)return ds;lp=1;var e=vo();function t(){this.__data__=e?e(null):{},this.size=0}return ds=t,ds}var hs,fp;function hS(){if(fp)return hs;fp=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return hs=e,hs}var ps,dp;function pS(){if(dp)return ps;dp=1;var e=vo(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return ps=i,ps}var vs,hp;function vS(){if(hp)return vs;hp=1;var e=vo(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return vs=n,vs}var ys,pp;function yS(){if(pp)return ys;pp=1;var e=vo(),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 ys=r,ys}var ms,vp;function mS(){if(vp)return ms;vp=1;var e=dS(),t=hS(),r=pS(),n=vS(),i=yS();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];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,ms=a,ms}var gs,yp;function gS(){if(yp)return gs;yp=1;function e(){this.__data__=[],this.size=0}return gs=e,gs}var bs,mp;
vendor: 4,847 bytes, line 2
2function jd(){if(mp)return bs;mp=1;function e(t,r){return t===r||t!==t&&r!==r}return bs=e,bs}var xs,gp;function yo(){if(gp)return xs;gp=1;var e=jd();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return xs=t,xs}var ws,bp;function bS(){if(bp)return ws;bp=1;var e=yo(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return ws=n,ws}var _s,xp;function xS(){if(xp)return _s;xp=1;var e=yo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return _s=t,_s}var Os,wp;function wS(){if(wp)return Os;wp=1;var e=yo();function t(r){return e(this.__data__,r)>-1}return Os=t,Os}var Ss,_p;function _S(){if(_p)return Ss;_p=1;var e=yo();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 Ss=t,Ss}var As,Op;function mo(){if(Op)return As;Op=1;var e=gS(),t=bS(),r=xS(),n=wS(),i=_S();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];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,As=a,As}var Ps,Sp;function Td(){if(Sp)return Ps;Sp=1;var e=wr(),t=wt(),r=e(t,"Map");return Ps=r,Ps}var js,Ap;function OS(){if(Ap)return js;Ap=1;var e=mS(),t=mo(),r=Td();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return js=n,js}var Ts,Pp;function SS(){if(Pp)return Ts;Pp=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Ts=e,Ts}var Es,jp;function go(){if(jp)return Es;jp=1;var e=SS();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Es=t,Es}var Ms,Tp;function AS(){if(Tp)return Ms;Tp=1;var e=go();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ms=t,Ms}var Cs,Ep;function PS(){if(Ep)return Cs;Ep=1;var e=go();function t(r){return e(this,r).get(r)}return Cs=t,Cs}var $s,Mp;function jS(){if(Mp)return $s;Mp=1;var e=go();function t(r){return e(this,r).has(r)}return $s=t,$s}var Is,Cp;function TS(){if(Cp)return Is;Cp=1;var e=go();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 Is=t,Is}var ks,$p;function Ed(){if($p)return ks;$p=1;var e=OS(),t=AS(),r=PS(),n=jS(),i=TS();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];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,ks=a,ks}var Ns,Ip;function mx(){if(Ip)return Ns;Ip=1;var e=Ed(),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,s=i?i.apply(this,o):o[0],u=a.cache;if(u.has(s))return u.get(s);var c=n.apply(this,o);return a.cache=u.set(s,c)||u,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Ns=r,Ns}var Ds,kp;function ES(){if(kp)return Ds;kp=1;var e=mx(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Ds=r,Ds}var Rs,Np;function MS(){if(Np)return Rs;Np=1;var e=ES(),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,s,u,c){a.push(u?c.replace(r,"$1"):s||o)}),a});return Rs=n,Rs}var qs,Dp;function Md(){if(Dp)return qs;Dp=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 qs=e,qs}var Ls,Rp;function CS(){if(Rp)return Ls;Rp=1;var e=ki(),t=Md(),r=Ge(),n=ln(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return Ls=o,Ls}var Bs,qp;function gx(){if(qp)return Bs;qp=1;var e=CS();function t(r){return r==null?"":e(r)}return Bs=t,Bs}var Fs,Lp;function bx(){if(Lp)return Fs;Lp=1;var e=Ge(),t=Ad(),r=MS(),n=gx();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Fs=i,Fs}var Ws,Bp;function bo(){if(Bp)return Ws;Bp=1;var e=ln();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Ws=t,Ws}var zs,Fp;function Cd(){if(Fp)return zs;Fp=1;var e=bx(),t=bo();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 zs=r,zs}var Us,Wp;function xx(){if(Wp)return Us;Wp=1;var e=Cd();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Us=t,Us}var $S=xx();const rt=be($S);var Ks,zp;function IS(){if(zp)return Ks;zp=1;function e(t){return t==null}return Ks=e,Ks}var kS=IS();const re=be(kS);var Hs,Up;function NS(){if(Up)return Hs;Up=1;var e=$t(),t=Ge(),r=It(),n="[object String]";
vendor: 5,382 bytes, line 2
2function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Hs=i,Hs}var DS=NS();const hr=be(DS);var RS=Pd();const ee=be(RS);var qS=Kt();const fn=be(qS);var Gs={exports:{}},ce={};var Kp;function LS(){if(Kp)return ce;Kp=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"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case s:case o:case u:case d:case l:case a:return p;default:return g}}case t:return g}}}return ce.ContextConsumer=o,ce.ContextProvider=a,ce.Element=e,ce.ForwardRef=u,ce.Fragment=r,ce.Lazy=d,ce.Memo=l,ce.Portal=t,ce.Profiler=i,ce.StrictMode=n,ce.Suspense=c,ce.SuspenseList=f,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(p){return v(p)===o},ce.isContextProvider=function(p){return v(p)===a},ce.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ce.isForwardRef=function(p){return v(p)===u},ce.isFragment=function(p){return v(p)===r},ce.isLazy=function(p){return v(p)===d},ce.isMemo=function(p){return v(p)===l},ce.isPortal=function(p){return v(p)===t},ce.isProfiler=function(p){return v(p)===i},ce.isStrictMode=function(p){return v(p)===n},ce.isSuspense=function(p){return v(p)===c},ce.isSuspenseList=function(p){return v(p)===f},ce.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===f||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===u||p.$$typeof===y||p.getModuleId!==void 0)},ce.typeOf=v,ce}var Hp;function BS(){return Hp||(Hp=1,Gs.exports=LS()),Gs.exports}var FS=BS(),Vs,Gp;function wx(){if(Gp)return Vs;Gp=1;var e=$t(),t=It(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Vs=n,Vs}var Xs,Vp;function WS(){if(Vp)return Xs;Vp=1;var e=wx();function t(r){return e(r)&&r!=+r}return Xs=t,Xs}var zS=WS();const dn=be(zS);var US=wx();const KS=be(US);var lt=function(t){return t===0?0:t>0?1:-1},ir=function(t){return hr(t)&&t.indexOf("%")===t.length-1},z=function(t){return KS(t)&&!dn(t)},HS=function(t){return re(t)},ke=function(t){return z(t)||hr(t)},GS=0,hn=function(t){var r=++GS;return"".concat(t||"").concat(r)},pr=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(!z(t)&&!hr(t))return n;var a;if(ir(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return dn(a)&&(a=n),i&&a>r&&(a=r),a},Bt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},VS=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},qe=function(t,r){return z(t)&&z(r)?function(n){return t+n*(r-t)}:function(){return r}};function pa(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):rt(n,t))===r})}var XS=function(t,r){return z(t)&&z(r)?t-r:hr(t)&&hr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function kr(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 Xl(e){"@babel/helpers - typeof";return Xl=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},Xl(e)}var YS=["viewBox","children"],ZS=["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
2dering","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"],Xp=["points","pathLength"],Ys={svg:YS,polygon:Xp,polyline:Xp},$d=["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
2Capture","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"],va=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(C.isValidElement(t)&&(n=t.props),!fn(n))return null;var i={};return Object.keys(n).forEach(function(a){$d.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},QS=function(t,r,n){return function(i){return t(r,n,i),null}},ya=function(t,r,n){if(!fn(t)||Xl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];$d.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=QS(o,r,n))}),i},JS=["children"],eA=["children"];function Yp(e,t){if(e==null)return{};var r=tA(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 tA(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 Yl(e){"@babel/helpers - typeof";return Yl=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},Yl(e)}var Zp={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Pt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Qp=null,Zs=null,Id=function e(t){if(t===Qp&&Array.isArray(Zs))return Zs;var r=[];return C.Children.forEach(t,function(n){re(n)||(FS.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Zs=r,Qp=t,r};function nt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Pt(i)}):n=[Pt(t)],Id(e).forEach(function(i){var a=rt(i,"type.displayName")||rt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ye(e,t){var r=nt(e,t);return r&&r[0]}var Jp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!z(n)||n<=0||!z(i)||i<=0)},rA=["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"],nA=function(t){return t&&t.type&&hr(t.type)&&rA.indexOf(t.type)>=0},_x=function(t){return t&&Yl(t)==="object"&&"clipDot"in t},iA=function(t,r,n,i){var a,o=(a=Ys?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!ee(t)&&(i&&o.includes(r)||ZS.includes(r))||n&&$d.includes(r)},te=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(C.isValidElement(t)&&(i=t.props),!fn(i))return null;var a={};
2return Object.keys(i).forEach(function(o){var s;iA((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Zl=function e(t,r){if(t===r)return!0;var n=C.Children.count(t);if(n!==C.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ev(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(!ev(a,o))return!1}return!0},ev=function(t,r){if(re(t)&&re(r))return!0;if(!re(t)&&!re(r)){var n=t.props||{},i=n.children,a=Yp(n,JS),o=r.props||{},s=o.children,u=Yp(o,eA);return i&&s?kr(a,u)&&Zl(i,s):!i&&!s?kr(a,u):!1}return!1},tv=function(t,r){var n=[],i={};return Id(t).forEach(function(a,o){if(nA(a))n.push(a);else if(a){var s=Pt(a.type),u=r[s]||{},c=u.handler,f=u.once;if(c&&(!f||!i[s])){var l=c(a,s,o);n.push(l),i[s]=!0}}}),n},aA=function(t){var r=t&&t.type;return r&&Zp[r]?Zp[r]:null},oA=function(t,r){return Id(r).indexOf(t)},sA=["children","width","height","viewBox","className","style","title","desc"];function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ql.apply(this,arguments)}function uA(e,t){if(e==null)return{};var r=cA(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 cA(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 Jl(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,u=e.desc,c=uA(e,sA),f=i||{width:r,height:n,x:0,y:0},l=ne("recharts-surface",a);return E.createElement("svg",Ql({},te(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),E.createElement("title",null,s),E.createElement("desc",null,u),t)}var lA=["children","className"];function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(this,arguments)}function fA(e,t){if(e==null)return{};var r=dA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ge=E.forwardRef(function(e,t){var r=e.children,n=e.className,i=fA(e,lA),a=ne("recharts-layer",n);return E.createElement("g",ef({className:a},te(i,!0),{ref:t}),r)}),jt=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]},Qs,rv;function hA(){if(rv)return Qs;rv=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 Qs=e,Qs}var Js,nv;function pA(){if(nv)return Js;nv=1;var e=hA();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 Js=t,Js}var eu,iv;function Ox(){if(iv)return eu;iv=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function u(c){return s.test(c)}return eu=u,eu}var tu,av;function vA(){if(av)return tu;av=1;function e(t){return t.split("")}return tu=e,tu}var ru,ov;function yA(){if(ov)return ru;ov=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+u+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",y=c+"?",v="["+a+"]?",p="(?:"+h+"(?:"+[f,l,d].join("|")+")"+v+y+")*",g=v+y+p,b="(?:"+[f+s+"?",s,l,d,o].join("|")+")",_=RegExp(u+"(?="+u+")|"+b+g,"g");function O(m){return m.match(_)||[]}return ru=O,ru}var nu,sv;function mA(){if(sv)return nu;sv=1;var e=vA(),t=Ox(),r=yA();function n(i){return t(i)?r(i):e(i)}return nu=n,nu}var iu,uv;function gA(){if(uv)return iu;uv=1;var e=pA(),t=Ox(),r=mA(),n=gx();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,u=s?s[0]:o.charAt(0),c=s?e(s,1).join(""):o.slice(1);return u[a]()+c}}return iu=i,iu}var au,cv;function bA(){if(cv)return au;cv=1;var e=gA(),t=e("toUpperCase");return au=t,au}var xA=bA();const xo=be(xA);function me(e){return function(){return e}}const Sx=Math.cos,ma=Math.sin,dt=Math.sqrt,ga=Math.PI,wo=2*ga,tf=Math.PI,rf=2*tf,er=1e-6,wA=rf-er;function Ax(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function _A(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ax;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 OA{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ax:_A(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}
2,${+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,s=this._y1,u=n-t,c=i-r,f=o-t,l=s-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>er)if(!(Math.abs(l*u-c*f)>er)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=i-s,v=u*u+c*c,p=h*h+y*y,g=Math.sqrt(v),b=Math.sqrt(d),_=a*Math.tan((tf-Math.acos((v+d-p)/(2*g*b)))/2),O=_/b,m=_/g;Math.abs(O-1)>er&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*h>f*y)},${this._x1=t+m*u},${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 s=n*Math.cos(i),u=n*Math.sin(i),c=t+s,f=r+u,l=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>er||Math.abs(this._y1-f)>er)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%rf+rf),d>wA?this._append`A${n},${n},0,1,${l},${t-s},${r-u}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>er&&this._append`A${n},${n},0,${+(d>=tf)},${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 kd(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 OA(t)}function Nd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Px(e){this._context=e}Px.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 _o(e){return new Px(e)}function jx(e){return e[0]}function Tx(e){return e[1]}function Ex(e,t){var r=me(!0),n=null,i=_o,a=null,o=kd(s);e=typeof e=="function"?e:e===void 0?jx:me(e),t=typeof t=="function"?t:t===void 0?Tx:me(t);function s(u){var c,f=(u=Nd(u)).length,l,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=f;++c)!(c<f&&r(l=u[c],c,u))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,c,u),+t(l,c,u));if(h)return a=null,h+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:me(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:me(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:me(!!u),s):r},s.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),s):i},s.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),s):n},s}function Gi(e,t,r){var n=null,i=me(!0),a=null,o=_o,s=null,u=kd(c);e=typeof e=="function"?e:e===void 0?jx:me(+e),t=typeof t=="function"?t:me(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Tx:me(+r);function c(l){var d,h,y,v=(l=Nd(l)).length,p,g=!1,b,_=new Array(v),O=new Array(v);for(a==null&&(s=o(b=u())),d=0;d<=v;++d){if(!(d<v&&i(p=l[d],d,l))===g)if(g=!g)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=d-1;y>=h;--y)s.point(_[y],O[y]);s.lineEnd(),s.areaEnd()}g&&(_[d]=+e(p,d,l),O[d]=+t(p,d,l),s.point(n?+n(p,d,l):_[d],r?+r(p,d,l):O[d]))}if(b)return s=null,b+""||null}function f(){return Ex().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:me(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:me(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:me(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:me(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:me(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:me(+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:me(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(s=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=s=null:s=o(a=l),c):a},c}class Mx{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 SA(e){return new Mx(e,!0)}function AA(e){return new Mx(e,!1)}const Dd={draw(e,t){const r=dt(t/ga);e.moveTo(r,0),e.arc(0,0,r,0,wo)}},PA={draw(e,t){const r=dt(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()}},Cx=dt(1/3),jA=Cx*2,TA={draw(e,t){const r=dt(t/jA),n=r*Cx;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},EA={draw(e,t){const r=dt(t),n=-r/2;e.rect(n,n,r,r)}},MA=.8908130915292852,$x=ma(ga/10)/ma(7*ga/10),CA=ma(wo/10)*$x,$A=-Sx(wo/10)*$x,IA={draw(e,t){const r=dt(t*MA),n=CA*r,i=$A*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=wo*a/5,s=Sx(o),u=ma(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},ou=dt(3),kA={draw(e,t){const r=-dt(t/(ou*3));e.moveTo(0,r*2),e.lineTo(-ou*r,-r),e.lineTo(ou*r,-r),e.closePath()}},Qe=-.5,Je=dt(3)/2,nf=1/dt(12),NA=(nf/2+1)*3,DA={draw(e,t){const r=dt(t/NA),n=r/2,i=r*nf,a=n,o=r*nf+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(Qe*n-Je*i,Je*n+Qe*i),e.lineTo(Qe*a-Je*o,Je*a+Qe*o),e.lineTo(Qe*s-Je*u,Je*s+Qe*u),e.lineTo(Qe*n+Je*i,Qe*i-Je*n),e.lineTo(Qe*a+Je*o,Qe*o-Je*a),e.lineTo(Qe*s+Je*u,Qe*u-Je*s),e.closePath()}};function RA(e,t){let r=null,n=kd(i);e=typeof e=="function"?e:me(e||Dd),t=typeof t=="function"?t:me(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:me(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:me(+a),i):t}
vendor: 6,361 bytes, line 2
2,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ba(){}function xa(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 Ix(e){this._context=e}Ix.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:xa(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:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qA(e){return new Ix(e)}function kx(e){this._context=e}kx.prototype={areaStart:ba,areaEnd:ba,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:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LA(e){return new kx(e)}function Nx(e){this._context=e}Nx.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:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BA(e){return new Nx(e)}function Dx(e){this._context=e}Dx.prototype={areaStart:ba,areaEnd:ba,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 FA(e){return new Dx(e)}function lv(e){return e<0?-1:1}function fv(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),s=(a*i+o*n)/(n+i);return(lv(a)+lv(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function dv(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function su(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function wa(e){this._context=e}wa.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:su(this,this._t0,dv(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,su(this,dv(this,r=fv(this,e,t)),r);break;default:su(this,this._t0,r=fv(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Rx(e){this._context=new qx(e)}(Rx.prototype=Object.create(wa.prototype)).point=function(e,t){wa.prototype.point.call(this,t,e)};function qx(e){this._context=e}qx.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 WA(e){return new wa(e)}function zA(e){return new Rx(e)}function Lx(e){this._context=e}Lx.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=hv(e),i=hv(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 hv(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 UA(e){return new Lx(e)}function Oo(e,t){this._context=e,this._t=t}Oo.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: 15,275 bytes, lines 2-5
2default:{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 KA(e){return new Oo(e,.5)}function HA(e){return new Oo(e,0)}function GA(e){return new Oo(e,1)}function Br(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function af(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function VA(e,t){return e[t]}function XA(e){const t=[];return t.key=e,t}function YA(){var e=me([]),t=af,r=Br,n=VA;function i(a){var o=Array.from(e.apply(this,arguments),XA),s,u=o.length,c=-1,f;for(const l of a)for(s=0,++c;s<u;++s)(o[s][c]=[0,+n(l,o[s].key,c,a)]).data=l;for(s=0,f=Nd(t(o));s<u;++s)o[f[s]].index=s;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:me(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:me(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?af:typeof a=="function"?a:me(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Br,i):r},i}function ZA(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}Br(e,t)}}function QA(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,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Br(e,t)}}function JA(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 s=0,u=0,c=0;s<o;++s){for(var f=e[t[s]],l=f[n][1]||0,d=f[n-1][1]||0,h=(l-d)/2,y=0;y<s;++y){var v=e[t[y]],p=v[n][1]||0,g=v[n-1][1]||0;h+=p-g}u+=l,c+=h*l}i[n-1][1]+=i[n-1][0]=r,u&&(r-=c/u)}i[n-1][1]+=i[n-1][0]=r,Br(e,t)}}function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}var eP=["type","size","sizeType"];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 pv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pv(Object(r),!0).forEach(function(n){tP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tP(e,t,r){return t=rP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rP(e){var t=nP(e,"string");return Qn(t)=="symbol"?t:t+""}function nP(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iP(e,t){if(e==null)return{};var r=aP(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 aP(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 Bx={symbolCircle:Dd,symbolCross:PA,symbolDiamond:TA,symbolSquare:EA,symbolStar:IA,symbolTriangle:kA,symbolWye:DA},oP=Math.PI/180,sP=function(t){var r="symbol".concat(xo(t));return Bx[r]||Dd},uP=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*oP;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}},cP=function(t,r){Bx["symbol".concat(xo(t))]=r},Rd=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,u=iP(t,eP),c=vv(vv({},u),{},{type:n,size:a,sizeType:s}),f=function(){var p=sP(n),g=RA().type(p).size(uP(a,s,n));return g()},l=c.className,d=c.cx,h=c.cy,y=te(c,!0);return d===+d&&h===+h&&a===+a?E.createElement("path",of({},y,{className:ne("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};Rd.registerSymbol=cP;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 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 yv(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 lP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yv(Object(r),!0).forEach(function(n){Jn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wx(n.key),n)}}function hP(e,t,r){return t&&dP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pP(e,t,r){return t=_a(t),vP(e,Fx()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function vP(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 yP(e)}function yP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fx=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function mP(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&&uf(e,t)}function uf(e,t){return uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uf(e,t)}function Jn(e,t,r){return t=Wx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wx(e){var t=gP(e,"string");return Fr(t)=="symbol"?t:t+""}function gP(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var et=32,qd=function(e){function t(){return fP(this,t),pP(this,t,arguments)}return mP(t,e),hP(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=et/2,o=et/6,s=et/3,u=n.inactive?i:n.color;if(n.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:et,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(s,` 3 A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,` 4 H`).concat(et,"M").concat(2*s,",").concat(a,` 5 A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return E.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(et/8,"h").concat(et,"v").concat(et*3/4,"h").concat(-et,"z"),className:"recharts-legend-icon"});if(E.isValidElement(n.legendIcon)){var c=lP({},n);return delete c.legendIcon,E.cloneElement(n.legendIcon,c)}return E.createElement(Rd,{fill:u,cx:a,cy:a,size:et,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,u=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:et,height:et},l={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,y){var v=h.formatter||u,p=ne(Jn(Jn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var g=ee(h.value)?null:h.value;jt(!ee(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=h.inactive?c:h.color;return E.createElement("li",sf({className:p,style:l,key:"legend-item-".concat(y)},ya(n.props,h,y)),E.createElement(Jl,{width:o,height:o,viewBox:f,style:d},n.renderIcon(h)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},v?v(g,h,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(C.PureComponent);Jn(qd,"displayName","Legend");Jn(qd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var uu,mv;function bP(){if(mv)return uu;mv=1;var e=mo();function t(){this.__data__=new e,this.size=0}return uu=t,uu}var cu,gv;function xP(){if(gv)return cu;gv=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return cu=e,cu}var lu,bv;function wP(){if(bv)return lu;bv=1;function e(t){return this.__data__.get(t)}return lu=e,lu}var fu,xv;function _P(){if(xv)return fu;xv=1;function e(t){return this.__data__.has(t)}return fu=e,fu}var du,wv;function OP(){if(wv)return du;wv=1;var e=mo(),t=Td(),r=Ed(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var u=s.__data__;if(!t||u.length<n-1)return u.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(u)}return s.set(a,o),this.size=s.size,this}return du=i,du}var hu,_v;function zx(){if(_v)return hu;_v=1;var e=mo(),t=bP(),r=xP(),n=wP(),i=_P(),a=OP();function o(s){var u=this.__data__=new e(s);this.size=u.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,hu=o,hu}var pu,Ov;function SP(){if(Ov)return pu;Ov=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return pu=t,pu}var vu,Sv;function AP(){if(Sv)return vu;Sv=1;function e(t){return this.__data__.has(t)}return vu=e,vu}var yu,Av;function Ux(){if(Av)return yu;Av=1;var e=Ed(),t=SP(),r=AP();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,yu=n,yu}var mu,Pv;function Kx(){if(Pv)return mu;Pv=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 mu=e,mu}var gu,jv;function Hx(){if(jv)return gu;jv=1;function e(t,r){return t.has(r)}return gu=e,gu}var bu,Tv;function Gx(){if(Tv)return bu;Tv=1;var e=Ux(),t=Kx(),r=Hx(),n=1,i=2;function a(o,s,u,c,f,l){var d=u&n,h=o.length,y=s.length;if(h!=y&&!(d&&y>h))return!1;var v=l.get(o),p=l.get(s);if(v&&p)return v==s&&p==o;var g=-1,b=!0,_=u&i?new e:void 0;for(l.set(o,s),l.set(s,o);++g<h;){var O=o[g],m=s[g];if(c)var w=d?c(m,O,g,s,o,l):c(O,m,g,o,s,l);if(w!==void 0){if(w)continue;b=!1;break}if(_){if(!t(s,function(S,A){if(!r(_,A)&&(O===S||f(O,S,u,c,l)))return _.push(A)})){b=!1;break}}else if(!(O===m||f(O,m,u,c,l))){b=!1;break}}return l.delete(o),l.delete(s),b}return bu=a,bu}var xu,Ev;function PP(){if(Ev)return xu;Ev=1;var e=wt(),t=e.Uint8Array;return xu=t,xu}var wu,Mv;function jP(){if(Mv)return wu;Mv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return wu=e,wu}var _u,Cv;function Ld(){if(Cv)return _u;Cv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return _u=e,_u}var Ou,$v;function TP(){if($v)return Ou;$v=1;var e=ki(),t=PP(),r=jd(),n=Gx(),i=jP(),a=Ld(),o=1,s=2,u="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",h="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",_=e?e.prototype:void 0,O=_?_.valueOf:void 0;function m(w,S,A,T,I,P,j){switch(A){case b:if(w.byteLength!=S.byteLength||w.byteOffset!=S.byteOffset)return!1;w=w.buffer,S=S.buffer;case g:return!(w.byteLength!=S.byteLength||!P(new t(w),new t(S)));case u:case c:case d:return r(+w,+S);case f:return w.name==S.name&&w.message==S.message;case h:case v:return w==S+"";case l:var M=i;case y:var N=T&o;if(M||(M=a),w.size!=S.size&&!N)return!1;var k=j.get(w);if(k)return k==S;T|=s,j.set(w,S);var $=n(M(w),M(S),T,I,P,j);return j.delete(w),$;case p:if(O)return O.call(w)==O.call(S)}return!1}return Ou=m,Ou}var Su,Iv;function Vx(){if(Iv)return Su;Iv=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 Su=e,Su}var Au,kv;function EP(){if(kv)return Au;kv=1;var e=Vx(),t=Ge();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Au=r,Au}var Pu,Nv;function MP(){if(Nv)return Pu;Nv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return Pu=e,Pu}var ju,Dv;function CP(){if(Dv)return ju;Dv=1;function e(){return[]}return ju=e,ju}var Tu,Rv;function $P(){if(Rv)return Tu;Rv=1;var e=MP(),t=CP(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return Tu=a,Tu}var Eu,qv;function IP(){if(qv)return Eu;qv=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Eu=e,Eu}var Mu,Lv;function kP(){if(Lv)return Mu;Lv=1;var e=$t(),t=It(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Mu=n,Mu}var Cu,Bv;function Bd(){if(Bv)return Cu;Bv=1;var e=kP(),t=It(),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 Cu=a,Cu}var Bn={exports:{}},$u,Fv;function NP(){if(Fv)return $u;Fv=1;function e(){return!1}return $u=e,$u}Bn.exports;var Wv;
vendor: 5,477 bytes, line 5
5function Xx(){return Wv||(Wv=1,function(e,t){var r=wt(),n=NP(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;e.exports=c}(Bn,Bn.exports)),Bn.exports}var Iu,zv;function Fd(){if(zv)return Iu;zv=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 Iu=r,Iu}var ku,Uv;function Wd(){if(Uv)return ku;Uv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return ku=t,ku}var Nu,Kv;function DP(){if(Kv)return Nu;Kv=1;var e=$t(),t=Wd(),r=It(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",d="[object RegExp]",h="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",_="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",I="[object Uint32Array]",P={};P[b]=P[_]=P[O]=P[m]=P[w]=P[S]=P[A]=P[T]=P[I]=!0,P[n]=P[i]=P[p]=P[a]=P[g]=P[o]=P[s]=P[u]=P[c]=P[f]=P[l]=P[d]=P[h]=P[y]=P[v]=!1;function j(M){return r(M)&&t(M.length)&&!!P[e(M)]}return Nu=j,Nu}var Du,Hv;function Yx(){if(Hv)return Du;Hv=1;function e(t){return function(r){return t(r)}}return Du=e,Du}var Fn={exports:{}};Fn.exports;var Gv;function RP(){return Gv||(Gv=1,function(e,t){var r=vx(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(Fn,Fn.exports)),Fn.exports}var Ru,Vv;function Zx(){if(Vv)return Ru;Vv=1;var e=DP(),t=Yx(),r=RP(),n=r&&r.isTypedArray,i=n?t(n):e;return Ru=i,Ru}var qu,Xv;function qP(){if(Xv)return qu;Xv=1;var e=IP(),t=Bd(),r=Ge(),n=Xx(),i=Fd(),a=Zx(),o=Object.prototype,s=o.hasOwnProperty;function u(c,f){var l=r(c),d=!l&&t(c),h=!l&&!d&&n(c),y=!l&&!d&&!h&&a(c),v=l||d||h||y,p=v?e(c.length,String):[],g=p.length;for(var b in c)(f||s.call(c,b))&&!(v&&(b=="length"||h&&(b=="offset"||b=="parent")||y&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&p.push(b);return p}return qu=u,qu}var Lu,Yv;function LP(){if(Yv)return Lu;Yv=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Lu=t,Lu}var Bu,Zv;function Qx(){if(Zv)return Bu;Zv=1;function e(t,r){return function(n){return t(r(n))}}return Bu=e,Bu}var Fu,Qv;function BP(){if(Qv)return Fu;Qv=1;var e=Qx(),t=e(Object.keys,Object);return Fu=t,Fu}var Wu,Jv;function FP(){if(Jv)return Wu;Jv=1;var e=LP(),t=BP(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Wu=i,Wu}var zu,ey;function Ni(){if(ey)return zu;ey=1;var e=Pd(),t=Wd();function r(n){return n!=null&&t(n.length)&&!e(n)}return zu=r,zu}var Uu,ty;function So(){if(ty)return Uu;ty=1;var e=qP(),t=FP(),r=Ni();function n(i){return r(i)?e(i):t(i)}return Uu=n,Uu}var Ku,ry;function WP(){if(ry)return Ku;ry=1;var e=EP(),t=$P(),r=So();function n(i){return e(i,r,t)}return Ku=n,Ku}var Hu,ny;function zP(){if(ny)return Hu;ny=1;var e=WP(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,u,c,f){var l=s&t,d=e(a),h=d.length,y=e(o),v=y.length;if(h!=v&&!l)return!1;for(var p=h;p--;){var g=d[p];if(!(l?g in o:n.call(o,g)))return!1}var b=f.get(a),_=f.get(o);if(b&&_)return b==o&&_==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++p<h;){g=d[p];var w=a[g],S=o[g];if(u)var A=l?u(S,w,g,o,a,f):u(w,S,g,a,o,f);if(!(A===void 0?w===S||c(w,S,s,u,f):A)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var T=a.constructor,I=o.constructor;T!=I&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof I=="function"&&I instanceof I)&&(O=!1)}return f.delete(a),f.delete(o),O}return Hu=i,Hu}var Gu,iy;function UP(){if(iy)return Gu;iy=1;var e=wr(),t=wt(),r=e(t,"DataView");return Gu=r,Gu}var Vu,ay;function KP(){if(ay)return Vu;ay=1;var e=wr(),t=wt(),r=e(t,"Promise");return Vu=r,Vu}var Xu,oy;function Jx(){if(oy)return Xu;oy=1;var e=wr(),t=wt(),r=e(t,"Set");return Xu=r,Xu}var Yu,sy;function HP(){if(sy)return Yu;sy=1;var e=wr(),t=wt(),r=e(t,"WeakMap");return Yu=r,Yu}var Zu,uy;function GP(){if(uy)return Zu;uy=1;var e=UP(),t=Td(),r=KP(),n=Jx(),i=HP(),a=$t(),o=yx(),s="[object Map]",u="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",h=o(e),y=o(t),v=o(r),p=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||t&&b(new t)!=s||r&&b(r.resolve())!=c||n&&b(new n)!=f||i&&b(new i)!=l)&&(b=function(_){var O=a(_),m=O==u?_.constructor:void 0,w=m?o(m):"";if(w)switch(w){case h:return d;case y:return s;case v:return c;case p:return f;case g:return l}return O}),Zu=b,Zu}var Qu,cy;function VP(){if(cy)return Qu;cy=1;var e=zx(),t=Gx(),r=TP(),n=zP(),i=GP(),a=Ge(),o=Xx(),s=Zx(),u=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function y(v,p,g,b,_,O){var m=a(v),w=a(p),S=m?f:i(v),A=w?f:i(p);S=S==c?l:S,A=A==c?l:A;var T=S==l,I=A==l,P=S==A;if(P&&o(v)){if(!o(p))return!1;m=!0,T=!1}if(P&&!T)return O||(O=new e),m||s(v)?t(v,p,g,b,_,O):r(v,p,S,g,b,_,O);if(!(g&u)){var j=T&&h.call(v,"__wrapped__"),M=I&&h.call(p,"__wrapped__");
vendor: 48,699 bytes, lines 5-13
5if(j||M){var N=j?v.value():v,k=M?p.value():p;return O||(O=new e),_(N,k,g,b,O)}}return P?(O||(O=new e),n(v,p,g,b,_,O)):!1}return Qu=y,Qu}var Ju,ly;function zd(){if(ly)return Ju;ly=1;var e=VP(),t=It();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Ju=r,Ju}var ec,fy;function XP(){if(fy)return ec;fy=1;var e=zx(),t=zd(),r=1,n=2;function i(a,o,s,u){var c=s.length,f=c,l=!u;if(a==null)return!f;for(a=Object(a);c--;){var d=s[c];if(l&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<f;){d=s[c];var h=d[0],y=a[h],v=d[1];if(l&&d[2]){if(y===void 0&&!(h in a))return!1}else{var p=new e;if(u)var g=u(y,v,h,a,o,p);if(!(g===void 0?t(v,y,r|n,u,p):g))return!1}}return!0}return ec=i,ec}var tc,dy;function ew(){if(dy)return tc;dy=1;var e=Kt();function t(r){return r===r&&!e(r)}return tc=t,tc}var rc,hy;function YP(){if(hy)return rc;hy=1;var e=ew(),t=So();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return rc=r,rc}var nc,py;function tw(){if(py)return nc;py=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return nc=e,nc}var ic,vy;function ZP(){if(vy)return ic;vy=1;var e=XP(),t=YP(),r=tw();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 ic=n,ic}var ac,yy;function QP(){if(yy)return ac;yy=1;function e(t,r){return t!=null&&r in Object(t)}return ac=e,ac}var oc,my;function JP(){if(my)return oc;my=1;var e=bx(),t=Bd(),r=Ge(),n=Fd(),i=Wd(),a=bo();function o(s,u,c){u=e(u,s);for(var f=-1,l=u.length,d=!1;++f<l;){var h=a(u[f]);if(!(d=s!=null&&c(s,h)))break;s=s[h]}return d||++f!=l?d:(l=s==null?0:s.length,!!l&&i(l)&&n(h,l)&&(r(s)||t(s)))}return oc=o,oc}var sc,gy;function ej(){if(gy)return sc;gy=1;var e=QP(),t=JP();function r(n,i){return n!=null&&t(n,i,e)}return sc=r,sc}var uc,by;function tj(){if(by)return uc;by=1;var e=zd(),t=xx(),r=ej(),n=Ad(),i=ew(),a=tw(),o=bo(),s=1,u=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(d){var h=t(d,f);return h===void 0&&h===l?r(d,f):e(l,h,s|u)}}return uc=c,uc}var cc,xy;function pn(){if(xy)return cc;xy=1;function e(t){return t}return cc=e,cc}var lc,wy;function rj(){if(wy)return lc;wy=1;function e(t){return function(r){return r?.[t]}}return lc=e,lc}var fc,_y;function nj(){if(_y)return fc;_y=1;var e=Cd();function t(r){return function(n){return e(n,r)}}return fc=t,fc}var dc,Oy;function ij(){if(Oy)return dc;Oy=1;var e=rj(),t=nj(),r=Ad(),n=bo();function i(a){return r(a)?e(n(a)):t(a)}return dc=i,dc}var hc,Sy;function Ht(){if(Sy)return hc;Sy=1;var e=ZP(),t=tj(),r=pn(),n=Ge(),i=ij();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 hc=a,hc}var pc,Ay;function rw(){if(Ay)return pc;Ay=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 pc=e,pc}var vc,Py;function aj(){if(Py)return vc;Py=1;function e(t){return t!==t}return vc=e,vc}var yc,jy;function oj(){if(jy)return yc;jy=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 yc=e,yc}var mc,Ty;function sj(){if(Ty)return mc;Ty=1;var e=rw(),t=aj(),r=oj();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return mc=n,mc}var gc,Ey;function uj(){if(Ey)return gc;Ey=1;var e=sj();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return gc=t,gc}var bc,My;function cj(){if(My)return bc;My=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 bc=e,bc}var xc,Cy;function lj(){if(Cy)return xc;Cy=1;function e(){}return xc=e,xc}var wc,$y;function fj(){if($y)return wc;$y=1;var e=Jx(),t=lj(),r=Ld(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return wc=i,wc}var _c,Iy;function dj(){if(Iy)return _c;Iy=1;var e=Ux(),t=uj(),r=cj(),n=Hx(),i=fj(),a=Ld(),o=200;function s(u,c,f){var l=-1,d=t,h=u.length,y=!0,v=[],p=v;if(f)y=!1,d=r;else if(h>=o){var g=c?null:i(u);if(g)return a(g);y=!1,d=n,p=new e}else p=c?[]:v;e:for(;++l<h;){var b=u[l],_=c?c(b):b;if(b=f||b!==0?b:0,y&&_===_){for(var O=p.length;O--;)if(p[O]===_)continue e;c&&p.push(_),v.push(b)}else d(p,_,f)||(p!==v&&p.push(_),v.push(b))}return v}return _c=s,_c}var Oc,ky;function hj(){if(ky)return Oc;ky=1;var e=Ht(),t=dj();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Oc=r,Oc}var pj=hj();const Ny=be(pj);function nw(e,t,r){return t===!0?Ny(e,r):ee(t)?Ny(e,t):e}function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}var vj=["ref"];function Dy(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 _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dy(Object(r),!0).forEach(function(n){Ao(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ry(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,aw(n.key),n)}}function mj(e,t,r){return t&&Ry(e.prototype,t),r&&Ry(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gj(e,t,r){return t=Oa(t),bj(e,iw()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function bj(e,t){if(t&&(Wr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xj(e)}function xj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iw=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function wj(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 Ao(e,t,r){return t=aw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aw(e){var t=_j(e,"string");return Wr(t)=="symbol"?t:t+""}function _j(e,t){if(Wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Oj(e,t){if(e==null)return{};var r=Sj(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 Sj(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 Aj(e){return e.value}function Pj(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var r=Oj(t,vj);return E.createElement(qd,r)}var qy=1,cr=function(e){function t(){var r;yj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=gj(this,t,[].concat(i)),Ao(r,"lastBoundingBox",{width:-1,height:-1}),r}return wj(t,e),mj(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)>qy||Math.abs(i.height-this.lastBoundingBox.height)>qy)&&(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?_t({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,u=i.margin,c=i.chartWidth,f=i.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();l={left:((c||0)-h.width)/2}}else l=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=s==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return _t(_t({},l),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,u=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=_t(_t({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return E.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(h){n.wrapperNode=h}},Pj(a,_t(_t({},this.props),{},{payload:nw(f,c,Aj)})))}}],[{key:"getWithHeight",value:function(n,i){var a=_t(_t({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&z(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(C.PureComponent);Ao(cr,"displayName","Legend");Ao(cr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Sc,Ly;function jj(){if(Ly)return Sc;Ly=1;var e=ki(),t=Bd(),r=Ge(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Sc=i,Sc}var Ac,By;function ow(){if(By)return Ac;By=1;var e=Vx(),t=jj();function r(n,i,a,o,s){var u=-1,c=n.length;for(a||(a=t),s||(s=[]);++u<c;){var f=n[u];i>0&&a(f)?i>1?r(f,i-1,a,o,s):e(s,f):o||(s[s.length]=f)}return s}return Ac=r,Ac}var Pc,Fy;function Tj(){if(Fy)return Pc;Fy=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),u=s.length;u--;){var c=s[t?u:++a];if(n(o[c],c,o)===!1)break}return r}}return Pc=e,Pc}var jc,Wy;function Ej(){if(Wy)return jc;Wy=1;var e=Tj(),t=e();return jc=t,jc}var Tc,zy;function sw(){if(zy)return Tc;zy=1;var e=Ej(),t=So();function r(n,i){return n&&e(n,i,t)}return Tc=r,Tc}var Ec,Uy;function Mj(){if(Uy)return Ec;Uy=1;var e=Ni();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,s=n?o:-1,u=Object(i);(n?s--:++s<o)&&a(u[s],s,u)!==!1;);return i}}return Ec=t,Ec}var Mc,Ky;function Ud(){if(Ky)return Mc;Ky=1;var e=sw(),t=Mj(),r=t(e);return Mc=r,Mc}var Cc,Hy;function uw(){if(Hy)return Cc;Hy=1;var e=Ud(),t=Ni();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,u,c){o[++a]=i(s,u,c)}),o}return Cc=r,Cc}var $c,Gy;function Cj(){if(Gy)return $c;Gy=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return $c=e,$c}var Ic,Vy;function $j(){if(Vy)return Ic;Vy=1;var e=ln();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),u=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!s&&r>n||s&&u&&f&&!c&&!l||a&&u&&f||!i&&f||!o)return 1;if(!a&&!s&&!l&&r<n||l&&i&&o&&!a&&!s||c&&i&&o||!u&&o||!f)return-1}return 0}return Ic=t,Ic}var kc,Xy;function Ij(){if(Xy)return kc;Xy=1;var e=$j();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,u=o.length,c=i.length;++a<u;){var f=e(o[a],s[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return kc=t,kc}var Nc,Yy;function kj(){if(Yy)return Nc;Yy=1;var e=Md(),t=Cd(),r=Ht(),n=uw(),i=Cj(),a=Yx(),o=Ij(),s=pn(),u=Ge();function c(f,l,d){l.length?l=e(l,function(v){return u(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[s];var h=-1;l=e(l,a(r));var y=n(f,function(v,p,g){var b=e(l,function(_){return _(v)});return{criteria:b,index:++h,value:v}});return i(y,function(v,p){return o(v,p,d)})}return Nc=c,Nc}var Dc,Zy;function Nj(){if(Zy)return Dc;Zy=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 Dc=e,Dc}var Rc,Qy;function Dj(){if(Qy)return Rc;Qy=1;var e=Nj(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,u=t(o.length-i,0),c=Array(u);++s<u;)c[s]=o[i+s];s=-1;for(var f=Array(i+1);++s<i;)f[s]=o[s];return f[i]=a(c),e(n,this,f)}}return Rc=r,Rc}var qc,Jy;function Rj(){if(Jy)return qc;Jy=1;function e(t){return function(){return t}}return qc=e,qc}var Lc,em;function cw(){if(em)return Lc;em=1;var e=wr(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Lc=t,Lc}var Bc,tm;function qj(){if(tm)return Bc;tm=1;var e=Rj(),t=cw(),r=pn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Bc=n,Bc}var Fc,rm;function Lj(){if(rm)return Fc;rm=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),u=t-(s-o);if(o=s,u>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Fc=n,Fc}var Wc,nm;function Bj(){if(nm)return Wc;nm=1;var e=qj(),t=Lj(),r=t(e);return Wc=r,Wc}var zc,im;function Fj(){if(im)return zc;im=1;var e=pn(),t=Dj(),r=Bj();function n(i,a){return r(t(i,a,e),i+"")}return zc=n,zc}var Uc,am;function Po(){if(am)return Uc;am=1;var e=jd(),t=Ni(),r=Fd(),n=Kt();function i(a,o,s){if(!n(s))return!1;var u=typeof o;return(u=="number"?t(s)&&r(o,s.length):u=="string"&&o in s)?e(s[o],a):!1}return Uc=i,Uc}var Kc,om;function Wj(){if(om)return Kc;om=1;var e=ow(),t=kj(),r=Fj(),n=Po(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Kc=i,Kc}var zj=Wj();const Kd=be(zj);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 lf(){return lf=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},lf.apply(this,arguments)}function Uj(e,t){return Vj(e)||Gj(e,t)||Hj(e,t)||Kj()}function Kj(){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 Hj(e,t){if(e){if(typeof e=="string")return sm(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 sm(e,t)}}function sm(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 Gj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Vj(e){if(Array.isArray(e))return 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 Hc(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){Xj(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 Xj(e,t,r){return t=Yj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yj(e){var t=Zj(e,"string");return ei(t)=="symbol"?t:t+""}function Zj(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qj(e){return Array.isArray(e)&&ke(e[0])&&ke(e[1])?e.join(" ~ "):e}var Jj=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,u=t.labelStyle,c=u===void 0?{}:u,f=t.payload,l=t.formatter,d=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,g=t.accessibilityLayer,b=g===void 0?!1:g,_=function(){if(f&&f.length){var j={padding:0,margin:0},M=(d?Kd(f,d):f).map(function(N,k){if(N.type==="none")return null;var $=Hc({display:"block",paddingTop:4,paddingBottom:4,color:N.color||"#000"},s),B=N.formatter||l||Qj,q=N.value,L=N.name,K=q,G=L;if(B&&K!=null&&G!=null){var W=B(q,L,N,k,f);if(Array.isArray(W)){var U=Uj(W,2);K=U[0],G=U[1]}else K=W}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:$},ke(G)?E.createElement("span",{className:"recharts-tooltip-item-name"},G):null,ke(G)?E.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,E.createElement("span",{className:"recharts-tooltip-item-value"},K),E.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:j},M)}return null},O=Hc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Hc({margin:0},c),w=!re(v),S=w?v:"",A=ne("recharts-default-tooltip",h),T=ne("recharts-tooltip-label",y);w&&p&&f!==void 0&&f!==null&&(S=p(v,f));var I=b?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",lf({className:A,style:O},I),E.createElement("p",{className:T,style:m},E.isValidElement(S)?S:"".concat(S)),_())};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 Vi(e,t,r){return t=eT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eT(e){var t=tT(e,"string");return ti(t)=="symbol"?t:t+""}function tT(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 Pn="recharts-tooltip-wrapper",rT={visibility:"hidden"};function nT(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ne(Pn,Vi(Vi(Vi(Vi({},"".concat(Pn,"-right"),z(r)&&t&&z(t.x)&&r>=t.x),"".concat(Pn,"-left"),z(r)&&t&&z(t.x)&&r<t.x),"".concat(Pn,"-bottom"),z(n)&&t&&z(t.y)&&n>=t.y),"".concat(Pn,"-top"),z(n)&&t&&z(t.y)&&n<t.y))}function cm(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,u=e.viewBox,c=e.viewBoxDimension;if(a&&z(a[n]))return a[n];var f=r[n]-s-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var d=f,h=u[n];return d<h?Math.max(l,u[n]):Math.max(f,u[n])}var y=l+s,v=u[n]+c;return y>v?Math.max(f,u[n]):Math.max(l,u[n])}function iT(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 aT(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,u=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=cm({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),l=cm({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),c=iT({translateX:f,translateY:l,useTranslate3d:s})):c=rT,{cssProperties:c,cssClasses:nT({translateX:f,translateY:l,coordinate:r})}}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 lm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lm(Object(r),!0).forEach(function(n){df(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fw(n.key),n)}}function uT(e,t,r){return t&&sT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cT(e,t,r){return t=Sa(t),lT(e,lw()?Reflect.construct(t,r||[],Sa(e).constructor):t.apply(e,r))}function lT(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 fT(e)}function fT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lw=function(){return!!e})()}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(e)}function dT(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&&ff(e,t)}function ff(e,t){return ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ff(e,t)}function df(e,t,r){return t=fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fw(e){var t=hT(e,"string");return zr(t)=="symbol"?t:t+""}function hT(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 dm=1,pT=function(e){function t(){var r;oT(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=cT(this,t,[].concat(i)),df(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),df(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,u,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&s!==void 0?s:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return dT(t,e),uT(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>dm||Math.abs(n.height-this.state.lastBoundingBox.height)>dm)&&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,s=i.animationDuration,u=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,d=i.isAnimationActive,h=i.offset,y=i.position,v=i.reverseDirection,p=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,_=aT({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),O=_.cssClasses,m=_.cssProperties,w=fm(fm({transition:d&&a?"transform ".concat(s,"ms ").concat(u):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},b);return E.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(A){n.wrapperNode=A}},c)}}])}(C.PureComponent),vT=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},_r={isSsr:vT()};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 hm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){Hd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hw(n.key),n)}}function gT(e,t,r){return t&&mT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bT(e,t,r){return t=Aa(t),xT(e,dw()?Reflect.construct(t,r||[],Aa(e).constructor):t.apply(e,r))}function xT(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 wT(e)}function wT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dw=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Aa(e)}function _T(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&&hf(e,t)}function hf(e,t){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hf(e,t)}function Hd(e,t,r){return t=hw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hw(e){var t=OT(e,"string");return Ur(t)=="symbol"?t:t+""}function OT(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)}function ST(e){return e.dataKey}function AT(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(Jj,t)}var ht=function(e){function t(){return yT(this,t),bT(this,t,arguments)}return _T(t,e),gT(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,h=i.offset,y=i.payload,v=i.payloadUniqBy,p=i.position,g=i.reverseDirection,b=i.useTranslate3d,_=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=nw(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),v,ST));var w=m.length>0;return E.createElement(pT,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:d,active:a,coordinate:f,hasPayload:w,offset:h,position:p,reverseDirection:g,useTranslate3d:b,viewBox:_,wrapperStyle:O},AT(c,pm(pm({},this.props),{},{payload:m})))}}])}(C.PureComponent);Hd(ht,"displayName","Tooltip");Hd(ht,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!_r.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 Gc,vm;function PT(){if(vm)return Gc;vm=1;var e=wt(),t=function(){return e.Date.now()};return Gc=t,Gc}var Vc,ym;function jT(){if(ym)return Vc;ym=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Vc=t,Vc}var Xc,mm;function TT(){if(mm)return Xc;mm=1;var e=jT(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Xc=r,Xc}var Yc,gm;function pw(){if(gm)return Yc;gm=1;var e=TT(),t=Kt(),r=ln(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(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)?s(c.slice(2),l?2:8):i.test(c)?n:+c}return Yc=u,Yc}var Zc,bm;function ET(){if(bm)return Zc;bm=1;var e=Kt(),t=PT(),r=pw(),n="Expected a function",i=Math.max,a=Math.min;function o(s,u,c){var f,l,d,h,y,v,p=0,g=!1,b=!1,_=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(g=!!c.leading,b="maxWait"in c,d=b?i(r(c.maxWait)||0,u):d,_="trailing"in c?!!c.trailing:_);function O(M){var N=f,k=l;return f=l=void 0,p=M,h=s.apply(k,N),h}function m(M){return p=M,y=setTimeout(A,u),g?O(M):h}function w(M){var N=M-v,k=M-p,$=u-N;return b?a($,d-k):$}function S(M){var N=M-v,k=M-p;return v===void 0||N>=u||N<0||b&&k>=d}function A(){var M=t();if(S(M))return T(M);y=setTimeout(A,w(M))}function T(M){return y=void 0,_&&f?O(M):(f=l=void 0,h)}function I(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function P(){return y===void 0?h:T(t())}function j(){var M=t(),N=S(M);if(f=arguments,l=this,v=M,N){if(y===void 0)return m(v);if(b)return clearTimeout(y),y=setTimeout(A,u),O(v)}return y===void 0&&(y=setTimeout(A,u)),h}return j.cancel=I,j.flush=P,j}return Zc=o,Zc}var Qc,xm;function MT(){if(xm)return Qc;xm=1;var e=ET(),t=Kt(),r="Expected a function";function n(i,a,o){var s=!0,u=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),e(i,a,{leading:s,maxWait:a,trailing:u})}return Qc=n,Qc}var CT=MT();const vw=be(CT);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)}function wm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wm(Object(r),!0).forEach(function(n){$T(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $T(e,t,r){return t=IT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IT(e){var t=kT(e,"string");return ri(t)=="symbol"?t:t+""}function kT(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 NT(e,t){return LT(e)||qT(e,t)||RT(e,t)||DT()}function DT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 7In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RT(e,t){if(e){if(typeof e=="string")return _m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _m(e,t)}}function _m(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function LT(e){if(Array.isArray(e))return e}var BT=C.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,s=e.height,u=s===void 0?"100%":s,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,h=e.children,y=e.debounce,v=y===void 0?0:y,p=e.id,g=e.className,b=e.onResize,_=e.style,O=_===void 0?{}:_,m=C.useRef(null),w=C.useRef();w.current=b,C.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 S=C.useState({containerWidth:i.width,containerHeight:i.height}),A=NT(S,2),T=A[0],I=A[1],P=C.useCallback(function(M,N){I(function(k){var $=Math.round(M),B=Math.round(N);return k.containerWidth===$&&k.containerHeight===B?k:{containerWidth:$,containerHeight:B}})},[]);C.useEffect(function(){var M=function(L){var K,G=L[0].contentRect,W=G.width,U=G.height;P(W,U),(K=w.current)===null||K===void 0||K.call(w,W,U)};v>0&&(M=vw(M,v,{trailing:!0,leading:!1}));var N=new ResizeObserver(M),k=m.current.getBoundingClientRect(),$=k.width,B=k.height;return P($,B),N.observe(m.current),function(){N.disconnect()}},[P,v]);var j=C.useMemo(function(){var M=T.containerWidth,N=T.containerHeight;if(M<0||N<0)return null;jt(ir(o)||ir(u),`The width(%s) and height(%s) are both fixed numbers, 8 maybe you don't need to use a ResponsiveContainer.`,o,u),jt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var k=ir(o)?M:o,$=ir(u)?N:u;r&&r>0&&(k?$=k/r:$&&(k=$*r),d&&$>d&&($=d)),jt(k>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0, 9 please check the style of container, or the props width(%s) and height(%s), 10 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 11 height and width.`,k,$,o,u,f,l,r);var B=!Array.isArray(h)&&Pt(h.type).endsWith("Chart");return E.Children.map(h,function(q){return E.isValidElement(q)?C.cloneElement(q,Xi({width:k,height:$},B?{style:Xi({height:"100%",width:"100%",maxHeight:$,maxWidth:k},q.props.style)}:{})):q})},[r,h,u,d,l,f,T,o]);return E.createElement("div",{id:p?"".concat(p):void 0,className:ne("recharts-responsive-container",g),style:Xi(Xi({},O),{},{width:o,height:u,minWidth:f,minHeight:l,maxHeight:d}),ref:m},j)}),yw=function(t){return null};yw.displayName="Cell";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 Om(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Om(Object(r),!0).forEach(function(n){FT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FT(e,t,r){return t=WT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WT(e){var t=zT(e,"string");return ni(t)=="symbol"?t:t+""}function zT(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 Ar={widthCache:{},cacheCount:0},UT=2e3,KT={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Sm="recharts_measurement_span";function HT(e){var t=pf({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Kn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||_r.isSsr)return{width:0,height:0};var n=HT(r),i=JSON.stringify({text:t,copyStyle:n});if(Ar.widthCache[i])return Ar.widthCache[i];try{var a=document.getElementById(Sm);a||(a=document.createElement("span"),a.setAttribute("id",Sm),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=pf(pf({},KT),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return Ar.widthCache[i]=u,++Ar.cacheCount>UT&&(Ar.cacheCount=0,Ar.widthCache={}),u}catch{return{width:0,height:0}}},GT=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Pa(e,t){return ZT(e)||YT(e,t)||XT(e,t)||VT()}function VT(){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 XT(e,t){if(e){if(typeof e=="string")return Am(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 Am(e,t)}}function Am(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 YT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function ZT(e){if(Array.isArray(e))return e}function QT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pm(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,eE(n.key),n)}}function JT(e,t,r){return t&&Pm(e.prototype,t),r&&Pm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eE(e){var t=tE(e,"string");return ii(t)=="symbol"?t:t+""}function tE(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 String(e)}var jm=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Tm=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rE=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,nE=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,mw={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},iE=Object.keys(mw),Cr="NaN";function aE(e,t){return e*mw[t]}var Yi=function(){function e(t,r){QT(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!rE.test(r)&&(this.num=NaN,this.unit=""),iE.includes(r)&&(this.num=aE(t,r),this.unit="px")}return JT(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=nE.exec(r))!==null&&n!==void 0?n:[],a=Pa(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function gw(e){if(e.includes(Cr))return Cr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=jm.exec(t))!==null&&r!==void 0?r:[],i=Pa(n,4),a=i[1],o=i[2],s=i[3],u=Yi.parse(a??""),c=Yi.parse(s??""),f=o==="*"?u.multiply(c):u.divide(c);if(f.isNaN())return Cr;t=t.replace(jm,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=Tm.exec(t))!==null&&l!==void 0?l:[],h=Pa(d,4),y=h[1],v=h[2],p=h[3],g=Yi.parse(y??""),b=Yi.parse(p??""),_=v==="+"?g.add(b):g.subtract(b);if(_.isNaN())return Cr;t=t.replace(Tm,_.toString())}return t}var Em=/\(([^()]*)\)/;function oE(e){for(var t=e;t.includes("(");){var r=Em.exec(t),n=Pa(r,2),i=n[1];t=t.replace(Em,gw(i))}return t}function sE(e){var t=e.replace(/\s+/g,"");return t=oE(t),t=gw(t),t}function uE(e){try{return sE(e)}catch{return Cr}}function Jc(e){var t=uE(e.slice(5,-1));return t===Cr?"":t}var cE=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],lE=["dx","dy","angle","className","breakAll"];function vf(){return vf=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},vf.apply(this,arguments)}function Mm(e,t){if(e==null)return{};var r=fE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Cm(e,t){return vE(e)||pE(e,t)||hE(e,t)||dE()}function dE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hE(e,t){if(e){if(typeof e=="string")return $m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $m(e,t)}}function $m(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function vE(e){if(Array.isArray(e))return e}var bw=/[ \f\n\r\t\v\u2028\u2029]+/,xw=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];re(r)||(n?a=r.toString().split(""):a=r.toString().split(bw));var o=a.map(function(u){return{word:u,width:Kn(u,i).width}}),s=n?0:Kn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},yE=function(t,r,n,i,a){var o=t.maxLines,s=t.children,u=t.style,c=t.breakAll,f=z(o),l=s,d=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function($,B){var q=B.word,L=B.width,K=$[$.length-1];if(K&&(i==null||a||K.width+L+n<Number(i)))K.words.push(q),K.width+=L+n;else{var G={words:[q],width:L};$.push(G)}return $},[])},h=d(r),y=function(k){return k.reduce(function($,B){return $.width>B.width?$:B})};if(!f)return h;for(var v="…",p=function(k){var $=l.slice(0,k),B=xw({breakAll:c,style:u,children:$+v}).wordsWithComputedWidth,q=d(B),L=q.length>o||y(q).width>Number(i);return[L,q]},g=0,b=l.length-1,_=0,O;g<=b&&_<=l.length-1;){var m=Math.floor((g+b)/2),w=m-1,S=p(w),A=Cm(S,2),T=A[0],I=A[1],P=p(m),j=Cm(P,1),M=j[0];if(!T&&!M&&(g=m+1),T&&M&&(b=m-1),!T&&M){O=I;break}_++}return O||h},Im=function(t){var r=re(t)?[]:t.toString().split(bw);return[{words:r}]},mE=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!_r.isSsr){var u,c,f=xw({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;u=l,c=d}else return Im(i);return yE({breakAll:o,children:i,maxLines:s,style:a},u,c,r,n)}return Im(i)},km="#808080",ja=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,u=t.capHeight,c=u===void 0?"0.71em":u,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,g=p===void 0?km:p,b=Mm(t,cE),_=C.useMemo(function(){return mE({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:l,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,l,b.style,b.width]),O=b.dx,m=b.dy,w=b.angle,S=b.className,A=b.breakAll,T=Mm(b,lE);if(!ke(n)||!ke(a))return null;var I=n+(z(O)?O:0),P=a+(z(m)?m:0),j;switch(v){case"start":j=Jc("calc(".concat(c,")"));break;case"middle":j=Jc("calc(".concat((_.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:j=Jc("calc(".concat(_.length-1," * -").concat(s,")"));break}var M=[];if(l){var N=_[0].width,k=b.width;M.push("scale(".concat((z(k)?k/N:1)/N,")"))}return w&&M.push("rotate(".concat(w,", ").concat(I,", ").concat(P,")")),M.length&&(T.transform=M.join(" ")),E.createElement("text",vf({},te(T,!0),{x:I,y:P,className:ne("recharts-text",S),textAnchor:h,fill:g.includes("url")?km:g}),_.map(function($,B){var q=$.words.join(A?"":" ");return E.createElement("tspan",{x:I,dy:B===0?j:s,key:"".concat(q,"-").concat(B)},q)}))};function at(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function kt(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: 9,240 bytes, line 13
13const yf=Symbol("implicit");function Gd(){var e=new Bh,t=[],r=[],n=yf;function i(a){let o=e.get(a);if(o===void 0){if(n!==yf)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 Bh;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 Gd(t,r).unknown(n)},at.apply(i,arguments),i}function ai(){var e=Gd().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,u=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,h=i<n,y=h?i:n,v=h?n:i;a=(v-y)/Math.max(1,d-u+c*2),s&&(a=Math.floor(a)),y+=(v-y-a*(d-u))*f,o=a*(1-u),s&&(y=Math.round(y),o=Math.round(o));var p=YO(d).map(function(g){return y+a*g});return r(h?p.reverse():p)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,l()):s},e.padding=function(d){return arguments.length?(u=Math.min(1,c=+d),l()):u},e.paddingInner=function(d){return arguments.length?(u=Math.min(1,d),l()):u},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return ai(t(),[n,i]).round(s).paddingInner(u).paddingOuter(c).align(f)},at.apply(l(),arguments)}function ww(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ww(t())},e}function Hn(){return ww(ai.apply(null,arguments).paddingInner(1))}function Vd(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function _w(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Di(){}var oi=.7,Ta=1/oi,Nr="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gE=/^#([0-9a-f]{3,8})$/,bE=new RegExp(`^rgb\\(${Nr},${Nr},${Nr}\\)$`),xE=new RegExp(`^rgb\\(${yt},${yt},${yt}\\)$`),wE=new RegExp(`^rgba\\(${Nr},${Nr},${Nr},${si}\\)$`),_E=new RegExp(`^rgba\\(${yt},${yt},${yt},${si}\\)$`),OE=new RegExp(`^hsl\\(${si},${yt},${yt}\\)$`),SE=new RegExp(`^hsla\\(${si},${yt},${yt},${si}\\)$`),Nm={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};Vd(Di,ui,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Dm,formatHex:Dm,formatHex8:AE,formatHsl:PE,formatRgb:Rm,toString:Rm});function Dm(){return this.rgb().formatHex()}function AE(){return this.rgb().formatHex8()}function PE(){return Ow(this).formatHsl()}function Rm(){return this.rgb().formatRgb()}function ui(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=gE.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?qm(t):r===3?new He(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Zi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Zi(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=bE.exec(e))?new He(t[1],t[2],t[3],1):(t=xE.exec(e))?new He(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=wE.exec(e))?Zi(t[1],t[2],t[3],t[4]):(t=_E.exec(e))?Zi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=OE.exec(e))?Fm(t[1],t[2]/100,t[3]/100,1):(t=SE.exec(e))?Fm(t[1],t[2]/100,t[3]/100,t[4]):Nm.hasOwnProperty(e)?qm(Nm[e]):e==="transparent"?new He(NaN,NaN,NaN,0):null}function qm(e){return new He(e>>16&255,e>>8&255,e&255,1)}function Zi(e,t,r,n){return n<=0&&(e=t=r=NaN),new He(e,t,r,n)}function jE(e){return e instanceof Di||(e=ui(e)),e?(e=e.rgb(),new He(e.r,e.g,e.b,e.opacity)):new He}function mf(e,t,r,n){return arguments.length===1?jE(e):new He(e,t,r,n??1)}function He(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Vd(He,mf,_w(Di,{brighter(e){return e=e==null?Ta:Math.pow(Ta,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oi:Math.pow(oi,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(lr(this.r),lr(this.g),lr(this.b),Ea(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:Lm,formatHex:Lm,formatHex8:TE,formatRgb:Bm,toString:Bm}));function Lm(){return`#${ar(this.r)}${ar(this.g)}${ar(this.b)}`}function TE(){return`#${ar(this.r)}${ar(this.g)}${ar(this.b)}${ar((isNaN(this.opacity)?1:this.opacity)*255)}`}function Bm(){const e=Ea(this.opacity);return`${e===1?"rgb(":"rgba("}${lr(this.r)}, ${lr(this.g)}, ${lr(this.b)}${e===1?")":`, ${e})`}`}function Ea(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ar(e){return e=lr(e),(e<16?"0":"")+e.toString(16)}function Fm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ct(e,t,r,n)}function Ow(e){if(e instanceof ct)return new ct(e.h,e.s,e.l,e.opacity);if(e instanceof Di||(e=ui(e)),!e)return new ct;if(e instanceof ct)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,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new ct(o,s,u,e.opacity)}function EE(e,t,r,n){return arguments.length===1?Ow(e):new ct(e,t,r,n??1)}function ct(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Vd(ct,EE,_w(Di,{brighter(e){return e=e==null?Ta:Math.pow(Ta,e),new ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oi:Math.pow(oi,e),new ct(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 He(el(e>=240?e-240:e+120,i,n),el(e,i,n),el(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ct(Wm(this.h),Qi(this.s),Qi(this.l),Ea(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=Ea(this.opacity);return`${e===1?"hsl(":"hsla("}${Wm(this.h)}, ${Qi(this.s)*100}%, ${Qi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Wm(e){return e=(e||0)%360,e<0?e+360:e}function Qi(e){return Math.max(0,Math.min(1,e||0))}function el(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 Xd=e=>()=>e;function ME(e,t){return function(r){return e+r*t}}function CE(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)}}
vendor: 4,720 bytes, line 13
13function $E(e){return(e=+e)==1?Sw:function(t,r){return r-t?CE(t,r,e):Xd(isNaN(t)?r:t)}}function Sw(e,t){var r=t-e;return r?ME(e,r):Xd(isNaN(e)?t:e)}const zm=function e(t){var r=$E(t);function n(i,a){var o=r((i=mf(i)).r,(a=mf(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),c=Sw(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=c(f),i+""}}return n.gamma=e,n}(1);function IE(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 kE(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function NE(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]=vn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function DE(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ma(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function RE(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]=vn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var gf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tl=new RegExp(gf.source,"g");function qE(e){return function(){return e}}function LE(e){return function(t){return e(t)+""}}function BE(e,t){var r=gf.lastIndex=tl.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=gf.exec(e))&&(i=tl.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Ma(n,i)})),r=tl.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?LE(u[0].x):qE(t):(t=u.length,function(c){for(var f=0,l;f<t;++f)s[(l=u[f]).i]=l.x(c);return s.join("")})}function vn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Xd(t):(r==="number"?Ma:r==="string"?(n=ui(t))?(t=n,zm):BE:t instanceof ui?zm:t instanceof Date?DE:kE(t)?IE:Array.isArray(t)?NE:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RE:Ma)(e,t)}function Yd(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function FE(e,t){t===void 0&&(t=e,e=vn);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 s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function WE(e){return function(){return e}}function Ca(e){return+e}var Um=[0,1];function ze(e){return e}function bf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:WE(isNaN(t)?NaN:.5)}function zE(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function UE(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=bf(i,n),a=r(o,a)):(n=bf(n,i),a=r(a,o)),function(s){return a(n(s))}}function KE(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]=bf(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=Ii(e,s,1,n)-1;return a[u](i[u](s))}}function Ri(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function jo(){var e=Um,t=Um,r=vn,n,i,a,o=ze,s,u,c;function f(){var d=Math.min(e.length,t.length);return o!==ze&&(o=zE(e[0],e[d-1])),s=d>2?KE:UE,u=c=null,l}function l(d){return d==null||isNaN(d=+d)?a:(u||(u=s(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((c||(c=s(t,e.map(n),Ma)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,Ca),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=Yd,f()},l.clamp=function(d){return arguments.length?(o=d?!0:ze,f()):o!==ze},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,h){return n=d,i=h,f()}}function Zd(){return jo()(ze,ze)}function HE(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $a(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Kr(e){return e=$a(Math.abs(e)),e?e[1]:NaN}function GE(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function VE(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var XE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ci(e){if(!(t=XE.exec(e)))throw new Error("invalid format: "+e);var t;
vendor: 7,085 bytes, line 13
13return new Qd({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]})}ci.prototype=Qd.prototype;function Qd(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+""}Qd.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 YE(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 Aw;function ZE(e,t){var r=$a(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Aw=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")+$a(e,Math.max(0,t+a-1))[0]}function Km(e,t){var r=$a(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 Hm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:HE,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)=>Km(e*100,t),r:Km,s:ZE,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Gm(e){return e}var Vm=Array.prototype.map,Xm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function QE(e){var t=e.grouping===void 0||e.thousands===void 0?Gm:GE(Vm.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?Gm:VE(Vm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(l){l=ci(l);var d=l.fill,h=l.align,y=l.sign,v=l.symbol,p=l.zero,g=l.width,b=l.comma,_=l.precision,O=l.trim,m=l.type;m==="n"?(b=!0,m="g"):Hm[m]||(_===void 0&&(_=12),O=!0,m="g"),(p||d==="0"&&h==="=")&&(p=!0,d="0",h="=");var w=v==="$"?r:v==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",S=v==="$"?n:/[%p]/.test(m)?o:"",A=Hm[m],T=/[defgprs%]/.test(m);_=_===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function I(P){var j=w,M=S,N,k,$;if(m==="c")M=A(P)+M,P="";else{P=+P;var B=P<0||1/P<0;if(P=isNaN(P)?u:A(Math.abs(P),_),O&&(P=YE(P)),B&&+P==0&&y!=="+"&&(B=!1),j=(B?y==="("?y:s:y==="-"||y==="("?"":y)+j,M=(m==="s"?Xm[8+Aw/3]:"")+M+(B&&y==="("?")":""),T){for(N=-1,k=P.length;++N<k;)if($=P.charCodeAt(N),48>$||$>57){M=($===46?i+P.slice(N+1):P.slice(N))+M,P=P.slice(0,N);break}}}b&&!p&&(P=t(P,1/0));var q=j.length+P.length+M.length,L=q<g?new Array(g-q+1).join(d):"";switch(b&&p&&(P=t(L+P,L.length?g-M.length:1/0),L=""),h){case"<":P=j+P+M+L;break;case"=":P=j+L+P+M;break;case"^":P=L.slice(0,q=L.length>>1)+j+P+M+L.slice(q);break;default:P=L+j+P+M;break}return a(P)}return I.toString=function(){return l+""},I}function f(l,d){var h=c((l=ci(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(Kr(d)/3)))*3,v=Math.pow(10,-y),p=Xm[8+y/3];return function(g){return h(v*g)+p}}return{format:c,formatPrefix:f}}var Ji,Jd,Pw;JE({thousands:",",grouping:[3],currency:["$",""]});function JE(e){return Ji=QE(e),Jd=Ji.format,Pw=Ji.formatPrefix,Ji}function eM(e){return Math.max(0,-Kr(Math.abs(e)))}function tM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Kr(t)/3)))*3-Kr(Math.abs(e)))}function rM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Kr(t)-Kr(e))+1}function jw(e,t,r,n){var i=Vl(e,t,r),a;switch(n=ci(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=tM(i,o))&&(n.precision=a),Pw(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=rM(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=eM(i))&&(n.precision=a-(n.type==="%")*2);break}}return Jd(n)}function Gt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Hl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return jw(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],s=n[a],u,c,f=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);f-- >0;){if(c=Gl(o,s,r),c===u)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function Ia(){var e=Zd();return e.copy=function(){return Ri(e,Ia())},at.apply(e,arguments),Gt(e)}function Tw(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,Ca),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Tw(e).unknown(t)},e=arguments.length?Array.from(e,Ca):[0,1],Gt(r)}function Ew(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 Ym(e){return Math.log(e)}function Zm(e){return Math.exp(e)}function nM(e){return-Math.log(-e)}function iM(e){return-Math.exp(-e)}function aM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oM(e){return e===10?aM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function sM(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 Qm(e){return(t,r)=>-e(-t,r)}function eh(e){const t=e(Ym,Zm),r=t.domain;let n=10,i,a;function o(){return i=sM(n),a=oM(n),r()[0]<0?(i=Qm(i),a=Qm(a),e(nM,iM)):e(Ym,Zm),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let c=u[0],f=u[u.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=i(c),h=i(f),y,v;const p=s==null?10:+s;let g=[];if(!(n%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(y=1;y<n;++y)if(v=d<0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}}else for(;d<=h;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}g.length*2<p&&(g=Hl(c,f,p))}else g=Hl(d,h,Math.min(h-d,p)).map(a);return l?g.reverse():g},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=ci(u)).precision==null&&(u.trim=!0),u=Jd(u)),s===1/0)return u;const c=Math.max(1,n*s/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?u(f):""}},t.nice=()=>r(Ew(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Mw(){const e=eh(jo()).domain([1,10]);return e.copy=()=>Ri(e,Mw()).base(e.base()),at.apply(e,arguments),e}
13function Jm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function eg(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function th(e){var t=1,r=e(Jm(t),eg(t));return r.constant=function(n){return arguments.length?e(Jm(t=+n),eg(t)):t},Gt(r)}function Cw(){var e=th(jo());return e.copy=function(){return Ri(e,Cw()).constant(e.constant())},at.apply(e,arguments)}function tg(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cM(e){return e<0?-e*e:e*e}function rh(e){var t=e(ze,ze),r=1;function n(){return r===1?e(ze,ze):r===.5?e(uM,cM):e(tg(r),tg(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Gt(t)}function nh(){var e=rh(jo());return e.copy=function(){return Ri(e,nh()).exponent(e.exponent())},at.apply(e,arguments),e}function lM(){return nh.apply(null,arguments).exponent(.5)}function rg(e){return Math.sign(e)*e*e}function fM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $w(){var e=Zd(),t=[0,1],r=!1,n;function i(a){var o=fM(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(rg(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,Ca)).map(rg)),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 $w(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},at.apply(i,arguments),Gt(i)}function Iw(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=XO(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ii(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Ut),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 Iw().domain(e).range(t).unknown(n)},at.apply(a,arguments)}function kw(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Ii(n,u,0,r)]:a}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,s()):i.slice()},o.invertExtent=function(u){var c=i.indexOf(u);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return kw().domain([e,t]).range(i).unknown(a)},at.apply(Gt(o),arguments)}function Nw(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ii(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 Nw().domain(e).range(t).unknown(r)},at.apply(i,arguments)}function rl(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 nl(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 jn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function dM(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Tn(i),f=En(i),l=Tn(a),d=En(a),h=Tn(o),y=En(o),v=Tn(s),p=En(s),g=Tn(u),b=En(u),_={a:B,A:q,b:L,B:K,c:null,d:ug,e:ug,f:NM,g:KM,G:GM,H:$M,I:IM,j:kM,L:Dw,m:DM,M:RM,p:G,q:W,Q:fg,s:dg,S:qM,u:LM,U:BM,V:FM,w:WM,W:zM,x:null,X:null,y:UM,Y:HM,Z:VM,"%":lg},O={a:U,A:Y,b:ue,B:Ae,c:null,d:cg,e:cg,f:QM,g:uC,G:lC,H:XM,I:YM,j:ZM,L:qw,m:JM,M:eC,p:fe,q:Se,Q:fg,s:dg,S:tC,u:rC,U:nC,V:iC,w:aC,W:oC,x:null,X:null,y:sC,Y:cC,Z:fC,"%":lg},m={a:I,A:P,b:j,B:M,c:N,d:og,e:og,f:TM,g:ag,G:ig,H:sg,I:sg,j:SM,L:jM,m:OM,M:AM,p:T,q:_M,Q:MM,s:CM,S:PM,u:mM,U:gM,V:bM,w:yM,W:xM,x:k,X:$,y:ag,Y:ig,Z:wM,"%":EM};_.x=w(r,_),_.X=w(n,_),_.c=w(t,_),O.x=w(r,O),O.X=w(n,O),O.c=w(t,O);function w(H,Z){return function(Q){var F=[],Pe=-1,ie=0,Me=H.length,Ce,Ke,Nt;for(Q instanceof Date||(Q=new Date(+Q));++Pe<Me;
vendor: 6,012 bytes, line 13
13)H.charCodeAt(Pe)===37&&(F.push(H.slice(ie,Pe)),(Ke=ng[Ce=H.charAt(++Pe)])!=null?Ce=H.charAt(++Pe):Ke=Ce==="e"?" ":"0",(Nt=Z[Ce])&&(Ce=Nt(Q,Ke)),F.push(Ce),ie=Pe+1);return F.push(H.slice(ie,Pe)),F.join("")}}function S(H,Z){return function(Q){var F=jn(1900,void 0,1),Pe=A(F,H,Q+="",0),ie,Me;if(Pe!=Q.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(Z&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(ie=nl(jn(F.y,0,1)),Me=ie.getUTCDay(),ie=Me>4||Me===0?da.ceil(ie):da(ie),ie=yd.offset(ie,(F.V-1)*7),F.y=ie.getUTCFullYear(),F.m=ie.getUTCMonth(),F.d=ie.getUTCDate()+(F.w+6)%7):(ie=rl(jn(F.y,0,1)),Me=ie.getDay(),ie=Me>4||Me===0?fa.ceil(ie):fa(ie),ie=uo.offset(ie,(F.V-1)*7),F.y=ie.getFullYear(),F.m=ie.getMonth(),F.d=ie.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Me="Z"in F?nl(jn(F.y,0,1)).getUTCDay():rl(jn(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Me+5)%7:F.w+F.U*7-(Me+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,nl(F)):rl(F)}}function A(H,Z,Q,F){for(var Pe=0,ie=Z.length,Me=Q.length,Ce,Ke;Pe<ie;){if(F>=Me)return-1;if(Ce=Z.charCodeAt(Pe++),Ce===37){if(Ce=Z.charAt(Pe++),Ke=m[Ce in ng?Z.charAt(Pe++):Ce],!Ke||(F=Ke(H,Q,F))<0)return-1}else if(Ce!=Q.charCodeAt(F++))return-1}return F}function T(H,Z,Q){var F=c.exec(Z.slice(Q));return F?(H.p=f.get(F[0].toLowerCase()),Q+F[0].length):-1}function I(H,Z,Q){var F=h.exec(Z.slice(Q));return F?(H.w=y.get(F[0].toLowerCase()),Q+F[0].length):-1}function P(H,Z,Q){var F=l.exec(Z.slice(Q));return F?(H.w=d.get(F[0].toLowerCase()),Q+F[0].length):-1}function j(H,Z,Q){var F=g.exec(Z.slice(Q));return F?(H.m=b.get(F[0].toLowerCase()),Q+F[0].length):-1}function M(H,Z,Q){var F=v.exec(Z.slice(Q));return F?(H.m=p.get(F[0].toLowerCase()),Q+F[0].length):-1}function N(H,Z,Q){return A(H,t,Z,Q)}function k(H,Z,Q){return A(H,r,Z,Q)}function $(H,Z,Q){return A(H,n,Z,Q)}function B(H){return o[H.getDay()]}function q(H){return a[H.getDay()]}function L(H){return u[H.getMonth()]}function K(H){return s[H.getMonth()]}function G(H){return i[+(H.getHours()>=12)]}function W(H){return 1+~~(H.getMonth()/3)}function U(H){return o[H.getUTCDay()]}function Y(H){return a[H.getUTCDay()]}function ue(H){return u[H.getUTCMonth()]}function Ae(H){return s[H.getUTCMonth()]}function fe(H){return i[+(H.getUTCHours()>=12)]}function Se(H){return 1+~~(H.getUTCMonth()/3)}return{format:function(H){var Z=w(H+="",_);return Z.toString=function(){return H},Z},parse:function(H){var Z=S(H+="",!1);return Z.toString=function(){return H},Z},utcFormat:function(H){var Z=w(H+="",O);return Z.toString=function(){return H},Z},utcParse:function(H){var Z=S(H+="",!0);return Z.toString=function(){return H},Z}}}var ng={"-":"",_:" ",0:"0"},De=/^\s*\d+/,hM=/^%/,pM=/[\\^$*+?|[\]().{}]/g;function oe(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 vM(e){return e.replace(pM,"\\$&")}function Tn(e){return new RegExp("^(?:"+e.map(vM).join("|")+")","i")}function En(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function yM(e,t,r){var n=De.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function mM(e,t,r){var n=De.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function gM(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function bM(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function xM(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ig(e,t,r){var n=De.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ag(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function wM(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 _M(e,t,r){var n=De.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function OM(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function og(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function SM(e,t,r){var n=De.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function sg(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function AM(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function PM(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function jM(e,t,r){var n=De.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function TM(e,t,r){var n=De.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function EM(e,t,r){var n=hM.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function MM(e,t,r){var n=De.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function CM(e,t,r){var n=De.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function ug(e,t){return oe(e.getDate(),t,2)}function $M(e,t){return oe(e.getHours(),t,2)}function IM(e,t){return oe(e.getHours()%12||12,t,2)}function kM(e,t){return oe(1+uo.count(Mt(e),e),t,3)}function Dw(e,t){return oe(e.getMilliseconds(),t,3)}function NM(e,t){return Dw(e,t)+"000"}function DM(e,t){return oe(e.getMonth()+1,t,2)}function RM(e,t){return oe(e.getMinutes(),t,2)}function qM(e,t){return oe(e.getSeconds(),t,2)}function LM(e){var t=e.getDay();return t===0?7:t}function BM(e,t){return oe(fo.count(Mt(e)-1,e),t,2)}function Rw(e){var t=e.getDay();return t>=4||t===0?qr(e):qr.ceil(e)}function FM(e,t){return e=Rw(e),oe(qr.count(Mt(e),e)+(Mt(e).getDay()===4),t,2)}function WM(e){return e.getDay()}function zM(e,t){return oe(fa.count(Mt(e)-1,e),t,2)}function UM(e,t){return oe(e.getFullYear()%100,t,2)}function KM(e,t){return e=Rw(e),oe(e.getFullYear()%100,t,2)}function HM(e,t){return oe(e.getFullYear()%1e4,t,4)}function GM(e,t){var r=e.getDay();return e=r>=4||r===0?qr(e):qr.ceil(e),oe(e.getFullYear()%1e4,t,4)}
vendor: 2,566 bytes, line 13
13function VM(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+oe(t/60|0,"0",2)+oe(t%60,"0",2)}function cg(e,t){return oe(e.getUTCDate(),t,2)}function XM(e,t){return oe(e.getUTCHours(),t,2)}function YM(e,t){return oe(e.getUTCHours()%12||12,t,2)}function ZM(e,t){return oe(1+yd.count(Ct(e),e),t,3)}function qw(e,t){return oe(e.getUTCMilliseconds(),t,3)}function QM(e,t){return qw(e,t)+"000"}function JM(e,t){return oe(e.getUTCMonth()+1,t,2)}function eC(e,t){return oe(e.getUTCMinutes(),t,2)}function tC(e,t){return oe(e.getUTCSeconds(),t,2)}function rC(e){var t=e.getUTCDay();return t===0?7:t}function nC(e,t){return oe(ho.count(Ct(e)-1,e),t,2)}function Lw(e){var t=e.getUTCDay();return t>=4||t===0?Lr(e):Lr.ceil(e)}function iC(e,t){return e=Lw(e),oe(Lr.count(Ct(e),e)+(Ct(e).getUTCDay()===4),t,2)}function aC(e){return e.getUTCDay()}function oC(e,t){return oe(da.count(Ct(e)-1,e),t,2)}function sC(e,t){return oe(e.getUTCFullYear()%100,t,2)}function uC(e,t){return e=Lw(e),oe(e.getUTCFullYear()%100,t,2)}function cC(e,t){return oe(e.getUTCFullYear()%1e4,t,4)}function lC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Lr(e):Lr.ceil(e),oe(e.getUTCFullYear()%1e4,t,4)}function fC(){return"+0000"}function lg(){return"%"}function fg(e){return+e}function dg(e){return Math.floor(+e/1e3)}var Pr,Bw,Fw;dC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function dC(e){return Pr=dM(e),Bw=Pr.format,Pr.parse,Fw=Pr.utcFormat,Pr.utcParse,Pr}function hC(e){return new Date(e)}function pC(e){return e instanceof Date?+e:+new Date(+e)}function ih(e,t,r,n,i,a,o,s,u,c){var f=Zd(),l=f.invert,d=f.domain,h=c(".%L"),y=c(":%S"),v=c("%I:%M"),p=c("%I %p"),g=c("%a %d"),b=c("%b %d"),_=c("%B"),O=c("%Y");function m(w){return(u(w)<w?h:s(w)<w?y:o(w)<w?v:a(w)<w?p:n(w)<w?i(w)<w?g:b:r(w)<w?_:O)(w)}return f.invert=function(w){return new Date(l(w))},f.domain=function(w){return arguments.length?d(Array.from(w,pC)):d().map(hC)},f.ticks=function(w){var S=d();return e(S[0],S[S.length-1],w??10)},f.tickFormat=function(w,S){return S==null?m:c(S)},f.nice=function(w){var S=d();return(!w||typeof w.range!="function")&&(w=t(S[0],S[S.length-1],w??10)),w?d(Ew(S,w)):f},f.copy=function(){return Ri(f,ih(e,t,r,n,i,a,o,s,u,c))},f}
vendor: 64,839 bytes, lines 13-39
13function vC(){return at.apply(ih(dx,JO,Mt,wd,fo,uo,H0,K0,nr,Bw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function yC(){return at.apply(ih(ZO,QO,Ct,_d,ho,yd,U0,z0,nr,Fw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function To(){var e=0,t=1,r,n,i,a,o=ze,s=!1,u;function c(l){return l==null||isNaN(l=+l)?u:o(i===0?.5:(l=(a(l)-r)*i,s?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?(s=!!l,c):s},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var h,y;return arguments.length?([h,y]=d,o=l(h,y),c):[o(0),o(1)]}}return c.range=f(vn),c.rangeRound=f(Yd),c.unknown=function(l){return arguments.length?(u=l,c):u},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Vt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ww(){var e=Gt(To()(ze));return e.copy=function(){return Vt(e,Ww())},kt.apply(e,arguments)}function zw(){var e=eh(To()).domain([1,10]);return e.copy=function(){return Vt(e,zw()).base(e.base())},kt.apply(e,arguments)}function Uw(){var e=th(To());return e.copy=function(){return Vt(e,Uw()).constant(e.constant())},kt.apply(e,arguments)}function ah(){var e=rh(To());return e.copy=function(){return Vt(e,ah()).exponent(e.exponent())},kt.apply(e,arguments)}function mC(){return ah.apply(null,arguments).exponent(.5)}function Kw(){var e=[],t=ze;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ii(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(Ut),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)=>VO(e,a/n))},r.copy=function(){return Kw(t).domain(e)},kt.apply(r,arguments)}function Eo(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,c=ze,f,l=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?s:u),c(l?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(l=!!v,h):l},h.interpolator=function(v){return arguments.length?(c=v,h):c};function y(v){return function(p){var g,b,_;return arguments.length?([g,b,_]=p,c=FE(v,[g,b,_]),h):[c(0),c(.5),c(1)]}}return h.range=y(vn),h.rangeRound=y(Yd),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Hw(){var e=Gt(Eo()(ze));return e.copy=function(){return Vt(e,Hw())},kt.apply(e,arguments)}function Gw(){var e=eh(Eo()).domain([.1,1,10]);return e.copy=function(){return Vt(e,Gw()).base(e.base())},kt.apply(e,arguments)}function Vw(){var e=th(Eo());return e.copy=function(){return Vt(e,Vw()).constant(e.constant())},kt.apply(e,arguments)}function oh(){var e=rh(Eo());return e.copy=function(){return Vt(e,oh()).exponent(e.exponent())},kt.apply(e,arguments)}function gC(){return oh.apply(null,arguments).exponent(.5)}const hg=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ai,scaleDiverging:Hw,scaleDivergingLog:Gw,scaleDivergingPow:oh,scaleDivergingSqrt:gC,scaleDivergingSymlog:Vw,scaleIdentity:Tw,scaleImplicit:yf,scaleLinear:Ia,scaleLog:Mw,scaleOrdinal:Gd,scalePoint:Hn,scalePow:nh,scaleQuantile:Iw,scaleQuantize:kw,scaleRadial:$w,scaleSequential:Ww,scaleSequentialLog:zw,scaleSequentialPow:ah,scaleSequentialQuantile:Kw,scaleSequentialSqrt:mC,scaleSequentialSymlog:Uw,scaleSqrt:lM,scaleSymlog:Cw,scaleThreshold:Nw,scaleTime:vC,scaleUtc:yC,tickFormat:jw},Symbol.toStringTag,{value:"Module"}));var il,pg;function Xw(){if(pg)return il;pg=1;var e=ln();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],u=n(s);if(u!=null&&(c===void 0?u===u&&!e(u):i(u,c)))var c=u,f=s}return f}return il=t,il}var al,vg;function bC(){if(vg)return al;vg=1;function e(t,r){return t>r}return al=e,al}var ol,yg;function xC(){if(yg)return ol;yg=1;var e=Xw(),t=bC(),r=pn();function n(i){return i&&i.length?e(i,r,t):void 0}return ol=n,ol}var wC=xC();const Wt=be(wC);var sl,mg;function _C(){if(mg)return sl;mg=1;function e(t,r){return t<r}return sl=e,sl}var ul,gg;function OC(){if(gg)return ul;gg=1;var e=Xw(),t=_C(),r=pn();function n(i){return i&&i.length?e(i,r,t):void 0}return ul=n,ul}var SC=OC();const Mo=be(SC);var cl,bg;function AC(){if(bg)return cl;bg=1;var e=Md(),t=Ht(),r=uw(),n=Ge();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return cl=i,cl}var ll,xg;function PC(){if(xg)return ll;xg=1;var e=ow(),t=AC();function r(n,i){return e(t(n,i),1)}return ll=r,ll}var jC=PC();const TC=be(jC);var fl,wg;function EC(){if(wg)return fl;wg=1;var e=zd();function t(r,n){return e(r,n)}return fl=t,fl}var MC=EC();const Hr=be(MC);var yn=1e9,CC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},uh,_e=!0,it="[DecimalError] ",fr=it+"Invalid argument: ",sh=it+"Exponent out of range: ",mn=Math.floor,tr=Math.pow,$C=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ze,Ne=1e7,xe=7,Yw=9007199254740991,ka=mn(Yw/xe),V={};V.absoluteValue=V.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};V.comparedTo=V.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};V.decimalPlaces=V.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*xe;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};V.dividedBy=V.div=function(e){return Tt(this,new this.constructor(e))};V.dividedToIntegerBy=V.idiv=function(e){var t=this,r=t.constructor;return ye(Tt(t,new r(e),0,1),r.precision)};V.equals=V.eq=function(e){return!this.cmp(e)};V.exponent=function(){return Ee(this)};V.greaterThan=V.gt=function(e){return this.cmp(e)>0};V.greaterThanOrEqualTo=V.gte=function(e){return this.cmp(e)>=0};V.isInteger=V.isint=function(){return this.e>this.d.length-2};V.isNegative=V.isneg=function(){return this.s<0};V.isPositive=V.ispos=function(){return this.s>0};V.isZero=function(){return this.s===0};V.lessThan=V.lt=function(e){return this.cmp(e)<0};V.lessThanOrEqualTo=V.lte=function(e){return this.cmp(e)<1};V.logarithm=V.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(Ze))throw Error(it+"NaN");if(r.s<1)throw Error(it+(r.s?"NaN":"-Infinity"));return r.eq(Ze)?new n(0):(_e=!1,t=Tt(li(r,a),li(e,a),a),_e=!0,ye(t,i))};V.minus=V.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Jw(t,e):Zw(t,(e.s=-e.s,e))};V.modulo=V.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(it+"NaN");return r.s?(_e=!1,t=Tt(r,e,0,1).times(e),_e=!0,r.minus(t)):ye(new n(r),i)};V.naturalExponential=V.exp=function(){return Qw(this)};V.naturalLogarithm=V.ln=function(){return li(this)};V.negated=V.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};V.plus=V.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Zw(t,e):Jw(t,(e.s=-e.s,e))};V.precision=V.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(fr+e);if(t=Ee(i)+1,n=i.d.length-1,r=n*xe+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};V.squareRoot=V.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(it+"NaN")}for(e=Ee(s),_e=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=pt(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=mn((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 u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(Tt(s,a,o+2)).times(.5),pt(a.d).slice(0,o)===(t=pt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ye(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return _e=!0,ye(n,r)};V.times=V.mul=function(e){var t,r,n,i,a,o,s,u,c,f=this,l=f.constructor,d=f.d,h=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,u=d.length,c=h.length,u<c&&(a=d,d=h,h=a,o=u,u=c,c=o),a=[],o=u+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=u+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%Ne|0,t=s/Ne|0;a[i]=(a[i]+t)%Ne|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,_e?ye(e,l.precision):e};V.toDecimalPlaces=V.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(bt(e,0,yn),t===void 0?t=n.rounding:bt(t,0,8),ye(r,e+Ee(r)+1,t))};V.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=vr(n,!0):(bt(e,0,yn),t===void 0?t=i.rounding:bt(t,0,8),n=ye(new i(n),e+1,t),r=vr(n,!0,e+1)),r};V.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?vr(i):(bt(e,0,yn),t===void 0?t=a.rounding:bt(t,0,8),n=ye(new a(i),e+Ee(i)+1,t),r=vr(n.abs(),!1,e+Ee(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};V.toInteger=V.toint=function(){var e=this,t=e.constructor;return ye(new t(e),Ee(e)+1,t.rounding)};V.toNumber=function(){return+this};V.toPower=V.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,c=12,f=+(e=new u(e));if(!e.s)return new u(Ze);if(s=new u(s),!s.s){if(e.s<1)throw Error(it+"Infinity");return s}if(s.eq(Ze))return s;if(n=u.precision,e.eq(Ze))return ye(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=f<0?-f:f)<=Yw){for(i=new u(Ze),t=Math.ceil(n/xe+4),_e=!1;r%2&&(i=i.times(s),Og(i.d,t)),r=mn(r/2),r!==0;)s=s.times(s),Og(s.d,t);return _e=!0,e.s<0?new u(Ze).div(i):ye(i,n)}}else if(a<0)throw Error(it+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,_e=!1,i=e.times(li(s,n+c)),_e=!0,i=Qw(i),i.s=a,i};V.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ee(i),n=vr(i,r<=a.toExpNeg||r>=a.toExpPos)):(bt(e,1,yn),t===void 0?t=a.rounding:bt(t,0,8),i=ye(new a(i),e,t),r=Ee(i),n=vr(i,e<=r||r<=a.toExpNeg,e)),n};V.toSignificantDigits=V.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(bt(e,1,yn),t===void 0?t=n.rounding:bt(t,0,8)),ye(new n(r),e,t)};V.toString=V.valueOf=V.val=V.toJSON=V[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ee(e),r=e.constructor;return vr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Zw(e,t){var r,n,i,a,o,s,u,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),_e?ye(t,l):t;if(u=e.d,c=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,s=c.length):(n=c,i=o,s=u.length),o=Math.ceil(l/xe),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=u.length,a=c.length,s-a<0&&(a=s,n=c,c=u,u=n),r=0;a;)r=(u[--a]=u[a]+c[a]+r)/Ne|0,u[a]%=Ne;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,_e?ye(t,l):t}function bt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(fr+e)}function pt(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=xe-n.length,r&&(a+=Lt(r)),a+=n;o=e[t],n=o+"",r=xe-n.length,r&&(a+=Lt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Tt=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Ne|0,o=a/Ne|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,u;if(a!=o)u=a>o?1:-1;else for(s=u=0;s<a;s++)if(n[s]!=i[s]){u=n[s]>i[s]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ne+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,u,c,f,l,d,h,y,v,p,g,b,_,O,m,w,S,A,T=n.constructor,I=n.s==i.s?1:-1,P=n.d,j=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(it+"Division by zero");for(u=n.e-i.e,S=j.length,m=P.length,h=new T(I),y=h.d=[],c=0;j[c]==(P[c]||0);)++c;if(j[c]>(P[c]||0)&&--u,a==null?b=a=T.precision:o?b=a+(Ee(n)-Ee(i))+1:b=a,b<0)return new T(0);if(b=b/xe+2|0,c=0,S==1)for(f=0,j=j[0],b++;(c<m||f)&&b--;c++)_=f*Ne+(P[c]||0),y[c]=_/j|0,f=_%j|0;else{for(f=Ne/(j[0]+1)|0,f>1&&(j=e(j,f),P=e(P,f),S=j.length,m=P.length),O=S,v=P.slice(0,S),p=v.length;p<S;)v[p++]=0;A=j.slice(),A.unshift(0),w=j[0],j[1]>=Ne/2&&++w;do f=0,s=t(j,v,S,p),s<0?(g=v[0],S!=p&&(g=g*Ne+(v[1]||0)),f=g/w|0,f>1?(f>=Ne&&(f=Ne-1),l=e(j,f),d=l.length,p=v.length,s=t(l,v,d,p),s==1&&(f--,r(l,S<d?A:j,d))):(f==0&&(s=f=1),l=j.slice()),d=l.length,d<p&&l.unshift(0),r(v,l,p),s==-1&&(p=v.length,s=t(j,v,S,p),s<1&&(f++,r(v,S<p?A:j,p))),p=v.length):s===0&&(f++,v=[0]),y[c++]=f,s&&v[0]?v[p++]=P[O]||0:(v=[P[O]],p=1);while((O++<m||v[0]!==void 0)&&b--)}return y[0]||y.shift(),h.e=u,ye(h,o?a+Ee(h)+1:a)}}();function Qw(e,t){var r,n,i,a,o,s,u=0,c=0,f=e.constructor,l=f.precision;if(Ee(e)>16)throw Error(sh+Ee(e));if(!e.s)return new f(Ze);for(_e=!1,s=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(tr(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new f(Ze),f.precision=s;;){if(i=ye(i.times(e),s),r=r.times(++u),o=a.plus(Tt(i,r,s)),pt(o.d).slice(0,s)===pt(a.d).slice(0,s)){for(;c--;)a=ye(a.times(a),s);return f.precision=l,t==null?(_e=!0,ye(a,l)):a}a=o}}function Ee(e){for(var t=e.e*xe,r=e.d[0];r>=10;r/=10)t++;return t}function dl(e,t,r){if(t>e.LN10.sd())throw _e=!0,r&&(e.precision=r),Error(it+"LN10 precision limit exceeded");return ye(new e(e.LN10),t)}function Lt(e){for(var t="";e--;)t+="0";return t}function li(e,t){var r,n,i,a,o,s,u,c,f,l=1,d=10,h=e,y=h.d,v=h.constructor,p=v.precision;if(h.s<1)throw Error(it+(h.s?"NaN":"-Infinity"));if(h.eq(Ze))return new v(0);if(t==null?(_e=!1,c=p):c=t,h.eq(10))return t==null&&(_e=!0),dl(v,c);if(c+=d,v.precision=c,r=pt(y),n=r.charAt(0),a=Ee(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=pt(h.d),n=r.charAt(0),l++;a=Ee(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return u=dl(v,c+2,p).times(a+""),h=li(new v(n+"."+r.slice(1)),c-d).plus(u),v.precision=p,t==null?(_e=!0,ye(h,p)):h;for(s=o=h=Tt(h.minus(Ze),h.plus(Ze),c),f=ye(h.times(h),c),i=3;;){if(o=ye(o.times(f),c),u=s.plus(Tt(o,new v(i),c)),pt(u.d).slice(0,c)===pt(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(dl(v,c+2,p).times(a+""))),s=Tt(s,new v(l),c),v.precision=p,t==null?(_e=!0,ye(s,p)):s;s=u,i+=2}}function _g(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=mn(r/xe),e.d=[],n=(r+1)%xe,r<0&&(n+=xe),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=xe;n<i;)e.d.push(+t.slice(n,n+=xe));t=t.slice(n),n=xe-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),_e&&(e.e>ka||e.e<-ka))throw Error(sh+r)}else e.s=0,e.e=0,e.d=[0];return e}function ye(e,t,r){var n,i,a,o,s,u,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=xe,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/xe),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=xe,i=n-xe+o}if(r!==void 0&&(a=tr(10,o-i-1),s=c/a%10|0,u=t<0||l[f+1]!==void 0||c%a,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?c/tr(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return u?(a=Ee(e),l.length=1,t=t-a-1,l[0]=tr(10,(xe-t%xe)%xe),e.e=mn(-t/xe)||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=tr(10,xe-n),l[f]=i>0?(c/tr(10,o-i)%tr(10,i)|0)*a:0),u)for(;;)if(f==0){(l[0]+=a)==Ne&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Ne)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(_e&&(e.e>ka||e.e<-ka))throw Error(sh+Ee(e));return e}function Jw(e,t){var r,n,i,a,o,s,u,c,f,l,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),_e?ye(t,h):t;if(u=e.d,l=t.d,n=t.e,c=e.e,u=u.slice(),o=c-n,o){for(f=o<0,f?(r=u,o=-o,s=l.length):(r=l,n=c,s=u.length),i=Math.max(Math.ceil(h/xe),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,s=l.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(u[i]!=l[i]){f=u[i]<l[i];break}o=0}for(f&&(r=u,u=l,l=r,t.s=-t.s),s=u.length,i=l.length-s;i>0;--i)u[s++]=0;for(i=l.length;i>o;){if(u[--i]<l[i]){for(a=i;a&&u[--a]===0;)u[a]=Ne-1;--u[a],u[i]+=Ne}u[i]-=l[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,_e?ye(t,h):t):new d(0)}function vr(e,t,r){var n,i=Ee(e),a=pt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Lt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Lt(-i-1)+a,r&&(n=r-o)>0&&(a+=Lt(n))):i>=o?(a+=Lt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Lt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Lt(n))),e.s<0?"-"+a:a}function Og(e,t){if(e.length>t)return e.length=t,!0}function e1(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(fr+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 _g(o,a.toString())}else if(typeof a!="string")throw Error(fr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,$C.test(a))_g(o,a);else throw Error(fr+a)}if(i.prototype=V,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=e1,i.config=i.set=IC,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 IC(e){if(!e||typeof e!="object")throw Error(it+"Object expected");var t,r,n,i=["precision",1,yn,"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(mn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(fr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(fr+r+": "+n);return this}var uh=e1(CC);Ze=new uh(1);const de=uh;function kC(e){return qC(e)||RC(e)||DC(e)||NC()}function NC(){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 DC(e,t){if(e){if(typeof e=="string")return xf(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 xf(e,t)}}function RC(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function qC(e){if(Array.isArray(e))return xf(e)}function xf(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 LC=function(t){return t},t1={},r1=function(t){return t===t1},Sg=function(t){return function r(){return arguments.length===0||arguments.length===1&&r1(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},BC=function e(t,r){return t===1?r:Sg(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==t1}).length;return o>=t?r.apply(void 0,i):e(t-o,Sg(function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var f=i.map(function(l){return r1(l)?u.shift():l});return r.apply(void 0,kC(f).concat(u))}))})},Co=function(t){return BC(t.length,t)},wf=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},FC=Co(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),WC=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return LC;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,u){return u(s)},a.apply(void 0,arguments))}},_f=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},n1=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(s,u){return s===r[u]})||(r=a,n=t.apply(void 0,a)),n}};function zC(e){var t;return e===0?t=1:t=Math.floor(new de(e).abs().log(10).toNumber())+1,t}function UC(e,t,r){for(var n=new de(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var KC=Co(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),HC=Co(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),GC=Co(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const $o={rangeStep:UC,getDigitCount:zC,interpolateNumber:KC,uninterpolateNumber:HC,uninterpolateTruncation:GC};function Of(e){return YC(e)||XC(e)||i1(e)||VC()}function VC(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XC(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function YC(e){if(Array.isArray(e))return Sf(e)}function fi(e,t){return JC(e)||QC(e,t)||i1(e,t)||ZC()}function ZC(){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 i1(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 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}function QC(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](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function JC(e){if(Array.isArray(e))return e}function a1(e){var t=fi(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function o1(e,t,r){if(e.lte(0))return new de(0);var n=$o.getDigitCount(e.toNumber()),i=new de(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new de(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?u:new de(Math.ceil(u))}function e$(e,t,r){var n=1,i=new de(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new de(10).pow($o.getDigitCount(e)-1),i=new de(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new de(Math.floor(e)))}else e===0?i=new de(Math.floor((t-1)/2)):r||(i=new de(Math.floor(e)));var o=Math.floor((t-1)/2),s=WC(FC(function(u){return i.add(new de(u-o).mul(n)).toNumber()}),wf);return s(0,t)}function s1(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 de(0),tickMin:new de(0),tickMax:new de(0)};var a=o1(new de(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new de(0):(o=new de(e).add(t).div(2),o=o.sub(new de(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new de(t).sub(o).div(a).toNumber()),c=s+u+1;return c>r?s1(e,t,r,n,i+1):(c<r&&(u=t>0?u+(r-c):u,s=t>0?s:s+(r-c)),{step:a,tickMin:o.sub(new de(s).mul(a)),tickMax:o.add(new de(u).mul(a))})}function t$(e){var t=fi(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),s=a1([r,n]),u=fi(s,2),c=u[0],f=u[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(Of(wf(0,i-1).map(function(){return 1/0}))):[].concat(Of(wf(0,i-1).map(function(){return-1/0})),[f]);return r>n?_f(l):l}if(c===f)return e$(c,i,a);var d=s1(c,f,o,a),h=d.step,y=d.tickMin,v=d.tickMax,p=$o.rangeStep(y,v.add(new de(.1).mul(h)),h);return r>n?_f(p):p}function r$(e,t){var r=fi(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=a1([n,i]),s=fi(o,2),u=s[0],c=s[1];if(u===-1/0||c===1/0)return[n,i];if(u===c)return[u];var f=Math.max(t,2),l=o1(new de(c).sub(u).div(f-1),a,0),d=[].concat(Of($o.rangeStep(new de(u),new de(c).sub(new de(.99).mul(l)),l)),[c]);return n>i?_f(d):d}var n$=n1(t$),i$=n1(r$),a$="Invariant failed";function yr(e,t){throw new Error(a$)}var o$=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Na.apply(this,arguments)}function s$(e,t){return f$(e)||l$(e,t)||c$(e,t)||u$()}function u$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c$(e,t){if(e){if(typeof e=="string")return Ag(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 Ag(e,t)}}function Ag(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function f$(e){if(Array.isArray(e))return e}function d$(e,t){if(e==null)return{};var r=h$(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 h$(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 p$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v$(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 y$(e,t,r){return t&&v$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function m$(e,t,r){return t=Da(t),g$(e,u1()?Reflect.construct(t,r||[],Da(e).constructor):t.apply(e,r))}function g$(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 b$(e)}function b$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u1=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Da(e)}function x$(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 c1(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=w$(e,"string");return Gr(t)=="symbol"?t:t+""}function w$(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qi=function(e){function t(){return p$(this,t),m$(this,t,arguments)}return x$(t,e),y$(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,u=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=d$(n,o$),h=te(d,!1);this.props.direction==="x"&&f.type!=="number"&&yr();var y=u.map(function(v){var p=c(v,s),g=p.x,b=p.y,_=p.value,O=p.errorVal;if(!O)return null;var m=[],w,S;if(Array.isArray(O)){var A=s$(O,2);w=A[0],S=A[1]}else w=S=O;if(a==="vertical"){var T=f.scale,I=b+i,P=I+o,j=I-o,M=T(_-w),N=T(_+S);m.push({x1:N,y1:P,x2:N,y2:j}),m.push({x1:M,y1:I,x2:N,y2:I}),m.push({x1:M,y1:P,x2:M,y2:j})}else if(a==="horizontal"){var k=l.scale,$=g+i,B=$-o,q=$+o,L=k(_-w),K=k(_+S);m.push({x1:B,y1:K,x2:q,y2:K}),m.push({x1:$,y1:L,x2:$,y2:K}),m.push({x1:B,y1:L,x2:q,y2:L})}return E.createElement(ge,Na({className:"recharts-errorBar",key:"bar-".concat(m.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},h),m.map(function(G){return E.createElement("line",Na({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return E.createElement(ge,{className:"recharts-errorBars"},y)}}])}(E.Component);c1(qi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});c1(qi,"displayName","ErrorBar");function di(e){"@babel/helpers - typeof";return di=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},di(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 Jt(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){_$(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 _$(e,t,r){return t=O$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O$(e){var t=S$(e,"string");return di(t)=="symbol"?t:t+""}function S$(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f1=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ye(r,cr);if(!o)return null;var s=cr.defaultProps,u=s!==void 0?Jt(Jt({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,h=l.props,y=h.sectors||h.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,h=d!==void 0?Jt(Jt({},d),l.props):{},y=h.dataKey,v=h.name,p=h.legendType,g=h.hide;return{inactive:g,dataKey:y,type:u.iconType||p||"square",color:ch(l),value:v||y,payload:h}}),Jt(Jt(Jt({},u),cr.getWithHeight(o,i)),{},{payload:c,item:o})};function hi(e){"@babel/helpers - typeof";return hi=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},hi(e)}function jg(e){return T$(e)||j$(e)||P$(e)||A$()}function A$(){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 P$(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 j$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T$(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 Tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(r),!0).forEach(function(n){Dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dr(e,t,r){return t=E$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E$(e){var t=M$(e,"string");return hi(t)=="symbol"?t:t+""}function M$(e,t){if(hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ue(e,t,r){return re(e)||re(t)?r:ke(t)?rt(e,t,r):ee(t)?t(e):r}function Gn(e,t,r,n){var i=TC(e,function(s){return Ue(s,t)});if(r==="number"){var a=i.filter(function(s){return z(s)||parseFloat(s)});return a.length?[Mo(a),Wt(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!re(s)}):i;return o.map(function(s){return ke(s)||s instanceof Date?s:""})}var C$=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,s=(r=n?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,c=0;c<s;c++){var f=c>0?i[c-1].coordinate:i[s-1].coordinate,l=i[c].coordinate,d=c>=s-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(lt(l-f)!==lt(d-l)){var y=[];if(lt(d-l)===lt(u[1]-u[0])){h=d;var v=l+u[1]-u[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{h=f;var p=d+u[1]-u[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var g=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var b=Math.min(f,d),_=Math.max(f,d);if(t>(b+l)/2&&t<=(_+l)/2){o=i[c].index;break}}}else for(var O=0;O<s;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},ch=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?je(je({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:s;break;default:u=s;break}return u},$$=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),u=0,c=s.length;u<c;u++)for(var f=a[s[u]].stackGroups,l=Object.keys(f),d=0,h=l.length;d<h;d++){var y=f[l[d]],v=y.items,p=y.cateAxisId,g=v.filter(function(S){return Pt(S.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,_=b!==void 0?je(je({},b),g[0].props):g[0].props,O=_.barSize,m=_[p];o[m]||(o[m]=[]);var w=re(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:re(w)?void 0:pr(w,n,0)})}}return o},I$=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,u=o.length;if(u<1)return null;var c=pr(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/u,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(u-1)*c,y>=i&&(y-=(u-1)*c,c=0),y>=i&&h>0&&(d=!0,h*=.9,y=u*h);var v=(i-y)/2>>0,p={offset:v-c,size:0};f=o.reduce(function(O,m){var w={item:m.item,position:{offset:p.offset+p.size+c,size:d?h:m.barSize}},S=[].concat(jg(O),[w]);return p=S[S.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){S.push({item:A,position:p})}),S},l)}else{var g=pr(n,i,0,!0);i-2*g-(u-1)*c<=0&&(c=0);var b=(i-2*g-(u-1)*c)/u;b>1&&(b>>=0);var _=s===+s?Math.min(b,s):b;f=o.reduce(function(O,m,w){var S=[].concat(jg(O),[{item:m.item,position:{offset:g+(b+c)*w+(b-_)/2,size:_}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},l)}return f},k$=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,u=o-(s.left||0)-(s.right||0),c=f1({children:a,legendWidth:u});if(c){var f=i||{},l=f.width,d=f.height,h=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&h!=="center"&&z(t[h]))return je(je({},t),{},Dr({},h,t[h]+(l||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&y!=="middle"&&z(t[y]))return je(je({},t),{},Dr({},y,t[y]+(d||0)))}return t},N$=function(t,r,n){return re(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},d1=function(t,r,n,i,a){var o=r.props.children,s=nt(o,qi).filter(function(c){return N$(i,a,c.props.direction)});if(s&&s.length){var u=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Ue(f,n);if(re(l))return c;var d=Array.isArray(l)?[Mo(l),Wt(l)]:[l,l],h=u.reduce(function(y,v){var p=Ue(f,v,0),g=d[0]-Math.abs(Array.isArray(p)?p[0]:p),b=d[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},D$=function(t,r,n,i,a){var o=r.map(function(s){return d1(t,s,n,a,i)}).filter(function(s){return!re(s)});return o&&o.length?o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]):null},h1=function(t,r,n,i,a){var o=r.map(function(u){var c=u.props.dataKey;return n==="number"&&c&&d1(t,u,c,i)||Gn(t,c,n,a)});if(n==="number")return o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(u,c){for(var f=0,l=c.length;f<l;f++)s[c[f]]||(s[c[f]]=!0,u.push(c[f]));return u},[])},p1=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},v1=function(t,r,n,i){if(i)return t.map(function(u){return u.coordinate});var a,o,s=t.map(function(u){return u.coordinate===r&&(a=!0),u.coordinate===n&&(o=!0),u.coordinate});return a||s.push(r),o||s.push(n),s},St=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/u:0;if(c=t.axisType==="angleAxis"&&s?.length>=2?lt(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+c,value:l,offset:c}});return f.filter(function(l){return!dn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+c,value:l,index:d,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,d){return{coordinate:i(l)+c,value:a?a[l]:l,index:d,offset:c}})},hl=new WeakMap,ea=function(t,r){if(typeof r!="function")return t;hl.has(t)||hl.set(t,new WeakMap);var n=hl.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},R$=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:ai(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Ia(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Hn(),realScaleType:"point"}:a==="category"?{scale:ai(),realScaleType:"band"}:{scale:Ia(),realScaleType:"linear"};if(hr(i)){var u="scale".concat(xo(i));return{scale:(hg[u]||Hn)(),realScaleType:hg[u]?u:"point"}}return ee(i)?{scale:i}:{scale:Hn(),realScaleType:"point"}},Eg=1e-4,q$=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])-Eg,o=Math.max(i[0],i[1])+Eg,s=t(r[0]),u=t(r[n-1]);(s<a||s>o||u<a||u>o)&&t.domain([r[0],r[n-1]])}},L$=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},B$=function(t,r){if(!r||r.length!==2||!z(r[0])||!z(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(!z(t[0])||t[0]<n)&&(a[0]=n),(!z(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},F$=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,s=0;s<r;++s){var u=dn(t[s][n][1])?t[s][n][0]:t[s][n][1];u>=0?(t[s][n][0]=a,t[s][n][1]=a+u,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+u,o=t[s][n][1])}},W$=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 s=dn(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},z$={sign:F$,expand:ZA,none:Br,silhouette:QA,wiggle:JA,positive:W$},U$=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=z$[n],o=YA().keys(i).value(function(s,u){return+Ue(s,u,0)}).order(af).offset(a);return o(t)},K$=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,u={},c=s.reduce(function(l,d){var h,y=(h=d.type)!==null&&h!==void 0&&h.defaultProps?je(je({},d.type.defaultProps),d.props):d.props,v=y.stackId,p=y.hide;if(p)return l;var g=y[n],b=l[g]||{hasStack:!1,stackGroups:{}};if(ke(v)){var _=b.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};_.items.push(d),b.hasStack=!0,b.stackGroups[v]=_}else b.stackGroups[hn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return je(je({},l),{},Dr({},g,b))},u),f={};return Object.keys(c).reduce(function(l,d){var h=c[d];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,p){var g=h.stackGroups[p];return je(je({},v),{},Dr({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:U$(t,g.items,a)}))},y)}return je(je({},l),{},Dr({},d,h))},f)},H$=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="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=n$(c,a,s);return t.domain([Mo(f),Wt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=i$(l,a,s);return{niceTicks:d}}return null};function Ra(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&&!re(i[t.dataKey])){var s=pa(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=Ue(i,re(o)?t.dataKey:o);return re(u)?null:t.scale(u)}var Mg=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var u=Ue(o,r.dataKey,r.domain[s]);return re(u)?null:r.scale(u)-a/2+i},G$=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]},V$=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?je(je({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(ke(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},X$=function(t){return t.reduce(function(r,n){return[Mo(n.concat([r[0]]).filter(z)),Wt(n.concat([r[1]]).filter(z))]},[1/0,-1/0])},y1=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,u=s.reduce(function(c,f){var l=X$(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(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Cg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$g=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jf=function(t,r,n){if(ee(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(z(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Cg.test(t[0])){var a=+Cg.exec(t[0])[1];i[0]=r[0]-a}else ee(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(z(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if($g.test(t[1])){var o=+$g.exec(t[1])[1];i[1]=r[1]+o}else ee(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},qa=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=Kd(r,function(l){return l.coordinate}),o=1/0,s=1,u=a.length;s<u;s++){var c=a[s],f=a[s-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Ig=function(t,r,n){return!t||!t.length||Hr(t,rt(n,"type.defaultProps.domain"))?r:t},m1=function(t,r){var n=t.type.defaultProps?je(je({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,u=n.tooltipType,c=n.chartType,f=n.hide;return je(je({},te(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:ch(t),value:Ue(r,i),type:u,payload:r,chartType:c,hide:f})};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 kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ng(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){Y$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y$(e,t,r){return t=Z$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z$(e){var t=Q$(e,"string");return pi(t)=="symbol"?t:t+""}function Q$(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)}var La=Math.PI/180,J$=function(t){return t*180/Math.PI},Le=function(t,r,n,i){return{x:t+Math.cos(-La*i)*n,y:r+Math.sin(-La*i)*n}},eI=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))},tI=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=eI({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var u=(n-a)/s,c=Math.acos(u);return i>o&&(c=2*Math.PI-c),{radius:s,angle:J$(c),angleInRadian:c}},rI=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}},nI=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},Dg=function(t,r){var n=t.x,i=t.y,a=tI({x:n,y:i},r),o=a.radius,s=a.angle,u=r.innerRadius,c=r.outerRadius;if(o<u||o>c)return!1;if(o===0)return!0;var f=rI(r),l=f.startAngle,d=f.endAngle,h=s,y;if(l<=d){for(;h>d;)h-=360;for(;h<l;)h+=360;y=h>=l&&h<=d}else{for(;h>l;)h-=360;for(;h<d;)h+=360;y=h>=d&&h<=l}return y?Ng(Ng({},r),{},{radius:o,angle:nI(h,r)}):null};function vi(e){"@babel/helpers - typeof";return vi=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},vi(e)}var iI=["offset"];function aI(e){return cI(e)||uI(e)||sI(e)||oI()}function oI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sI(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 uI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cI(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 lI(e,t){if(e==null)return{};var r=fI(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 fI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rg(Object(r),!0).forEach(function(n){dI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dI(e,t,r){return t=hI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hI(e){var t=pI(e,"string");return vi(t)=="symbol"?t:t+""}function pI(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yi.apply(this,arguments)}var vI=function(t){var r=t.value,n=t.formatter,i=re(t.children)?r:t.children;return ee(n)?n(i):i},yI=function(t,r){var n=lt(r-t),i=Math.min(Math.abs(r-t),360);return n*i},mI=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,u=a,c=u.cx,f=u.cy,l=u.innerRadius,d=u.outerRadius,h=u.startAngle,y=u.endAngle,v=u.clockWise,p=(l+d)/2,g=yI(h,y),b=g>=0?1:-1,_,O;i==="insideStart"?(_=h+b*o,O=v):i==="insideEnd"?(_=y-b*o,O=!v):i==="end"&&(_=y+b*o,O=v),O=g<=0?O:!O;var m=Le(c,f,p,_),w=Le(c,f,p,_+(O?1:-1)*359),S="M".concat(m.x,",").concat(m.y,` 20 A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`, 21 `).concat(w.x,",").concat(w.y),A=re(t.id)?hn("recharts-radial-line-"):t.id;return E.createElement("text",yi({},n,{dominantBaseline:"central",className:ne("recharts-radial-bar-label",s)}),E.createElement("defs",null,E.createElement("path",{id:A,d:S})),E.createElement("textPath",{xlinkHref:"#".concat(A)},r))},gI=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,u=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,d=(f+l)/2;if(i==="outside"){var h=Le(o,s,c+n,d),y=h.x,v=h.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var p=(u+c)/2,g=Le(o,s,p,d),b=g.x,_=g.y;return{x:b,y:_,textAnchor:"middle",verticalAnchor:"middle"}},bI=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,u=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*i,h=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,p=v*i,g=v>0?"end":"start",b=v>0?"start":"end";if(a==="top"){var _={x:s+c/2,y:u-l*i,textAnchor:"middle",verticalAnchor:h};return Ie(Ie({},_),n?{height:Math.max(u-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:s+c/2,y:u+f+d,textAnchor:"middle",verticalAnchor:y};return Ie(Ie({},O),n?{height:Math.max(n.y+n.height-(u+f),0),width:c}:{})}if(a==="left"){var m={x:s-p,y:u+f/2,textAnchor:g,verticalAnchor:"middle"};return Ie(Ie({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var w={x:s+c+p,y:u+f/2,textAnchor:b,verticalAnchor:"middle"};return Ie(Ie({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var S=n?{width:c,height:f}:{};return a==="insideLeft"?Ie({x:s+p,y:u+f/2,textAnchor:b,verticalAnchor:"middle"},S):a==="insideRight"?Ie({x:s+c-p,y:u+f/2,textAnchor:g,verticalAnchor:"middle"},S):a==="insideTop"?Ie({x:s+c/2,y:u+d,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?Ie({x:s+c/2,y:u+f-d,textAnchor:"middle",verticalAnchor:h},S):a==="insideTopLeft"?Ie({x:s+p,y:u+d,textAnchor:b,verticalAnchor:y},S):a==="insideTopRight"?Ie({x:s+c-p,y:u+d,textAnchor:g,verticalAnchor:y},S):a==="insideBottomLeft"?Ie({x:s+p,y:u+f-d,textAnchor:b,verticalAnchor:h},S):a==="insideBottomRight"?Ie({x:s+c-p,y:u+f-d,textAnchor:g,verticalAnchor:h},S):fn(a)&&(z(a.x)||ir(a.x))&&(z(a.y)||ir(a.y))?Ie({x:s+pr(a.x,c),y:u+pr(a.y,f),textAnchor:"end",verticalAnchor:"end"},S):Ie({x:s+c/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},S)},xI=function(t){return"cx"in t&&z(t.cx)};function Fe(e){var t=e.offset,r=t===void 0?5:t,n=lI(e,iI),i=Ie({offset:r},n),a=i.viewBox,o=i.position,s=i.value,u=i.children,c=i.content,f=i.className,l=f===void 0?"":f,d=i.textBreakAll;if(!a||re(s)&&re(u)&&!C.isValidElement(c)&&!ee(c))return null;if(C.isValidElement(c))return C.cloneElement(c,i);var h;if(ee(c)){if(h=C.createElement(c,i),C.isValidElement(h))return h}else h=vI(i);var y=xI(a),v=te(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return mI(i,h,v);var p=y?gI(i):bI(i);return E.createElement(ja,yi({className:ne("recharts-label",l)},v,p,{breakAll:d}),h)}Fe.displayName="Label";var g1=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,u=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,h=t.top,y=t.left,v=t.width,p=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(z(v)&&z(p)){if(z(l)&&z(d))return{x:l,y:d,width:v,height:p};if(z(h)&&z(y))return{x:h,y,width:v,height:p}}return z(l)&&z(d)?{x:l,y:d,width:0,height:0}:z(r)&&z(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||u||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},wI=function(t,r){return t?t===!0?E.createElement(Fe,{key:"label-implicit",viewBox:r}):ke(t)?E.createElement(Fe,{key:"label-implicit",viewBox:r,value:t}):C.isValidElement(t)?t.type===Fe?C.cloneElement(t,{key:"label-implicit",viewBox:r}):E.createElement(Fe,{key:"label-implicit",content:t,viewBox:r}):ee(t)?E.createElement(Fe,{key:"label-implicit",content:t,viewBox:r}):fn(t)?E.createElement(Fe,yi({viewBox:r},t,{key:"label-implicit"})):null:null},_I=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=g1(t),o=nt(i,Fe).map(function(u,c){return C.cloneElement(u,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var s=wI(t.label,r||a);return[s].concat(aI(o))};Fe.parseViewBox=g1;Fe.renderCallByParent=_I;var pl,qg;function OI(){if(qg)return pl;qg=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return pl=e,pl}var SI=OI();const AI=be(SI);function mi(e){"@babel/helpers - typeof";return mi=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},mi(e)}var PI=["valueAccessor"],jI=["data","dataKey","clockWise","id","textBreakAll"];function TI(e){return $I(e)||CI(e)||MI(e)||EI()}function EI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MI(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 CI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $I(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 Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ba.apply(this,arguments)}function 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 Bg(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){II(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 II(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=NI(e,"string");return mi(t)=="symbol"?t:t+""}function NI(e,t){if(mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fg(e,t){if(e==null)return{};var r=DI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var RI=function(t){return Array.isArray(t.value)?AI(t.value):t.value};function Et(e){var t=e.valueAccessor,r=t===void 0?RI:t,n=Fg(e,PI),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,c=Fg(n,jI);return!i||!i.length?null:E.createElement(ge,{className:"recharts-label-list"},i.map(function(f,l){var d=re(a)?r(f,l):Ue(f&&f.payload,a),h=re(s)?{}:{id:"".concat(s,"-").concat(l)};return E.createElement(Fe,Ba({},te(f,!0),c,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:Fe.parseViewBox(re(o)?f:Bg(Bg({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Et.displayName="LabelList";function qI(e,t){return e?e===!0?E.createElement(Et,{key:"labelList-implicit",data:t}):E.isValidElement(e)||ee(e)?E.createElement(Et,{key:"labelList-implicit",data:t,content:e}):fn(e)?E.createElement(Et,Ba({data:t},e,{key:"labelList-implicit"})):null:null}function LI(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=nt(n,Et).map(function(o,s){return C.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=qI(e.label,t);return[a].concat(TI(i))}Et.renderCallByParent=LI;function gi(e){"@babel/helpers - typeof";return gi=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},gi(e)}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 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 zg(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){BI(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 BI(e,t,r){return t=FI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FI(e){var t=WI(e,"string");return gi(t)=="symbol"?t:t+""}function WI(e,t){if(gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zI=function(t,r){var n=lt(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ta=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,f=u*(s?1:-1)+i,l=Math.asin(u/f)/La,d=c?a:a+o*l,h=Le(r,n,f,d),y=Le(r,n,i,d),v=c?a-o*l:a,p=Le(r,n,f*Math.cos(l*La),v);return{center:h,circleTangency:y,lineTangency:p,theta:l}},b1=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,u=zI(o,s),c=o+u,f=Le(r,n,a,o),l=Le(r,n,a,c),d="M ".concat(f.x,",").concat(f.y,` 23 A `).concat(a,",").concat(a,`,0, 24 `).concat(+(Math.abs(u)>180),",").concat(+(o>c),`, 25 `).concat(l.x,",").concat(l.y,` 26 `);if(i>0){var h=Le(r,n,i,o),y=Le(r,n,i,c);d+="L ".concat(y.x,",").concat(y.y,` 27 A `).concat(i,",").concat(i,`,0, 28 `).concat(+(Math.abs(u)>180),",").concat(+(o<=c),`, 29 `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},UI=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=lt(f-c),d=ta({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:u}),h=d.circleTangency,y=d.lineTangency,v=d.theta,p=ta({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:u}),g=p.circleTangency,b=p.lineTangency,_=p.theta,O=u?Math.abs(c-f):Math.abs(c-f)-v-_;if(O<0)return s?"M ".concat(y.x,",").concat(y.y,` 30 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 31 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 32 `):b1({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,` 33 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,` 34 A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,` 35 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(b.x,",").concat(b.y,` 36 `);if(i>0){var w=ta({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),S=w.circleTangency,A=w.lineTangency,T=w.theta,I=ta({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),P=I.circleTangency,j=I.lineTangency,M=I.theta,N=u?Math.abs(c-f):Math.abs(c-f)-T-M;if(N<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(j.x,",").concat(j.y,` 37 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(P.x,",").concat(P.y,` 38 A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(l>0),",").concat(S.x,",").concat(S.y,` 39 A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},KI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},x1=function(t){var r=zg(zg({},KI),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,u=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var h=ne("recharts-sector",d),y=o-a,v=pr(s,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=UI({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:f,endAngle:l}):p=b1({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),E.createElement("path",Mf({},te(r,!0),{className:h,d:p,role:"img"}))};function bi(e){"@babel/helpers - typeof";return bi=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},bi(e)}function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
39for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cf.apply(this,arguments)}function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ug(Object(r),!0).forEach(function(n){HI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HI(e,t,r){return t=GI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GI(e){var t=VI(e,"string");return bi(t)=="symbol"?t:t+""}function VI(e,t){if(bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hg={curveBasisClosed:LA,curveBasisOpen:BA,curveBasis:qA,curveBumpX:SA,curveBumpY:AA,curveLinearClosed:FA,curveLinear:_o,curveMonotoneX:WA,curveMonotoneY:zA,curveNatural:UA,curveStep:KA,curveStepAfter:GA,curveStepBefore:HA},ra=function(t){return t.x===+t.x&&t.y===+t.y},Mn=function(t){return t.x},Cn=function(t){return t.y},XI=function(t,r){if(ee(t))return t;var n="curve".concat(xo(t));return(n==="curveMonotone"||n==="curveBump")&&r?Hg["".concat(n).concat(r==="vertical"?"Y":"X")]:Hg[n]||_o},YI=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,u=t.connectNulls,c=u===void 0?!1:u,f=XI(n,s),l=c?a.filter(function(v){return ra(v)}):a,d;if(Array.isArray(o)){var h=c?o.filter(function(v){return ra(v)}):o,y=l.map(function(v,p){return Kg(Kg({},v),{},{base:h[p]})});return s==="vertical"?d=Gi().y(Cn).x1(Mn).x0(function(v){return v.base.x}):d=Gi().x(Mn).y1(Cn).y0(function(v){return v.base.y}),d.defined(ra).curve(f),d(y)}return s==="vertical"&&z(o)?d=Gi().y(Cn).x1(Mn).x0(o):z(o)?d=Gi().x(Mn).y1(Cn).y0(o):d=Ex().x(Mn).y(Cn),d.defined(ra).curve(f),d(l)},Rr=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?YI(t):i;return C.createElement("path",Cf({},te(t,!1),va(t),{className:ne("recharts-curve",r),d:o,ref:a}))},vl={exports:{}},yl,Gg;function ZI(){if(Gg)return yl;Gg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return yl=e,yl}var ml,Vg;function QI(){if(Vg)return ml;Vg=1;var e=ZI();function t(){}function r(){}return r.resetWarningCache=t,ml=function(){function n(o,s,u,c,f,l){if(l!==e){var d=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 d.name="Invariant Violation",d}}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},ml}var Xg;function JI(){return Xg||(Xg=1,vl.exports=QI()()),vl.exports}var ek=JI();const le=be(ek);var tk=Object.getOwnPropertyNames,rk=Object.getOwnPropertySymbols,nk=Object.prototype.hasOwnProperty;function Yg(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function na(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var u=e(r,n,i);return a.delete(r),a.delete(n),u}}function Zg(e){return tk(e).concat(rk(e))}var ik=Object.hasOwn||function(e,t){return nk.call(e,t)};function Or(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var ak="__v",ok="__o",sk="_owner",Qg=Object.getOwnPropertyDescriptor,Jg=Object.keys;function uk(e,t,r){var 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 ck(e,t){return Or(e.getTime(),t.getTime())}function lk(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function fk(e,t){return e===t}function eb(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,u=0;(o=a.next())&&!o.done;){for(var c=t.entries(),f=!1,l=0;(s=c.next())&&!s.done;){if(i[l]){l++;continue}var d=o.value,h=s.value;if(r.equals(d[0],h[0],u,l,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;u++}return!0}var dk=Or;function hk(e,t,r){var n=Jg(e),i=n.length;if(Jg(t).length!==i)return!1;for(;i-- >0;)if(!w1(e,t,r,n[i]))return!1;return!0}function $n(e,t,r){var n=Zg(e),i=n.length;if(Zg(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!w1(e,t,r,a)||(o=Qg(e,a),s=Qg(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function pk(e,t){return Or(e.valueOf(),t.valueOf())}function vk(e,t){return e.source===t.source&&e.flags===t.flags}function tb(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var u=t.values(),c=!1,f=0;(s=u.next())&&!s.done;){if(!i[f]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function yk(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function mk(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 w1(e,t,r,n){return(n===sk||n===ok||n===ak)&&(e.$$typeof||t.$$typeof)?!0:ik(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var gk="[object Arguments]",bk="[object Boolean]",xk="[object Date]",wk="[object Error]",_k="[object Map]",Ok="[object Number]",Sk="[object Object]",Ak="[object RegExp]",Pk="[object Set]",jk="[object String]",Tk="[object URL]",Ek=Array.isArray,rb=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,nb=Object.assign,Mk=Object.prototype.toString.call.bind(Object.prototype.toString);function Ck(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,f=e.areSetsEqual,l=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(y,v,p){if(y===v)return!0;
39if(y==null||v==null)return!1;var g=typeof y;if(g!==typeof v)return!1;if(g!=="object")return g==="number"?o(y,v,p):g==="function"?i(y,v,p):!1;var b=y.constructor;if(b!==v.constructor)return!1;if(b===Object)return s(y,v,p);if(Ek(y))return t(y,v,p);if(rb!=null&&rb(y))return l(y,v,p);if(b===Date)return r(y,v,p);if(b===RegExp)return c(y,v,p);if(b===Map)return a(y,v,p);if(b===Set)return f(y,v,p);var _=Mk(y);return _===xk?r(y,v,p):_===Ak?c(y,v,p):_===_k?a(y,v,p):_===Pk?f(y,v,p):_===Sk?typeof y.then!="function"&&typeof v.then!="function"&&s(y,v,p):_===Tk?d(y,v,p):_===wk?n(y,v,p):_===gk?s(y,v,p):_===bk||_===Ok||_===jk?u(y,v,p):!1}}function $k(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?$n:uk,areDatesEqual:ck,areErrorsEqual:lk,areFunctionsEqual:fk,areMapsEqual:n?Yg(eb,$n):eb,areNumbersEqual:dk,areObjectsEqual:n?$n:hk,arePrimitiveWrappersEqual:pk,areRegExpsEqual:vk,areSetsEqual:n?Yg(tb,$n):tb,areTypedArraysEqual:n?$n:yk,areUrlsEqual:mk};if(r&&(i=nb({},i,r(i))),t){var a=na(i.areArraysEqual),o=na(i.areMapsEqual),s=na(i.areObjectsEqual),u=na(i.areSetsEqual);i=nb({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return i}function Ik(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function kk(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,c){var f=n(),l=f.cache,d=l===void 0?t?new WeakMap:void 0:l,h=f.meta;return r(u,c,{cache:d,equals:i,meta:h,strict:a})};if(t)return function(u,c){return r(u,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(u,c){return r(u,c,o)}}var Nk=Xt();Xt({strict:!0});Xt({circular:!0});Xt({circular:!0,strict:!0});Xt({createInternalComparator:function(){return Or}});Xt({strict:!0,createInternalComparator:function(){return Or}});Xt({circular:!0,createInternalComparator:function(){return Or}});Xt({circular:!0,createInternalComparator:function(){return Or},strict:!0});function Xt(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=$k(e),u=Ck(s),c=n?n(u):Ik(u);return kk({circular:r,comparator:u,createState:i,equals:c,strict:o})}function Dk(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function ib(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):Dk(i)};requestAnimationFrame(n)}function $f(e){"@babel/helpers - typeof";return $f=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},$f(e)}function Rk(e){return Fk(e)||Bk(e)||Lk(e)||qk()}function qk(){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 Lk(e,t){if(e){if(typeof e=="string")return ab(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 ab(e,t)}}function ab(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 Bk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fk(e){if(Array.isArray(e))return e}function Wk(){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,s=Rk(o),u=s[0],c=s.slice(1);if(typeof u=="number"){ib(i.bind(null,c),u);return}i(u),ib(i.bind(null,c));return}$f(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 xi(e){"@babel/helpers - typeof";return xi=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},xi(e)}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}
vendor: 169,304 bytes, lines 40-62
40function sb(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){_1(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 _1(e,t,r){return t=zk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zk(e){var t=Uk(e,"string");return xi(t)==="symbol"?t:String(t)}function Uk(e,t){if(xi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kk=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},Hk=function(t){return t},Gk=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Vn=function(t,r){return Object.keys(r).reduce(function(n,i){return sb(sb({},n),{},_1({},i,t(i,r[i])))},{})},ub=function(t,r,n){return t.map(function(i){return"".concat(Gk(i)," ").concat(r,"ms ").concat(n)}).join(",")};function Vk(e,t){return Zk(e)||Yk(e,t)||O1(e,t)||Xk()}function Xk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Zk(e){if(Array.isArray(e))return e}function Qk(e){return tN(e)||eN(e)||O1(e)||Jk()}function Jk(){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 O1(e,t){if(e){if(typeof e=="string")return If(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 If(e,t)}}function eN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tN(e){if(Array.isArray(e))return If(e)}function If(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 Fa=1e-4,S1=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},A1=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},cb=function(t,r){return function(n){var i=S1(t,r);return A1(i,n)}},rN=function(t,r){return function(n){var i=S1(t,r),a=[].concat(Qk(i.map(function(o,s){return o*s}).slice(1)),[0]);return A1(a,n)}},lb=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],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var c=u[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),f=Vk(c,4);i=f[0],a=f[1],o=f[2],s=f[3]}}}var l=cb(i,o),d=cb(a,s),h=rN(i,o),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var b=g>1?1:g,_=b,O=0;O<8;++O){var m=l(_)-b,w=h(_);if(Math.abs(m-b)<Fa||w<Fa)return d(_);_=y(_-m/w)}return d(_)};return v.isStepper=!1,v},nN=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,s=o===void 0?17:o,u=function(f,l,d){var h=-(f-l)*n,y=d*a,v=d+(h-y)*s/1e3,p=d*s/1e3+f;return Math.abs(p-l)<Fa&&Math.abs(v)<Fa?[l,0]:[p,v]};return u.isStepper=!0,u.dt=s,u},iN=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 lb(i);case"spring":return nN();default:if(i.split("(")[0]==="cubic-bezier")return lb(i)}return typeof i=="function"?i:null};function wi(e){"@babel/helpers - typeof";return wi=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},wi(e)}function fb(e){return sN(e)||oN(e)||P1(e)||aN()}function aN(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sN(e){if(Array.isArray(e))return Nf(e)}function db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?db(Object(r),!0).forEach(function(n){kf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kf(e,t,r){return t=uN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uN(e){var t=cN(e,"string");return wi(t)==="symbol"?t:String(t)}function cN(e,t){if(wi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lN(e,t){return hN(e)||dN(e,t)||P1(e,t)||fN()}function fN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P1(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 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 dN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function hN(e){if(Array.isArray(e))return e}var Wa=function(t,r,n){return t+(r-t)*n},Df=function(t){var r=t.from,n=t.to;return r!==n},pN=function e(t,r,n){var i=Vn(function(a,o){if(Df(o)){var s=t(o.from,o.to,o.velocity),u=lN(s,2),c=u[0],f=u[1];return Re(Re({},o),{},{from:c,velocity:f})}return o},r);return n<1?Vn(function(a,o){return Df(o)?Re(Re({},o),{},{velocity:Wa(o.velocity,i[a].velocity,n),from:Wa(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const vN=function(e,t,r,n,i){var a=Kk(e,t),o=a.reduce(function(p,g){return Re(Re({},p),{},kf({},g,[e[g],t[g]]))},{}),s=a.reduce(function(p,g){return Re(Re({},p),{},kf({},g,{from:e[g],velocity:0,to:t[g]}))},{}),u=-1,c,f,l=function(){return null},d=function(){return Vn(function(g,b){return b.from},s)},h=function(){return!Object.values(s).filter(Df).length},y=function(g){c||(c=g);var b=g-c,_=b/r.dt;s=pN(r,s,_),i(Re(Re(Re({},e),t),d())),c=g,h()||(u=requestAnimationFrame(l))},v=function(g){f||(f=g);var b=(g-f)/n,_=Vn(function(m,w){return Wa.apply(void 0,fb(w).concat([r(b)]))},o);if(i(Re(Re(Re({},e),t),_)),b<1)u=requestAnimationFrame(l);else{var O=Vn(function(m,w){return Wa.apply(void 0,fb(w).concat([r(1)]))},o);i(Re(Re(Re({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(u)}}};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)}var yN=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function mN(e,t){if(e==null)return{};var r=gN(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 gN(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 gl(e){return _N(e)||wN(e)||xN(e)||bN()}function bN(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xN(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 wN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _N(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 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 ot(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){Wn(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 Wn(e,t,r){return t=j1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ON(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SN(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,j1(n.key),n)}}function AN(e,t,r){return t&&SN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function j1(e){var t=PN(e,"string");return Vr(t)==="symbol"?t:String(t)}function PN(e,t){if(Vr(e)!=="object"||e===null)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(t==="string"?String:Number)(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&&qf(e,t)}function qf(e,t){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qf(e,t)}function TN(e){var t=EN();return function(){var n=za(e),i;if(t){var a=za(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Lf(this,i)}}function Lf(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 Bf(e)}function Bf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EN(){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 za(e){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},za(e)}var xt=function(e){jN(r,e);var t=TN(r);function r(n,i){var a;ON(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,u=o.attributeName,c=o.from,f=o.to,l=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Bf(a)),a.changeStyle=a.changeStyle.bind(Bf(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Lf(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof d=="function")return a.state={style:c},Lf(a);a.state={style:u?Wn({},u,c):c}}else a.state={style:{}};return a}return AN(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,s=a.canBegin,u=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,d=this.state.style;if(s){if(!o){var h={style:u?Wn({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(h);return}if(!(Nk(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&&d){var p={style:u?Wn({},u,v):v};(u&&d[u]!==v||!u&&d!==v)&&this.setState(p)}this.runAnimation(ot(ot({},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,s=i.to,u=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,d=i.onAnimationStart,h=vN(o,s,iN(c),u,this.changeStyle),y=function(){a.stopJSAnimation=h()};this.manager.start([d,f,y,u,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,u=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,d=l===void 0?0:l,h=function(v,p,g){if(g===0)return v;var b=p.duration,_=p.easing,O=_===void 0?"ease":_,m=p.style,w=p.properties,S=p.onAnimationEnd,A=g>0?o[g-1]:p,T=w||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(gl(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:b,easing:O}),b]);var I=ub(T,b,O),P=ot(ot(ot({},A.style),m),{},{transition:I});return[].concat(gl(v),[P,b,S]).filter(Hk)};return this.manager.start([u].concat(gl(o.reduce(h,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Wk());var a=i.begin,o=i.duration,s=i.attributeName,u=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,d=i.steps,h=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=s?Wn({},s,u):u,p=ub(Object.keys(v),o,c);y.start([f,a,ot(ot({},v),{},{transition:p}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=mN(i,yN),c=C.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!s||c===0||o<=0)return a;var l=function(h){var y=h.props,v=y.style,p=v===void 0?{}:v,g=y.className,b=C.cloneElement(h,ot(ot({},u),{},{style:ot(ot({},p),f),className:g}));return b};return c===1?l(C.Children.only(a)):E.createElement("div",null,C.Children.map(a,function(d){return l(d)}))}}]),r}(C.PureComponent);xt.displayName="Animate";xt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};xt.propTypes={from:le.oneOfType([le.object,le.string]),to:le.oneOfType([le.object,le.string]),attributeName:le.string,duration:le.number,begin:le.number,easing:le.oneOfType([le.string,le.func]),steps:le.arrayOf(le.shape({duration:le.number.isRequired,style:le.object.isRequired,easing:le.oneOfType([le.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),le.func]),properties:le.arrayOf("string"),onAnimationEnd:le.func})),children:le.oneOfType([le.node,le.func]),isActive:le.bool,canBegin:le.bool,onAnimationEnd:le.func,shouldReAnimate:le.bool,onAnimationStart:le.func,onAnimationReStart:le.func};function _i(e){"@babel/helpers - typeof";return _i=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},_i(e)}function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ua.apply(this,arguments)}function MN(e,t){return kN(e)||IN(e,t)||$N(e,t)||CN()}function CN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $N(e,t){if(e){if(typeof e=="string")return pb(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 pb(e,t)}}function pb(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 IN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function kN(e){if(Array.isArray(e))return e}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 yb(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){NN(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 NN(e,t,r){return t=DN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DN(e){var t=RN(e,"string");return _i(t)=="symbol"?t:t+""}function RN(e,t){if(_i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mb=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,u=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],d=0,h=4;d<h;d++)l[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+s*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+u*l[0],",").concat(r)),f+="L ".concat(t+n-u*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`, 47 `).concat(t+n,",").concat(r+s*l[1])),f+="L ".concat(t+n,",").concat(r+i-s*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`, 48 `).concat(t+n-u*l[2],",").concat(r+i)),f+="L ".concat(t+u*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`, 49 `).concat(t,",").concat(r+i-s*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+s*y,` 50 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+u*y,",").concat(r,` 51 L `).concat(t+n-u*y,",").concat(r,` 52 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+s*y,` 53 L `).concat(t+n,",").concat(r+i-s*y,` 54 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-u*y,",").concat(r+i,` 55 L `).concat(t+u*y,",").concat(r+i,` 56 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-s*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},qN=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,u=r.height;if(Math.abs(s)>0&&Math.abs(u)>0){var c=Math.min(a,a+s),f=Math.max(a,a+s),l=Math.min(o,o+u),d=Math.max(o,o+u);return n>=c&&n<=f&&i>=l&&i<=d}return!1},LN={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},lh=function(t){var r=yb(yb({},LN),t),n=C.useRef(),i=C.useState(-1),a=MN(i,2),o=a[0],s=a[1];C.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var u=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,h=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(u!==+u||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var _=ne("recharts-rectangle",h);return b?E.createElement(xt,{canBegin:o>0,from:{width:f,height:l,x:u,y:c},to:{width:f,height:l,x:u,y:c},duration:v,animationEasing:y,isActive:b},function(O){var m=O.width,w=O.height,S=O.x,A=O.y;return E.createElement(xt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:g,easing:y},E.createElement("path",Ua({},te(r,!0),{className:_,d:mb(S,A,m,w,d),ref:n})))}):E.createElement("path",Ua({},te(r,!0),{className:_,d:mb(u,c,f,l,d)}))};function Ff(){return Ff=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},Ff.apply(this,arguments)}var Io=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ne("recharts-dot",a);return r===+r&&n===+n&&i===+i?C.createElement("circle",Ff({},te(t,!1),va(t),{className:o,cx:r,cy:n,r:i})):null};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)}var BN=["x","y","top","left","width","height","className"];function Wf(){return Wf=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},Wf.apply(this,arguments)}function gb(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 FN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gb(Object(r),!0).forEach(function(n){WN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WN(e,t,r){return t=zN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zN(e){var t=UN(e,"string");return Oi(t)=="symbol"?t:t+""}function UN(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KN(e,t){if(e==null)return{};var r=HN(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 HN(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 GN=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},VN=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,u=t.left,c=u===void 0?0:u,f=t.width,l=f===void 0?0:f,d=t.height,h=d===void 0?0:d,y=t.className,v=KN(t,BN),p=FN({x:n,y:a,top:s,left:c,width:l,height:h},v);return!z(n)||!z(a)||!z(l)||!z(h)||!z(s)||!z(c)?null:E.createElement("path",Wf({},te(p,!0),{className:ne("recharts-cross",y),d:GN(n,a,l,h,s,c)}))},bl,bb;function XN(){if(bb)return bl;bb=1;var e=Qx(),t=e(Object.getPrototypeOf,Object);return bl=t,bl}var xl,xb;function YN(){if(xb)return xl;xb=1;var e=$t(),t=XN(),r=It(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,u=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var d=s.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==u}return xl=c,xl}var ZN=YN();const QN=be(ZN);var wl,wb;function JN(){if(wb)return wl;wb=1;var e=$t(),t=It(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return wl=n,wl}var e2=JN();const t2=be(e2);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 Ka(){return Ka=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},Ka.apply(this,arguments)}function r2(e,t){return o2(e)||a2(e,t)||i2(e,t)||n2()}function n2(){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 i2(e,t){if(e){if(typeof e=="string")return _b(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 _b(e,t)}}function _b(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 a2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function o2(e){if(Array.isArray(e))return e}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 Sb(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){s2(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 s2(e,t,r){return t=u2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u2(e){var t=c2(e,"string");return Si(t)=="symbol"?t:t+""}function c2(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 Ab=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},l2={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},f2=function(t){var r=Sb(Sb({},l2),t),n=C.useRef(),i=C.useState(-1),a=r2(i,2),o=a[0],s=a[1];C.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var u=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,h=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isUpdateAnimationActive;if(u!==+u||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var b=ne("recharts-trapezoid",h);return g?E.createElement(xt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:u,y:c},duration:v,animationEasing:y,isActive:g},function(_){var O=_.upperWidth,m=_.lowerWidth,w=_.height,S=_.x,A=_.y;return E.createElement(xt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},E.createElement("path",Ka({},te(r,!0),{className:b,d:Ab(S,A,O,m,w),ref:n})))}):E.createElement("g",null,E.createElement("path",Ka({},te(r,!0),{className:b,d:Ab(u,c,f,l,d)})))},d2=["option","shapeType","propTransformer","activeClassName","isActive"];function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function h2(e,t){if(e==null)return{};var r=p2(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 p2(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 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 Ha(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){v2(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 v2(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=m2(e,"string");return Ai(t)=="symbol"?t:t+""}function m2(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g2(e,t){return Ha(Ha({},t),e)}function b2(e,t){return e==="symbols"}function jb(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return E.createElement(lh,r);case"trapezoid":return E.createElement(f2,r);case"sector":return E.createElement(x1,r);case"symbols":if(b2(t))return E.createElement(Rd,r);break;default:return null}}function x2(e){return C.isValidElement(e)?e.props:e}function w2(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?g2:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,u=h2(e,d2),c;if(C.isValidElement(t))c=C.cloneElement(t,Ha(Ha({},u),x2(t)));else if(ee(t))c=t(u);else if(QN(t)&&!t2(t)){var f=i(t,u);c=E.createElement(jb,{shapeType:r,elementProps:f})}else{var l=u;c=E.createElement(jb,{shapeType:r,elementProps:l})}return s?E.createElement(ge,{className:o},c):c}function ko(e,t){return t!=null&&"trapezoids"in e.props}function No(e,t){return t!=null&&"sectors"in e.props}function Pi(e,t){return t!=null&&"points"in e.props}function _2(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 O2(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function S2(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function A2(e,t){var r;return ko(e,t)?r=_2:No(e,t)?r=O2:Pi(e,t)&&(r=S2),r}function P2(e,t){var r;return ko(e,t)?r="trapezoids":No(e,t)?r="sectors":Pi(e,t)&&(r="points"),r}function j2(e,t){if(ko(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(No(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 Pi(e,t)?t.payload:{}}function T2(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=P2(r,t),a=j2(r,t),o=n.filter(function(u,c){var f=Hr(a,u),l=r.props[i].filter(function(y){var v=A2(r,t);return v(y,t)}),d=r.props[i].indexOf(l[l.length-1]),h=c===d;return f&&h}),s=n.indexOf(o[o.length-1]);return s}var _l,Tb;function E2(){if(Tb)return _l;Tb=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,u=t(e((i-n)/(a||1)),0),c=Array(u);u--;)c[o?u:++s]=n,n+=a;return c}return _l=r,_l}var Ol,Eb;function T1(){if(Eb)return Ol;Eb=1;var e=pw(),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 Ol=n,Ol}var Sl,Mb;function M2(){if(Mb)return Sl;Mb=1;var e=E2(),t=Po(),r=T1();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Sl=n,Sl}var Al,Cb;function C2(){if(Cb)return Al;Cb=1;var e=M2(),t=e();return Al=t,Al}var $2=C2();const Ga=be($2);function ji(e){"@babel/helpers - typeof";return ji=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},ji(e)}function $b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ib(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$b(Object(r),!0).forEach(function(n){E1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E1(e,t,r){return t=I2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I2(e){var t=k2(e,"string");return ji(t)=="symbol"?t:t+""}function k2(e,t){if(ji(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ji(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var N2=["Webkit","Moz","O","ms"],D2=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=N2.reduce(function(a,o){return Ib(Ib({},a),{},E1({},o+n,r))},{});return i[t]=r,i};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 Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Va.apply(this,arguments)}function kb(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 Pl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){Xe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nb(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,C1(n.key),n)}}function q2(e,t,r){return t&&Nb(e.prototype,t),r&&Nb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function L2(e,t,r){return t=Xa(t),B2(e,M1()?Reflect.construct(t,r||[],Xa(e).constructor):t.apply(e,r))}function B2(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 F2(e)}function F2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M1=function(){return!!e})()}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xa(e)}function W2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zf(e,t)}function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zf(e,t)}function Xe(e,t,r){return t=C1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C1(e){var t=z2(e,"string");return Xr(t)=="symbol"?t:t+""}function z2(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 U2=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,c=Hn().domain(Ga(0,u)).range([a,a+o-s]),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}},Db=function(t){return t.changedTouches&&!!t.changedTouches.length},Yr=function(e){function t(r){var n;return R2(this,t),n=L2(this,t,[r]),Xe(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Xe(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Xe(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o?.({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Xe(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Xe(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Xe(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Xe(n,"handleSlideDragStart",function(i){var a=Db(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 W2(t,e),q2(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,s=this.props,u=s.gap,c=s.data,f=c.length-1,l=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,l),y=t.getIndexInRange(o,d);return{startIndex:h-h%u,endIndex:y===f?f:y-y%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,u=Ue(a[n],s,n);return ee(o)?o(u,n):u}},{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,s=i.endX,u=this.props,c=u.x,f=u.width,l=u.travellerWidth,d=u.startIndex,h=u.endIndex,y=u.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-s,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-s));var p=this.getIndex({startX:o+v,endX:s+v});(p.startIndex!==d||p.endIndex!==h)&&y&&y(p),this.setState({startX:o+v,endX:s+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Db(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,s=i.endX,u=i.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,h=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,l+d-h-c):b<0&&(b=Math.max(b,l-c)),g[o]=c+b;var _=this.getIndex(g),O=_.startIndex,m=_.endIndex,w=function(){var A=p.length-1;return o==="startX"&&(s>u?O%v===0:m%v===0)||s<u&&m===A||o==="endX"&&(s>u?m%v===0:O%v===0)||s>u&&m===A};this.setState(Xe(Xe({},o,c+b),"brushMoveStartX",n.pageX),function(){y&&w()&&y(_)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,u=o.startX,c=o.endX,f=this.state[i],l=s.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=c||i==="endX"&&h<=u||this.setState(Xe({},i,h),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,s=n.height,u=n.fill,c=n.stroke;return E.createElement("rect",{stroke:c,fill:u,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.data,c=n.children,f=n.padding,l=C.Children.only(c);return l?E.cloneElement(l,{x:i,y:a,width:o,height:s,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,u=this.props,c=u.y,f=u.travellerWidth,l=u.height,d=u.traveller,h=u.ariaLabel,y=u.data,v=u.startIndex,p=u.endIndex,g=Math.max(n,this.props.x),b=Pl(Pl({},te(this.props,!1)),{},{x:g,y:c,width:f,height:l}),_=h||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return E.createElement(ge,{tabIndex:0,role:"slider","aria-label":_,"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(),s.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,u=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return E.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:o,width:l,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,u=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,h=5,y={pointerEvents:"none",fill:c};return E.createElement(ge,{className:"recharts-brush-texts"},E.createElement(ja,Va({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-h,y:o+s/2},y),this.getTextOfTick(i)),E.createElement(ja,Va({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+u+h,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,u=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,h=d.startX,y=d.endX,v=d.isTextActive,p=d.isSlideMoving,g=d.isTravellerMoving,b=d.isTravellerFocused;if(!i||!i.length||!z(s)||!z(u)||!z(c)||!z(f)||c<=0||f<=0)return null;var _=ne("recharts-brush",a),O=E.Children.count(o)===1,m=D2("userSelect","none");return E.createElement(ge,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||g||b||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,u=n.stroke,c=Math.floor(a+s/2)-1;return E.createElement(E.Fragment,null,E.createElement("rect",{x:i,y:a,width:o,height:s,fill:u,stroke:"none"}),E.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),E.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 E.isValidElement(n)?a=E.cloneElement(n,i):ee(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,u=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Pl({prevData:a,prevTravellerWidth:u,prevUpdateId:c,prevX:s,prevWidth:o},a&&a.length?U2({data:a,width:o,x:s,travellerWidth:u,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([s,s+o-u]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:c,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var u=Math.floor((o+s)/2);n[u]>i?s=u:o=u}return i>=n[s]?s:o}}])}(C.PureComponent);Xe(Yr,"displayName","Brush");Xe(Yr,"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 jl,Rb;function K2(){if(Rb)return jl;Rb=1;var e=Ud();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return jl=t,jl}var Tl,qb;function H2(){if(qb)return Tl;qb=1;var e=Kx(),t=Ht(),r=K2(),n=Ge(),i=Po();function a(o,s,u){var c=n(o)?e:r;return u&&i(o,s,u)&&(s=void 0),c(o,t(s,3))}return Tl=a,Tl}var G2=H2();const V2=be(G2);var mt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},El,Lb;function X2(){if(Lb)return El;Lb=1;var e=cw();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return El=t,El}var Ml,Bb;function Y2(){if(Bb)return Ml;Bb=1;var e=X2(),t=sw(),r=Ht();function n(i,a){var o={};return a=r(a,3),t(i,function(s,u,c){e(o,u,a(s,u,c))}),o}return Ml=n,Ml}var Z2=Y2();const Q2=be(Z2);var Cl,Fb;function J2(){if(Fb)return Cl;Fb=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 Cl=e,Cl}var $l,Wb;function eD(){if(Wb)return $l;Wb=1;var e=Ud();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return $l=t,$l}var Il,zb;function tD(){if(zb)return Il;zb=1;var e=J2(),t=eD(),r=Ht(),n=Ge(),i=Po();function a(o,s,u){var c=n(o)?e:t;return u&&i(o,s,u)&&(s=void 0),c(o,r(s,3))}return Il=a,Il}var rD=tD();const $1=be(rD);var nD=["x","y"];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 Uf(){return Uf=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},Uf.apply(this,arguments)}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 In(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){iD(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 iD(e,t,r){return t=aD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aD(e){var t=oD(e,"string");return Ti(t)=="symbol"?t:t+""}function oD(e,t){if(Ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sD(e,t){if(e==null)return{};var r=uD(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 uD(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 cD(e,t){var r=e.x,n=e.y,i=sD(e,nD),a="".concat(r),o=parseInt(a,10),s="".concat(n),u=parseInt(s,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),d=parseInt(l,10);return In(In(In(In(In({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function Kb(e){return E.createElement(w2,Uf({shapeType:"rectangle",propTransformer:cD,activeClassName:"recharts-active-bar"},e))}var lD=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=z(n)||HS(n);return a?t(n,i):(a||yr(),r)}},fD=["value","background"],I1;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 dD(e,t){if(e==null)return{};var r=hD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function 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 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 Te(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){zt(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 pD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gb(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 vD(e,t,r){return t&&Gb(e.prototype,t),r&&Gb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yD(e,t,r){return t=Za(t),mD(e,k1()?Reflect.construct(t,r||[],Za(e).constructor):t.apply(e,r))}function mD(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 gD(e)}function gD(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 Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Za(e)}function bD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kf(e,t)}function Kf(e,t){return Kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kf(e,t)}function zt(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=xD(e,"string");return Zr(t)=="symbol"?t:t+""}function xD(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 Li=function(e){function t(){var r;pD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=yD(this,t,[].concat(i)),zt(r,"state",{isAnimationFinished:!1}),zt(r,"id",hn("recharts-bar-")),zt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),zt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return bD(t,e),vD(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,u=a.activeIndex,c=a.activeBar,f=te(this.props,!1);return n&&n.map(function(l,d){var h=d===u,y=h?c:o,v=Te(Te(Te({},f),l),{},{isActive:h,option:y,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return E.createElement(ge,Ya({className:"recharts-bar-rectangle"},ya(i.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),E.createElement(Kb,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return E.createElement(xt,{begin:u,duration:c,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var y=h.t,v=a.map(function(p,g){var b=d&&d[g];if(b){var _=qe(b.x,p.x),O=qe(b.y,p.y),m=qe(b.width,p.width),w=qe(b.height,p.height);return Te(Te({},p),{},{x:_(y),y:O(y),width:m(y),height:w(y)})}if(o==="horizontal"){var S=qe(0,p.height),A=S(y);return Te(Te({},p),{},{y:p.y+p.height-A,height:A})}var T=qe(0,p.width),I=T(y);return Te(Te({},p),{},{width:I})});return E.createElement(ge,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||!Hr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,u=te(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,d=dD(c,fD);if(!l)return null;var h=Te(Te(Te(Te(Te({},d),{},{fill:"#eee"},l),u),ya(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return E.createElement(Kb,Ya({key:"background-bar-".concat(f),option:n.props.background,isActive:f===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,u=a.yAxis,c=a.layout,f=a.children,l=nt(f,qi);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(p,g){var b=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:b,errorVal:Ue(p,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return E.createElement(ge,y,l.map(function(v){return E.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:s,yAxis:u,layout:c,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,u=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,h=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=ne("recharts-bar",o),b=s&&s.allowDataOverflow,_=u&&u.allowDataOverflow,O=b||_,m=re(v)?this.id:v;return E.createElement(ge,{className:g},b||_?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(m)},E.createElement("rect",{x:b?c:c-l/2,y:_?f:f-d/2,width:b?l:l*2,height:_?d:d*2}))):null,E.createElement(ge,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!h||p)&&Et.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}}])}(C.PureComponent);I1=Li;zt(Li,"displayName","Bar");zt(Li,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!_r.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});zt(Li,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,u=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,h=L$(n,r);if(!h)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?Te(Te({},v),r.props):r.props,g=p.dataKey,b=p.children,_=p.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,w=G$({numericAxis:O}),S=nt(b,yw),A=l.map(function(T,I){var P,j,M,N,k,$;c?P=B$(c[f+I],m):(P=Ue(T,g),Array.isArray(P)||(P=[w,P]));var B=lD(_,I1.defaultProps.minPointSize)(P[1],I);if(y==="horizontal"){var q,L=[o.scale(P[0]),o.scale(P[1])],K=L[0],G=L[1];j=Mg({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:T,index:I}),M=(q=G??K)!==null&&q!==void 0?q:void 0,N=h.size;var W=K-G;if(k=Number.isNaN(W)?0:W,$={x:j,y:o.y,width:N,height:o.height},Math.abs(B)>0&&Math.abs(k)<Math.abs(B)){var U=lt(k||B)*(Math.abs(B)-Math.abs(k));M-=U,k+=U}}else{var Y=[a.scale(P[0]),a.scale(P[1])],ue=Y[0],Ae=Y[1];if(j=ue,M=Mg({axis:o,ticks:u,bandSize:i,offset:h.offset,entry:T,index:I}),N=Ae-ue,k=h.size,$={x:a.x,y:M,width:a.width,height:k},Math.abs(B)>0&&Math.abs(N)<Math.abs(B)){var fe=lt(N||B)*(Math.abs(B)-Math.abs(N));N+=fe}}return Te(Te(Te({},T),{},{x:j,y:M,width:N,height:k,value:c?P:P[1],payload:T,background:$},S&&S[I]&&S[I].props),{},{tooltipPayload:[m1(r,T)],tooltipPosition:{x:j+N/2,y:M+k/2}})});return Te({data:A,layout:y},d)});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 wD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vb(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 _D(e,t,r){return t&&Vb(e.prototype,t),r&&Vb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}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 st(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){Do(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 Do(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=OD(e,"string");return Ei(t)=="symbol"?t:t+""}function OD(e,t){if(Ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var R1=function(t,r,n,i,a){var o=t.width,s=t.height,u=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:s-n.bottom,bottomMirror:s-n.bottom},d=!!Ye(c,Li);return f.reduce(function(h,y){var v=r[y],p=v.orientation,g=v.domain,b=v.padding,_=b===void 0?{}:b,O=v.mirror,m=v.reversed,w="".concat(p).concat(O?"Mirror":""),S,A,T,I,P;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var j=g[1]-g[0],M=1/0,N=v.categoricalDomain.sort(XS);if(N.forEach(function(Y,ue){ue>0&&(M=Math.min((Y||0)-(N[ue-1]||0),M))}),Number.isFinite(M)){var k=M/j,$=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(S=k*$/2),v.padding==="no-gap"){var B=pr(t.barCategoryGap,k*$),q=k*$/2;S=q-B-(q-B)/$*B}}}i==="xAxis"?A=[n.left+(_.left||0)+(S||0),n.left+n.width-(_.right||0)-(S||0)]:i==="yAxis"?A=u==="horizontal"?[n.top+n.height-(_.bottom||0),n.top+(_.top||0)]:[n.top+(_.top||0)+(S||0),n.top+n.height-(_.bottom||0)-(S||0)]:A=v.range,m&&(A=[A[1],A[0]]);var L=R$(v,a,d),K=L.scale,G=L.realScaleType;K.domain(g).range(A),q$(K);var W=H$(K,st(st({},v),{},{realScaleType:G}));i==="xAxis"?(P=p==="top"&&!O||p==="bottom"&&O,T=n.left,I=l[w]-P*v.height):i==="yAxis"&&(P=p==="left"&&!O||p==="right"&&O,T=l[w]-P*v.width,I=n.top);var U=st(st(st({},v),W),{},{realScaleType:G,x:T,y:I,scale:K,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return U.bandSize=qa(U,W),!v.hide&&i==="xAxis"?l[w]+=(P?-1:1)*U.height:v.hide||(l[w]+=(P?-1:1)*U.width),st(st({},h),{},Do({},y,U))},{})},q1=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)}},SD=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return q1({x:r,y:n},{x:i,y:a})},L1=function(){function e(t){wD(this,e),this.scale=t}return _D(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 s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}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)}}])}();Do(L1,"EPS",1e-4);var fh=function(t){var r=Object.keys(t).reduce(function(n,i){return st(st({},n),{},Do({},i,L1.create(t[i])))},{});return st(st({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return Q2(i,function(u,c){return r[c].apply(u,{bandAware:o,position:s})})},isInRange:function(i){return $1(i,function(a,o){return r[o].isInRange(a)})}})};function AD(e){return(e%180+180)%180}var PD=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=AD(i),o=a*Math.PI/180,s=Math.atan(n/r),u=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},kl,Yb;function jD(){if(Yb)return kl;Yb=1;var e=Ht(),t=Ni(),r=So();function n(i){return function(a,o,s){var u=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(u[l],l,u)}}var f=i(a,o,s);return f>-1?u[c?a[f]:f]:void 0}}return kl=n,kl}var Nl,Zb;function TD(){if(Zb)return Nl;Zb=1;var e=T1();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Nl=t,Nl}var Dl,Qb;function ED(){if(Qb)return Dl;Qb=1;var e=rw(),t=Ht(),r=TD(),n=Math.max;function i(a,o,s){var u=a==null?0:a.length;if(!u)return-1;var c=s==null?0:r(s);return c<0&&(c=n(u+c,0)),e(a,t(o,3),c)}return Dl=i,Dl}var Rl,Jb;function MD(){if(Jb)return Rl;Jb=1;var e=jD(),t=ED(),r=e(t);return Rl=r,Rl}var CD=MD();const $D=be(CD);var ID=mx();const kD=be(ID);var ND=kD(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),dh=C.createContext(void 0),hh=C.createContext(void 0),B1=C.createContext(void 0),F1=C.createContext({}),W1=C.createContext(void 0),z1=C.createContext(0),U1=C.createContext(0),e0=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,u=t.width,c=t.height,f=ND(a);return E.createElement(dh.Provider,{value:n},E.createElement(hh.Provider,{value:i},E.createElement(F1.Provider,{value:a},E.createElement(B1.Provider,{value:f},E.createElement(W1.Provider,{value:o},E.createElement(z1.Provider,{value:c},E.createElement(U1.Provider,{value:u},s)))))))},DD=function(){return C.useContext(W1)},K1=function(t){var r=C.useContext(dh);r==null&&yr();var n=r[t];return n==null&&yr(),n},RD=function(){var t=C.useContext(dh);return Bt(t)},qD=function(){var t=C.useContext(hh),r=$D(t,function(n){return $1(n.domain,Number.isFinite)});return r||Bt(t)},H1=function(t){var r=C.useContext(hh);r==null&&yr();var n=r[t];return n==null&&yr(),n},LD=function(){var t=C.useContext(B1);return t},BD=function(){return C.useContext(F1)},ph=function(){return C.useContext(U1)},vh=function(){return C.useContext(z1)};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 FD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WD(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,V1(n.key),n)}}function zD(e,t,r){return t&&WD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UD(e,t,r){return t=Qa(t),KD(e,G1()?Reflect.construct(t,r||[],Qa(e).constructor):t.apply(e,r))}function KD(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 HD(e)}function HD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G1=function(){return!!e})()}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qa(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&&Hf(e,t)}function Hf(e,t){return Hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hf(e,t)}function t0(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 r0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t0(Object(r),!0).forEach(function(n){yh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yh(e,t,r){return t=V1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V1(e){var t=VD(e,"string");return Qr(t)=="symbol"?t:t+""}function VD(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 XD(e,t){return JD(e)||QD(e,t)||ZD(e,t)||YD()}function YD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZD(e,t){if(e){if(typeof e=="string")return n0(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 n0(e,t)}}function n0(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 QD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function JD(e){if(Array.isArray(e))return e}function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gf.apply(this,arguments)}var eR=function(t,r){var n;return E.isValidElement(t)?n=E.cloneElement(t,r):ee(t)?n=t(r):n=E.createElement("line",Gf({},r,{className:"recharts-reference-line-line"})),n},tR=function(t,r,n,i,a,o,s,u,c){var f=a.x,l=a.y,d=a.width,h=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(mt(c,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+d,y:v},{x:f,y:v}];return u==="left"?p.reverse():p}if(r){var g=c.x,b=t.x.apply(g,{position:o});if(mt(c,"discard")&&!t.x.isInRange(b))return null;var _=[{x:b,y:l+h},{x:b,y:l}];return s==="top"?_.reverse():_}if(i){var O=c.segment,m=O.map(function(w){return t.apply(w,{position:o})});return mt(c,"discard")&&V2(m,function(w){return!t.isInRange(w)})?null:m}return null};function rR(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,u=e.alwaysShow,c=DD(),f=K1(i),l=H1(a),d=LD();if(!c||!d)return null;jt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=fh({x:f.scale,y:l.scale}),y=ke(t),v=ke(r),p=n&&n.length===2,g=tR(h,y,v,p,d,e.position,f.orientation,l.orientation,e);if(!g)return null;var b=XD(g,2),_=b[0],O=_.x,m=_.y,w=b[1],S=w.x,A=w.y,T=mt(e,"hidden")?"url(#".concat(c,")"):void 0,I=r0(r0({clipPath:T},te(e,!0)),{},{x1:O,y1:m,x2:S,y2:A});return E.createElement(ge,{className:ne("recharts-reference-line",s)},eR(o,I),Fe.renderCallByParent(e,SD({x1:O,y1:m,x2:S,y2:A})))}var mh=function(e){function t(){return FD(this,t),UD(this,t,arguments)}return GD(t,e),zD(t,[{key:"render",value:function(){return E.createElement(rR,this.props)}}])}(E.Component);yh(mh,"displayName","ReferenceLine");yh(mh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Vf(){return Vf=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},Vf.apply(this,arguments)}function Jr(e){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(e)}function i0(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 a0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i0(Object(r),!0).forEach(function(n){Ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iR(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,Y1(n.key),n)}}function aR(e,t,r){return t&&iR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oR(e,t,r){return t=Ja(t),sR(e,X1()?Reflect.construct(t,r||[],Ja(e).constructor):t.apply(e,r))}function sR(e,t){if(t&&(Jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uR(e)}function uR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X1=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function cR(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 Ro(e,t,r){return t=Y1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y1(e){var t=lR(e,"string");return Jr(t)=="symbol"?t:t+""}function lR(e,t){if(Jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fR=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=fh({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return mt(t,"discard")&&!o.isInRange(s)?null:s},qo=function(e){function t(){return nR(this,t),oR(this,t,arguments)}return cR(t,e),aR(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,u=n.clipPathId,c=ke(i),f=ke(a);if(jt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=fR(this.props);if(!l)return null;var d=l.x,h=l.y,y=this.props,v=y.shape,p=y.className,g=mt(this.props,"hidden")?"url(#".concat(u,")"):void 0,b=a0(a0({clipPath:g},te(this.props,!0)),{},{cx:d,cy:h});return E.createElement(ge,{className:ne("recharts-reference-dot",p)},t.renderDot(v,b),Fe.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(E.Component);Ro(qo,"displayName","ReferenceDot");Ro(qo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ro(qo,"renderDot",function(e,t){var r;return E.isValidElement(e)?r=E.cloneElement(e,t):ee(e)?r=e(t):r=E.createElement(Io,Vf({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});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)}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 o0(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 s0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o0(Object(r),!0).forEach(function(n){Lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hR(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 pR(e,t,r){return t&&hR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vR(e,t,r){return t=eo(t),yR(e,Z1()?Reflect.construct(t,r||[],eo(e).constructor):t.apply(e,r))}function yR(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 mR(e)}function mR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z1=function(){return!!e})()}function eo(e){return eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eo(e)}function gR(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&&Zf(e,t)}function Zf(e,t){return Zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zf(e,t)}function Lo(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=bR(e,"string");return en(t)=="symbol"?t:t+""}function bR(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 String(e)}var xR=function(t,r,n,i,a){var o=a.x1,s=a.x2,u=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=fh({x:f.scale,y:l.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(u,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return mt(a,"discard")&&(!d.isInRange(h)||!d.isInRange(y))?null:q1(h,y)},Bo=function(e){function t(){return dR(this,t),vR(this,t,arguments)}return gR(t,e),pR(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,u=n.className,c=n.alwaysShow,f=n.clipPathId;jt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=ke(i),d=ke(a),h=ke(o),y=ke(s),v=this.props.shape;if(!l&&!d&&!h&&!y&&!v)return null;var p=xR(l,d,h,y,this.props);if(!p&&!v)return null;var g=mt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return E.createElement(ge,{className:ne("recharts-reference-area",u)},t.renderRect(v,s0(s0({clipPath:g},te(this.props,!0)),p)),Fe.renderCallByParent(this.props,p))}}])}(E.Component);Lo(Bo,"displayName","ReferenceArea");Lo(Bo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Lo(Bo,"renderRect",function(e,t){var r;return E.isValidElement(e)?r=E.cloneElement(e,t):ee(e)?r=e(t):r=E.createElement(lh,Yf({},t,{className:"recharts-reference-area-rect"})),r});function J1(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function wR(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return PD(n,r)}function _R(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function to(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 OR(e,t){return J1(e,t+1)}function SR(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,u=0,c=1,f=o,l=function(){var y=n?.[u];if(y===void 0)return{v:J1(n,c)};var v=u,p,g=function(){return p===void 0&&(p=r(y,v)),p},b=y.coordinate,_=u===0||to(e,b,g,f,s);_||(u=0,f=o,c+=1),_&&(f=b+e*(g()/2+i),u+=c)},d;c<=a.length;)if(d=l(),d)return d.v;return[]}function Mi(e){"@babel/helpers - typeof";return Mi=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},Mi(e)}function u0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u0(Object(r),!0).forEach(function(n){AR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AR(e,t,r){return t=PR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PR(e){var t=jR(e,"string");return Mi(t)=="symbol"?t:t+""}function jR(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TR(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,u=t.end,c=function(d){var h=a[d],y,v=function(){return y===void 0&&(y=r(h,d)),y};if(d===o-1){var p=e*(h.coordinate+e*v()/2-u);a[d]=h=Be(Be({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate})}else a[d]=h=Be(Be({},h),{},{tickCoord:h.coordinate});var g=to(e,h.tickCoord,v,s,u);g&&(u=h.tickCoord-e*(v()/2+i),a[d]=Be(Be({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function ER(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,u=t.start,c=t.end;if(a){var f=n[s-1],l=r(f,s-1),d=e*(f.coordinate+e*l/2-c);o[s-1]=f=Be(Be({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=to(e,f.tickCoord,function(){return l},u,c);h&&(c=f.tickCoord-e*(l/2+i),o[s-1]=Be(Be({},f),{},{isShow:!0}))}for(var y=a?s-1:s,v=function(b){var _=o[b],O,m=function(){return O===void 0&&(O=r(_,b)),O};if(b===0){var w=e*(_.coordinate-e*m()/2-u);o[b]=_=Be(Be({},_),{},{tickCoord:w<0?_.coordinate-w*e:_.coordinate})}else o[b]=_=Be(Be({},_),{},{tickCoord:_.coordinate});var S=to(e,_.tickCoord,m,u,c);S&&(u=_.tickCoord+e*(m()/2+i),o[b]=Be(Be({},_),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function gh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,u=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(z(u)||_r.isSsr)return OR(i,typeof u=="number"&&z(u)?u:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",y=f&&h==="width"?Kn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(_,O){var m=ee(c)?c(_.value,O):_.value;return h==="width"?wR(Kn(m,{fontSize:t,letterSpacing:r}),y,l):Kn(m,{fontSize:t,letterSpacing:r})[h]},p=i.length>=2?lt(i[1].coordinate-i[0].coordinate):1,g=_R(a,p,h);return u==="equidistantPreserveStart"?SR(p,g,v,i,o):(u==="preserveStart"||u==="preserveStartEnd"?d=ER(p,g,v,i,o,u==="preserveStartEnd"):d=TR(p,g,v,i,o),d.filter(function(b){return b.isShow}))}var MR=["viewBox"],CR=["viewBox"],$R=["ticks"];function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function $r(){return $r=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},$r.apply(this,arguments)}function c0(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?c0(Object(r),!0).forEach(function(n){bh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ql(e,t){if(e==null)return{};var r=IR(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 IR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l0(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,t_(n.key),n)}}function NR(e,t,r){return t&&l0(e.prototype,t),r&&l0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DR(e,t,r){return t=ro(t),RR(e,e_()?Reflect.construct(t,r||[],ro(e).constructor):t.apply(e,r))}function RR(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qR(e)}function qR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e_=function(){return!!e})()}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ro(e)}function LR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qf(e,t)}function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qf(e,t)}function bh(e,t,r){return t=t_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t_(e){var t=BR(e,"string");return tn(t)=="symbol"?t:t+""}function BR(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gn=function(e){function t(r){var n;return kR(this,t),n=DR(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return LR(t,e),NR(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=ql(n,MR),s=this.props,u=s.viewBox,c=ql(s,CR);return!kr(a,u)||!kr(o,c)||!kr(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,s=i.width,u=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,h,y,v,p,g,b,_=l?-1:1,O=n.tickSize||f,m=z(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=y=n.coordinate,p=o+ +!l*u,v=p-_*O,b=v-_*d,g=m;break;case"left":v=p=n.coordinate,y=a+ +!l*s,h=y-_*O,g=h-_*d,b=m;break;case"right":v=p=n.coordinate,y=a+ +l*s,h=y+_*O,g=h+_*d,b=m;break;default:h=y=n.coordinate,p=o+ +l*u,v=p+_*O,b=v+_*d,g=m;break}return{line:{x1:h,y1:v,x2:y,y2:p},tick:{x:g,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.orientation,c=n.mirror,f=n.axisLine,l=$e($e($e({},te(this.props,!1)),te(f,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var d=+(u==="top"&&!c||u==="bottom"&&c);l=$e($e({},l),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(u==="left"&&!c||u==="right"&&c);l=$e($e({},l),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return E.createElement("line",$r({},l,{className:ne("recharts-cartesian-axis-line",rt(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,u=s.tickLine,c=s.stroke,f=s.tick,l=s.tickFormatter,d=s.unit,h=gh($e($e({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=te(this.props,!1),g=te(f,!1),b=$e($e({},p),{},{fill:"none"},te(u,!1)),_=h.map(function(O,m){var w=o.getTickLineCoord(O),S=w.line,A=w.tick,T=$e($e($e($e({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:c},g),A),{},{index:m,payload:O,visibleTicksCount:h.length,tickFormatter:l});return E.createElement(ge,$r({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},ya(o.props,O,m)),u&&E.createElement("line",$r({},b,S,{className:ne("recharts-cartesian-axis-tick-line",rt(u,"className"))})),f&&t.renderTickItem(f,T,"".concat(ee(l)?l(O.value,m):O.value).concat(d||"")))});return E.createElement("g",{className:"recharts-cartesian-axis-ticks"},_)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,u=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,h=ql(l,$R),y=d;return ee(u)&&(y=d&&d.length>0?u(this.props):u(h)),o<=0||s<=0||!y||!y.length?null:E.createElement(ge,{className:ne("recharts-cartesian-axis",c),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Fe.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=ne(i.className,"recharts-cartesian-axis-tick-value");return E.isValidElement(n)?o=E.cloneElement(n,$e($e({},i),{},{className:s})):ee(n)?o=n($e($e({},i),{},{className:s})):o=E.createElement(ja,$r({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(C.Component);bh(gn,"displayName","CartesianAxis");bh(gn,"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 FR=["x1","y1","x2","y2","key"],WR=["offset"];function mr(e){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(e)}function f0(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 We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f0(Object(r),!0).forEach(function(n){zR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zR(e,t,r){return t=UR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UR(e){var t=KR(e,"string");return mr(t)=="symbol"?t:t+""}function KR(e,t){if(mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},or.apply(this,arguments)}function d0(e,t){if(e==null)return{};var r=HR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var GR=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,s=t.height,u=t.ry;return E.createElement("rect",{x:i,y:a,ry:u,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function r_(e,t){var r;if(E.isValidElement(e))r=E.cloneElement(e,t);else if(ee(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,u=d0(t,FR),c=te(u,!1);c.offset;var f=d0(c,WR);r=E.createElement("line",or({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function VR(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(s,u){var c=We(We({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return r_(i,c)});return E.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function XR(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(s,u){var c=We(We({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return r_(i,c)});return E.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function YR(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,u=e.horizontal,c=u===void 0?!0:u;if(!c||!t||!t.length)return null;var f=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var y=!f[h+1],v=y?i+o-d:f[h+1]-d;if(v<=0)return null;var p=h%t.length;return E.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function ZR(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,u=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var y=!f[h+1],v=y?a+s-d:f[h+1]-d;if(v<=0)return null;var p=h%n.length;return E.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:v,height:u,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var QR=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return v1(gh(We(We(We({},gn.defaultProps),n),{},{ticks:St(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},JR=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return v1(gh(We(We(We({},gn.defaultProps),n),{},{ticks:St(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},jr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function xh(e){var t,r,n,i,a,o,s=ph(),u=vh(),c=BD(),f=We(We({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:jr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:jr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:jr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:jr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:jr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:jr.verticalFill,x:z(e.x)?e.x:c.left,y:z(e.y)?e.y:c.top,width:z(e.width)?e.width:c.width,height:z(e.height)?e.height:c.height}),l=f.x,d=f.y,h=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,g=f.verticalValues,b=RD(),_=qD();if(!z(h)||h<=0||!z(y)||y<=0||!z(l)||l!==+l||!z(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||QR,m=f.horizontalCoordinatesGenerator||JR,w=f.horizontalPoints,S=f.verticalPoints;if((!w||!w.length)&&ee(m)){var A=p&&p.length,T=m({yAxis:_?We(We({},_),{},{ticks:A?p:_.ticks}):void 0,width:s,height:u,offset:c},A?!0:v);jt(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(mr(T),"]")),Array.isArray(T)&&(w=T)}if((!S||!S.length)&&ee(O)){var I=g&&g.length,P=O({xAxis:b?We(We({},b),{},{ticks:I?g:b.ticks}):void 0,width:s,height:u,offset:c},I?!0:v);jt(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(mr(P),"]")),Array.isArray(P)&&(S=P)}return E.createElement("g",{className:"recharts-cartesian-grid"},E.createElement(GR,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),E.createElement(VR,or({},f,{offset:c,horizontalPoints:w,xAxis:b,yAxis:_})),E.createElement(XR,or({},f,{offset:c,verticalPoints:S,xAxis:b,yAxis:_})),E.createElement(YR,or({},f,{horizontalPoints:w})),E.createElement(ZR,or({},f,{verticalPoints:S})))}xh.displayName="CartesianGrid";var eq=["type","layout","connectNulls","ref"],tq=["key"];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 h0(e,t){if(e==null)return{};var r=rq(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 rq(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 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)}function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(n){ut(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tr(e){return oq(e)||aq(e)||iq(e)||nq()}function nq(){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 iq(e,t){if(e){if(typeof e=="string")return Jf(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 Jf(e,t)}}function aq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oq(e){if(Array.isArray(e))return Jf(e)}function Jf(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 sq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v0(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,i_(n.key),n)}}function uq(e,t,r){return t&&v0(e.prototype,t),r&&v0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cq(e,t,r){return t=no(t),lq(e,n_()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function lq(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fq(e)}function fq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n_=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(e)}function dq(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&&ed(e,t)}function ed(e,t){return ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ed(e,t)}function ut(e,t,r){return t=i_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i_(e){var t=hq(e,"string");return rn(t)=="symbol"?t:t+""}function hq(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 Bi=function(e){function t(){var r;sq(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=cq(this,t,[].concat(i)),ut(r,"state",{isAnimationFinished:!0,totalLength:0}),ut(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),ut(r,"getStrokeDasharray",function(o,s,u){var c=u.reduce(function(g,b){return g+b});if(!c)return r.generateSimpleStrokeDasharray(s,o);for(var f=Math.floor(o/c),l=o%c,d=s-o,h=[],y=0,v=0;y<u.length;v+=u[y],++y)if(v+u[y]>l){h=[].concat(Tr(u.slice(0,y)),[l-v]);break}var p=h.length%2===0?[0,d]:[d];return[].concat(Tr(t.repeat(u,f)),Tr(h),p).map(function(g){return"".concat(g,"px")}).join(", ")}),ut(r,"id",hn("recharts-line-")),ut(r,"pathRef",function(o){r.mainCurve=o}),ut(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ut(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return dq(t,e),uq(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,s=a.xAxis,u=a.yAxis,c=a.layout,f=a.children,l=nt(f,qi);if(!l)return null;var d=function(v,p){return{x:v.x,y:v.y,value:v.value,errorVal:Ue(v.payload,p)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return E.createElement(ge,h,l.map(function(y){return E.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:u,layout:c,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,u=s.dot,c=s.points,f=s.dataKey,l=te(this.props,!1),d=te(u,!0),h=c.map(function(v,p){var g=Ve(Ve(Ve({key:"dot-".concat(p),r:3},l),d),{},{index:p,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:c});return t.renderDotItem(u,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return E.createElement(ge,Xn({className:"recharts-line-dots",key:"dots"},y),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,u=s.type,c=s.layout,f=s.connectNulls;s.ref;var l=h0(s,eq),d=Ve(Ve(Ve({},te(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:u,layout:c,connectNulls:f});return E.createElement(Rr,Xn({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.strokeDasharray,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,h=o.animationId,y=o.animateNewValues,v=o.width,p=o.height,g=this.state,b=g.prevPoints,_=g.totalLength;return E.createElement(xt,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(b){var w=b.length/s.length,S=s.map(function(j,M){var N=Math.floor(M*w);if(b[N]){var k=b[N],$=qe(k.x,j.x),B=qe(k.y,j.y);return Ve(Ve({},j),{},{x:$(m),y:B(m)})}if(y){var q=qe(v*2,j.x),L=qe(p/2,j.y);return Ve(Ve({},j),{},{x:q(m),y:L(m)})}return Ve(Ve({},j),{},{x:j.x,y:j.y})});return a.renderCurveStatically(S,n,i)}var A=qe(0,_),T=A(m),I;if(u){var P="".concat(u).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});I=a.getStrokeDasharray(T,_,P)}else I=a.generateSimpleStrokeDasharray(_,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:I})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,u=this.state,c=u.prevPoints,f=u.totalLength;return s&&o&&o.length&&(!c&&f>0||!Hr(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,s=i.points,u=i.className,c=i.xAxis,f=i.yAxis,l=i.top,d=i.left,h=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,_=ne("recharts-line",u),O=c&&c.allowDataOverflow,m=f&&f.allowDataOverflow,w=O||m,S=re(p)?this.id:p,A=(n=te(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,I=T===void 0?3:T,P=A.strokeWidth,j=P===void 0?2:P,M=_x(o)?o:{},N=M.clipDot,k=N===void 0?!0:N,$=I*2+j;return E.createElement(ge,{className:_},O||m?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(S)},E.createElement("rect",{x:O?d:d-h/2,y:m?l:l-y/2,width:O?h:h*2,height:m?y:y*2})),!k&&E.createElement("clipPath",{id:"clipPath-dots-".concat(S)},E.createElement("rect",{x:d-$/2,y:l-$/2,width:h+$,height:y+$}))):null,!b&&this.renderCurve(w,S),this.renderErrorBar(w,S),(b||o)&&this.renderDots(w,k,S),(!v||g)&&Et.renderCallByParent(this.props,s))}}],[{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(Tr(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Tr(o),Tr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(E.isValidElement(n))a=E.cloneElement(n,i);else if(ee(n))a=n(i);else{var o=i.key,s=h0(i,tq),u=ne("recharts-line-dot",typeof n!="boolean"?n.className:"");a=E.createElement(Io,Xn({key:o},s,{className:u}))}return a}}])}(C.PureComponent);ut(Bi,"displayName","Line");ut(Bi,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!_r.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ut(Bi,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,u=e.displayedData,c=e.offset,f=t.layout,l=u.map(function(d,h){var y=Ue(d,o);return f==="horizontal"?{x:Ra({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:re(y)?null:n.scale(y),value:y,payload:d}:{x:re(y)?null:r.scale(y),y:Ra({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:y,payload:d}});return Ve({points:l,layout:f},c)});var pq=["layout","type","stroke","connectNulls","isRange","ref"],vq=["key"],a_;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 o_(e,t){if(e==null)return{};var r=yq(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 yq(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 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 y0(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 qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y0(Object(r),!0).forEach(function(n){vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m0(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,u_(n.key),n)}}function gq(e,t,r){return t&&m0(e.prototype,t),r&&m0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bq(e,t,r){return t=io(t),xq(e,s_()?Reflect.construct(t,r||[],io(e).constructor):t.apply(e,r))}function xq(e,t){if(t&&(nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wq(e)}function wq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s_=function(){return!!e})()}function io(e){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},io(e)}function _q(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&&td(e,t)}function td(e,t){return td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},td(e,t)}function vt(e,t,r){return t=u_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u_(e){var t=Oq(e,"string");return nn(t)=="symbol"?t:t+""}function Oq(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 String(e)}var Yt=function(e){function t(){var r;mq(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=bq(this,t,[].concat(i)),vt(r,"state",{isAnimationFinished:!0}),vt(r,"id",hn("recharts-area-")),vt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ee(o)&&o()}),vt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ee(o)&&o()}),r}return _q(t,e),gq(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var u=this.props,c=u.dot,f=u.points,l=u.dataKey,d=te(this.props,!1),h=te(c,!0),y=f.map(function(p,g){var b=qt(qt(qt({key:"dot-".concat(g),r:3},d),h),{},{index:g,cx:p.x,cy:p.y,dataKey:l,value:p.value,payload:p.payload,points:f});return t.renderDotItem(c,b)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return E.createElement(ge,sr({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].x,c=o[o.length-1].x,f=n*Math.abs(u-c),l=Wt(o.map(function(d){return d.y||0}));return z(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Wt(a.map(function(d){return d.y||0})),l)),z(l)?E.createElement("rect",{x:u<c?u:u-f,y:0,width:f,height:Math.floor(l+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].y,c=o[o.length-1].y,f=n*Math.abs(u-c),l=Wt(o.map(function(d){return d.x||0}));return z(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Wt(a.map(function(d){return d.x||0})),l)),z(l)?E.createElement("rect",{x:0,y:u<c?u:u-f,width:l+(s?parseInt("".concat(s),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 s=this.props,u=s.layout,c=s.type,f=s.stroke,l=s.connectNulls,d=s.isRange;s.ref;var h=o_(s,pq);return E.createElement(ge,{clipPath:a?"url(#clipPath-".concat(o,")"):null},E.createElement(Rr,sr({},te(h,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),f!=="none"&&E.createElement(Rr,sr({},te(this.props,!1),{className:"recharts-area-curve",layout:u,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&d&&E.createElement(Rr,sr({},te(this.props,!1),{className:"recharts-area-curve",layout:u,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,h=o.animationId,y=this.state,v=y.prevPoints,p=y.prevBaseLine;return E.createElement(xt,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t;if(v){var _=v.length/s.length,O=s.map(function(A,T){var I=Math.floor(T*_);if(v[I]){var P=v[I],j=qe(P.x,A.x),M=qe(P.y,A.y);return qt(qt({},A),{},{x:j(b),y:M(b)})}return A}),m;if(z(u)&&typeof u=="number"){var w=qe(p,u);m=w(b)}else if(re(u)||dn(u)){var S=qe(p,0);m=S(b)}else m=u.map(function(A,T){var I=Math.floor(T*_);if(p[I]){var P=p[I],j=qe(P.x,A.x),M=qe(P.y,A.y);return qt(qt({},A),{},{x:j(b),y:M(b)})}return A});return a.renderAreaStatically(O,m,n,i)}return E.createElement(ge,null,E.createElement("defs",null,E.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),E.createElement(ge,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,u,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,u=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,d=c.totalLength;return u&&o&&o.length&&(!f&&d>0||!Hr(f,o)||!Hr(l,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,u=i.className,c=i.top,f=i.left,l=i.xAxis,d=i.yAxis,h=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,_=ne("recharts-area",u),O=l&&l.allowDataOverflow,m=d&&d.allowDataOverflow,w=O||m,S=re(p)?this.id:p,A=(n=te(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,I=T===void 0?3:T,P=A.strokeWidth,j=P===void 0?2:P,M=_x(o)?o:{},N=M.clipDot,k=N===void 0?!0:N,$=I*2+j;return E.createElement(ge,{className:_},O||m?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(S)},E.createElement("rect",{x:O?f:f-h/2,y:m?c:c-y/2,width:O?h:h*2,height:m?y:y*2})),!k&&E.createElement("clipPath",{id:"clipPath-dots-".concat(S)},E.createElement("rect",{x:f-$/2,y:c-$/2,width:h+$,height:y+$}))):null,b?null:this.renderArea(w,S),(o||b)&&this.renderDots(w,k,S),(!v||g)&&Et.renderCallByParent(this.props,s))}}],[{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}}])}(C.PureComponent);a_=Yt;vt(Yt,"displayName","Area");vt(Yt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_r.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});vt(Yt,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(z(s)&&typeof s=="number")return s;var u=i==="horizontal"?n:r,c=u.scale.domain();if(u.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return s==="dataMin"?l:s==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});vt(Yt,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,u=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,h=t.layout,y=c&&c.length,v=a_.getBaseValue(t,r,n,i),p=h==="horizontal",g=!1,b=l.map(function(O,m){var w;y?w=c[f+m]:(w=Ue(O,u),Array.isArray(w)?g=!0:w=[v,w]);var S=w[1]==null||y&&Ue(O,u)==null;return p?{x:Ra({axis:n,ticks:a,bandSize:s,entry:O,index:m}),y:S?null:i.scale(w[1]),value:w,payload:O}:{x:S?null:n.scale(w[1]),y:Ra({axis:i,ticks:o,bandSize:s,entry:O,index:m}),value:w,payload:O}}),_;return y||g?_=b.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return p?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):_=p?i.scale(v):n.scale(v),qt({points:b,baseLine:_,layout:h,isRange:g},d)});vt(Yt,"renderDotItem",function(e,t){var r;if(E.isValidElement(e))r=E.cloneElement(e,t);else if(ee(e))r=e(t);else{var n=ne("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=o_(t,vq);r=E.createElement(Io,sr({},a,{key:i,className:n}))}return r});function an(e){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(e)}function Sq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aq(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,f_(n.key),n)}}function Pq(e,t,r){return t&&Aq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jq(e,t,r){return t=ao(t),Tq(e,c_()?Reflect.construct(t,r||[],ao(e).constructor):t.apply(e,r))}function Tq(e,t){if(t&&(an(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Eq(e)}function Eq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c_=function(){return!!e})()}function ao(e){return ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ao(e)}function Mq(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&&rd(e,t)}function rd(e,t){return rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rd(e,t)}function l_(e,t,r){return t=f_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f_(e){var t=Cq(e,"string");return an(t)=="symbol"?t:t+""}function Cq(e,t){if(an(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(an(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function nd(){return nd=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},nd.apply(this,arguments)}function $q(e){var t=e.xAxisId,r=ph(),n=vh(),i=K1(t);return i==null?null:C.createElement(gn,nd({},i,{className:ne("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return St(o,!0)}}))}var Fi=function(e){function t(){return Sq(this,t),jq(this,t,arguments)}return Mq(t,e),Pq(t,[{key:"render",value:function(){return C.createElement($q,this.props)}}])}(C.Component);l_(Fi,"displayName","XAxis");l_(Fi,"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 on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function Iq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kq(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,p_(n.key),n)}}function Nq(e,t,r){return t&&kq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dq(e,t,r){return t=oo(t),Rq(e,d_()?Reflect.construct(t,r||[],oo(e).constructor):t.apply(e,r))}function Rq(e,t){if(t&&(on(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qq(e)}function qq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d_=function(){return!!e})()}function oo(e){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oo(e)}function Lq(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&&id(e,t)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},id(e,t)}function h_(e,t,r){return t=p_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p_(e){var t=Bq(e,"string");return on(t)=="symbol"?t:t+""}function Bq(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ad(){return ad=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},ad.apply(this,arguments)}var Fq=function(t){var r=t.yAxisId,n=ph(),i=vh(),a=H1(r);return a==null?null:C.createElement(gn,ad({},a,{className:ne("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return St(s,!0)}}))},bn=function(e){function t(){return Iq(this,t),Dq(this,t,arguments)}return Lq(t,e),Nq(t,[{key:"render",value:function(){return C.createElement(Fq,this.props)}}])}(C.Component);h_(bn,"displayName","YAxis");h_(bn,"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 g0(e){return Kq(e)||Uq(e)||zq(e)||Wq()}function Wq(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zq(e,t){if(e){if(typeof e=="string")return od(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 od(e,t)}}function Uq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kq(e){if(Array.isArray(e))return od(e)}function od(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 sd=function(t,r,n,i,a){var o=nt(t,mh),s=nt(t,qo),u=[].concat(g0(o),g0(s)),c=nt(t,Bo),f="".concat(i,"Id"),l=i[0],d=r;if(u.length&&(d=u.reduce(function(v,p){if(p.props[f]===n&&mt(p.props,"extendDomain")&&z(p.props[l])){var g=p.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),c.length){var h="".concat(l,"1"),y="".concat(l,"2");d=c.reduce(function(v,p){if(p.props[f]===n&&mt(p.props,"extendDomain")&&z(p.props[h])&&z(p.props[y])){var g=p.props[h],b=p.props[y];return[Math.min(v[0],g,b),Math.max(v[1],g,b)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,p){return z(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},d)),d},Ll={exports:{}},b0;function Hq(){return b0||(b0=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(u,c,f){this.fn=u,this.context=c,this.once=f||!1}function a(u,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,l||u,d),y=r?r+c:c;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],h]:u._events[y].push(h):(u._events[y]=h,u._eventsCount++),u}function o(u,c){--u._eventsCount===0?u._events=new n:delete u._events[c]}function s(){this._events=new n,this._eventsCount=0}s.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},s.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 d=0,h=l.length,y=new Array(h);d<h;d++)y[d]=l[d].fn;return y},s.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},s.prototype.emit=function(c,f,l,d,h,y){var v=r?r+c:c;if(!this._events[v])return!1;var p=this._events[v],g=arguments.length,b,_;if(p.fn){switch(p.once&&this.removeListener(c,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,d),!0;case 5:return p.fn.call(p.context,f,l,d,h),!0;case 6:return p.fn.call(p.context,f,l,d,h,y),!0}for(_=1,b=new Array(g-1);_<g;_++)b[_-1]=arguments[_];p.fn.apply(p.context,b)}else{var O=p.length,m;for(_=0;_<O;_++)switch(p[_].once&&this.removeListener(c,p[_].fn,void 0,!0),g){case 1:p[_].fn.call(p[_].context);break;case 2:p[_].fn.call(p[_].context,f);break;case 3:p[_].fn.call(p[_].context,f,l);break;case 4:p[_].fn.call(p[_].context,f,l,d);break;default:if(!b)for(m=1,b=new Array(g-1);m<g;m++)b[m-1]=arguments[m];p[_].fn.apply(p[_].context,b)}}return!0},s.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},s.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},s.prototype.removeListener=function(c,f,l,d){var h=r?r+c:c;if(!this._events[h])return this;if(!f)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===f&&(!d||y.once)&&(!l||y.context===l)&&o(this,h);else{for(var v=0,p=[],g=y.length;v<g;v++)(y[v].fn!==f||d&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[h]=p.length===1?p[0]:p:o(this,h)}return this},s.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},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(Ll)),Ll.exports}var Gq=Hq();const Vq=be(Gq);var Bl=new Vq,Fl="recharts.syncMouseEvents";function Ci(e){"@babel/helpers - typeof";return Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ci(e)}function Xq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yq(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,v_(n.key),n)}}function Zq(e,t,r){return t&&Yq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wl(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=Qq(e,"string");return Ci(t)=="symbol"?t:t+""}function Qq(e,t){if(Ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jq=function(){function e(){Xq(this,e),Wl(this,"activeIndex",0),Wl(this,"coordinateList",[]),Wl(this,"layout","horizontal")}return Zq(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,u=r.layout,c=u===void 0?null:u,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=h??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,s=i.height,u=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+u+c,d=o+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])}();function eL(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&z(n)&&z(i))return!0}return!1}function tL(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 y_(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Le(t,r,n,i),s=Le(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function rL(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 s=t.cx,u=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=Le(s,u,c,l),h=Le(s,u,f,l);n=d.x,i=d.y,a=h.x,o=h.y}else return y_(t);return[{x:n,y:i},{x:a,y:o}]}function $i(e){"@babel/helpers - typeof";return $i=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},$i(e)}function x0(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 ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x0(Object(r),!0).forEach(function(n){nL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nL(e,t,r){return t=iL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iL(e){var t=aL(e,"string");return $i(t)=="symbol"?t:t+""}function aL(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oL(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,u=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,v=Rr;if(d==="ScatterChart")y=o,v=VN;else if(d==="BarChart")y=tL(l,o,u,f),v=lh;else if(l==="radial"){var p=y_(o),g=p.cx,b=p.cy,_=p.radius,O=p.startAngle,m=p.endAngle;y={cx:g,cy:b,startAngle:O,endAngle:m,innerRadius:_,outerRadius:_},v=x1}else y={points:rL(l,o,u)},v=Rr;var w=ia(ia(ia(ia({stroke:"#ccc",pointerEvents:"none"},u),y),te(h,!1)),{},{payload:s,payloadIndex:c,className:ne("recharts-tooltip-cursor",h.className)});return C.isValidElement(h)?C.cloneElement(h,w):C.createElement(v,w)}var sL=["item"],uL=["children","className","width","height","style","compact","title","desc"];function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function 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 w0(e,t){return fL(e)||lL(e,t)||g_(e,t)||cL()}function cL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function fL(e){if(Array.isArray(e))return e}function _0(e,t){if(e==null)return{};var r=dL(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 dL(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 hL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b_(n.key),n)}}function vL(e,t,r){return t&&pL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yL(e,t,r){return t=so(t),mL(e,m_()?Reflect.construct(t,r||[],so(e).constructor):t.apply(e,r))}function mL(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gL(e)}function gL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m_=function(){return!!e})()}function so(e){return so=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},so(e)}function bL(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&&ud(e,t)}function ud(e,t){return ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ud(e,t)}function un(e){return _L(e)||wL(e)||g_(e)||xL()}function xL(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g_(e,t){if(e){if(typeof e=="string")return cd(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 cd(e,t)}}function wL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _L(e){if(Array.isArray(e))return cd(e)}function cd(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 O0(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 R(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O0(Object(r),!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X(e,t,r){return t=b_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b_(e){var t=OL(e,"string");return sn(t)=="symbol"?t:t+""}function OL(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SL={xAxis:["bottom","top"],yAxis:["left","right"]},AL={width:"100%",height:"100%"},x_={x:0,y:0};function aa(e){return e}var PL=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},jL=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,s=i.radius;return R(R(R({},i),Le(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var u=a.coordinate,c=i.angle;return R(R(R({},i),Le(i.cx,i.cy,u,c)),{},{angle:c,radius:u})}return x_},Fo=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,u){var c=u.props.data;return c&&c.length?[].concat(un(s),un(c)):s},[]);return o.length>0?o:t&&t.length&&z(i)&&z(a)?t.slice(i,a+1):[]};function w_(e){return e==="number"?[0,"auto"]:void 0}var ld=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Fo(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(u,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 d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=l===void 0?s:l;d=pa(h,o.dataKey,i)}else d=l&&l[n]||s[n];return d?[].concat(un(u),[m1(c,d)]):u},[])},S0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=PL(a,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,f=C$(o,s,c,u);if(f>=0&&c){var l=c[f]&&c[f].value,d=ld(t,r,f,l),h=jL(n,s,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:h}}return null},TL=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,h=p1(f,a);return n.reduce(function(y,v){var p,g=v.type.defaultProps!==void 0?R(R({},v.type.defaultProps),v.props):v.props,b=g.type,_=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,w=g.scale,S=g.ticks,A=g.includeHidden,T=g[o];if(y[T])return y;var I=Fo(t.data,{graphicalItems:i.filter(function(W){var U,Y=o in W.props?W.props[o]:(U=W.type.defaultProps)===null||U===void 0?void 0:U[o];return Y===T}),dataStartIndex:u,dataEndIndex:c}),P=I.length,j,M,N;eL(g.domain,O,b)&&(j=jf(g.domain,null,O),h&&(b==="number"||w!=="auto")&&(N=Gn(I,_,"category")));var k=w_(b);if(!j||j.length===0){var $,B=($=g.domain)!==null&&$!==void 0?$:k;if(_){if(j=Gn(I,_,b),b==="category"&&h){var q=VS(j);m&&q?(M=j,j=Ga(0,P)):m||(j=Ig(B,j,v).reduce(function(W,U){return W.indexOf(U)>=0?W:[].concat(un(W),[U])},[]))}else if(b==="category")m?j=j.filter(function(W){return W!==""&&!re(W)}):j=Ig(B,j,v).reduce(function(W,U){return W.indexOf(U)>=0||U===""||re(U)?W:[].concat(un(W),[U])},[]);else if(b==="number"){var L=D$(I,i.filter(function(W){var U,Y,ue=o in W.props?W.props[o]:(U=W.type.defaultProps)===null||U===void 0?void 0:U[o],Ae="hide"in W.props?W.props.hide:(Y=W.type.defaultProps)===null||Y===void 0?void 0:Y.hide;return ue===T&&(A||!Ae)}),_,a,f);L&&(j=L)}h&&(b==="number"||w!=="auto")&&(N=Gn(I,_,"category"))}else h?j=Ga(0,P):s&&s[T]&&s[T].hasStack&&b==="number"?j=d==="expand"?[0,1]:y1(s[T].stackGroups,u,c):j=h1(I,i.filter(function(W){var U=o in W.props?W.props[o]:W.type.defaultProps[o],Y="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return U===T&&(A||!Y)}),b,f,!0);if(b==="number")j=sd(l,j,T,a,S),B&&(j=jf(B,j,O));else if(b==="category"&&B){var K=B,G=j.every(function(W){return K.indexOf(W)>=0});G&&(j=K)}}return R(R({},y),{},X({},T,R(R({},g),{},{axisType:a,domain:j,categoricalDomain:N,duplicateDomain:M,originalDomain:(p=g.domain)!==null&&p!==void 0?p:k,isCategorical:h,layout:f})))},{})},EL=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=Fo(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),h=d.length,y=p1(f,a),v=-1;return n.reduce(function(p,g){var b=g.type.defaultProps!==void 0?R(R({},g.type.defaultProps),g.props):g.props,_=b[o],O=w_("number");if(!p[_]){v++;var m;return y?m=Ga(0,h):s&&s[_]&&s[_].hasStack?(m=y1(s[_].stackGroups,u,c),m=sd(l,m,_,a)):(m=jf(O,h1(d,n.filter(function(w){var S,A,T=o in w.props?w.props[o]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[o],I="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===_&&!I}),"number",f),i.defaultProps.allowDataOverflow),m=sd(l,m,_,a)),R(R({},p),{},X({},_,R(R({axisType:a},i.defaultProps),{},{hide:!0,orientation:rt(SL,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},ML=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=nt(f,a),h={};return d&&d.length?h=TL(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:s,dataStartIndex:u,dataEndIndex:c}):o&&o.length&&(h=EL(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:s,dataStartIndex:u,dataEndIndex:c})),h},CL=function(t){var r=Bt(t),n=St(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Kd(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:qa(r,n)}},A0=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ye(r,Yr),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}},$L=function(t){return!t||!t.length?!1:t.some(function(r){var n=Pt(r&&r.type);return n&&n.indexOf("Bar")>=0})},P0=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"}},IL=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,u=s===void 0?{}:s,c=n.width,f=n.height,l=n.children,d=n.margin||{},h=Ye(l,Yr),y=Ye(l,cr),v=Object.keys(u).reduce(function(m,w){var S=u[w],A=S.orientation;return!S.mirror&&!S.hide?R(R({},m),{},X({},A,m[A]+S.width)):m},{left:d.left||0,right:d.right||0}),p=Object.keys(o).reduce(function(m,w){var S=o[w],A=S.orientation;return!S.mirror&&!S.hide?R(R({},m),{},X({},A,rt(m,"".concat(A))+S.height)):m},{top:d.top||0,bottom:d.bottom||0}),g=R(R({},p),v),b=g.bottom;h&&(g.bottom+=h.props.height||Yr.defaultProps.height),y&&r&&(g=k$(g,i,n,r));var _=c-g.left-g.right,O=f-g.top-g.bottom;return R(R({brushBottom:b},g),{},{width:Math.max(_,0),height:Math.max(O,0)})},kL=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},__=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,u=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(g,b){var _=b.graphicalItems,O=b.stackGroups,m=b.offset,w=b.updateId,S=b.dataStartIndex,A=b.dataEndIndex,T=g.barSize,I=g.layout,P=g.barGap,j=g.barCategoryGap,M=g.maxBarSize,N=P0(I),k=N.numericAxisName,$=N.cateAxisName,B=$L(_),q=[];return _.forEach(function(L,K){var G=Fo(g.data,{graphicalItems:[L],dataStartIndex:S,dataEndIndex:A}),W=L.type.defaultProps!==void 0?R(R({},L.type.defaultProps),L.props):L.props,U=W.dataKey,Y=W.maxBarSize,ue=W["".concat(k,"Id")],Ae=W["".concat($,"Id")],fe={},Se=u.reduce(function(Zt,Qt){var Uo=b["".concat(Qt.axisType,"Map")],Sh=W["".concat(Qt.axisType,"Id")];Uo&&Uo[Sh]||Qt.axisType==="zAxis"||yr();var Ah=Uo[Sh];return R(R({},Zt),{},X(X({},Qt.axisType,Ah),"".concat(Qt.axisType,"Ticks"),St(Ah)))},fe),H=Se[$],Z=Se["".concat($,"Ticks")],Q=O&&O[ue]&&O[ue].hasStack&&V$(L,O[ue].stackGroups),F=Pt(L.type).indexOf("Bar")>=0,Pe=qa(H,Z),ie=[],Me=B&&$$({barSize:T,stackGroups:O,totalSize:kL(Se,$)});if(F){var Ce,Ke,Nt=re(Y)?M:Y,Sr=(Ce=(Ke=qa(H,Z,!0))!==null&&Ke!==void 0?Ke:Nt)!==null&&Ce!==void 0?Ce:0;ie=I$({barGap:P,barCategoryGap:j,bandSize:Sr!==Pe?Sr:Pe,sizeList:Me[Ae],maxBarSize:Nt}),Sr!==Pe&&(ie=ie.map(function(Zt){return R(R({},Zt),{},{position:R(R({},Zt.position),{},{offset:Zt.position.offset-Sr/2})})}))}var Wi=L&&L.type&&L.type.getComposedData;Wi&&q.push({props:R(R({},Wi(R(R({},Se),{},{displayedData:G,props:g,dataKey:U,item:L,bandSize:Pe,barPosition:ie,offset:m,stackedData:Q,layout:I,dataStartIndex:S,dataEndIndex:A}))),{},X(X(X({key:L.key||"item-".concat(K)},k,Se[k]),$,Se[$]),"animationId",w)),childIndex:oA(L,g.children),item:L})}),q},h=function(g,b){var _=g.props,O=g.dataStartIndex,m=g.dataEndIndex,w=g.updateId;if(!Jp({props:_}))return null;var S=_.children,A=_.layout,T=_.stackOffset,I=_.data,P=_.reverseStackOrder,j=P0(A),M=j.numericAxisName,N=j.cateAxisName,k=nt(S,n),$=K$(I,k,"".concat(M,"Id"),"".concat(N,"Id"),T,P),B=u.reduce(function(W,U){var Y="".concat(U.axisType,"Map");return R(R({},W),{},X({},Y,ML(_,R(R({},U),{},{graphicalItems:k,stackGroups:U.axisType===M&&$,dataStartIndex:O,dataEndIndex:m}))))},{}),q=IL(R(R({},B),{},{props:_,graphicalItems:k}),b?.legendBBox);Object.keys(B).forEach(function(W){B[W]=f(_,B[W],q,W.replace("Map",""),r)});var L=B["".concat(N,"Map")],K=CL(L),G=d(_,R(R({},B),{},{dataStartIndex:O,dataEndIndex:m,updateId:w,graphicalItems:k,stackGroups:$,offset:q}));return R(R({formattedGraphicalItems:G,graphicalItems:k,offset:q,stackGroups:$},K),B)},y=function(p){function g(b){var _,O,m;return hL(this,g),m=yL(this,g,[b]),X(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X(m,"accessibilityManager",new Jq),X(m,"handleLegendBBoxUpdate",function(w){if(w){var S=m.state,A=S.dataStartIndex,T=S.dataEndIndex,I=S.updateId;m.setState(R({legendBBox:w},h({props:m.props,dataStartIndex:A,dataEndIndex:T,updateId:I},R(R({},m.state),{},{legendBBox:w}))))}}),X(m,"handleReceiveSyncEvent",function(w,S,A){if(m.props.syncId===w){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(S)}}),X(m,"handleBrushChange",function(w){var S=w.startIndex,A=w.endIndex;if(S!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var T=m.state.updateId;m.setState(function(){return R({dataStartIndex:S,dataEndIndex:A},h({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:T},m.state))}),m.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),X(m,"handleMouseEnter",function(w){var S=m.getMouseInfo(w);if(S){var A=R(R({},S),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseEnter;ee(T)&&T(A,w)}}),X(m,"triggeredAfterMouseMove",function(w){var S=m.getMouseInfo(w),A=S?R(R({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseMove;ee(T)&&T(A,w)}),X(m,"handleItemMouseEnter",function(w){m.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),X(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),X(m,"handleMouseMove",function(w){w.persist(),m.throttleTriggeredAfterMouseMove(w)}),X(m,"handleMouseLeave",function(w){m.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var A=m.props.onMouseLeave;ee(A)&&A(S,w)}),X(m,"handleOuterEvent",function(w){var S=aA(w),A=rt(m.props,"".concat(S));if(S&&ee(A)){var T,I;/.*touch.*/i.test(S)?I=m.getMouseInfo(w.changedTouches[0]):I=m.getMouseInfo(w),A((T=I)!==null&&T!==void 0?T:{},w)}}),X(m,"handleClick",function(w){var S=m.getMouseInfo(w);if(S){var A=R(R({},S),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onClick;ee(T)&&T(A,w)}}),X(m,"handleMouseDown",function(w){var S=m.props.onMouseDown;if(ee(S)){var A=m.getMouseInfo(w);S(A,w)}}),X(m,"handleMouseUp",function(w){var S=m.props.onMouseUp;if(ee(S)){var A=m.getMouseInfo(w);S(A,w)}}),X(m,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),X(m,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.handleMouseDown(w.changedTouches[0])}),X(m,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.handleMouseUp(w.changedTouches[0])}),X(m,"handleDoubleClick",function(w){var S=m.props.onDoubleClick;if(ee(S)){var A=m.getMouseInfo(w);S(A,w)}}),X(m,"handleContextMenu",function(w){var S=m.props.onContextMenu;if(ee(S)){var A=m.getMouseInfo(w);S(A,w)}}),X(m,"triggerSyncEvent",function(w){m.props.syncId!==void 0&&Bl.emit(Fl,m.props.syncId,w,m.eventEmitterSymbol)}),X(m,"applySyncEvent",function(w){var S=m.props,A=S.layout,T=S.syncMethod,I=m.state.updateId,P=w.dataStartIndex,j=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)m.setState(R({dataStartIndex:P,dataEndIndex:j},h({props:m.props,dataStartIndex:P,dataEndIndex:j,updateId:I},m.state)));else if(w.activeTooltipIndex!==void 0){var M=w.chartX,N=w.chartY,k=w.activeTooltipIndex,$=m.state,B=$.offset,q=$.tooltipTicks;if(!B)return;if(typeof T=="function")k=T(q,w);else if(T==="value"){k=-1;for(var L=0;L<q.length;L++)if(q[L].value===w.activeLabel){k=L;break}}var K=R(R({},B),{},{x:B.left,y:B.top}),G=Math.min(M,K.x+K.width),W=Math.min(N,K.y+K.height),U=q[k]&&q[k].value,Y=ld(m.state,m.props.data,k),ue=q[k]?{x:A==="horizontal"?q[k].coordinate:G,y:A==="horizontal"?W:q[k].coordinate}:x_;m.setState(R(R({},w),{},{activeLabel:U,activeCoordinate:ue,activePayload:Y,activeTooltipIndex:k}))}else m.setState(w)}),X(m,"renderCursor",function(w){var S,A=m.state,T=A.isTooltipActive,I=A.activeCoordinate,P=A.activePayload,j=A.offset,M=A.activeTooltipIndex,N=A.tooltipAxisBandSize,k=m.getTooltipEventType(),$=(S=w.props.active)!==null&&S!==void 0?S:T,B=m.props.layout,q=w.key||"_recharts-cursor";return E.createElement(oL,{key:q,activeCoordinate:I,activePayload:P,activeTooltipIndex:M,chartName:r,element:w,isActive:$,layout:B,offset:j,tooltipAxisBandSize:N,tooltipEventType:k})}),X(m,"renderPolarAxis",function(w,S,A){var T=rt(w,"type.axisType"),I=rt(m.state,"".concat(T,"Map")),P=w.type.defaultProps,j=P!==void 0?R(R({},P),w.props):w.props,M=I&&I[j["".concat(T,"Id")]];return C.cloneElement(w,R(R({},M),{},{className:ne(T,M.className),key:w.key||"".concat(S,"-").concat(A),ticks:St(M,!0)}))}),X(m,"renderPolarGrid",function(w){var S=w.props,A=S.radialLines,T=S.polarAngles,I=S.polarRadius,P=m.state,j=P.radiusAxisMap,M=P.angleAxisMap,N=Bt(j),k=Bt(M),$=k.cx,B=k.cy,q=k.innerRadius,L=k.outerRadius;return C.cloneElement(w,{polarAngles:Array.isArray(T)?T:St(k,!0).map(function(K){return K.coordinate}),polarRadius:Array.isArray(I)?I:St(N,!0).map(function(K){return K.coordinate}),cx:$,cy:B,innerRadius:q,outerRadius:L,key:w.key||"polar-grid",radialLines:A})}),X(m,"renderLegend",function(){var w=m.state.formattedGraphicalItems,S=m.props,A=S.children,T=S.width,I=S.height,P=m.props.margin||{},j=T-(P.left||0)-(P.right||0),M=f1({children:A,formattedGraphicalItems:w,legendWidth:j,legendContent:c});if(!M)return null;var N=M.item,k=_0(M,sL);return C.cloneElement(N,R(R({},k),{},{chartWidth:T,chartHeight:I,margin:P,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),X(m,"renderTooltip",function(){var w,S=m.props,A=S.children,T=S.accessibilityLayer,I=Ye(A,ht);if(!I)return null;var P=m.state,j=P.isTooltipActive,M=P.activeCoordinate,N=P.activePayload,k=P.activeLabel,$=P.offset,B=(w=I.props.active)!==null&&w!==void 0?w:j;return C.cloneElement(I,{viewBox:R(R({},$),{},{x:$.left,y:$.top}),active:B,label:k,payload:B?N:[],coordinate:M,accessibilityLayer:T})}),X(m,"renderBrush",function(w){var S=m.props,A=S.margin,T=S.data,I=m.state,P=I.offset,j=I.dataStartIndex,M=I.dataEndIndex,N=I.updateId;return C.cloneElement(w,{key:w.key||"_recharts-brush",onChange:ea(m.handleBrushChange,w.props.onChange),data:T,x:z(w.props.x)?w.props.x:P.left,y:z(w.props.y)?w.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:z(w.props.width)?w.props.width:P.width,startIndex:j,endIndex:M,updateId:"brush-".concat(N)})}),X(m,"renderReferenceElement",function(w,S,A){if(!w)return null;var T=m,I=T.clipPathId,P=m.state,j=P.xAxisMap,M=P.yAxisMap,N=P.offset,k=w.type.defaultProps||{},$=w.props,B=$.xAxisId,q=B===void 0?k.xAxisId:B,L=$.yAxisId,K=L===void 0?k.yAxisId:L;return C.cloneElement(w,{key:w.key||"".concat(S,"-").concat(A),xAxis:j[q],yAxis:M[K],viewBox:{x:N.left,y:N.top,width:N.width,height:N.height},clipPathId:I})}),X(m,"renderActivePoints",function(w){var S=w.item,A=w.activePoint,T=w.basePoint,I=w.childIndex,P=w.isRange,j=[],M=S.props.key,N=S.item.type.defaultProps!==void 0?R(R({},S.item.type.defaultProps),S.item.props):S.item.props,k=N.activeDot,$=N.dataKey,B=R(R({index:I,dataKey:$,cx:A.x,cy:A.y,r:4,fill:ch(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},te(k,!1)),va(k));return j.push(g.renderActiveDot(k,B,"".concat(M,"-activePoint-").concat(I))),T?j.push(g.renderActiveDot(k,R(R({},B),{},{cx:T.x,cy:T.y}),"".concat(M,"-basePoint-").concat(I))):P&&j.push(null),j}),X(m,"renderGraphicChild",function(w,S,A){var T=m.filterFormatItem(w,S,A);if(!T)return null;var I=m.getTooltipEventType(),P=m.state,j=P.isTooltipActive,M=P.tooltipAxis,N=P.activeTooltipIndex,k=P.activeLabel,$=m.props.children,B=Ye($,ht),q=T.props,L=q.points,K=q.isRange,G=q.baseLine,W=T.item.type.defaultProps!==void 0?R(R({},T.item.type.defaultProps),T.item.props):T.item.props,U=W.activeDot,Y=W.hide,ue=W.activeBar,Ae=W.activeShape,fe=!!(!Y&&j&&B&&(U||ue||Ae)),Se={};I!=="axis"&&B&&B.props.trigger==="click"?Se={onClick:ea(m.handleItemMouseEnter,w.props.onClick)}:I!=="axis"&&(Se={onMouseLeave:ea(m.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:ea(m.handleItemMouseEnter,w.props.onMouseEnter)});var H=C.cloneElement(w,R(R({},T.props),Se));function Z(Qt){return typeof M.dataKey=="function"?M.dataKey(Qt.payload):null}if(fe)if(N>=0){var Q,F;if(M.dataKey&&!M.allowDuplicatedCategory){var Pe=typeof M.dataKey=="function"?Z:"payload.".concat(M.dataKey.toString());Q=pa(L,Pe,k),F=K&&G&&pa(G,Pe,k)}else Q=L?.[N],F=K&&G&&G[N];if(Ae||ue){var ie=w.props.activeIndex!==void 0?w.props.activeIndex:N;return[C.cloneElement(w,R(R(R({},T.props),Se),{},{activeIndex:ie})),null,null]}if(!re(Q))return[H].concat(un(m.renderActivePoints({item:T,activePoint:Q,basePoint:F,childIndex:N,isRange:K})))}else{var Me,Ce=(Me=m.getItemByXY(m.state.activeCoordinate))!==null&&Me!==void 0?Me:{graphicalItem:H},Ke=Ce.graphicalItem,Nt=Ke.item,Sr=Nt===void 0?w:Nt,Wi=Ke.childIndex,Zt=R(R(R({},T.props),Se),{},{activeIndex:Wi});return[C.cloneElement(Sr,Zt),null,null]}return K?[H,null,null]:[H,null]}),X(m,"renderCustomized",function(w,S,A){return C.cloneElement(w,R(R({key:"recharts-customized-".concat(A)},m.props),m.state))}),X(m,"renderMap",{CartesianGrid:{handler:aa,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:aa},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:aa},YAxis:{handler:aa},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((_=b.id)!==null&&_!==void 0?_:hn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=vw(m.triggeredAfterMouseMove,(O=b.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return bL(g,p),vL(g,[{key:"componentDidMount",value:function(){var _,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var _=this.props,O=_.children,m=_.data,w=_.height,S=_.layout,A=Ye(O,ht);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var I=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=ld(this.state,m,T,I),j=this.state.tooltipTicks[T].coordinate,M=(this.state.offset.top+w)/2,N=S==="horizontal",k=N?{x:j,y:M}:{y:j,x:M},$=this.state.formattedGraphicalItems.find(function(q){var L=q.item;return L.type.name==="Scatter"});$&&(k=R(R({},k),$.props.points[T].tooltipPosition),P=$.props.points[T].tooltipPayload);var B={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:I,activePayload:P,activeCoordinate:k};this.setState(B),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(_,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==_.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==_.margin){var m,w;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(_){Zl([Ye(_.children,ht)],[Ye(this.props.children,ht)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var _=Ye(this.props.children,ht);if(_&&typeof _.props.shared=="boolean"){var O=_.props.shared?"axis":"item";return s.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(_){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),w=GT(m),S={chartX:Math.round(_.pageX-w.left),chartY:Math.round(_.pageY-w.top)},A=m.width/O.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,A);if(!T)return null;var I=this.state,P=I.xAxisMap,j=I.yAxisMap,M=this.getTooltipEventType(),N=S0(this.state,this.props.data,this.props.layout,T);if(M!=="axis"&&P&&j){var k=Bt(P).scale,$=Bt(j).scale,B=k&&k.invert?k.invert(S.chartX):null,q=$&&$.invert?$.invert(S.chartY):null;return R(R({},S),{},{xValue:B,yValue:q},N)}return N?R(R({},S),N):null}},{key:"inRange",value:function(_,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=_/m,A=O/m;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,I=S>=T.left&&S<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return I?{x:S,y:A}:null}var P=this.state,j=P.angleAxisMap,M=P.radiusAxisMap;if(j&&M){var N=Bt(j);return Dg({x:S,y:A},N)}return null}},{key:"parseEventsOfWrapper",value:function(){var _=this.props.children,O=this.getTooltipEventType(),m=Ye(_,ht),w={};m&&O==="axis"&&(m.props.trigger==="click"?w={onClick:this.handleClick}:w={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 S=va(this.props,this.handleOuterEvent);return R(R({},S),w)}},{key:"addListener",value:function(){Bl.on(Fl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Bl.removeListener(Fl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(_,O,m){for(var w=this.state.formattedGraphicalItems,S=0,A=w.length;S<A;S++){var T=w[S];if(T.item===_||T.props.key===_.key||O===Pt(T.item.type)&&m===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var _=this.clipPathId,O=this.state.offset,m=O.left,w=O.top,S=O.height,A=O.width;return E.createElement("defs",null,E.createElement("clipPath",{id:_},E.createElement("rect",{x:m,y:w,height:S,width:A})))}},{key:"getXScales",value:function(){var _=this.state.xAxisMap;return _?Object.entries(_).reduce(function(O,m){var w=w0(m,2),S=w[0],A=w[1];return R(R({},O),{},X({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var _=this.state.yAxisMap;return _?Object.entries(_).reduce(function(O,m){var w=w0(m,2),S=w[0],A=w[1];return R(R({},O),{},X({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(_){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[_])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(_){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[_])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(_){var O=this.state,m=O.formattedGraphicalItems,w=O.activeItem;if(m&&m.length)for(var S=0,A=m.length;S<A;S++){var T=m[S],I=T.props,P=T.item,j=P.type.defaultProps!==void 0?R(R({},P.type.defaultProps),P.props):P.props,M=Pt(P.type);if(M==="Bar"){var N=(I.data||[]).find(function(q){return qN(_,q)});if(N)return{graphicalItem:T,payload:N}}else if(M==="RadialBar"){var k=(I.data||[]).find(function(q){return Dg(_,q)});if(k)return{graphicalItem:T,payload:k}}else if(ko(T,w)||No(T,w)||Pi(T,w)){var $=T2({graphicalItem:T,activeTooltipItem:w,itemData:j.data}),B=j.activeIndex===void 0?$:j.activeIndex;return{graphicalItem:R(R({},T),{},{childIndex:B}),payload:Pi(T,w)?j.data[$]:T.props.data[$]}}}return null}},{key:"render",value:function(){var _=this;if(!Jp(this))return null;var O=this.props,m=O.children,w=O.className,S=O.width,A=O.height,T=O.style,I=O.compact,P=O.title,j=O.desc,M=_0(O,uL),N=te(M,!1);if(I)return E.createElement(e0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement(Jl,Ir({},N,{width:S,height:A,title:P,desc:j}),this.renderClipPath(),tv(m,this.renderMap)));if(this.props.accessibilityLayer){var k,$;N.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,N.role=($=this.props.role)!==null&&$!==void 0?$:"application",N.onKeyDown=function(q){_.accessibilityManager.keyboardEvent(q)},N.onFocus=function(){_.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return E.createElement(e0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement("div",Ir({className:ne("recharts-wrapper",w),style:R({position:"relative",curs
62or:"default",width:S,height:A},T)},B,{ref:function(L){_.container=L}}),E.createElement(Jl,Ir({},N,{width:S,height:A,title:P,desc:j,style:AL}),this.renderClipPath(),tv(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(C.Component);X(y,"displayName",r),X(y,"defaultProps",R({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),X(y,"getDerivedStateFromProps",function(p,g){var b=p.dataKey,_=p.data,O=p.children,m=p.width,w=p.height,S=p.layout,A=p.stackOffset,T=p.margin,I=g.dataStartIndex,P=g.dataEndIndex;if(g.updateId===void 0){var j=A0(p);return R(R(R({},j),{},{updateId:0},h(R(R({props:p},j),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:_,prevWidth:m,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(b!==g.prevDataKey||_!==g.prevData||m!==g.prevWidth||w!==g.prevHeight||S!==g.prevLayout||A!==g.prevStackOffset||!kr(T,g.prevMargin)){var M=A0(p),N={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},k=R(R({},S0(g,_,S)),{},{updateId:g.updateId+1}),$=R(R(R({},M),N),k);return R(R(R({},$),h(R({props:p},$),g)),{},{prevDataKey:b,prevData:_,prevWidth:m,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(!Zl(O,g.prevChildren)){var B,q,L,K,G=Ye(O,Yr),W=G&&(B=(q=G.props)===null||q===void 0?void 0:q.startIndex)!==null&&B!==void 0?B:I,U=G&&(L=(K=G.props)===null||K===void 0?void 0:K.endIndex)!==null&&L!==void 0?L:P,Y=W!==I||U!==P,ue=!re(_),Ae=ue&&!Y?g.updateId:g.updateId+1;return R(R({updateId:Ae},h(R(R({props:p},g),{},{updateId:Ae,dataStartIndex:W,dataEndIndex:U}),g)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:U})}return null}),X(y,"renderActiveDot",function(p,g,b){var _;return C.isValidElement(p)?_=C.cloneElement(p,g):ee(p)?_=p(g):_=E.createElement(Io,g),E.createElement(ge,{className:"recharts-active-dot",key:b},_)});var v=C.forwardRef(function(g,b){return E.createElement(y,Ir({},g,{ref:b}))});return v.displayName=y.displayName,v},NL=__({chartName:"LineChart",GraphicalChild:Bi,axisComponents:[{axisType:"xAxis",AxisComp:Fi},{axisType:"yAxis",AxisComp:bn}],formatAxisMap:R1}),DL=__({chartName:"AreaChart",GraphicalChild:Yt,axisComponents:[{axisType:"xAxis",AxisComp:Fi},{axisType:"yAxis",AxisComp:bn}],formatAxisMap:R1});const wh=C.forwardRef(({id:e,className:t,children:r,...n},i)=>{const a=C.useId(),o=`chart-${e||a.replace(/:/g,"")}`;return x.jsx("div",{"data-chart":o,ref:i,className:he("text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line-line]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",t),...n,children:x.jsx(BT,{children:r})})});wh.displayName="Chart";const O_=ht,_h=C.forwardRef(({active:e,payload:t,className:r,indicator:n="line",hideLabel:i=!1,label:a,labelFormatter:o,labelClassName:s,formatter:u,color:c,nameKey:f,labelKey:l,unit:d,filter:h,itemSorter:y,contentFormatter:v=void 0,truncate:p=!1,showTotal:g=!1,totalLabel:b},_)=>{const O={},{i18n:m,_:w}=hd(),S=b??m._({id:"72c5Qo"}),A=typeof S=="string"?S:m._({id:"72c5Qo"});C.useMemo(()=>{if(h){const j=h.toLowerCase().split(" ").filter(M=>M.length>0);t=t?.filter(M=>{const N=M.name?.toLowerCase();return j.some(k=>N?.includes(k))})}y&&t?.sort(y)},[y,t]);const T=C.useMemo(()=>{if(!g||!t?.length)return null;let j=0,M=!1;for(const $ of t){const B=typeof $.value=="number"?$.value:Number($.value);Number.isFinite(B)&&(j+=B,M=!0)}if(!M)return null;const N="__total__",k={value:j,name:A,dataKey:N,color:c};return v&&(k.payload=t[0]?.payload),typeof u=="function"?u(j,A,k,t.length,k.payload??t[0]?.payload):v?v(k,N):`${j.toLocaleStr
62ing()}${d??""}`},[c,v,u,f,t,g,A,d]),I=C.useMemo(()=>{if(i||!t?.length)return null;const[j]=t,M=`${l||j.name||"value"}`,N=j0(O,j,M),k=!l&&typeof a=="string"?a:N?.label;return o?x.jsx("div",{className:he("font-medium",s),children:o(k,t)}):k?x.jsx("div",{className:he("font-medium",s),children:k}):null},[a,o,t,i,s,O,l]);if(!e||!t?.length)return null;const P=!1;return x.jsxs("div",{ref:_,className:he("grid min-w-28 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[I,x.jsxs("div",{className:"grid gap-1.5",children:[t.map((j,M)=>{const N=`${f||j.name||j.dataKey||"value"}`,k=j0(O,j,N),$=c||j.payload.fill||j.color;return x.jsx("div",{className:he("flex w-full items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:u&&j?.value!==void 0&&j.name?u(j.value,j.name,j,M,j.payload):x.jsxs(x.Fragment,{children:[k?.icon?x.jsx(k.icon,{}):x.jsx("div",{className:he("shrink-0 rounded-[2px] border-border bg-(--color-bg)",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":P}),style:{"--color-bg":$,"--color-border":$}}),x.jsxs("div",{className:he("flex flex-1 justify-between leading-none gap-2","items-center"),children:[null,x.jsx("span",{className:he("text-muted-foreground",p?"max-w-40 truncate leading-normal -my-1":""),children:k?.label||j.name}),j.value!==void 0&&x.jsx("span",{className:"font-medium text-foreground",children:v&&typeof v=="function"?v(j,N):j.value.toLocaleString()+(d||"")})]})]})},j?.name||j.dataKey)}),T?x.jsxs(x.Fragment,{children:[x.jsx(Yn,{className:"mt-0.5"}),x.jsxs("div",{className:"flex items-center justify-between gap-2 -mt-0.75 font-medium",children:[x.jsx("span",{className:"text-muted-foreground ps-3",children:S}),x.jsx("span",{children:T})]})]}):null]})]})});_h.displayName="ChartTooltip";const S_=cr,Oh=C.forwardRef(({className:e,payload:t,verticalAlign:r="bottom",reverse:n=!1},i)=>{if(!t?.length)return null;const a=n?[...t].reverse():t;return x.jsx("div",{ref:i,className:he("flex items-center justify-center gap-4 gap-y-1 flex-wrap ps-4",r==="top"?"pb-3":"pt-3",e),children:a.map(o=>x.jsxs("div",{className:he("flex items-center gap-1.5 text-muted-foreground"),children:[x.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),o.value]},o.value))})});Oh.displayName="ChartLegend";function j0(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=r;return r in t&&typeof t[r]=="string"?i=t[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in e?e[i]:e[r]}let kn;const A_=({domain:e,ticks:t,chartTime:r})=>(kn&&e[0]===kn.props.domain[0]||(kn=x.jsx(Fi,{dataKey:"created",domain:e,ticks:t,allowDataOverflow:!0,type:"number",scale:"time",minTickGap:12,tickMargin:8,axisLine:!1,tickFormatter:ur[r].format})),kn);function At(){return[0,e=>e>10?Math.round(e):e>1?Math.round(e/.1)*.1:e]}function xn({threshold:e=0,root:t=null,rootMargin:r="0%",freeze:n=!0,initialIsIntersecting:i=!1,onChange:a}={}){const[o,s]=C.useState(null),[u,c]=C.useState(()=>({isIntersecting:i,entry:void 0})),f=C.useRef(void 0);f.current=a;const l=u.entry?.isIntersecting&&n;C.useEffect(()=>{if(!o||!("IntersectionObserver"in window)||l)return;const h=new IntersectionObserver(y=>{const v=Array.isArray(h.thresholds)?h.thresholds:[h.thresholds];y.forEach(p=>{const g=p.isIntersecting&&v.some(b=>p.intersectionRatio>=b);c({isIntersecting:g,entry:p}),f.current&&f.current(g,p)})},{threshold:e,root:t,rootMargin:r});return h.observe(o),()=>{h.disconnect()}},[o,JSON.stringify(e),t,r,l,n]);const d=C.useRef(null);return C.useEffect(()=>{!o&&u.entry?.target&&!n&&!l&&d.current!==u.entry.target&&(d.current=u.entry.target,c({isIntersecting:i,entry:void 0}))},[o,u.entry,n,l,i]),{ref:s,isIntersecting:!!u.isIntersecting,entry:u.entry}}function Oe({chartData:e,customData:t,max:r,maxToggled:n,tickFormatter:i,contentFormatter:a,dataPoints:o,domain:s,legend:u,itemSorter:c,showTotal:f=!1,reverseStackOrder:l=!1,hideYAxis:d=!1,filter:h,truncate:y=!1,chartProps:v}){const{yAxisWidth:p,updateYAxisWidth:g}=hx(),{isIntersecting:b,ref:_}=xn({freeze:!1}),O=t??e.systemStats,[m,w]=C.useState(O),[S,A]=C.useState(n);C.useEffect(()=>{(O.length&&!m.length||O!==m&&b)&&w(O),b&&n!==S&&A(n)},[m,S,b,n,O]);const T=o?.map(P=>`${P.label}:${P.opacity}`).join("\0"),I=C.useMemo(()=>o?.map((P,j)=>{let{color:M}=P;return typeof M=="number"&&(M=`var(--chart-${M})`),x.jsx(Yt,{dataKey:P.dataKey,name:P.label,type:"monotoneX",fill:M,fillOpacity:P.opacity,stroke:M,strokeOpacity:P.strokeOpacity,isAnimationActive:!1,stackId:P.stackId,order:P.order||j,activeDot:P.activeDot??!0},P.label)}),[T,S]);return C.useMemo(()=>m.length===0?null:x.jsx(wh,{ref:_,className:he("h-full w-full absolute aspect-auto bg-card o
62pacity-0 transition-opacity",{"opacity-100":p||d,"ps-4":d}),children:x.jsxs(DL,{reverseStackOrder:l,accessibilityLayer:!0,data:m,margin:d?{...ua,left:5}:ua,...v,children:[x.jsx(xh,{vertical:!1}),!d&&x.jsx(bn,{direction:"ltr",orientation:e.orientation,className:"tracking-tighter",width:p,domain:s??[0,r??"auto"],tickFormatter:(P,j)=>g(i(P,j)),tickLine:!1,axisLine:!1}),A_(e),x.jsx(O_,{animationEasing:"ease-out",animationDuration:150,itemSorter:c,content:x.jsx(_h,{labelFormatter:(P,j)=>Q0(j[0].payload.created),contentFormatter:a,showTotal:f,filter:h,truncate:y})}),I,u&&x.jsx(S_,{content:x.jsx(Oh,{})})]})}),[m,p,h,I])}function RL({msg:e,className:t}){return x.jsx("div",{className:he(t,"flex flex-col items-center justify-center h-full absolute inset-0"),children:e?x.jsx("p",{className:"opacity-60 mb-2 text-center text-sm px-4",children:e}):x.jsx(ix,{className:"animate-spin h-10 w-10 opacity-60"})})}function Wo({store:e=vd}){const t=tt(e),[r,n]=C.useState(t),{i18n:i,_:a}=hd();C.useEffect(()=>{n(t)},[t]),C.useEffect(()=>{if(r===t)return;const u=window.setTimeout(()=>e.set(r),80);return()=>clearTimeout(u)},[r,t,e]);const o=C.useCallback(u=>{const c=u.target.value;n(c)},[]),s=C.useCallback(()=>{n(""),e.set("")},[e]);return x.jsxs(x.Fragment,{children:[x.jsx(tx,{placeholder:i._({id:"6HLTEb"}),className:"ps-4 pe-8 w-full sm:w-44",onChange:o,value:r}),r&&x.jsx(cn,{type:"button",variant:"ghost",size:"icon","aria-label":"Clear",className:"absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7 text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100",onClick:s,children:x.jsx(X_,{className:"h-4 w-4"})})]})}const wn=C.memo(({max:e})=>{const t=e?Y_:Z_;return x.jsxs(G0,{value:e?"max":"avg",onValueChange:r=>Z0.set(r==="max"),children:[x.jsxs(V0,{className:"relative ps-10 pe-5 w-full sm:w-44",children:[x.jsx(t,{className:"h-4 w-4 absolute start-4 top-1/2 -translate-y-1/2 opacity-85"}),x.jsx(X0,{})]}),x.jsxs(Y0,{children:[x.jsx(zl,{value:"avg",children:x.jsx(we,{id:"3uQmjD"})},"avg"),x.jsx(zl,{value:"max",children:x.jsx(we,{id:"j0+pbV"})},"max")]})]})});function ve({title:e,description:t,children:r,grid:n,empty:i,cornerEl:a,legend:o,className:s}){const{isIntersecting:u,ref:c}=xn();return x.jsxs(pd,{className:he("px-3 py-5 sm:py-6 sm:px-6 odd:last-of-type:col-span-full min-h-full",{"col-span-full":!n},s),ref:c,children:[x.jsxs(J0,{className:"gap-1.5 relative p-0 mb-3 sm:mb-4",children:[x.jsx(ex,{children:e}),x.jsx(V_,{children:t}),a&&x.jsx("div",{className:"grid sm:justify-end sm:absolute sm:top-0 sm:end-0 my-1 sm:my-0",children:a})]}),x.jsxs("div",{className:he("ps-0 -me-1 -ms-3.5 relative group",o?"h-54 md:h-56":"h-48 md:h-52"),children:[x.jsx(RL,{msg:i?D._({id:"nQZqIc"}):void 0,className:"group-has-[.opacity-100]:invisible duration-100"}),u&&r]})]})}const qL=Ft("0.15.3"),LL=C.memo(function({chartData:t,dataEmpty:r,grid:n,maxValues:i}){const[a,o]=C.useState(!1),s=C.useRef(!1);if(!(oa(t.agentVersion,qL)>=0))return null;a&&!s.current&&(s.current=!0);const c=t.systemStats.at(-1)?.stats,l=(c?.cpus??[]).length,d=(c?.cpub?.length??0)>0;let h=1;if(s.current)for(let v=0;v<l;v++)for(let p=0;p<t.systemStats.length;p++){const g=t.systemStats[p].stats?.cpus?.[v]??0;g>h&&(h=g)}const y=[{label:"System",dataKey:({stats:v})=>v?.cpub?.[1],color:3,opacity:.35,stackId:"a"},{label:"User",dataKey:({stats:v})=>v?.cpub?.[0],color:1,opacity:.35,stackId:"a"},{label:"IOWait",dataKey:({stats:v})=>v?.cpub?.[2],color:4,opacity:.35,stackId:"a"},{label:"Steal",dataKey:({stats:v})=>v?.cpub?.[3],color:5,opacity:.35,stackId:"a"},{label:"Idle",dataKey:({stats:v})=>v?.cpub?.[4],color:2,opacity:.35,stackId:"a"},{label:D._({id:"/IX/7x"}),dataKey:({stats:v})=>{const p=v?.cpub?.reduce((g,b)=>g+b,0)??0;return p>0?100-p:null},color:"hsl(80, 65%, 52%)",opacity:.35,stackId:"a"}];return x.jsxs(co,{open:a,onOpenChange:o,children:[x.jsx(md,{className:"sr-only",children:D._({id:"ptAX+h"})}),x.jsx(bd,{asChild:!0,children:x.jsx(cn,{title:D._({id:"4m3nxQ"}),variant:"outline",size:"icon",className:"shrink-0 max-sm:absolute max-sm:top-0 max-sm:end-0",children:x.jsx(xd,{})})}),s.current&&x.jsxs(lo,{"aria-describedby":void 0,className:"overflow-auto w-200 !max-w-full p-4 sm:p-6",children:[x.jsx(po,{className:"w-[calc(100%-2em)] bg-card",agentVersion:t.agentVersion}),d&&x.jsx(ve,{empty:r,grid:n,title:D._({id:"5Vo3n/"}),description:D._({id:"gaAUAY"}),legend:!0,className:"min-h-auto",children:x.jsx(Oe,{chartData:t,maxToggled:i,legend:!0,dataPoints:y,tickFormatter:v=>`${pe(v,2)}%`,contentFormatter:({value:v})=>`${ae(v)}%`,reverseStackOrder:!0,itemSorter:()=>1,domain:[0,100]})},"cpu-breakdown"),l>0&&x.jsx(ve,{empty:r,grid:n,title:D._({id:"O6Zqac"}),legend:l<10,description:D._({id:"YnuR0g"}),className:"min-h-auto",children:x.jsx(Oe,{hideYAxis:!0,chartData:t,maxToggled:i,legend:l<10,dataPoints:Array.from({length:l}).map((v,p)=>({label:`CPU ${p}`,dataKey:({stats:g})=>g?.cpus?.[p]??1/(g?.cpus?.length??1),color:`hsl(${226+p*360/Math.max(1,l)%360}, var(--chart-saturation), var(--chart-lightness))`,opacity:.35,stackId:"a"})),tickFormatter:v=>`${v}%`,contentFormatter:({value:v})=>`${v}%`,reverseStackOrder:!0,itemSorter:()=>1})},"cpu-cores-all"),Array.from({length:l}).map((v,p)=>x.jsx(ve,{empty:r,grid:n,title:`CPU ${p}`,description:D._({id:"YnuR0g"}),legend:!1,className:"min-h-auto",children:x.jsx(Oe,{chartData:t,maxToggled:i,domain:[0,h],dataPoints:[{label:D._({id:"7FaY4u"}),dataKey:({stats:g})=>g?.cpus?.[p],color:`hsl(${226+p*360/Math.max(1,l)%360}, 65%, 52%)`,opacity:.35}],tickFormatter:g=>`${g}%`,contentFormatter:({value:g})=>`${g}%`})},`cpu-core-${p}`))]})]})});function T0({chartData:e,grid:t,dataEmpty:r,showMax:n,isLongerChart:i,maxValues:a}){const o=i?x.jsx(wn,{max:a}):null;return x.jsx(ve,{empty:r,grid:t,title:D._({id:"ptAX+h"}),description:D._({id:"KogyE9"}),cornerEl:x.jsxs("div",{className:"flex gap-2",children:[o,x.jsx(LL,{chartData:e,dataEmpty:r,grid:t,maxValues:a})]}),children:x.jsx(Oe,{chartData:e,maxToggled:n,dataPoints:[{label:D._({id:"ptAX+h"}),dataKey:({stats:s})=>n?s?.cpum:s?.cpu,color:1,opacity:.4}],tickFormatter:s=>`${pe(s,2)}%`,contentFormatter:({value:s})=>`${ae(s)}%`,domain:At()})})}function E0({chartData:e,grid:t,dataEmpty:r,isPodman:n,cpuConfig:i}){const{filter:a,dataPoints:o}=Sd(i,(s,u)=>u[s]?.c??null);return x.jsx(ve,{empty:r,grid:t,title:Zn(D._({id:"MS2ofg"}),n),description:D._({id:"813hlv"}),cornerEl:x.jsx(Wo,{}),children:x.jsx(Oe,{chartData:e,customData:e.containerData,dataPoints:o,tickFormatter:s=>`${pe(s,2)}%`,contentFormatter:({value:s})=>`${ae(s)}%`,domain:At(),showTotal:!0,reverseStackOrder:!0,filter:a,truncate:!0,itemSorter:(s,u)=>u.value-s.value})})}function M0({chartData:e,grid:t,dataEmpty:r,showMax:n,isLongerChart:i,maxValues:a}){const o=i?x.jsx(wn,{max:a}
62):null,s=pe(e.systemStats.at(-1)?.stats.m??0,1);return x.jsx(ve,{empty:r,grid:t,title:D._({id:"8x/SfR"}),description:D._({id:"fhFhRk"}),cornerEl:o,children:x.jsx(Oe,{chartData:e,domain:[0,s],itemSorter:(u,c)=>u.order-c.order,maxToggled:n,showTotal:!0,tickFormatter:u=>{const{value:c,unit:f}=se(u*1024,!1,gt.Bytes,!0);return`${pe(c,u>=10?0:1)} ${f}`},contentFormatter:({value:u})=>{const{value:c,unit:f}=se(u*1024,!1,gt.Bytes,!0);return`${ae(c,c>=100?1:2)} ${f}`},dataPoints:[{label:D._({id:"aL1w5Z"}),dataKey:({stats:u})=>n?u?.mm:u?.mu,color:2,opacity:.4,stackId:"1",order:3},{label:"ZFS ARC",dataKey:({stats:u})=>n?null:u?.mz,color:"hsla(175 60% 45% / 0.8)",opacity:.5,order:2},{label:D._({id:"wKr2uE"}),dataKey:({stats:u})=>n?null:u?.mb,color:"hsla(160 60% 45% / 0.5)",opacity:.4,stackId:"1",order:1}]})})}function C0({chartData:e,grid:t,dataEmpty:r,isPodman:n,memoryConfig:i}){const{filter:a,dataPoints:o}=Sd(i,(s,u)=>u[s]?.m??null);return x.jsx(ve,{empty:r,grid:t,title:Zn(D._({id:"nYgC28"}),n),description:Zn(D._({id:"aG5gQK"}),n),cornerEl:x.jsx(Wo,{}),children:x.jsx(Oe,{chartData:e,customData:e.containerData,dataPoints:o,tickFormatter:s=>{const{value:u,unit:c}=se(s,!1,gt.Bytes,!0);return`${pe(u,s>=10?0:1)} ${c}`},contentFormatter:s=>{const{value:u,unit:c}=se(s.value,!1,gt.Bytes,!0);return`${ae(u)} ${c}`},domain:At(),showTotal:!0,reverseStackOrder:!0,filter:a,truncate:!0,itemSorter:(s,u)=>u.value-s.value})})}function $0({chartData:e,grid:t,dataEmpty:r,systemStats:n}){return(n.at(-1)?.stats.su??0)>0?x.jsx(ve,{empty:r,grid:t,title:D._({id:"AnW27x"}),description:D._({id:"xa/6Rx"}),children:x.jsx(Oe,{chartData:e,domain:[0,()=>pe(e.systemStats.at(-1)?.stats.s??.04,2)],contentFormatter:({value:a})=>{const{value:o,unit:s}=se(a*1024,!1,gt.Bytes,!0);return`${ae(o,o>=100?1:2)} ${s}`},tickFormatter:a=>{const{value:o,unit:s}=se(a*1024,!1,gt.Bytes,!0);return`${pe(o,a>=10?0:1)} ${s}`},dataPoints:[{label:D._({id:"aL1w5Z"}),dataKey:({stats:a})=>a?.su,color:2,opacity:.4}]})}):null}const BL=C.memo(function({systemData:t,extraFsName:r,title:n,description:i}){const{chartData:a,grid:o,dataEmpty:s,showMax:u,maxValues:c,isLongerChart:f}=t,l=tt(gr),[d,h]=C.useState(!1),y=C.useRef(!1);d&&!y.current&&(y.current=!0);let v=u?J.readMax:J.read,p=u?J.writeMax:J.write;r&&(v=u?J.extraReadMax(r):J.extraRead(r),p=u?J.extraWriteMax(r):J.extraWrite(r));let g=u?J.readTimeMax:J.readTime,b=u?J.writeTimeMax:J.writeTime;r&&(g=u?J.extraReadTimeMax(r):J.extraReadTime(r),b=u?J.extraWriteTimeMax(r):J.extraWriteTime(r));let _=u?J.rAwaitMax:J.rAwait,O=u?J.wAwaitMax:J.wAwait;r&&(_=u?J.extraRAwaitMax(r):J.extraRAwait(r),O=u?J.extraWAwaitMax(r):J.extraWAwait(r));let m=u?J.weightedIOMax:J.weightedIO;r&&(m=u?J.extraWeightedIOMax(r):J.extraWeightedIO(r));let w=!1,S=!1,A=!1;for(const j of a.systemStats??[]){const M=j.stats?.dios;if((M?.at(2)??0)>0&&(w=!0),(M?.at(3)??0)>0&&(S=!0),(M?.at(5)??0)>0&&(A=!0),w&&S&&A)break}const T=f?x.jsx(wn,{max:c}):null,I={syncId:"io"},P=D._({id:"kUUz+o"});return x.jsxs(co,{open:d,onOpenChange:h,children:[x.jsx(md,{className:"sr-only",children:n}),x.jsx(bd,{asChild:!0,children:x.jsx(cn,{title:D._({id:"4m3nxQ"}),variant:"outline",size:"icon",className:"shrink-0 max-sm:absolute max-sm:top-0 max-sm:end-0",children:x.jsx(xd,{})})}),y.current&&x.jsxs(lo,{"aria-describedby":void 0,className:"overflow-auto w-200 !max-w-full p-4 sm:p-6",children:[x.jsx(po,{className:"w-[calc(100%-2em)] bg-card",agentVersion:a.agentVersion}),x.jsx(ve,{className:"min-h-auto",empty:s,grid:o,title:n,description:i,cornerEl:T,children:x.jsx(Oe,{chartData:a,maxToggled:u,chartProps:I,showTotal:!0,domain:At(),itemSorter:(j,M)=>j.order-M.order,reverseStackOrder:!0,dataPoints:[{label:D._({id:"i4/LY/"}),dataKey:p,color:3,opacity:.4,stackId:0,order:0},{label:D._({id:"cQlPDN"}),dataKey:v,color:1,opacity:.4,stackId:0,order:1}],tickFormatter:j=>{const{value:M,unit:N}=se(j,!0,l.unitDisk,!1);return`${pe(M,M>=10?0:1)} ${N}`},contentFormatter:({value:j})=>{const{value:M,unit:N}=se(j,!0,l.unitDisk,!1);return`${ae(M,M>=100?1:2)} ${N}`}})}),w&&x.jsx(FL,{systemData:t,extraFsName:r}),x.jsx(ve,{empty:s,grid:o,title:D._({id:"eqtNa4"}),description:D._({id:"sxbPeQ"}),className:"min-h-auto",cornerEl:T,children:x.jsx(Oe,{chartData:a,domain:At(),tickFormatter:j=>`${pe(j,2)}%`,contentFormatter:({value:j})=>`${ae(j)}%`,maxToggled:u,chartProps:I,showTotal:!0,itemSorter:(j,M)=>j.order-M.order,reverseStackOrder:!0,dataPoints:[{label:D._({id:"i4/LY/"}),dataKey:b,color:3,opacity:.4,stackId:0,order:0},{label:D._({id:"cQlPDN"}),dataKey:g,color:1,opacity:.4,stackId:0,order:1}]})}),A&&x.jsx(ve,{empty:s,grid:o,title:P,description:D._({id:"5e9ez1"}),className:"min-h-auto",cornerEl:T,children:x.jsx(Oe,{chartData:a,domain:At(),tickFormatter:j=>`${pe(j,2)}`,contentFormatter:({value:j})=>ae(j,j<10?3:2),maxToggled:u,chartProps:I,dataPoints:[{label:P,dataKey:m,color:1,opacity:.4}]})}),S&&x.jsx(ve,{empty:s,grid:o,title:D._({id:"IwqP3A"}),description:D._({id:"y6hsP9"}),className:"min-h-auto",cornerEl:T,children:x.jsx(Oe,{chartData:a,domain:At(),tickFormatter:j=>`${pe(j,2)} ms`,contentFormatter:({value:j})=>`${ae(j)} ms`,maxToggled:u,chartProps:I,dataPoints:[{label:D._({id:"i4/LY/"}),dataKey:O,color:3,opacity:.3},{label:D._({id:"cQlPDN"}),dataKey:_,color:1,opacity:.3}]})})]})]})}),Nn=e=>({stats:t})=>t?.dios?.[e]??0,Dn=e=>({stats:t})=>t?.diosm?.[e]??0,Rn=(e,t)=>({stats:r})=>r?.efs?.[e]?.dios?.[t]??0,qn=(e,t)=>({stats:r})=>r?.efs?.[e]?.diosm?.[t]??0,J={usage:({stats:e})=>e?.du??0,extraUsage:e=>({stats:t})=>t?.efs?.[e]?.du??0,read:({stats:e})=>e?.dio?.[0]??(e?.dr??0)*1024*1024,readMax:({stats:e})=>e?.diom?.[0]??(e?.drm??0)*1024*1024,write:({stats:e})=>e?.dio?.[1]??(e?.dw??0)*1024*1024,writeMax:({stats:e})=>e?.diom?.[1]??(e?.dwm??0)*1024*1024,extraRead:e=>({stats:t})=>t?.efs?.[e]?.rb??(t?.efs?.[e]?.r??0)*1024*1024,extraReadMax:e=>({stats:t})=>t?.efs?.[e]?.rbm??(t?.efs?.[e]?.rm??0)*1024*1024,extraWrite:e=>({stats:t})=>t?.efs?.[e]?.wb??(t?.efs?.[e]?.w??0)*1024*1024,extraWriteMax:e=>({stats:t})=>t?.efs?.[e]?.wbm??(t?.efs?.[e]?.wm??0)*1024*1024,readTime:Nn(0),readTimeMax:Dn(0),extraReadTime:e=>Rn(e,0),extraReadTimeMax:e=>qn(e,0),writeTime:Nn(1),writeTimeMax:Dn(1),extraWriteTime:e=>Rn(e,1),extraWriteTimeMax:e=>qn(e,1),util:Nn(2),utilMax:Dn(2),extraUtil:e=>Rn(e,2),extraUtilMax:e=>qn(e,2),rAwait:Nn(3),rAwaitMax:Dn(3),extraRAwait:e=>Rn(e,3),extraRAwaitMax:e=>qn(e,3),wAwait:Nn(4),wAwaitMax:Dn(4),extraWAwait:e=>Rn(e,4),extraWAwaitMax:e=>qn(e,4),weightedIO:({stats:e})=>(e?.dios?.[5]??0)/100,weightedIOMax:({stats:e})=>(e?.diosm?.[5]??0)/100,extraWeightedIO:e=>({stats:t})=>(t?.efs?.[e]?.dios?.[5]??0)/100,extraWeightedIOMax:e=>({stats:t})=>(t?.efs?.[e]?.diosm?.[5]??0)/100};function I0({systemData:e}){return x.jsxs(x.Fragment,{children:[x.jsx(P_,{systemData:e}),x.jsx(j_,{systemData:e})]})}function P_({systemData:e,extraFsName:t}){const{chartData:r,grid:n,dataEmpty:i}=e;let a=r.systemStats?.at(-1)?.stats.d??NaN;t&&(a=r.systemStats?.at(-1)?.stats.efs?.[t]?.d??NaN),a>=100&&(a=Math.round(a));const o=t?`${t} ${D._({id:"7FaY4u"})}`:D._({id:"gMnhTK"}),s=t?D._({id:"WLrITB",values:{extraFsName:t}}):D._({id:"SFR5+X"});return x.jsx(ve,{empty:i,grid:n,title:o,description:s,children:x.jsx(Oe,{chartData:r,domain:[0,a],tickFormatter:u=>{const{value:c,unit:f}=se(u*1024,!1,gt.Bytes,!0);return`${pe(c,c>=10?0:1)} ${f}`},contentFormatter:({value:u})=>{const{value:c,unit:f}=se(u*1024,!1,gt.Bytes,!0);return`${ae(c)} ${f}`},dataPoints:[{label:D._({id:"gMnhTK"}),color:4,opacity:.4,dataKey:t?J.extraUsage(t):J.usage}]})})}function j_({systemData:e,extraFsName:t}){const{chartData:r,grid:n,dataEmpty:i,showMax:a,isLongerChart:o,maxValues:s}=e,u=o?x.jsx(wn,{max:s}):null,c=tt(gr);if(!r.systemStats?.length)return null;const f=t?`${t} I/O`:D._({id:"EodlUw"}),l=t?D._({id:"udNvwS",values:{extraFsName:t}}):D._({id:"lcJPpM"}),d=r.systemStats?.some(p=>p.stats?.dios?.at(0));let h=u;d&&(h=x.jsxs("div",{className:"flex gap-2",children:[u,x.jsx(BL,{systemData:e,extraFsName:t,t
62itle:f,description:l})]}));let y=a?J.readMax:J.read,v=a?J.writeMax:J.write;return t&&(y=a?J.extraReadMax(t):J.extraRead(t),v=a?J.extraWriteMax(t):J.extraWrite(t)),x.jsx(ve,{empty:i,grid:n,title:f,description:l,cornerEl:h,children:x.jsx(Oe,{chartData:r,maxToggled:a,showTotal:!0,dataPoints:[{label:D._({id:"i4/LY/"}),dataKey:v,color:3,opacity:.3},{label:D._({id:"cQlPDN"}),dataKey:y,color:1,opacity:.3}],tickFormatter:p=>{const{value:g,unit:b}=se(p,!0,c.unitDisk,!1);return`${pe(g,g>=10?0:1)} ${b}`},contentFormatter:({value:p})=>{const{value:g,unit:b}=se(p,!0,c.unitDisk,!1);return`${ae(g,g>=100?1:2)} ${b}`}})})}function FL({systemData:e,extraFsName:t}){const{chartData:r,grid:n,dataEmpty:i,showMax:a,isLongerChart:o,maxValues:s}=e,u=o?x.jsx(wn,{max:s}):null;if(!r.systemStats?.length)return null;let c=a?J.utilMax:J.util;return t&&(c=a?J.extraUtilMax(t):J.extraUtil(t)),x.jsx(ve,{cornerEl:u,empty:i,grid:n,title:D._({id:"utvLFY"}),description:D._({id:"wac3/x"}),className:"min-h-auto",children:x.jsx(Oe,{chartData:r,domain:At(),tickFormatter:f=>`${pe(f,2)}%`,contentFormatter:({value:f})=>`${ae(f)}%`,maxToggled:a,chartProps:{syncId:"io"},dataPoints:[{label:D._({id:"K/GDD0"}),dataKey:c,color:1,opacity:.4}]})})}function k0({systemData:e}){const{systemStats:t}=e.chartData,r=t?.at(-1)?.stats.efs;return!r||Object.keys(r).length===0?null:x.jsx("div",{className:"grid xl:grid-cols-2 gap-4",children:Object.keys(r).map(n=>(t.at(-1)?.stats.efs?.[n].d,x.jsxs("div",{className:"contents",children:[x.jsx(P_,{systemData:e,extraFsName:n}),x.jsx(j_,{systemData:e,extraFsName:n})]},n)))})}const WL=C.memo(function({chartData:t,dataEmpty:r,grid:n,maxValues:i}){const[a,o]=C.useState(!1),s=tt(gr),u=rS(t.systemStats.at(-1)?.stats?.ni??{}),c=u.length>0&&u.length<15,f=C.useRef(!1);return a&&!f.current&&(f.current=!0),u.length?x.jsxs(co,{open:a,onOpenChange:o,children:[x.jsx(md,{className:"sr-only",children:D._({id:"HUz8wT"})}),x.jsx(bd,{asChild:!0,children:x.jsx(cn,{title:D._({id:"4m3nxQ"}),variant:"outline",size:"icon",className:"shrink-0 max-sm:absolute max-sm:top-0 max-sm:end-0",children:x.jsx(xd,{})})}),f.current&&x.jsxs(lo,{"aria-describedby":void 0,className:"overflow-auto w-200 !max-w-full p-4 sm:p-6",children:[x.jsx(po,{className:"w-[calc(100%-2em)] bg-card",agentVersion:t.agentVersion}),x.jsx(ve,{empty:r,grid:n,title:D._({id:"mzI/c+"}),description:D._({id:"HUz8wT"}),legend:c,className:"min-h-auto",children:x.jsx(Oe,{chartData:t,maxToggled:i,itemSorter:(l,d)=>d.value-l.value,dataPoints:u.data(1),legend:c,tickFormatter:l=>{const{value:d,unit:h}=se(l,!0,s.unitNet,!1);return`${pe(d,d>=10?0:1)} ${h}`},contentFormatter:({value:l})=>{const{value:d,unit:h}=se(l,!0,s.unitNet,!1);return`${ae(d,d>=100?1:2)} ${h}`}})}),x.jsx(ve,{empty:r,grid:n,title:D._({id:"ONWvwQ"}),description:D._({id:"HUz8wT"}),legend:c,className:"min-h-auto",children:x.jsx(Oe,{chartData:t,maxToggled:i,itemSorter:(l,d)=>d.value-l.value,legend:c,dataPoints:u.data(0),tickFormatter:l=>{const{value:d,unit:h}=se(l,!0,s.unitNet,!1);return`${pe(d,d>=10?0:1)} ${h}`},contentFormatter:({value:l})=>{const{value:d,unit:h}=se(l,!0,s.unitNet,!1);return`${ae(d,d>=100?1:2)} ${h}`}})}),x.jsx(ve,{empty:r,grid:n,title:D._({id:"8XIi3r"}),description:D._({id:"VEsil3"}),legend:c,className:"min-h-auto",children:x.jsx(Oe,{chartData:t,legend:c,dataPoints:u.data(3),tickFormatter:l=>{const{value:d,unit:h}=se(l,!1,s.unitNet,!1);return`${pe(d,d>=10?0:1)} ${h}`},contentFormatter:({value:l})=>{const{value:d,unit:h}=se(l,!1,s.unitNet,!1);return`${ae(d,d>=100?1:2)} ${h}`}})}),x.jsx(ve,{empty:r,grid:n,title:D._({id:"H9Bk8t"}),description:D._({id:"C/soHE"}),legend:c,className:"min-h-auto",children:x.jsx(Oe,{chartData:t,legend:c,dataPoints:u.data(2),tickFormatter:l=>{const{value:d,unit:h}=se(l,!1,s.unitNet,!1);return`${pe(d,d>=10?0:1)} ${h}`},contentFormatter:({value:l})=>{const{value:d,unit:h}=se(l,!1,s.unitNet,!1);return`${ae(d,d>=100?1:2)} ${h}`}})})]})]}):null});function N0({chartData:e,grid:t,dataEmpty:r,showMax:n,isLongerChart:i,maxValues:a,systemStats:o}){const s=i?x.jsx(wn,{max:a}):null,u=gr.get();return x.jsx(ve,{empty:r,grid:t,title:D._({id:"OlXThP"}),cornerEl:x.jsxs("div",{className:"flex gap-2",children:[s,x.jsx(WL,{chartData:e,dataEmpty:r,grid:t,maxValues:a})]}),description:D._({id:"HUz8wT"}),children:x.jsx(Oe,{chartData:e,maxToggled:n,dataPoints:[{label:D._({id:"h69WC6"}),dataKey(c){return n?c?.stats?.bm?.[0]??(c?.stats?.nsm??0)*1024*1024:c?.stats?.b?.[0]??(c?.stats?.ns??0)*1024*1024},color:5,opacity:.2},{label:D._({id:"fZ5Vnu"}),dataKey(c){return n?c?.stats?.bm?.[1]??(c?.stats?.nrm??0)*1024*1024:c?.stats?.b?.[1]??(c?.stats?.nr??0)*1024*1024},color:2,opacity:.2}].sort(()=>
62(o.at(-1)?.stats.b?.[1]??0)-(o.at(-1)?.stats.b?.[0]??0)),tickFormatter:c=>{const{value:f,unit:l}=se(c,!0,u.unitNet,!1);return`${pe(f,f>=10?0:1)} ${l}`},contentFormatter:c=>{const{value:f,unit:l}=se(c.value,!0,u.unitNet,!1);return`${ae(f,f>=100?1:2)} ${l}`},showTotal:!0})})}function D0({chartData:e,grid:t,dataEmpty:r,isPodman:n,networkConfig:i}){const a=gr.get(),{filter:o,dataPoints:s,filteredKeys:u}=Sd(i,(f,l)=>{const d=l[f];if(!d)return null;const h=d?.b?.[0]??(d?.ns??0)*1024*1024,y=d?.b?.[1]??(d?.nr??0)*1024*1024;return h+y}),c=C.useMemo(()=>{const f=d=>d?.b?.length&&d.b.length>=2?[Number(d.b[0])||0,Number(d.b[1])||0]:[(d?.ns??0)*1024*1024,(d?.nr??0)*1024*1024],l=(d,h)=>{const{value:y,unit:v}=se(d,!0,a.unitNet,!1),{value:p,unit:g}=se(h,!0,a.unitNet,!1);return x.jsxs("span",{className:"flex",children:[ae(y)," ",v,x.jsx("span",{className:"opacity-70 ms-0.5",children:" rx "}),x.jsx(Yn,{orientation:"vertical",className:"h-3 mx-1.5 bg-primary/40"}),ae(p)," ",g,x.jsx("span",{className:"opacity-70 ms-0.5",children:" tx"})]})};return(d,h)=>{try{if(h==="__total__"){let p=0,g=0;const b=d?.payload&&typeof d.payload=="object"?d.payload:{};for(const[_,O]of Object.entries(b)){if(!O||typeof O!="object"||u.has(_))continue;const[m,w]=f(O);p+=m,g+=w}return l(g,p)}const[y,v]=f(d?.payload?.[h]);return l(v,y)}catch{return null}}},[u,a.unitNet]);return x.jsx(ve,{empty:r,grid:t,title:Zn(D._({id:"t7nUxv"}),n),description:Zn(D._({id:"NisKE2"}),n),cornerEl:x.jsx(Wo,{}),children:x.jsx(Oe,{chartData:e,customData:e.containerData,dataPoints:s,tickFormatter:f=>{const{value:l,unit:d}=se(f,!0,a.unitNet,!1);return`${pe(l,l>=10?0:1)} ${d}`},contentFormatter:c,domain:At(),showTotal:!0,reverseStackOrder:!0,filter:o,truncate:!0,itemSorter:(f,l)=>l.value-f.value})})}function zo({chartData:e,customData:t,max:r,maxToggled:n,tickFormatter:i,contentFormatter:a,dataPoints:o,domain:s,legend:u,itemSorter:c,showTotal:f=!1,reverseStackOrder:l=!1,hideYAxis:d=!1,filter:h,truncate:y=!1,chartProps:v}){const{yAxisWidth:p,updateYAxisWidth:g}=hx(),{isIntersecting:b,ref:_}=xn({freeze:!1}),O=t??e.systemStats,[m,w]=C.useState(O),[S,A]=C.useState(n);C.useEffect(()=>{(O.length&&!m.length||O!==m&&b)&&w(O),b&&n!==S&&A(n)},[m,S,b,n,O]);const T=o?.map(P=>`${P.label}:${P.strokeOpacity??""}`).join("\0"),I=C.useMemo(()=>o?.map((P,j)=>{let{color:M}=P;return typeof M=="number"&&(M=`var(--chart-${M})`),x.jsx(Bi,{dataKey:P.dataKey,name:P.label,type:"monotoneX",dot:!1,strokeWidth:1.5,stroke:M,strokeOpacity:P.strokeOpacity,isAnimationActive:!1,order:P.order||j,activeDot:P.activeDot??!0},P.label)}),[T,S]);return C.useMemo(()=>m.length===0?null:x.jsx(wh,{ref:_,className:he("h-full w-full absolute aspect-auto bg-card opacity-0 transition-opacity",{"opacity-100":p||d,"ps-4":d}),children:x.jsxs(NL,{reverseStackOrder:l,accessibilityLayer:!0,data:m,margin:d?{...ua,left:5}:ua,...v,children:[x.jsx(xh,{vertical:!1}),!d&&x.jsx(bn,{direction:"ltr",orientation:e.orientation,className:"tracking-tighter",width:p,domain:s??[0,r??"auto"],tickFormatter:(P,j)=>g(i(P,j)),tickLine:!1,axisLine:!1}),A_(e),x.jsx(O_,{animationEasing:"ease-out",animationDuration:150,itemSorter:c,content:x.jsx(_h,{labelFormatter:(P,j)=>Q0(j[0].payload.created),contentFormatter:a,showTotal:f,filter:h,truncate:y})}),I,u&&x.jsx(S_,{content:x.jsx(Oh,{})})]})}),[m,p,h,I])}function R0({chartData:e,grid:t,dataEmpty:r,maxValues:n}){return e.systemStats.at(-1)?.stats.bat?x.jsx(ve,{empty:r,grid:t,title:D._({id:"r5XYtY"}),description:`${D._({id:"AJToWu"})}: ${Q_[e.systemStats.at(-1)?.stats.bat?.[1]??0]()}`,children:x.jsx(Oe,{chartData:e,maxToggled:n,dataPoints:[{label:D._({id:"VcWwIy"}),dataKey:({stats:a})=>a?.bat?.[0],color:1,opacity:.35}],domain:[0,100],tickFormatter:a=>`${a}%`,contentFormatter:({value:a})=>`${a}%`})}):null}function q0({chartData:e,grid:t,dataEmpty:r,setPageBottomExtraMargin:n}){const i=e.systemStats.at(-1)?.stats.t,a=tt(Dh),o=tt(gr),s=C.useRef(e.systemStats);s.current=e.systemStats;let u="";for(let b=e.systemStats.length-1;b>=0;b--){const _=e.systemStats[b].stats?.t;if(_){u=Object.keys(_).sort().join("\0");break}}const{colorMap:c,dataKeys:f,sortedKeys:l}=C.useMemo(()=>{const b=s.current,_={};for(const S of b){const A=S.stats?.t;if(A)for(const T of Object.keys(A))_[T]=(_[T]??0)+A[T]}const O=Object.keys(_).sort((S,A)=>_[A]-_[S]),m={},w={};for(let S=0;S<O.length;S++){const A=O[S];m[A]=`hsl(${S*360/O.length%360}, 60%, 55%)`,w[A]=T=>T.stats?.t?.[A]}return{colorMap:m,dataKeys:w,sortedKeys:O}},[u]),d=C.useMemo(()=>l.map(b=>{const _=a?a.toLowerCase().split(" ").filter(w=>w.length>0):[],O=_.length>0&&!_.some(w=>b.toLowerCase().includes(w)),m=O?.1:1;return{label:b,dataKey:f[b],color:c[b],strokeOpacity:m,activeDot:!O}}),[l,a,f,c]),h=C.useRef(null),[y,v]=C.useState(!1),p=(d.length-13)*18;if(C.useEffect(()=>{if(n&&d.length>13&&h.current){const b=()=>{if(!h.current)return;const O=h.current.getBoundingClientRect();(y?document.documentElement.scrollHeight-p:document.documentElement.scrollHeight)-(O.bottom+window.scrollY)<250?(v(!0),n(p)):(v(!1),n(0))};b();const _=setTimeout(b,500);return()=>{clearTimeout(_)}}else y&&(v(!1),n&&n(0))},[d.length,y,p,n]),!i)return null;const g=d.length<12;return x.jsx("div",{ref:h,className:he("odd:last-of-type:col-span-full",{"col-span-full":!t}),children:x.jsx(ve,{empty:r,grid:t,title:D._({id:"oE+H8K"}),description:D._({id:"gLNBDr"}),cornerEl:x.jsx(Wo,{store:Dh}),legend:g,children:x.jsx(zo,{chartData:e,itemSorter:(b,_)=>_.value-b.value,domain:["auto","auto"],legend:g,tickFormatter:b=>{const{value:_,unit:O}=Rh(b,o.unitTemp);return`${pe(_,2)} ${O}`},contentFormatter:b=>{const{value:_,unit:O}=Rh(b.value,o.unitTemp);return`${ae(_)} ${O}`},dataPoints:d,filter:a})})})}function L0({chartData:e,grid:t,dataEmpty:r}){const n=" package",i=C.useRef(e.systemStats);i.current=e.systemStats;let a="";for(let s=e.systemStats.length-1;s>=0;s--){const u=e.systemStats[s].stats?.g;if(u){const c=[];for(const f in u){const l=u[f];l.p!==void 0&&c.push(`${f}:${l.n}`),l.pp!==void 0&&c.push(`${f}:${l.n}${n}`)}a=c.sort().join("\0");break}}const o=C.useMemo(()=>
62{if(!a)return[];const s=new Map;for(const c of i.current){const f=c.stats?.g;if(f)for(const l in f){const d=f[l],h=d.n,y=s.get(h);if(y?y.total+=d.p??0:s.set(h,{label:d.n,gpuId:l,isPackage:!1,total:d.p??0}),d.pp!==void 0){const v=`${d.n}${n}`,p=s.get(v);p?p.total+=d.pp:s.set(v,{label:v,gpuId:l,isPackage:!0,total:d.pp})}}}const u=Array.from(s.values()).sort((c,f)=>f.total-c.total);return u.map((c,f)=>({label:c.label,dataKey:l=>{const d=l.stats?.g?.[c.gpuId];return c.isPackage?d?.pp??0:d?.p??0},color:`hsl(${226+f*360/u.length%360}, 65%, 52%)`,opacity:1}))},[a]);return x.jsx(ve,{empty:r,grid:t,title:D._({id:"P501c4"}),description:D._({id:"MUQUC/"}),children:x.jsx(zo,{legend:o.length>1,chartData:e,dataPoints:o,itemSorter:(s,u)=>u.value-s.value,tickFormatter:s=>`${pe(s,2)}W`,contentFormatter:({value:s})=>`${ae(s)}W`})})}function B0({chartData:e,grid:t,dataEmpty:r,lastGpus:n,hasGpuEnginesData:i}){return x.jsxs("div",{className:"grid xl:grid-cols-2 gap-4",children:[i&&x.jsx(ve,{legend:!0,empty:r,grid:t,title:D._({id:"P9QKzN"}),description:D._({id:"9mXqU7"}),children:x.jsx(zL,{chartData:e})}),Object.keys(n).map(a=>{const o=n[a];return x.jsxs("div",{className:"contents",children:[x.jsx(ve,{className:he(t&&"!col-span-1"),empty:r,grid:t,title:`${o.n} ${D._({id:"7FaY4u"})}`,description:D._({id:"xfwzUa",values:{0:o.n}}),children:x.jsx(Oe,{chartData:e,dataPoints:[{label:D._({id:"7FaY4u"}),dataKey:({stats:s})=>s?.g?.[a]?.u??0,color:1,opacity:.35}],tickFormatter:s=>`${pe(s,2)}%`,contentFormatter:({value:s})=>`${ae(s)}%`})}),(o.mt??0)>0&&x.jsx(ve,{empty:r,grid:t,title:`${o.n} VRAM`,description:D._({id:"fhFhRk"}),children:x.jsx(Oe,{chartData:e,dataPoints:[{label:D._({id:"7FaY4u"}),dataKey:({stats:s})=>s?.g?.[a]?.mu??0,color:2,opacity:.25}],max:o.mt,tickFormatter:s=>{const{value:u,unit:c}=se(s,!1,gt.Bytes,!0);return`${pe(u,u>=10?0:1)} ${c}`},contentFormatter:({value:s})=>{const{value:u,unit:c}=se(s,!1,gt.Bytes,!0);return`${ae(u)} ${c}`}})})]},a)})]})}function zL({chartData:e}){let t="";for(let i=e.systemStats.length-1;i>=0;i--){const a=e.systemStats[i].stats?.g;if(a){for(const o in a)if(a[o].e){t=o+"\0"+Object.keys(a[o].e).sort().join("\0");break}if(t)break}}const{gpuId:r,dataPoints:n}=C.useMemo(()=>{if(!t)return{gpuId:null,dataPoints:[]};const i=t.split("\0"),a=i[0],o=i.slice(1);return{gpuId:a,dataPoints:o.map((s,u)=>({label:s,dataKey:({stats:c})=>c?.g?.[a]?.e?.[s]??0,color:`hsl(${140+u*360/o.length%360}, 65%, 52%)`,opacity:.35}))}},[t]);return r?x.jsx(zo,{legend:!0,chartData:e,dataPoints:n,tickFormatter:i=>`${pe(i,2)}%`,contentFormatter:({value:i})=>`${ae(i)}%`}):null}const UL=C.lazy(()=>gd(()=>import("./containers-table-DpO71UwP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url));function KL({systemId:e}){const{isIntersecting:t,ref:r}=xn({rootMargin:"90px"});return x.jsx("div",{ref:r,className:he(t&&"contents"),children:t&&x.jsx(UL,{systemId:e})})}const HL=C.lazy(()=>gd(()=>import("./smart-table-CY5oQgKZ.js"),__vite__mapDeps([10,1,2,3,4,5,6,11,12,9,13,8,14,7,15]),import.meta.url));function F0({systemId:e}){const{isIntersecting:t,ref:r}=xn({rootMargin:"90px"});return x.jsx("div",{ref:r,className:he(t&&"contents"),children:t&&x.jsx(HL,{systemId:e})})}const GL=C.lazy(()=>gd(()=>Promise.resolve().then(()=>tB),void 0,import.meta.url));function VL({systemId:e}){const{isIntersecting:t,ref:r}=xn();return x.jsx("div",{ref:r,className:he(t&&"contents"),children:t&&x.jsx(GL,{systemId:e})})}function W0({chartData:e,grid:t,dataEmpty:r}){const{major:n,minor:i}=e.agentVersion;return n===0&&i<=12?null:x.jsx(ve,{empty:r,grid:t,title:D._({id:"V6cykz"}),description:D._({id:"iWPfba"}),legend:!0,children:x.jsx(zo,{chartData:e,contentFormatter:a=>ae(a.value),tickFormatter:a=>String(pe(a,2)),legend:!0,dataPoints:[{label:D._({id:"NRdWva"}),color:"hsl(271, 81%, 60%)",dataKey:({stats:a})=>a?.la?.[0]},{label:D._({id:"N3mvvW"}),color:"hsl(217, 91%, 60%)",dataKey:({stats:a})=>a?.la?.[1]},{label:D._({id:"Xsf/Pt"}),color:"hsl(25, 95%, 53%)",dataKey:({stats:a})=>a?.la?.[2]}]})})}function XL(e){switch(e){case Un.Running:return"bg-green-500";case Un.Failed:return"bg-red-500";case Un.Dead:return"bg-yellow-500";default:return"bg-zinc-500"}}const YL=[{id:"name",sortingFn:(e,t)=>
62e.original.name.localeCompare(t.original.name),accessorFn:e=>e.name,header:({column:e})=>x.jsx(Dt,{column:e,name:D._({id:"6YtxFj"}),Icon:nx}),cell:({getValue:e})=>x.jsx("span",{className:"ms-1.5 xl:w-50 block truncate",children:e()})},{id:"state",accessorFn:e=>e.state,header:({column:e})=>x.jsx(Dt,{column:e,name:D._({id:"RS0o7b"}),Icon:Lh}),cell:({getValue:e})=>{const t=e(),r=ca[t]||"Unknown";return x.jsxs(qh,{variant:"outline",className:"dark:border-white/12",children:[x.jsx("span",{className:he("size-2 me-1.5 rounded-full",T_(t))}),r]})}},{id:"sub",accessorFn:e=>e.sub,header:({column:e})=>x.jsx(Dt,{column:e,name:D._({id:"vxt+AN"}),Icon:Lh}),cell:({getValue:e})=>{const t=e(),r=rx[t]||"Unknown";return x.jsxs(qh,{variant:"outline",className:"dark:border-white/12 text-xs capitalize",children:[x.jsx("span",{className:he("size-2 me-1.5 rounded-full",XL(t))}),r]})}},{id:"cpu",accessorFn:e=>e.sub!==Un.Running?-1:e.cpu,invertSorting:!0,header:({column:e})=>x.jsx(Dt,{column:e,name:`${D._({id:"FSbpS7"})} (10m)`,Icon:sa}),cell:({getValue:e})=>{const t=e();return t<0?x.jsx("span",{className:"ms-1.5 text-muted-foreground",children:"N/A"}):x.jsx("span",{className:"ms-1.5 tabular-nums",children:`${ae(t,t>=10?1:2)}%`})}},{id:"cpuPeak",accessorFn:e=>e.sub!==Un.Running?-1:e.cpuPeak??0,invertSorting:!0,header:({column:e})=>x.jsx(Dt,{column:e,name:D._({id:"f2hR2W"}),Icon:sa}),cell:({getValue:e})=>{const t=e();return t<0?x.jsx("span",{className:"ms-1.5 text-muted-foreground",children:"N/A"}):x.jsx("span",{className:"ms-1.5 tabular-nums",children:`${ae(t,t>=10?1:2)}%`})}},{id:"memory",accessorFn:e=>e.memory,invertSorting:!0,header:({column:e})=>x.jsx(Dt,{column:e,name:D._({id:"v8o+Rn"}),Icon:Ul}),cell:({getValue:e})=>{const t=e();if(!t)return x.jsx("span",{className:"ms-1.5 text-muted-foreground",children:"N/A"});const r=se(t,!1,void 0,!1);return x.jsx("span",{className:"ms-1.5 tabular-nums",children:`${ae(r.value,r.value>=10?1:2)} ${r.unit}`})}},{id:"memPeak",accessorFn:e=>e.memPeak,invertSorting:!0,header:({column:e})=>x.jsx(Dt,{column:e,name:D._({id:"SUtQGs"}),Icon:Ul}),cell:({getValue:e})=>{const t=e();if(!t)return x.jsx("span",{className:"ms-1.5 text-muted-foreground",children:"N/A"});const r=se(t,!1,void 0,!1);return x.jsx("span",{className:"ms-1.5 tabular-nums",children:`${ae(r.value,r.value>=10?1:2)} ${r.unit}`})}},{id:"updated",invertSorting:!0,accessorFn:e=>e.updated,header:({column:e})=>x.jsx(Dt,{column:e,name:D._({id:"+b7T3G"}),Icon:gO}),cell:({getValue:e})=>{const t=e();return x.jsx("span",{className:"ms-1.5 tabular-nums",children:J_(new Date(t).toISOString())})}}];function Dt({column:e,name:t,Icon:r}){const n=e.getIsSorted();return x.jsxs(cn,{className:he("h-9 px-3 flex items-center gap-2 duration-50",n&&"bg-accent/70 light:bg-accent text-accent-foreground/90"),variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:[r&&x.jsx(r,{className:"size-4"}),t,x.jsx(lO,{className:"size-4"})]})}function T_(e){switch(e){case rr.Active:return"bg-green-500";case rr.Failed:return"bg-red-500";case rr.Reloading:case rr.Activating:case rr.Deactivating:return"bg-yellow-500";default:return"bg-zinc-500"}}function E_({systemId:e}){const t=Date.now(),[r,n]=C.useState([]),[i,a]=Kl(`sort-sd-${e?1:0}`,[{id:e?"name":"system",desc:!1}],sessionStorage),[o,s]=C.useState([]),[u,c]=C.useState({}),[f,l]=C.useState("");C.useEffect(()=>n([]),[e]),C.useEffect(()=>{const p=r[0]?.updated??0;function g(b){dr.collection("systemd_services").getList(0,2e3,{fields:"name,state,sub,cpu,cpuPeak,memory,memPeak,updated",filter:b?dr.filter("system={:system}",{system:b}):void 0}).then(({items:_})=>_.length&&n(O=>{const m=Math.max(_[0].updated,_.at(-1)?.updated??0),w=new Set,S=[];for(const A of _)Math.abs(m-A.updated)<7e4&&(w.add(A.name),S.push(A));for(const A of O)!w.has(A.name)&&m-A.updated<7e4&&S.push(A);return S}))}return g(e),e?eO(zn,[e],b=>{p>Date.now()-9.5*60*1e3||g(e)}):zn.listen((b,_,O)=>{Date.now()-t>500&&g(O)})},[e]);const d=pO({data:r,columns:YL,getCoreRowModel:mO(),getSortedRowModel:yO(),getFilteredRowModel:vO(),onSortingChange:a,onColumnFiltersChange:s,onColumnVisibilityChange:c,defaultColumn:{sortUndefined:"last",size:100,minSize:0},state:{sorting:i,columnFilters:o,columnVisibility:u,globalFilter:f},onGlobalFilterChange:l,globalFilterFn:(p,g,b)=>{const _=p.original,O=zn.get()[_.system]?.name??"",m=_.name??"",w=ca[_.state]??"",S=_.sub??"",A=`${O} ${m} ${w} ${S}`.toLowerCase();return b.toLowerCase().split(" ").every(T=>A.includes(T))}}),h=d.getRowModel().rows,y=d.getVisibleLeafColumns(),v=C.useMemo(()=>{const p=[0,0,0,0,0,0];for(const g of r)p[g.state]++;return p},[r]);return!r.length&&!f?null:x.jsxs(pd,{className:"@container w-full px-3 py-5 sm:py-6 sm:px-6",children:[x.jsx(J0,{className:"p-0 mb-3 sm:mb-4",children:x.jsxs("div",{className:"grid md:flex gap-x-5 gap-y-3 w-full items-end",children:[x.jsxs("div",{className:"px-2 sm:px-1",children:[x.jsx(ex,{className:"mb-2",children:x.jsx(we,{id:"41iJOC"})}),x.jsxs("div",{className:"text-sm text-muted-foreground flex items-center flex-wrap",children:[x.jsx(we,{id:"Bycfjm",values:{0:r.length}}),x.jsx(Yn,{orientation:"vertical",className:"h-4 mx-2 bg-primary/40"}),x.jsx(we,{id:"xDRSy0",values:{0:v[rr.Failed]}}),x.jsx(Yn,{orientation:"vertical",className:"h-4 mx-2 bg-primary/40"}),x.jsx(we,{id:"A19D4T"})]})]}),x.jsx(tx,{placeholder:D._({id:"6HLTEb"}),value:f,onChange:p=>l(p.target.value),className:"ms-auto px-4 w-full max-w-full md:w-64"})]})}),x.jsx("div",{className:"rounded-md",children:x.jsx(ZL,{table:d,rows:h,colLength:y.length,systemId:e})})]})}const ZL=C.memo(function({table:t,rows:r,colLength:n,systemId:i}){const a=C.useRef(null),o=C.useRef(null),[s,u]=C.useState(!1),c=y=>{o.current=y,u(!0)},f=fO({count:r.length,estimateSize:()=>54,getScrollElement:()=>a.current,overscan:5}),l=f.getVirtualItems(),d=Math.max(0,l[0]?.start??0-f.options.scrollMargin),h=Math.max(0,f.getTotalSize()-(l[l.length-1]?.end??0));return x.jsxs("div",{className:he("h-min max-h-[calc(100dvh-17rem)] max-w-full relative overflow-auto border rounded-md",(!r.length||r.length>2)&&"min-h-50"),ref:a,children:[x.jsx("div",{style:{height:`${f.getTotalSize()+48}px`,paddingTop:d,paddingBottom:h},children:x.jsxs("table",{className:"text-sm w-full h-full text-nowrap",children:[x.jsx(JL,{table:t}),x.jsx(_O,{children:r.length?l.map(y=>{const v=r[y.index];return x.jsx(eB,{row:v,virtualRow:y,openSheet:c},v.id)}):x.jsx(ox,{children:x.jsx(sx,{colSpan:n,className:"h-37 text-center pointer-events-none",children:x.jsx(we,{id:"1dhpFr"})})})})]})}),x.jsx(QL,{sheetOpen:s,setSheetOpen:u,activeService:o,systemId:i})]})});function QL({sheetOpen:e,setSheetOpen:t,activeService:r,systemId:n}){const i=r.current,[a,o]=C.useState(null),[s,u]=C.useState(!1),[c,f]=C.useState(null);if(C.useEffect(()=>{if(!e||!i)return;f(null);let q=!1;return o(null),u(!0),dr.send("/api/beszel/systemd/info",{query:{system:n,service:i.name}}).then(({details:L})=>{q||(L?o(L):(o(null),f(D._({id:"MZbQHL"}))))}).catch(L=>{q||(f(L?.message??"Failed to load service details"),o(null))}).finally(()=>{q||u(!1)}),()=>{q=!0}},[e,i,n]),!i)return null;const l=ca[i.state]??"",d=rx[i.sub]??"",h=x.jsx("span",{className:"text-muted-foreground",children:"N/A"}),y=q=>{if(q==null)return q===null?D._({id:"NIuIk1"}):void 0;const{value:L,unit:K}=se(q,!1,void 0,!1),G=L>=10?1:2;return`${ae(L,G)} ${K}`},v=q=>{if(!q)return;const L=q/1e9;if(L>=3600){const K=Math.floor(L/3600),G=Math.floor(L%3600/60),W=Math.floor(L%60);return[K?`${K}h`:null,G?`${G}m`:null,W?`${W}
62s`:null].filter(Boolean).join(" ")}if(L>=60){const K=Math.floor(L/60),G=Math.floor(L%60);return`${K}m ${G}s`}return L>=1?`${ae(L,2)}s`:`${ae(L*1e3,2)}ms`},p=(q,L)=>{const K=typeof q=="number"&&q>=0,G=typeof L=="number"&&L>0&&L!==null;if(!(!K&&!G))return x.jsxs(x.Fragment,{children:[K?q:h,G&&x.jsx("span",{className:"text-muted-foreground ms-1.5",children:`(${D._({id:"ygkMcg"})}: ${L})`}),L===null&&x.jsx("span",{className:"text-muted-foreground ms-1.5",children:`(${D._({id:"ygkMcg"})}: ${D._({id:"NIuIk1"}).toLowerCase()})`})]})},g=q=>{if(!q)return;const L=new Date(q/1e3);if(!Number.isNaN(L.getTime()))return L.toLocaleString()},b=(()=>{const q=a?.ActiveState?a.SubState?`${a.ActiveState} (${a.SubState})`:a.ActiveState:d?`${l} (${d})`:l;for(const[L,K]of ca.entries())if(a?.ActiveState?.toLowerCase()===K.toLowerCase()){i.state=L;break}return x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("div",{className:he("w-2 h-2 rounded-full flex-shrink-0",T_(i.state))}),q]})})(),_=a?.Result,O=v(a?.CPUUsageNSec),m=p(a?.TasksCurrent,a?.TasksMax),w=y(a?.MemoryCurrent),S=y(a?.MemoryPeak),A=y(a?.MemoryLimit),T=typeof a?.NRestarts=="number"?a.NRestarts:void 0,I=typeof a?.MainPID=="number"&&a.MainPID>0?a.MainPID:void 0,P=typeof a?.ExecMainPID=="number"&&a.ExecMainPID>0&&a.ExecMainPID!==a?.MainPID?a.ExecMainPID:void 0,j=g(a?.ActiveEnterTimestamp),M=g(a?.ActiveExitTimestamp),N=g(a?.InactiveEnterTimestamp),k=void 0,$=(q,L,K,G=!1)=>!G&&(K==null||K==="")?null:x.jsxs("tr",{className:"border-b last:border-b-0",children:[x.jsx("td",{className:"px-3 py-2 font-medium bg-muted dark:bg-muted/40 align-top w-35",children:L}),x.jsx("td",{className:"px-3 py-2",children:K??h})]},q),B=q=>`${q.charAt(0).toUpperCase()}${q.slice(1).toLowerCase()}`;return x.jsx(co,{open:e,onOpenChange:t,children:x.jsxs(lo,{className:"w-full sm:max-w-220 p-6 overflow-y-auto",children:[x.jsx(dO,{className:"p-0",children:x.jsx(hO,{children:x.jsx(we,{id:"+HAw5y"})})}),x.jsxs("div",{className:"grid gap-6",children:[s&&x.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[x.jsx(ix,{className:"size-4 animate-spin"}),x.jsx(we,{id:"Z3FXyt"})]}),c&&x.jsxs(bO,{className:"border-destructive/50 text-destructive dark:border-destructive/60 dark:text-destructive",children:[x.jsx(xO,{children:x.jsx(we,{id:"SlfejT"})}),x.jsx(wO,{children:c})]}),x.jsx("div",{children:x.jsx("div",{className:"border rounded-md",children:x.jsx("table",{className:"w-full text-sm",children:x.jsxs("tbody",{children:[$("name",D._({id:"6YtxFj"}),i.name,!0),$("description",D._({id:"Nu4oKW"}),a?.Description,!0),$("loadState",D._({id:"CxxgoD"}),a?.LoadState,!0),$("bootState",D._({id:"XQpgiP"}),x.jsxs("div",{className:"flex items-center",children:[a?.UnitFileState,a?.UnitFilePreset&&x.jsxs("span",{className:"text-muted-foreground ms-1.5",children:["(preset: ",a?.UnitFilePreset,")"]})]}),!0),$("unitFile",D._({id:"sg8WKE"}),a?.FragmentPath,!0),$("active",D._({id:"XsN8pc"}),b,!0),$("status",D._({id:"uAQUqI"}),_,!0),$("documentation",D._({id:"TvY/XA"}),Array.isArray(a?.Documentation)&&a.Documentation.length>0?a.Documentation.join(", "):void 0)]})})})}),x.jsxs("div",{children:[x.jsx("h3",{className:"text-sm font-medium mb-3",children:x.jsx(we,{id:"QhAZWg"})}),x.jsx("div",{className:"border rounded-md",children:x.jsx("table",{className:"w-full text-sm",children:x.jsxs("tbody",{children:[$("mainPid",D._({id:"dFYzEG"}),I,!0),$("execMainPid",D._({id:"JJJidY"}),P),$("tasks",D._({id:"GtycJ/"}),m,!0),$("cpuTime",D._({id:"jsAjCV"}),O),$("memory",D._({id:"v8o+Rn"}),w,!0),$("memoryPeak",B(D._({id:"SUtQGs"})),S),$("memoryLimit",D._({id:"1quyOQ"}),A),$("restarts",D._({id:"XfpLWG"}),T,!0)]})})})]}),x.jsxs("div",{className:"hidden has-[tr]:block",children:[x.jsx("h3",{className:"text-sm font-medium mb-3",children:x.jsx(we,{id:"KJveyX"})}),x.jsx("div",{className:"border rounded-md",children:x.jsx("table",{className:"w-full text-sm",children:x.jsxs("tbody",{children:[$("wants",D._({id:"m1yG8X"}),Array.isArray(a?.Wants)&&a.Wants.length>0?a.Wants.join(", "):void 0),$("requires",D._({id:"AdFed2"}),Array.isArray(a?.Requires)&&a.Requires.length>0?a.Requires.join(", "):void 0),$("requiredBy",D._({id:"UINiXi"}),Array.isArray(a?.RequiredBy)&&a.RequiredBy.length>0?a.RequiredBy.join(", "):void 0),$("conflicts",D._({id:"KGJb9/"}),Array.isArray(a?.Conflicts)&&a.Conflicts.length>0?a.Conflicts.join(", "):void 0),$("before",D._({id:"EmSrGB"}),Array.isArray(a?.Before)&&a.Before.length>0?a.Before.join(", "):void 0),$("after",D._({id:"NawEr2"}),Array.isArray(a?.After)&&a.After.length>0?a.After.join(", "):void 0),$("triggers",D._({id:"34nxyb"}),Array.isArray(a?.Triggers)&&a.Triggers.length>0?a.Triggers.join(", "):void 0),$("triggeredBy",D._({id:"xaTi9v"}),Array.isArray(a?.TriggeredBy)&&a.TriggeredBy.length>0?a.TriggeredBy.join(", "):void 0)]})})})]}),x.jsxs("div",{className:"hidden has-[tr]:block",children:[x.jsx("h3",{className:"text-sm font-medium mb-3",children:x.jsx(we,{id:"ZfDwsJ"})}),x.jsx("div",{className:"border rounded-md",children:x.jsx("table",{className:"w-full text-sm",children:x.jsxs("tbody",{children:[$("activeSince",D._({id:"PBGNMS"}),j),i.state!==rr.Active&&$("lastActive",D._({id:"NgWUax"}),M),$("inactiveSince",D._({id:"JcIKmf"}),N),$("execMainStart",D._({id:"jKXjQF"}),k)]})})})]}),x.jsxs("div",{className:"hidden has-[tr]:block",children:[x.jsx("h3",{className:"text-sm font-medium mb-3",children:x.jsx(we,{id:"Qx7DM7"})}),x.jsx("div",{className:"border rounded-md",children:x.jsx("table",{className:"w-full text-sm",children:x.jsxs("tbody",{children:[$("canStart",D._({id:"x7HblT"}),a?.CanStart?D._({id:"l75CjT"}):D._({id:"1UzENP"})),$("canStop",D._({id:"R2wQBD"}),a?.CanStop?D._({id:"l75CjT"}):D._({id:"1UzENP"})),$("canReload",D._({id:"+ksBAB"}),a?.CanReload?D._({id:"l75CjT"}):D._({id:"1UzENP"}))]})})})]})]})]})})}function JL({table:e}){return x.jsx(OO,{className:"sticky top-0 z-50 w-full border-b-2",children:e.getHeaderGroups().map(t=>x.jsx("tr",{children:t.headers.map(r=>x.jsx(SO,{className:"px-2",children:r.isPlaceholder?null:ax(r.column.columnDef.header,r.getContext())},r.id))},t.id))})}const eB=C.memo(function({row:t,virtualRow:r,openSheet:n}){return x.jsx(ox,{"data-state":t.getIsSelected()&&"selected",className:"cursor-pointer transition-opacity",onClick:()=>n(t.original),children:t.getVisibleCells().map(i=>x.jsx(sx,{className:"py-0",style:{height:r.size},children:ax(i.column.columnDef.cell,i.getContext())},i.id))})}),tB=Object.freeze(Object.defineProperty({__proto__:null,default:E_},Symbol.toStringTag,{value:"Module"})),rB=Ft("0.14.0"),nB=Ft("0.15.0"),mB=C.memo(function({id:t}){const r=aS(t),{system:n,systemStats:i,containerData:a,chartData:o,containerChartConfigs:s,details:u,grid:c,setGrid:f,displayMode:l,setDisplayMode:d,activeTab:h,setActiveTab:y,mountedTabs:v,tabsRef:p,maxValues:g,isLongerChart:b,showMax:_,dataEmpty:O,isPodman:m,lastGpu
62s:w,hasGpuData:S,hasGpuEnginesData:A,hasGpuPowerData:T}=r,[I,P]=C.useState(0);if(!n.id)return null;const j=a.length>0,M=oa(o.agentVersion,nB)>=0,N=j&&oa(o.agentVersion,rB)>=0,k=n.info.sv,$=S||T,B=["core","disk"];$&&B.push("gpu"),j&&B.push("containers"),k&&B.push("services"),p.current=B;const q={chartData:o,grid:c,dataEmpty:O,showMax:_,isLongerChart:b,maxValues:g};function L(){return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"grid xl:grid-cols-2 gap-4",children:[x.jsx(T0,{...q}),j&&x.jsx(E0,{chartData:o,grid:c,dataEmpty:O,isPodman:m,cpuConfig:s.cpu}),x.jsx(M0,{...q}),j&&x.jsx(C0,{chartData:o,grid:c,dataEmpty:O,isPodman:m,memoryConfig:s.memory}),x.jsx(I0,{systemData:r}),x.jsx(N0,{...q,systemStats:i}),j&&x.jsx(D0,{chartData:o,grid:c,dataEmpty:O,isPodman:m,networkConfig:s.network}),x.jsx($0,{chartData:o,grid:c,dataEmpty:O,systemStats:i}),x.jsx(W0,{chartData:o,grid:c,dataEmpty:O}),x.jsx(q0,{...q}),x.jsx(R0,{...q}),T&&x.jsx(L0,{chartData:o,grid:c,dataEmpty:O})]}),S&&w&&x.jsx(B0,{chartData:o,grid:c,dataEmpty:O,lastGpus:w,hasGpuEnginesData:A}),x.jsx(k0,{systemData:r}),M&&x.jsx(F0,{systemId:n.id}),N&&x.jsx(KL,{systemId:n.id}),k&&x.jsx(VL,{systemId:n.id})]})}function K(){return x.jsxs(tO,{value:h,onValueChange:y,className:"contents",children:[x.jsxs(rO,{className:"h-11 p-1.5 w-full shadow-xs overflow-auto justify-start",children:[x.jsxs(On,{value:"core",className:"w-full flex items-center gap-1.5",children:[x.jsx(sa,{className:"size-3.5"}),x.jsx(we,{id:"6NQHHT"})]}),x.jsxs(On,{value:"disk",className:"w-full flex items-center gap-1.5",children:[x.jsx(nO,{className:"size-3.5"}),x.jsx(we,{id:"sPFHpI"})]}),$&&x.jsxs(On,{value:"gpu",className:"w-full flex items-center gap-2",children:[x.jsx(iO,{className:"size-3.5"}),x.jsx(we,{id:"HWpPGm"})]}),j&&x.jsxs(On,{value:"containers",className:"w-full flex items-center gap-2",children:[x.jsx(aO,{className:"size-3.5"}),x.jsx(we,{id:"ClGcRq"})]}),k&&x.jsxs(On,{value:"services",className:"w-full flex items-center gap-2",children:[x.jsx(nx,{className:"size-3.5"}),x.jsx(we,{id:"MILoeL"})]})]}),x.jsx(Sn,{value:"core",forceMount:!0,className:h==="core"?"contents":"hidden",children:x.jsxs("div",{className:"grid xl:grid-cols-2 gap-4",children:[x.jsx(T0,{...q}),x.jsx(M0,{...q}),x.jsx(W0,{chartData:o,grid:c,dataEmpty:O}),x.jsx(N0,{...q,systemStats:i}),x.jsx(q0,{...q,setPageBottomExtraMargin:P}),x.jsx(R0,{...q}),x.jsx($0,{chartData:o,grid:c,dataEmpty:O,systemStats:i}),I>0&&x.jsx("div",{style:{marginBottom:I}})]})}),x.jsx(Sn,{value:"disk",forceMount:!0,className:h==="disk"?"contents":"hidden",children:v.has("disk")&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"grid xl:grid-cols-2 gap-4",children:x.jsx(I0,{systemData:r})}),x.jsx(k0,{systemData:r}),M&&x.jsx(F0,{systemId:n.id})]})}),$&&x.jsxs(Sn,{value:"gpu",forceMount:!0,className:h==="gpu"?"contents":"hidden",children:[x.jsx("div",{className:"grid xl:grid-cols-2 gap-4",children:T&&x.jsx(L0,{chartData:o,grid:c,dataEmpty:O})}),S&&w&&x.jsx(B0,{chartData:o,grid:c,dataEmpty:O,lastGpus:w,hasGpuEnginesData:A})]}),j&&x.jsx(Sn,{value:"containers",forceMount:!0,className:h==="containers"?"contents":"hidden",children:v.has("containers")&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"grid xl:grid-cols-2 gap-4",children:[x.jsx(E0,{chartData:o,grid:c,dataEmpty:O,isPodman:m,cpuConfig:s.cpu}),x.jsx(C0,{chartData:o,grid:c,dataEmpty:O,isPodman:m,memoryConfig:s.memory}),x.jsx(D0,{chartData:o,grid:c,dataEmpty:O,isPodman:m,networkConfig:s.network})]}),N&&x.jsx(AO,{systemId:n.id})]})}),k&&x.jsx(Sn,{value:"services",forceMount:!0,className:h==="services"?"contents":"hidden",children:v.has("services")&&x.jsx(E_,{systemId:n.id})})]})}return x.jsxs("div",{className:"grid gap-4 mb-14 overflow-x-clip",children:[x.jsx(eS,{system:n,chartData:o,grid:c,setGrid:f,displayMode:l,setDisplayMode:d,details:u}),l==="tabs"?K():L()]})});export{mB as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.