1import{c as tr,j as u,B as je,s as We,aU as Oe,r as C,u as jn,aV as Vi,aW as fe,aX as te,aB as P,X as jg,L as Og,b as Sg,H as Ag}from"./index-Dv67V7Mg.js";import{u as _g}from"./usePageSeo-YwEj4Jma.js";import{H as Pg,F as $g}from"./Footer-D1ZcLyYe.js";import{C as J,a as ne,b as ie,d as ee,c as Ot}from"./card-3u5N2Wb8.js";import{T as uo,a as fo,b as Ce,c as ke}from"./tabs-BUewzQEj.js";import{I as Or}from"./input-CiCrzBpG.js";import{A as ei,a as ti}from"./alert-B8dVnqjS.js";import{B as de}from"./badge-DtTADGjN.js";import{P as gt}from"./progress-DA0kW-k2.js";import{I as Ds}from"./info-B3SgIqv_.js";import{C as bt}from"./chart-column-CcjwviJS.js";import{C as ot}from"./circle-check-big-wUwl4jxd.js";import{C as ri}from"./circle-x-COKgmkSh.js";import{T as Wr}from"./triangle-alert-BFQLcJyw.js";import{C as $u}from"./crown-CRHV7RUN.js";import{S as Vr}from"./settings-fTO4oGFg.js";import{U as Tg}from"./users-D6JcdVw-.js";import{T as Xr}from"./trending-up-D-JqaBDi.js";import{S as Rs}from"./smartphone-BDXJmpoT.js";import{G as Lt}from"./globe-BY9w19sm.js";import{S as Cp}from"./switch-Dy4vVRsE.js";import{P as yl,T as gl}from"./trash-2-CQaO7C7n.js";import{S as vt}from"./search-D_xKTrXO.js";import{E as kp}from"./eye-Bnv9FWrc.js";import{E as Ng}from"./external-link-BXOTQqxw.js";import{C as Eg}from"./checkbox-D5T5_knJ.js";import{D as Tu}from"./dollar-sign-CmW0y31F.js";import{M as Cg}from"./map-pin-BOF98Rd4.js";import{T as Mp}from"./target-BCQm_qTe.js";import{D as kg}from"./download-CypBWACS.js";import{T as Ip}from"./trending-down-BI3BEObS.js";import{Z as la}from"./zap-C2mLW3Z8.js";import{S as Nu}from"./shield-D7BwQYt3.js";import{H as Ls}from"./history-C8UI91Vk.js";import{k as ua,n as Bs,e as Fs}from"./es-CWs2JRJD.js";import{S as Mg,a as Ig,b as Dg,c as Rg,d as ss}from"./select-FHhTaEiA.js";import{C as Dp}from"./clock-D2gRsGd5.js";import{C as zs}from"./calendar-BxnjX_fC.js";import{a as Lg,c as Bg,b as Fg}from"./addWeeks-rqYy5pb5.js";import{L as zg}from"./lock-xRZo6pTv.js";import"./index-WLnUxLce.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Eu=tr("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Ug=tr("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const Wg=tr("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const Gg=tr("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/** 22 * @license lucide-react v0.462.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const Yr=tr("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** 27 * @license lucide-react v0.462.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const Us=tr("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 32 * @license lucide-react v0.462.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const Ws=tr("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 37 * @license lucide-react v0.462.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */const Cu=tr("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),qg=({language:e,url:t,auditData:r})=>{var l,d;const n=async()=>{try{const{data:f,error:h}=await We.functions.invoke("create-checkout");if(h)throw h;f!=null&&f.url&&window.open(f.url,"_blank")}catch(f){console.error("Error creating checkout:",f),Oe({title:"Error",description:"No se pudo crear la sesión de pago. Por favor, intenta de nuevo.",variant:"destructive"})}},a={es:{title:"AuditorÃa SEO Gratuita",subtitle:"Análisis básico con datos públicos",upgradeTitle:"Desbloquea el Análisis Completo",upgradeDescription:"Obtén acceso a métricas avanzadas, APIs premium y datos en tiempo real",upgradeButton:"Actualizar a PRO",basicAnalysis:"Análisis Básico",technicalIssues:"Problemas Técnicos",overallScore:"Puntuación General",recommendations:"Recomendaciones",limitations:{title:"Limitaciones del Plan Gratuito",description:"Esta auditorÃa utiliza solo datos públicos disponibles. Para métricas avanzadas, conecta tus APIs premium."},tabs:{technical:"Técnico",traffic:"Tráfico",devices:"Dispositivos",pages:"Páginas",backlinks:"Backlinks"},proFeatures:["Datos de Google Analytics","Métricas de Search Console","Análisis de backlinks premium","Datos de tráfico en tiempo real","Análisis competitivo avanzado"]}
41,en:{title:"Free SEO Audit",subtitle:"Basic analysis with public data",upgradeTitle:"Unlock Complete Analysis",upgradeDescription:"Get access to advanced metrics, premium APIs and real-time data",upgradeButton:"Upgrade to PRO",basicAnalysis:"Basic Analysis",technicalIssues:"Technical Issues",overallScore:"Overall Score",recommendations:"Recommendations",limitations:{title:"Free Plan Limitations",description:"This audit uses only public data available. For advanced metrics, connect your premium APIs."},tabs:{technical:"Technical",traffic:"Traffic",devices:"Devices",pages:"Pages",backlinks:"Backlinks"},proFeatures:["Google Analytics data","Search Console metrics","Premium backlink analysis","Real-time traffic data","Advanced competitive analysis"]}}[e],o=r?{overall_score:r.overall_score||0,technical_score:r.technical_score||0,on_page_score:r.on_page_score||0,performance_score:r.performance_score||0,issues:((d=(l=r.audit_data)==null?void 0:l.issues)==null?void 0:d.map(f=>({type:f.type==="critical"?"error":f.type==="good"?"success":"warning",category:f.category,message:f.message,severity:f.type==="critical"?"high":f.type==="warning"?"medium":"info"})))||[]}:{overall_score:0,technical_score:0,on_page_score:0,performance_score:0,issues:[]},s=f=>{switch(f){case"success":return u.jsx(ot,{className:"h-4 w-4 text-green-500"});case"warning":return u.jsx(Wr,{className:"h-4 w-4 text-yellow-500"});case"error":return u.jsx(ri,{className:"h-4 w-4 text-red-500"});default:return u.jsx(Ds,{className:"h-4 w-4 text-blue-500"})}},c=f=>{switch(f){case"success":return u.jsx(de,{variant:"default",className:"bg-green-100 text-green-800",children:"OK"});case"warning":return u.jsx(de,{variant:"secondary",className:"bg-yellow-100 text-yellow-800",children:"Advertencia"});case"error":return u.jsx(de,{variant:"destructive",children:"Error"});default:return u.jsx(de,{variant:"outline",children:"Info"})}};return u.jsxs("div",{className:"space-y-6",children:[u.jsxs(ei,{children:[u.jsx(Ds,{className:"h-4 w-4"}),u.jsx(ti,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{children:a.limitations.description}),u.jsxs(je,{variant:"outline",size:"sm",onClick:n,children:[u.jsx(Eu,{className:"mr-2 h-4 w-4"}),a.upgradeButton]})]})})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(bt,{className:"h-5 w-5"}),a.overallScore]})}),u.jsx(ee,{children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-sm font-medium",children:a.overallScore}),u.jsxs("span",{className:"text-2xl font-bold",children:[o.overall_score,"/100"]})]}),u.jsx(gt,{value:o.overall_score,className:"h-2"}),u.jsxs("div",{className:"grid grid-cols-3 gap-4 mt-4",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:o.technical_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Técnico"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:o.on_page_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"On-Page"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:o.performance_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Rendimiento"})]})]})]})})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsx(ie,{children:a.technicalIssues})}),u.jsx(ee,{children:u.jsx("div",{className:"space-y-3",children:o.issues.map((f,h)=>u.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg border",children:[s(f.type),u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"font-medium",children:f.category}),c(f.type)]}),u.jsx("p",{className:"text-sm text-muted-foreground",children:f.message})]})]},h))})})]}),u.jsx(J,{className:"bg-primary text-primary-foreground",children:u.jsxs(ee,{className:"pt-6 text-center",children:[u.jsx("h3",{className:"text-2xl font-bold mb-4",children:a.upgradeTitle}),u.jsx("p",{className:"mb-6 opacity-90",children:a.upgradeDescription}),u.jsx("div",{className:"grid gap-2 max-w-sm mx-auto mb-6",children:a.proFeatures.map((f,h)=>u.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[u.jsx(ot,{className:"h-4 w-4 text-green-400"}),u.jsx("span",{children:f})]},h))}),u.jsxs(je,{size:"lg",variant:"secondary",onClick:n,children:[u.jsx(Eu,{className:"mr-2 h-4 w-4"}),a.upgradeButton]})]})})]})},Hg=({language:e,url:t,auditData:r,connectedApis:n=[]})=>{var l,d,f,h,p,m,v,y,x,g,w,S,b,j;const a={es:{title:"AuditorÃa SEO PRO",subtitle:"Análisis completo con datos premium",overallScore:"Puntuación General",recommendations:"Recomendaciones",apiStatus:"Estado de APIs",connected:"Conectado",notConnected:"No Conectado",connectApis:"Conectar APIs",tabs:{technical:"Técnico",traffic:"Tráfico",devices:"Dispositivos",pages:"Páginas",backlinks:"Backlinks"},apis:{"google-analytics":"Google Analytics","google-search-console":"Search Console",semrush:"SEMrush",ahrefs:"Ahrefs"},insights:{traffic:"Datos de tráfico en tiempo real",devices:"Análisis detallado por dispositivos",pages:"Rendimiento por páginas",backlinks:"Perfil
41completo de backlinks"}},en:{title:"PRO SEO Audit",subtitle:"Complete analysis with premium data",overallScore:"Overall Score",recommendations:"Recommendations",apiStatus:"API Status",connected:"Connected",notConnected:"Not Connected",connectApis:"Connect APIs",tabs:{technical:"Technical",traffic:"Traffic",devices:"Devices",pages:"Pages",backlinks:"Backlinks"},apis:{"google-analytics":"Google Analytics","google-search-console":"Search Console",semrush:"SEMrush",ahrefs:"Ahrefs"},insights:{traffic:"Real-time traffic data",devices:"Detailed device analysis",pages:"Page performance insights",backlinks:"Complete backlink profile"}}}[e],o=r?{overall_score:r.overall_score||0,technical_score:r.technical_score||0,on_page_score:r.on_page_score||0,performance_score:r.performance_score||0,traffic_score:r.social_score||0,backlinks_score:r.off_page_score||0,issues:((d=(l=r.audit_data)==null?void 0:l.issues)==null?void 0:d.map(O=>({type:O.type==="critical"?"error":O.type==="good"?"success":"warning",category:O.category,message:O.message,severity:O.type==="critical"?"high":O.type==="warning"?"medium":"info"})))||[],traffic:(h=(f=r.audit_data)==null?void 0:f.trafficData)!=null&&h.dataAvailable?{sessions:r.audit_data.trafficData.organic+r.audit_data.trafficData.paid+r.audit_data.trafficData.direct,users:Math.floor((r.audit_data.trafficData.organic+r.audit_data.trafficData.paid+r.audit_data.trafficData.direct)*.7),pageviews:(r.audit_data.trafficData.organic+r.audit_data.trafficData.paid+r.audit_data.trafficData.direct)*2.5,bounce_rate:45,avg_session_duration:248}:{sessions:0,users:0,pageviews:0,bounce_rate:0,avg_session_duration:0},devices:(m=(p=r.audit_data)==null?void 0:p.deviceAnalysis)!=null&&m.dataAvailable?{desktop:r.audit_data.deviceAnalysis.desktop,mobile:r.audit_data.deviceAnalysis.mobile,tablet:r.audit_data.deviceAnalysis.tablet}:{desktop:0,mobile:0,tablet:0},top_pages:(y=(v=r.audit_data)==null?void 0:v.topPages)!=null&&y.dataAvailable?r.audit_data.topPages.pages||[]:[],backlinks:{total:((g=(x=r.audit_data)==null?void 0:x.backlinks)==null?void 0:g.total)||0,domains:((S=(w=r.audit_data)==null?void 0:w.backlinks)==null?void 0:S.uniqueDomains)||0,quality_score:((j=(b=r.audit_data)==null?void 0:b.backlinks)==null?void 0:j.averageAuthority)||0,toxic:0}}:{overall_score:0,technical_score:0,on_page_score:0,performance_score:0,traffic_score:0,backlinks_score:0,issues:[],traffic:{sessions:0,users:0,pageviews:0,bounce_rate:0,avg_session_duration:0},devices:{desktop:0,mobile:0,tablet:0},top_pages:[],backlinks:{total:0,domains:0,quality_score:0,toxic:0}},s=O=>{switch(O){case"success":return u.jsx(ot,{className:"h-4 w-4 text-green-500"});case"warning":return u.jsx(Wr,{className:"h-4 w-4 text-yellow-500"});case"error":return u.jsx(ri,{className:"h-4 w-4 text-red-500"});default:return u.jsx(Ds,{className:"h-4 w-4 text-blue-500"})}},c=O=>n.includes(O);return u.jsxs("div",{className:"space-y-6",children:[u.jsxs(ei,{className:"border-primary/20 bg-primary/5",children:[u.jsx($u,{className:"h-4 w-4 text-primary"}),u.jsx(ti,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"font-medium text-primary",children:[a.title," - ",a.subtitle]}),u.jsxs(de,{className:"bg-primary text-primary-foreground",children:[u.jsx($u,{className:"mr-1 h-3 w-3"}),"PRO"]})]})})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Vr,{className:"h-5 w-5"}),a.apiStatus]})}),u.jsxs(ee,{children:[u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Object.entries(a.apis).map(([O,_])=>u.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[u.jsx("span",{className:"text-sm font-medium",children:_}),u.jsx(de,{variant:c(O)?"default":"secondary",children:c(O)?u.jsxs(u.Fragment,{children:[u.jsx(ot,{className:"mr-1 h-3 w-3"})," ",a.connected]}):u.jsxs(u.Fragment,{children:[u.jsx(ri,{className:"mr-1 h-3 w-3"})," ",a.notConnected]})})]},O))}),n.length<4&&u.jsx("div",{className:"mt-4 text-center",children:u.jsxs(je,{variant:"outline",children:[u.jsx(Vr,{className:"mr-2 h-4 w-4"}),a.connectApis]})})]})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(bt,{className:"h-5 w-5"}),a.overallScore]})}),u.jsx(ee,{children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-sm font-medium",children:a.overallScore}),u.jsxs("span",{className:"text-3xl font-bold text-primary",children:[o.overall_score,"/100"]})]}),u.jsx(gt,{value:o.overall_score,className:"h-3"}
41),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-4 mt-6",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:o.technical_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Técnico"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:o.on_page_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"On-Page"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:o.performance_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Rendimiento"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:o.traffic_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Tráfico"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:o.backlinks_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Backlinks"})]})]})]})})]}),u.jsxs(uo,{defaultValue:"technical",className:"w-full",children:[u.jsxs(fo,{className:"grid w-full grid-cols-5",children:[u.jsx(Ce,{value:"technical",children:a.tabs.technical}),u.jsx(Ce,{value:"traffic",children:a.tabs.traffic}),u.jsx(Ce,{value:"devices",children:a.tabs.devices}),u.jsx(Ce,{value:"pages",children:a.tabs.pages}),u.jsx(Ce,{value:"backlinks",children:a.tabs.backlinks})]}),u.jsx(ke,{value:"technical",className:"mt-6",children:u.jsxs(J,{children:[u.jsx(ne,{children:u.jsx(ie,{children:"Análisis Técnico Avanzado"})}),u.jsx(ee,{children:u.jsx("div",{className:"space-y-3",children:o.issues.map((O,_)=>u.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg border",children:[s(O.type),u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"font-medium",children:O.category}),u.jsx(de,{variant:O.type==="success"?"default":O.type==="warning"?"secondary":"destructive",children:O.severity})]}),u.jsx("p",{className:"text-sm text-muted-foreground",children:O.message})]})]},_))})})]})}),u.jsx(ke,{value:"traffic",className:"mt-6",children:u.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Tg,{className:"h-5 w-5"}),"Métricas de Tráfico"]})}),u.jsx(ee,{children:o.traffic.sessions>0?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{children:"Sesiones"}),u.jsx("span",{className:"font-semibold",children:o.traffic.sessions.toLocaleString()})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{children:"Usuarios"}),u.jsx("span",{className:"font-semibold",children:o.traffic.users.toLocaleString()})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{children:"Páginas vistas"}),u.jsx("span",{className:"font-semibold",children:o.traffic.pageviews.toLocaleString()})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{children:"Tasa de rebote"}),u.jsxs("span",{className:"font-semibold",children:[o.traffic.bounce_rate,"%"]})]})]}):u.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[u.jsx(bt,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),u.jsx("p",{className:"font-medium mb-2",children:"Datos de tráfico no disponibles"}),u.jsx("p",{className:"text-sm",children:"Conecta Google Analytics para ver estos datos"})]})})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Xr,{className:"h-5 w-5"}),"Tendencias"]})}),u.jsx(ee,{children:u.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[u.jsx(bt,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),u.jsx("p",{children:"Gráfico de tendencias de tráfico"}),u.jsx("p",{className:"text-sm",children:"(Con datos de Google Analytics)"})]})})]})]})}),u.jsx(ke,{value:"devices",className:"mt-6",children:u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Rs,{className:"h-5 w-5"}),"Distribución por Dispositivos"]})}),u.jsx(ee,{children:u.jsx("div",{className:"space-y-4",children:Object.entries(o.devices).map(([O,_])=>u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"capitalize",children:O}),u.jsxs("span",{className:"font-semibold",children:[_,"%"]})]}),u.jsx(gt,{value:_,className:"h-2"})]},O))})})]})}),u.jsx(ke,{value:"pages",className:"mt-6",children:u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Lt,{className:"h-5 w-5"}),"Páginas Principales"]})}),u.jsx(ee,{children:o.top_pages.length>0?u.jsx("div",{className:"space-y-3",children:o.top_pages.map((O,_)=>u.jsxs("div",{className:"flex items-center justify-between p-3 border rounded-lg",children:[u.jsxs("div",{children:[u.jsx("div",{className:"font-medium",children:O.url||O.page}),u.jsxs("div",{className:"text-sm text-muted-foreground",children:[(O.views||O.visits||0).toLocaleStr
41ing()," vistas"]})]}),u.jsx("div",{className:"text-right",children:u.jsxs("div",{className:"text-sm",children:["Rebote: ",O.bounce_rate||O.bounceRate||0,"%"]})})]},_))}):u.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[u.jsx(Lt,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),u.jsx("p",{className:"font-medium mb-2",children:"Datos de páginas no disponibles"}),u.jsx("p",{className:"text-sm",children:"Conecta Google Analytics para ver el rendimiento por páginas"})]})})]})}),u.jsx(ke,{value:"backlinks",className:"mt-6",children:u.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Yr,{className:"h-5 w-5"}),"Perfil de Backlinks"]})}),u.jsx(ee,{children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{children:"Total Backlinks"}),u.jsx("span",{className:"font-semibold",children:o.backlinks.total.toLocaleString()})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{children:"Dominios únicos"}),u.jsx("span",{className:"font-semibold",children:o.backlinks.domains})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{children:"Puntuación de calidad"}),u.jsxs("span",{className:"font-semibold",children:[o.backlinks.quality_score,"/100"]})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{children:"Links tóxicos"}),u.jsx("span",{className:"font-semibold text-red-500",children:o.backlinks.toxic})]})]})})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsx(ie,{children:"Calidad de Backlinks"})}),u.jsx(ee,{children:u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("span",{children:"Calidad General"}),u.jsxs("span",{children:[o.backlinks.quality_score,"/100"]})]}),u.jsx(gt,{value:o.backlinks.quality_score,className:"h-2"})]})})]})]})})]})]})},Kg=({language:e})=>{const[t,r]=C.useState([]),[n,i]=C.useState(!0),[a,o]=C.useState({}),[s,c]=C.useState({provider:"",connection_name:"",api_key:""}),{user:l}=jn(),f={es:{title:"Conectores de API",subtitle:"Conecta tus herramientas para análisis avanzados",description:"Conecta tus APIs premium para obtener datos en tiempo real y análisis completos",addNew:"Agregar Nueva Conexión",service:"Servicio",connectionName:"Nombre de Conexión",apiKey:"API Key",status:"Estado",lastUsed:"Ãltimo Uso",actions:"Acciones",save:"Guardar",delete:"Eliminar",show:"Mostrar",hide:"Ocultar",active:"Activo",inactive:"Inactivo",never:"Nunca",howToConnect:"Cómo Conectar",setupGuide:"GuÃa de Configuración",existingConnections:"Conexiones Existentes",noConnections:"No tienes conexiones configuradas",services:{"google-analytics":"Google Analytics","google-search-console":"Google Search Console",semrush:"SEMrush",ahrefs:"Ahrefs",moz:"Moz"},guides:{"google-analytics":{title:"Conectar Google Analytics",steps:["Ve a Google Analytics (analytics.google.com)","Selecciona tu propiedad","Ve a Admin > Credenciales de API","Crea una nueva clave de API","Copia la clave y pégala aquÃ"],benefits:["Datos de tráfico en tiempo real","Métricas de audiencia","Conversiones y objetivos"]},"google-search-console":{title:"Conectar Search Console",steps:["Ve a Google Search Console (search.google.com/search-console)","Selecciona tu propiedad","Ve a Configuración > Usuarios y permisos","Genera una clave de API","Autoriza el acceso y copia la clave"],benefits:["Datos de palabras clave","Rendimiento en búsquedas","Issues técnicos"]},semrush:{title:"Conectar SEMrush",steps:["Inicia sesión en SEMrush","Ve a Configuración de cuenta",'Busca "API Access" o "Integraciones"',"Genera tu API key","Copia la clave de API"],benefits:["Análisis de competencia","Investigación de keywords","Backlinks premium"]},ahrefs:{title:"Conectar Ahrefs",steps:["Ve a Ahrefs Account Settings",'Busca la sección "API"',"Genera una nueva API key","Configura los permisos necesarios","Copia tu API token"],benefits:["Análisis de backlinks completo","Keyword explorer","Site audit avanzado"]}}},en:{title:"API Connectors",subtitle:"Connect your tools for advanced analysis",description:"Connect your premium APIs to get real-time data and complete analysis",addNew:"Add New Connection",service:"Service",connectionName:"Connection Name",apiKey:"API Key",status:"Status",lastUsed:"Last Used",actions:"Actions",save:"Save",delete:"Delete",show:"Show",hide:"Hide",active:"Active",inactive:"Inactive",never:"Never",howToConnect:"How to Connect",setupGuide:"Setup Guide",existingConnections:"Existing Connections",noConnections:"You don't have any connections configured",
41services:{"google-analytics":"Google Analytics","google-search-console":"Google Search Console",semrush:"SEMrush",ahrefs:"Ahrefs",moz:"Moz"},guides:{"google-analytics":{title:"Connect Google Analytics",steps:["Go to Google Analytics (analytics.google.com)","Select your property","Go to Admin > API Credentials","Create a new API key","Copy the key and paste it here"],benefits:["Real-time traffic data","Audience metrics","Conversions and goals"]},"google-search-console":{title:"Connect Search Console",steps:["Go to Google Search Console (search.google.com/search-console)","Select your property","Go to Settings > Users and permissions","Generate an API key","Authorize access and copy the key"],benefits:["Keyword data","Search performance","Technical issues"]},semrush:{title:"Connect SEMrush",steps:["Sign in to SEMrush","Go to Account Settings",'Look for "API Access" or "Integrations"',"Generate your API key","Copy the API key"],benefits:["Competitive analysis","Keyword research","Premium backlinks"]},ahrefs:{title:"Connect Ahrefs",steps:["Go to Ahrefs Account Settings",'Look for "API" section',"Generate a new API key","Configure necessary permissions","Copy your API token"],benefits:["Complete backlink analysis","Keyword explorer","Advanced site audit"]}}}}[e];C.useEffect(()=>{l&&h()},[l]);const h=async()=>{try{const{data:g,error:w}=await We.from("api_connections").select("*").eq("user_id",l==null?void 0:l.id).order("created_at",{ascending:!1});if(w)throw w;r(g||[])}catch(g){console.error("Error fetching connections:",g),Oe({title:"Error",description:"No se pudieron cargar las conexiones",variant:"destructive"})}finally{i(!1)}},p=async()=>{if(!s.provider||!s.api_key||!s.connection_name){Oe({title:"Error",description:"Por favor completa todos los campos",variant:"destructive"});return}try{Oe({title:"Validando conexión...",description:"Verificando las credenciales de API"}),console.log("Calling validate-api-connection with:",{provider:s.provider,api_key_length:s.api_key.length});const{data:g,error:w}=await We.functions.invoke("validate-api-connection",{body:{provider:s.provider,credentials:{api_key:s.api_key}}});if(console.log("Validation response:",{validationData:g,validationError:w}),w){console.error("Validation error:",w),Oe({title:"Error de conexión",description:"No se pudo validar la API. Verifica tu conexión a internet.",variant:"destructive"});return}if(!(g!=null&&g.isValid)){Oe({title:"Error de validación",description:(g==null?void 0:g.message)||"Las credenciales de API no son válidas. Verifica tu API key.",variant:"destructive"});return}const{error:S}=await We.from("api_connections").insert({user_id:l==null?void 0:l.id,provider:s.provider,connection_name:s.connection_name,api_credentials:{api_key:s.api_key},is_active:!0});if(S)throw console.error("Database error:",S),S;Oe({title:"Ãxito",description:`Conexión con ${f.services[s.provider]} guardada correctamente`}),c({provider:"",connection_name:"",api_key:""}),h()}catch(g){console.error("Error saving connection:",g),Oe({title:"Error",description:"No se pudo guardar la conexión. Inténtalo de nuevo.",variant:"destructive"})}},m=async(g,w)=>{try{const{error:S}=await We.from("api_connections").update({is_active:!w}).eq("id",g);if(S)throw S;h()}catch(S){console.error("Error toggling connection:",S)}},v=async g=>{try{const{error:w}=await We.from("api_connections").delete().eq("id",g);if(w)throw w;Oe({title:"Eliminado",description:"Conexión eliminada correctamente"}),h()}catch(w){console.error("Error deleting connection:",w)}},y=g=>{o(w=>({...w,[g]:!w[g]}))},x=g=>{const w=(g==null?void 0:g.api_key)||"";return w.length<=8?"*".repeat(w.length):w.substring(0,4)+"*".repeat(w.length-8)+w.substring(w.length-4)};return u.jsxs("div",{className:"space-y-6",children:[u.jsx(J,{children:u.jsxs(ne,{children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Vr,{className:"h-5 w-5"}),u.jsx(ie,{children:f.title})]}),u.jsx(Ot,{children:f.description})]})}),u.jsxs(uo,{defaultValue:"existing",className:"w-full",children:[u.jsxs(fo,{className:"grid w-full grid-cols-2",children:[u.jsxs(Ce,{value:"existing",children:[u.jsx(Gg,{className:"mr-2 h-4 w-4"}),f.existingConnections]}),u.jsxs(Ce,{value:"guides",children:[u.jsx(Ug,{className:"mr-2 h-4 w-4"}),f.howToConnect]})]}),u.jsxs(ke,{value:"existing",className:"mt-6 space-y-6",children:[u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(yl,{className:"h-5 w-5"}),f.addNew]})}),u.jsx(ee,{className:"space-y-4",children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-2 block",children:f.service}),u.jsxs("select",{className:"w-full p-2 border rounded-md",value:s.provider,onCh
41ange:g=>c({...s,provider:g.target.value}),children:[u.jsx("option",{value:"",children:"Seleccionar servicio"}),Object.entries(f.services).map(([g,w])=>u.jsx("option",{value:g,children:w},g))]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-2 block",children:f.connectionName}),u.jsx(Or,{placeholder:"Nombre personalizado",value:s.connection_name,onChange:g=>c({...s,connection_name:g.target.value})})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-2 block",children:f.apiKey}),u.jsx(Or,{type:"password",placeholder:"Tu API Key",value:s.api_key,onChange:g=>c({...s,api_key:g.target.value})})]}),u.jsx("div",{className:"flex items-end",children:u.jsxs(je,{onClick:p,className:"w-full",children:[u.jsx(Us,{className:"mr-2 h-4 w-4"}),f.save]})})]})})]}),u.jsxs(J,{className:"border-blue-200 bg-blue-50/50",children:[u.jsxs(ne,{children:[u.jsxs(ie,{className:"flex items-center gap-2 text-blue-700",children:[u.jsx(Wr,{className:"h-5 w-5"}),"API Keys de Prueba"]}),u.jsx(Ot,{className:"text-blue-600",children:"Usa estas claves de prueba para probar la funcionalidad. Para APIs reales, obtén tus propias credenciales."})]}),u.jsxs(ee,{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"p-3 bg-white border rounded-lg",children:[u.jsx("div",{className:"font-medium text-sm mb-1",children:"Google Analytics"}),u.jsx("div",{className:"text-xs text-muted-foreground mb-2",children:"Clave de prueba"}),u.jsx("div",{className:"font-mono text-sm bg-gray-100 p-2 rounded border",children:"test_google_analytics_key_123456789"}),u.jsx(je,{variant:"outline",size:"sm",className:"mt-2 w-full",onClick:()=>c({...s,provider:"google-analytics",connection_name:"GA Demo",api_key:"test_google_analytics_key_123456789"}),children:"Usar esta clave"})]}),u.jsxs("div",{className:"p-3 bg-white border rounded-lg",children:[u.jsx("div",{className:"font-medium text-sm mb-1",children:"Google Search Console"}),u.jsx("div",{className:"text-xs text-muted-foreground mb-2",children:"Clave de prueba"}),u.jsx("div",{className:"font-mono text-sm bg-gray-100 p-2 rounded border",children:"test_search_console_key_987654321"}),u.jsx(je,{variant:"outline",size:"sm",className:"mt-2 w-full",onClick:()=>c({...s,provider:"google-search-console",connection_name:"GSC Demo",api_key:"test_search_console_key_987654321"}),children:"Usar esta clave"})]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"p-3 bg-white border rounded-lg",children:[u.jsx("div",{className:"font-medium text-sm mb-1",children:"SEMrush"}),u.jsx("div",{className:"text-xs text-muted-foreground mb-2",children:"Clave de prueba"}),u.jsx("div",{className:"font-mono text-sm bg-gray-100 p-2 rounded border",children:"test_semrush_key_abcdef123"}),u.jsx(je,{variant:"outline",size:"sm",className:"mt-2 w-full",onClick:()=>c({...s,provider:"semrush",connection_name:"SEMrush Demo",api_key:"test_semrush_key_abcdef123"}),children:"Usar esta clave"})]}),u.jsxs("div",{className:"p-3 bg-white border rounded-lg",children:[u.jsx("div",{className:"font-medium text-sm mb-1",children:"Ahrefs"}),u.jsx("div",{className:"text-xs text-muted-foreground mb-2",children:"Clave de prueba"}),u.jsx("div",{className:"font-mono text-sm bg-gray-100 p-2 rounded border",children:"test_ahrefs_token_xyz789456"}),u.jsx(je,{variant:"outline",size:"sm",className:"mt-2 w-full",onClick:()=>c({...s,provider:"ahrefs",connection_name:"Ahrefs Demo",api_key:"test_ahrefs_token_xyz789456"}),children:"Usar esta clave"})]})]})]}),u.jsxs(ei,{className:"mt-4",children:[u.jsx(Wr,{className:"h-4 w-4"}),u.jsxs(ti,{children:[u.jsx("strong",{children:"Nota:"})," Estas son claves de prueba para demostración. Para obtener datos reales, necesitas registrarte en cada servicio y obtener tus propias API keys."]})]})]})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsx(ie,{children:f.existingConnections})}),u.jsx(ee,{children:n?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):t.length===0?u.jsxs("div",{className:"text-center text-muted-foreground py-8",children:[u.jsx(Vr,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),u.jsx("p",{children:f.noConnections}),u.jsx("p",{className:"text-sm mt-2",children:"Usa las guÃas de configuración para conectar tus APIs"})]}):u.jsx("div",{className:"space-y-4",children:t.map(g=>{var w;return u.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsxs("div",{className:"p-2 bg-primary/10 rounded-lg",children:[g.provider==="google-analytics"&&u.jsx(bt,{className:"h-5 w-5 text-primary"}),g.provider==="google-search-console"&&u.jsx(vt,{className:"h-5 w-5 text-primary"}),g.provider==="semrush"&&u.jsx(Lt,{className:"h-5 w-5 text-primary"}),g.provider==="ahrefs"&&u.jsx(Yr,{className:"h-5 w-5 text-primary"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"font-medium",children:g.connection_name}),u.jsx("div",{className:"text-sm text-muted-foreground",children:f.services[g.provider]||g.provider}),u.jsxs("div",{className:"text-sm text-muted-foreground flex items-center gap-2 mt-1",children:[a[g.id]?((w=g.api_credentials)==null?void 0:w.api_key)||"":x(g.api_credentials),u.jsx(je,{variant:"ghost",size:"sm",onClick:()=>y(g.id),children:a[g.id]?u.jsx(Wg,{className:"h-4 w-4"}):u.jsx(kp,{className:"h-4 w-4"})})]})]})]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(de,{variant:g.is_active?"default":"secondary",children:g.is_active?u.jsxs(u.Fragment,{children:[u.jsx(ot,{className:"mr-1 h-3 w-3"})," ",f.active]}):u.jsxs(u.Fragment,{children:[u.jsx(ri,{className:"mr-1 h-3 w-3"})," ",f.inactive]})}),u.jsx(Cp,{checked:g.is_active,onCheckedChange:()=>m(g.id,g.is_active)}),u.jsx(je,{variant:"destructive",size:"sm",onClick:()=>v(g.id),children:u.jsx(gl,{className:"h-4 w-4"})})]})]},g.id)})})})]})]}),u.jsx(ke,{value:"guides",className:"mt-6",children:u.jsx("div",{className:"grid gap-6",children:Object.entries(f.guides).map(([g,w])=>u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[g==="google-analytics"&&u.jsx(bt,{className:"h-5 w-5 text-primary"}),g==="google-search-console"&&u.jsx(vt,{className:"h-5 w-5 text-primary"}),g==="semrush"&&u.jsx(Lt,{className:"h-5 w-5 text-primary"}),g==="ahrefs"&&u.jsx(Yr,{className:"h-5 w-5 text-primary"}),w.title]})}),u.jsxs(ee,{className:"space-y-4",children:[u.jsxs(ei,{children:[u.jsx(Wr,{className:"h-4 w-4"}),u.jsxs(ti,{children:[u.jsx("strong",{children:"Beneficios:"}
41)," ",w.benefits.join(", ")]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("h4",{className:"font-semibold",children:"Pasos de configuración:"}),u.jsx("ol",{className:"space-y-2",children:w.steps.map((S,b)=>u.jsxs("li",{className:"flex items-start gap-3",children:[u.jsx("span",{className:"flex-shrink-0 w-6 h-6 bg-primary text-primary-foreground rounded-full flex items-center justify-center text-xs font-medium",children:b+1}),u.jsx("span",{className:"text-sm",children:S})]},b))})]}),u.jsx("div",{className:"flex gap-2 pt-4",children:u.jsxs(je,{variant:"outline",size:"sm",children:[u.jsx(Ng,{className:"mr-2 h-4 w-4"}),"Abrir ",f.services[g]]})})]})]},g))})})]})]})},Vg=()=>{const[e,t]=C.useState(null),[r,n]=C.useState(!0),[i,a]=C.useState(null),{user:o}=jn();C.useEffect(()=>{o?s():(t(null),n(!1))},[o]);const s=async()=>{try{a(null);const{data:h,error:p}=await We.from("user_subscriptions").select("*").eq("user_id",o==null?void 0:o.id).single();if(p&&p.code!=="PGRST116")throw p;t(h?{status:h.tier==="pro"?"pro":"free",plan:h.tier,is_active:!0,expires_at:h.expires_at,features:Array.isArray(h.features)?h.features:[]}:{status:"free",plan:"free",is_active:!0,expires_at:null,features:["basic_audit","technical_analysis"]})}catch(h){console.error("Error fetching subscription:",h),a("Failed to load subscription data"),t({status:"free",plan:"free",is_active:!0,expires_at:null,features:["basic_audit","technical_analysis"]})}finally{n(!1)}};return{subscription:e,loading:r,error:i,hasFeature:h=>(e==null?void 0:e.features.includes(h))||!1,isPro:()=>(e==null?void 0:e.status)==="pro"&&(e==null?void 0:e.is_active),isFree:()=>(e==null?void 0:e.status)==="free"||!(e!=null&&e.is_active),upgradeSubscription:async h=>{try{const{data:p,error:m}=await We.from("user_subscriptions").upsert({user_id:o==null?void 0:o.id,tier:h,features:h==="pro"?["basic_audit","technical_analysis","google_analytics","search_console","backlinks_analysis","unlimited_audits","automated_reports"]:["basic_audit","technical_analysis"]});if(m)throw m;return await s(),{success:!0}}catch(p){return console.error("Error upgrading subscription:",p),{success:!1,error:p}}},refetch:s}};var Xg=Array.isArray,Ze=Xg,Yg=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi,Rp=Yg,Zg=Rp,Jg=typeof self=="object"&&self&&self.Object===Object&&self,Qg=Zg||Jg||Function("return this")(),$t=Qg,eb=$t,tb=eb.Symbol,Bi=tb,ku=Bi,Lp=Object.prototype,rb=Lp.hasOwnProperty,nb=Lp.toString,Dn=ku?ku.toStringTag:void 0;function ib(e){var t=rb.call(e,Dn),r=e[Dn];try{e[Dn]=void 0;var n=!0}catch{}var i=nb.call(e);return n&&(t?e[Dn]=r:delete e[Dn]),i}var ab=ib,ob=Object.prototype,sb=ob.toString;function cb(e){return sb.call(e)}var lb=cb,Mu=Bi,ub=ab,fb=lb,db="[object Null]",hb="[object Undefined]",Iu=Mu?Mu.toStringTag:void 0;function pb(e){return e==null?e===void 0?hb:db:Iu&&Iu in Object(e)?ub(e):fb(e)}var Wt=pb;function mb(e){return e!=null&&typeof e=="object"}var Gt=mb,vb=Wt,yb=Gt,gb="[object Symbol]";function bb(e){return typeof e=="symbol"||yb(e)&&vb(e)==gb}var On=bb,xb=Ze,wb=On,jb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ob=/^\w*$/;function Sb(e,t){if(xb(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||wb(e)?!0:Ob.test(e)||!jb.test(e)||t!=null&&e in Object(t)}var bl=Sb;function Ab(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rr=Ab;const Sn=fe(rr);var _b=Wt,Pb=rr,$b="[object AsyncFunction]",Tb="[object Function]",Nb="[object GeneratorFunction]",Eb="[object Proxy]";function Cb(e){if(!Pb(e))return!1;var t=_b(e);return t==Tb||t==Nb||t==$b||t==Eb}var xl=Cb;const Y=fe(xl);var kb=$t,Mb=kb["__core-js_shared__"],Ib=Mb,cs=Ib,Du=function(){var e=/[^.]+$/.exec(cs&&cs.keys&&cs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Db(e){return!!Du&&Du in e}var Rb=Db,Lb=Function.prototype,Bb=Lb.toString;function Fb(e){if(e!=null){try{return Bb.call(e)}catch{}try{return e+""}catch{}}return""}var Bp=Fb,zb=xl,Ub=Rb,Wb=rr,Gb=Bp,qb=/[\\^$.*+?()[\]{}|]/g,Hb=/^\[object .+?Constructor\]$/,Kb=Function.prototype,Vb=Object.prototype,Xb=Kb.toString,Yb=Vb.hasOwnProperty,Zb=RegExp("^"+Xb.call(Yb).replace(qb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jb(e){if(!Wb(e)||Ub(e))return!1;var t=zb(e)?Zb:Hb;return t.test(Gb(e))}var Qb=Jb;function ex(e,t){return e==null?void 0:e[t]}var tx=ex,rx=Qb,nx=tx;function ix(e,t){var r=nx(e,t);return rx(r)?r:void 0}var Nr=ix,ax=Nr,ox=ax(Object,"create"),ho=ox,Ru=ho;function sx(){this.__data__=Ru?Ru(null):{},this.size=0}var cx=sx;function lx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ux=lx,fx=ho,dx="__lodash_hash_undefined__",hx=Object.prototype,px=hx.hasOwnProperty;function mx(e){var t=this.__data__;if(fx){var r=t[e];return r===dx?void 0:r}return px.call(t,e)?t[e]:void 0}var vx=mx,yx=ho,gx=Object.prototype,bx=gx.hasOwnProperty;function xx(e){var t=this.__data__;return yx?t[e]!==void 0:bx.call(t,e)}var wx=xx,jx=ho,Ox="__lodash_hash_undefined__";function Sx(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jx&&t===void 0?Ox:t,this}var Ax=Sx,_x=cx,Px=ux,$x=vx,Tx=wx,Nx=Ax;function An(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}An.prototype.clear=_x;An.prototype.delete=Px;An.prototype.get=$x;An.prototype.has=Tx;An.prototype.set=Nx;var Ex=An;function Cx(){this.__data__=[],this.size=0}var kx=Cx;function Mx(e,t){return e===t||e!==e&&t!==t}var wl=Mx,Ix=wl;function Dx(e,t){for(var r=e.length;r--;)if(Ix(e[r][0],t))return r;return-1}var po=Dx,Rx=po,Lx=Array.prototype,Bx=Lx.splice;function Fx(e){var t=this.__data__,r=Rx(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Bx.call(t,r,1),--this.size,!0}var zx=Fx,Ux=po;function Wx(e){var t=this.__data__,r=Ux(t,e);return r<0?void 0:t[r][1]}var Gx=Wx,qx=po;function Hx(e){return qx(this.__data__,e)>-1}var Kx=Hx,Vx=po;function Xx(e,t){var r=this.__data__,n=Vx(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Yx=Xx,Zx=kx,Jx=zx,Qx=Gx,e0=Kx,t0=Yx;function _n(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_n.prototype.clear=Zx;_n.prototype.delete=Jx;_n.prototype.get=Qx;_n.prototype.has=e0;_n.prototype.set=t0;var mo=_n,r0=Nr,n0=$t,i0=r0(n0,"Map"),jl=i0,Lu=Ex,a0=mo,o0=jl;function s0(){this.size=0,this.__data__={hash:new Lu,map:new(o0||a0),str
vendor: 1,240 bytes, line 41
41ing:new Lu}}var c0=s0;function l0(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var u0=l0,f0=u0;function d0(e,t){var r=e.__data__;return f0(t)?r[typeof t=="string"?"string":"hash"]:r.map}var vo=d0,h0=vo;function p0(e){var t=h0(this,e).delete(e);return this.size-=t?1:0,t}var m0=p0,v0=vo;function y0(e){return v0(this,e).get(e)}var g0=y0,b0=vo;function x0(e){return b0(this,e).has(e)}var w0=x0,j0=vo;function O0(e,t){var r=j0(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var S0=O0,A0=c0,_0=m0,P0=g0,$0=w0,T0=S0;function Pn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pn.prototype.clear=A0;Pn.prototype.delete=_0;Pn.prototype.get=P0;Pn.prototype.has=$0;Pn.prototype.set=T0;var Ol=Pn,Fp=Ol,N0="Expected a function";function Sl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(N0);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Sl.Cache||Fp),r}Sl.Cache=Fp;var zp=Sl;const E0=fe(zp);var C0=zp,k0=500;function M0(e){var t=C0(e,function(n){return r.size===k0&&r.clear(),n}
vendor: 6,644 bytes, lines 41-49
41),r=t.cache;return t}var I0=M0,D0=I0,R0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L0=/\\(\\)?/g,B0=D0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(R0,function(r,n,i,a){t.push(i?a.replace(L0,"$1"):n||r)}),t}),F0=B0;function z0(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Al=z0,Bu=Bi,U0=Al,W0=Ze,G0=On,q0=1/0,Fu=Bu?Bu.prototype:void 0,zu=Fu?Fu.toString:void 0;function Up(e){if(typeof e=="string")return e;if(W0(e))return U0(e,Up)+"";if(G0(e))return zu?zu.call(e):"";var t=e+"";return t=="0"&&1/e==-q0?"-0":t}var H0=Up,K0=H0;function V0(e){return e==null?"":K0(e)}var Wp=V0,X0=Ze,Y0=bl,Z0=F0,J0=Wp;function Q0(e,t){return X0(e)?e:Y0(e,t)?[e]:Z0(J0(e))}var Gp=Q0,ew=On,tw=1/0;function rw(e){if(typeof e=="string"||ew(e))return e;var t=e+"";return t=="0"&&1/e==-tw?"-0":t}var yo=rw,nw=Gp,iw=yo;function aw(e,t){t=nw(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[iw(t[r++])];return r&&r==n?e:void 0}var _l=aw,ow=_l;function sw(e,t,r){var n=e==null?void 0:ow(e,t);return n===void 0?r:n}var qp=sw;const rt=fe(qp);function cw(e){return e==null}var lw=cw;const re=fe(lw);var uw=Wt,fw=Ze,dw=Gt,hw="[object String]";function pw(e){return typeof e=="string"||!fw(e)&&dw(e)&&uw(e)==hw}var mw=pw;const Sr=fe(mw);var Hp={exports:{}},le={};/** 42 * @license React 43 * react-is.production.min.js 44 * 45 * Copyright (c) Facebook, Inc. and its affiliates. 46 * 47 * This source code is licensed under the MIT license found in the 48 * LICENSE file in the root directory of this source tree. 49 */var Pl=Symbol.for("react.element"),$l=Symbol.for("react.portal"),go=Symbol.for("react.fragment"),bo=Symbol.for("react.strict_mode"),xo=Symbol.for("react.profiler"),wo=Symbol.for("react.provider"),jo=Symbol.for("react.context"),vw=Symbol.for("react.server_context"),Oo=Symbol.for("react.forward_ref"),So=Symbol.for("react.suspense"),Ao=Symbol.for("react.suspense_list"),_o=Symbol.for("react.memo"),Po=Symbol.for("react.lazy"),yw=Symbol.for("react.offscreen"),Kp;Kp=Symbol.for("react.module.reference");function dt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pl:switch(e=e.type,e){case go:case xo:case bo:case So:case Ao:return e;default:switch(e=e&&e.$$typeof,e){case vw:case jo:case Oo:case Po:case _o:case wo:return e;default:return t}}case $l:return t}}}le.ContextConsumer=jo;le.ContextProvider=wo;le.Element=Pl;le.ForwardRef=Oo;le.Fragment=go;le.Lazy=Po;le.Memo=_o;le.Portal=$l;le.Profiler=xo;le.StrictMode=bo;le.Suspense=So;le.SuspenseList=Ao;le.isAsyncMode=function(){return!1};le.isConcurrentMode=function(){return!1};le.isContextConsumer=function(e){return dt(e)===jo};le.isContextProvider=function(e){return dt(e)===wo};le.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pl};le.isForwardRef=function(e){return dt(e)===Oo};le.isFragment=function(e){return dt(e)===go};le.isLazy=function(e){return dt(e)===Po};le.isMemo=function(e){return dt(e)===_o};le.isPortal=function(e){return dt(e)===$l};le.isProfiler=function(e){return dt(e)===xo};le.isStrictMode=function(e){return dt(e)===bo};le.isSuspense=function(e){return dt(e)===So};le.isSuspenseList=function(e){return dt(e)===Ao};le.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===go||e===xo||e===bo||e===So||e===Ao||e===yw||typeof e=="object"&&e!==null&&(e.$$typeof===Po||e.$$typeof===_o||e.$$typeof===wo||e.$$typeof===jo||e.$$typeof===Oo||e.$$typeof===Kp||e.getModuleId!==void 0)};le.typeOf=dt;Hp.exports=le;var gw=Hp.exports,bw=Wt,xw=Gt,ww="[object Number]";function jw(e){return typeof e=="number"||xw(e)&&bw(e)==ww}var Vp=jw;const Ow=fe(Vp);var Sw=Vp;function Aw(e){return Sw(e)&&e!=+e}var _w=Aw;const Fi=fe(_w);var qe=function(t){return t===0?0:t>0?1:-1},yr=function(t){return Sr(t)&&t.indexOf("%")===t.length-1},B=function(t){return Ow(t)&&!Fi(t)},Pw=function(t){return re(t)},Me=function(t){return B(t)||Sr(t)},$w=0,zi=function(t){var r=++$w;return"".concat(t||"").concat(r)},He=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(!B(t)&&!Sr(t))return n;var a;if(yr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Fi(a)&&(a=n),i&&a>r&&(a=r),a},Xt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Tw=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},Kt=function(t,r){return B(t)&&B(r)?function(n){return t+n*(r-t)}:function(){return r}};function Gs(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):rt(n,t))===r})}var Nw=function(t,r){return B(t)&&B(r)?t-r:Sr(t)&&Sr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Gr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function qs(e){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qs(e)}var Ew=["viewBox","children"],Cw=["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
49dering","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"],Uu=["points","pathLength"],ls={svg:Ew,polygon:Uu,polyline:Uu},Tl=["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
49Capture","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"],da=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(C.isValidElement(t)&&(n=t.props),!Sn(n))return null;var i={};return Object.keys(n).forEach(function(a){Tl.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},kw=function(t,r,n){return function(i){return t(r,n,i),null}},Ar=function(t,r,n){if(!Sn(t)||qs(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Tl.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=kw(o,r,n))}),i},Mw=["children"],Iw=["children"];function Wu(e,t){if(e==null)return{};var r=Dw(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 Dw(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 Gu={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"},It=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},qu=null,us=null,Nl=function e(t){if(t===qu&&Array.isArray(us))return us;var r=[];return C.Children.forEach(t,function(n){re(n)||(gw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),us=r,qu=t,r};function ut(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return It(i)}):n=[It(t)],Nl(e).forEach(function(i){var a=rt(i,"type.displayName")||rt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function et(e,t){var r=ut(e,t);return r&&r[0]}var Hu=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!B(n)||n<=0||!B(i)||i<=0)},Rw=["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"],Lw=function(t){return t&&t.type&&Sr(t.type)&&Rw.indexOf(t.type)>=0},Bw=function(t,r,n,i){var a,o=(a=ls==null?void 0:ls[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||Cw.includes(r))||n&&Tl.includes(r)},X=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(C.isValidElement(t)&&(i=t.props),!Sn(i))return null;var a={};
49return Object.keys(i).forEach(function(o){var s;Bw((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Hs=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 Ku(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(!Ku(a,o))return!1}return!0},Ku=function(t,r){if(re(t)&&re(r))return!0;if(!re(t)&&!re(r)){var n=t.props||{},i=n.children,a=Wu(n,Mw),o=r.props||{},s=o.children,c=Wu(o,Iw);return i&&s?Gr(a,c)&&Hs(i,s):!i&&!s?Gr(a,c):!1}return!1},Vu=function(t,r){var n=[],i={};return Nl(t).forEach(function(a,o){if(Lw(a))n.push(a);else if(a){var s=It(a.type),c=r[s]||{},l=c.handler,d=c.once;if(l&&(!d||!i[s])){var f=l(a,s,o);n.push(f),i[s]=!0}}}),n},Fw=function(t){var r=t&&t.type;return r&&Gu[r]?Gu[r]:null},zw=function(t,r){return Nl(r).indexOf(t)},Uw=["children","width","height","viewBox","className","style","title","desc"];function Ks(){return Ks=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},Ks.apply(this,arguments)}function Ww(e,t){if(e==null)return{};var r=Gw(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 Gw(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 Vs(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,l=Ww(e,Uw),d=i||{width:r,height:n,x:0,y:0},f=te("recharts-surface",a);return P.createElement("svg",Ks({},X(l,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),P.createElement("title",null,s),P.createElement("desc",null,c),t)}var qw=["children","className"];function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xs.apply(this,arguments)}function Hw(e,t){if(e==null)return{};var r=Kw(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ce=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=Hw(e,qw),a=te("recharts-layer",n);return P.createElement("g",Xs({className:a},X(i,!0),{ref:t}),r)}),xt=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]};function Vw(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var Xw=Vw,Yw=Xw;function Zw(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Yw(e,t,r)}var Jw=Zw,Qw="\\ud800-\\udfff",e1="\\u0300-\\u036f",t1="\\ufe20-\\ufe2f",r1="\\u20d0-\\u20ff",n1=e1+t1+r1,i1="\\ufe0e\\ufe0f",a1="\\u200d",o1=RegExp("["+a1+Qw+n1+i1+"]");function s1(e){return o1.test(e)}var Xp=s1;function c1(e){return e.split("")}var l1=c1,Yp="\\ud800-\\udfff",u1="\\u0300-\\u036f",f1="\\ufe20-\\ufe2f",d1="\\u20d0-\\u20ff",h1=u1+f1+d1,p1="\\ufe0e\\ufe0f",m1="["+Yp+"]",Ys="["+h1+"]",Zs="\\ud83c[\\udffb-\\udfff]",v1="(?:"+Ys+"|"+Zs+")",Zp="[^"+Yp+"]",Jp="(?:\\ud83c[\\udde6-\\uddff]){2}",Qp="[\\ud800-\\udbff][\\udc00-\\udfff]",y1="\\u200d",em=v1+"?",tm="["+p1+"]?",g1="(?:"+y1+"(?:"+[Zp,Jp,Qp].join("|")+")"+tm+em+")*",b1=tm+em+g1,x1="(?:"+[Zp+Ys+"?",Ys,Jp,Qp,m1].join("|")+")",w1=RegExp(Zs+"(?="+Zs+")|"+x1+b1,"g");function j1(e){return e.match(w1)||[]}var O1=j1,S1=l1,A1=Xp,_1=O1;function P1(e){return A1(e)?_1(e):S1(e)}var $1=P1,T1=Jw,N1=Xp,E1=$1,C1=Wp;function k1(e){return function(t){t=C1(t);var r=N1(t)?E1(t):void 0,n=r?r[0]:t.charAt(0),i=r?T1(r,1).join(""):t.slice(1);return n[e]()+i}}var M1=k1,I1=M1,D1=I1("toUpperCase"),R1=D1;const $o=fe(R1);function me(e){return function(){return e}}const rm=Math.cos,ha=Math.sin,wt=Math.sqrt,pa=Math.PI,To=2*pa,Js=Math.PI,Qs=2*Js,hr=1e-6,L1=Qs-hr;function nm(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function B1(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return nm;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 F1{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?nm:B1(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}
49,${+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,c=n-t,l=i-r,d=o-t,f=s-r,h=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>hr)if(!(Math.abs(f*c-l*d)>hr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,m=i-s,v=c*c+l*l,y=p*p+m*m,x=Math.sqrt(v),g=Math.sqrt(h),w=a*Math.tan((Js-Math.acos((v+h-y)/(2*x*g)))/2),S=w/g,b=w/x;Math.abs(S-1)>hr&&this._append`L${t+S*d},${r+S*f}`,this._append`A${a},${a},0,0,${+(f*p>d*m)},${this._x1=t+b*c},${this._y1=r+b*l}`}}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),c=n*Math.sin(i),l=t+s,d=r+c,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${l},${d}`:(Math.abs(this._x1-l)>hr||Math.abs(this._y1-d)>hr)&&this._append`L${l},${d}`,n&&(h<0&&(h=h%Qs+Qs),h>L1?this._append`A${n},${n},0,1,${f},${t-s},${r-c}A${n},${n},0,1,${f},${this._x1=l},${this._y1=d}`:h>hr&&this._append`A${n},${n},0,${+(h>=Js)},${f},${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 El(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 F1(t)}function Cl(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function im(e){this._context=e}im.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 No(e){return new im(e)}function am(e){return e[0]}function om(e){return e[1]}function sm(e,t){var r=me(!0),n=null,i=No,a=null,o=El(s);e=typeof e=="function"?e:e===void 0?am:me(e),t=typeof t=="function"?t:t===void 0?om:me(t);function s(c){var l,d=(c=Cl(c)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),l=0;l<=d;++l)!(l<d&&r(f=c[l],l,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,l,c),+t(f,l,c));if(p)return a=null,p+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:me(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:me(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:me(!!c),s):r},s.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),s):i},s.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),s):n},s}function Xi(e,t,r){var n=null,i=me(!0),a=null,o=No,s=null,c=El(l);e=typeof e=="function"?e:e===void 0?am:me(+e),t=typeof t=="function"?t:me(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?om:me(+r);function l(f){var h,p,m,v=(f=Cl(f)).length,y,x=!1,g,w=new Array(v),S=new Array(v);for(a==null&&(s=o(g=c())),h=0;h<=v;++h){if(!(h<v&&i(y=f[h],h,f))===x)if(x=!x)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=h-1;m>=p;--m)s.point(w[m],S[m]);s.lineEnd(),s.areaEnd()}x&&(w[h]=+e(y,h,f),S[h]=+t(y,h,f),s.point(n?+n(y,h,f):w[h],r?+r(y,h,f):S[h]))}if(g)return s=null,g+""||null}function d(){return sm().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:me(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:me(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:me(+f),l):n},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:me(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:me(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:me(+f),l):r},l.lineX0=l.lineY0=function(){return d().x(e).y(t)},l.lineY1=function(){return d().x(e).y(r)},l.lineX1=function(){return d().x(n).y(t)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:me(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}
vendor: 8,652 bytes, line 49
49class cm{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 z1(e){return new cm(e,!0)}function U1(e){return new cm(e,!1)}const kl={draw(e,t){const r=wt(t/pa);e.moveTo(r,0),e.arc(0,0,r,0,To)}},W1={draw(e,t){const r=wt(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()}},lm=wt(1/3),G1=lm*2,q1={draw(e,t){const r=wt(t/G1),n=r*lm;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},H1={draw(e,t){const r=wt(t),n=-r/2;e.rect(n,n,r,r)}},K1=.8908130915292852,um=ha(pa/10)/ha(7*pa/10),V1=ha(To/10)*um,X1=-rm(To/10)*um,Y1={draw(e,t){const r=wt(t*K1),n=V1*r,i=X1*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=To*a/5,s=rm(o),c=ha(o);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*i,c*n+s*i)}e.closePath()}},fs=wt(3),Z1={draw(e,t){const r=-wt(t/(fs*3));e.moveTo(0,r*2),e.lineTo(-fs*r,-r),e.lineTo(fs*r,-r),e.closePath()}},nt=-.5,it=wt(3)/2,ec=1/wt(12),J1=(ec/2+1)*3,Q1={draw(e,t){const r=wt(t/J1),n=r/2,i=r*ec,a=n,o=r*ec+r,s=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(nt*n-it*i,it*n+nt*i),e.lineTo(nt*a-it*o,it*a+nt*o),e.lineTo(nt*s-it*c,it*s+nt*c),e.lineTo(nt*n+it*i,nt*i-it*n),e.lineTo(nt*a+it*o,nt*o-it*a),e.lineTo(nt*s+it*c,nt*c-it*s),e.closePath()}};function ej(e,t){let r=null,n=El(i);e=typeof e=="function"?e:me(e||kl),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},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ma(){}function va(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 fm(e){this._context=e}fm.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:va(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:va(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tj(e){return new fm(e)}function dm(e){this._context=e}dm.prototype={areaStart:ma,areaEnd:ma,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:va(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rj(e){return new dm(e)}function hm(e){this._context=e}hm.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:va(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nj(e){return new hm(e)}function pm(e){this._context=e}pm.prototype={areaStart:ma,areaEnd:ma,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 ij(e){return new pm(e)}function Xu(e){return e<0?-1:1}function Yu(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(Xu(a)+Xu(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Zu(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ds(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 ya(e){this._context=e}ya.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:ds(this,this._t0,Zu(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,ds(this,Zu(this,r=Yu(this,e,t)),r);break;default:ds(this,this._t0,r=Yu(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function mm(e){this._context=new vm(e)}(mm.prototype=Object.create(ya.prototype)).point=function(e,t){ya.prototype.point.call(this,t,e)};function vm(e){this._context=e}vm.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 aj(e){return new ya(e)}function oj(e){return new mm(e)}function ym(e){this._context=e}ym.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=Ju(e),i=Ju(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 Ju(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 sj(e){return new ym(e)}function Eo(e,t){this._context=e,this._t=t}Eo.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: 11,870 bytes, lines 49-52
49default:{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 cj(e){return new Eo(e,.5)}function lj(e){return new Eo(e,0)}function uj(e){return new Eo(e,1)}function Zr(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 tc(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function fj(e,t){return e[t]}function dj(e){const t=[];return t.key=e,t}function hj(){var e=me([]),t=tc,r=Zr,n=fj;function i(a){var o=Array.from(e.apply(this,arguments),dj),s,c=o.length,l=-1,d;for(const f of a)for(s=0,++l;s<c;++s)(o[s][l]=[0,+n(f,o[s].key,l,a)]).data=f;for(s=0,d=Cl(t(o));s<c;++s)o[d[s]].index=s;return r(o,d),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?tc:typeof a=="function"?a:me(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Zr,i):r},i}function pj(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}Zr(e,t)}}function mj(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}Zr(e,t)}}function vj(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,c=0,l=0;s<o;++s){for(var d=e[t[s]],f=d[n][1]||0,h=d[n-1][1]||0,p=(f-h)/2,m=0;m<s;++m){var v=e[t[m]],y=v[n][1]||0,x=v[n-1][1]||0;p+=y-x}c+=f,l+=p*f}i[n-1][1]+=i[n-1][0]=r,c&&(r-=l/c)}i[n-1][1]+=i[n-1][0]=r,Zr(e,t)}}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)}var yj=["type","size","sizeType"];function rc(){return rc=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},rc.apply(this,arguments)}function Qu(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 ef(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qu(Object(r),!0).forEach(function(n){gj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gj(e,t,r){return t=bj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bj(e){var t=xj(e,"string");return ni(t)=="symbol"?t:t+""}function xj(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wj(e,t){if(e==null)return{};var r=jj(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 jj(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 gm={symbolCircle:kl,symbolCross:W1,symbolDiamond:q1,symbolSquare:H1,symbolStar:Y1,symbolTriangle:Z1,symbolWye:Q1},Oj=Math.PI/180,Sj=function(t){var r="symbol".concat($o(t));return gm[r]||kl},Aj=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*Oj;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}},_j=function(t,r){gm["symbol".concat($o(t))]=r},Ml=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,c=wj(t,yj),l=ef(ef({},c),{},{type:n,size:a,sizeType:s}),d=function(){var y=Sj(n),x=ej().type(y).size(Aj(a,s,n));return x()},f=l.className,h=l.cx,p=l.cy,m=X(l,!0);return h===+h&&p===+p&&a===+a?P.createElement("path",rc({},m,{className:te("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:d()})):null};Ml.registerSymbol=_j;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 nc(){return nc=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},nc.apply(this,arguments)}function tf(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 Pj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tf(Object(r),!0).forEach(function(n){ii(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tj(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,xm(n.key),n)}}function Nj(e,t,r){return t&&Tj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ej(e,t,r){return t=ga(t),Cj(e,bm()?Reflect.construct(t,r||[],ga(e).constructor):t.apply(e,r))}function Cj(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 kj(e)}function kj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bm=function(){return!!e})()}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ga(e)}function Mj(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&&ic(e,t)}function ic(e,t){return ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ic(e,t)}function ii(e,t,r){return t=xm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xm(e){var t=Ij(e,"string");return Jr(t)=="symbol"?t:t+""}function Ij(e,t){if(Jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var at=32,Il=function(e){function t(){return $j(this,t),Ej(this,t,arguments)}return Mj(t,e),Nj(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=at/2,o=at/6,s=at/3,c=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:at,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,` 50 A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,` 51 H`).concat(at,"M").concat(2*s,",").concat(a,` 52 A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(at/8,"h").concat(at,"v").concat(at*3/4,"h").concat(-at,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var l=Pj({},n);return delete l.legendIcon,P.cloneElement(n.legendIcon,l)}return P.createElement(Ml,{fill:c,cx:a,cy:a,size:at,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,c=i.formatter,l=i.inactiveColor,d={x:0,y:0,width:at,height:at},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,m){var v=p.formatter||c,y=te(ii(ii({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var x=Y(p.value)?null:p.value;xt(!Y(p.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 g=p.inactive?l:p.color;return P.createElement("li",nc({className:y,style:f,key:"legend-item-".concat(m)},Ar(n.props,p,m)),P.createElement(Vs,{width:o,height:o,viewBox:d,style:h},n.renderIcon(p)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},v?v(x,p,m):x))})}},{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 P.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(C.PureComponent);ii(Il,"displayName","Legend");ii(Il,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Dj=mo;function Rj(){this.__data__=new Dj,this.size=0}var Lj=Rj;function Bj(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Fj=Bj;function zj(e){return this.__data__.get(e)}var Uj=zj;function Wj(e){return this.__data__.has(e)}var Gj=Wj,qj=mo,Hj=jl,Kj=Ol,Vj=200;function Xj(e,t){var r=this.__data__;if(r instanceof qj){var n=r.__data__;if(!Hj||n.length<Vj-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kj(n)}return r.set(e,t),this.size=r.size,this}var Yj=Xj,Zj=mo,Jj=Lj,Qj=Fj,eO=Uj,tO=Gj,rO=Yj;function $n(e){var t=this.__data__=new Zj(e);this.size=t.size}$n.prototype.clear=Jj;$n.prototype.delete=Qj;$n.prototype.get=eO;$n.prototype.has=tO;$n.prototype.set=rO;var wm=$n,nO="__lodash_hash_undefined__";function iO(e){return this.__data__.set(e,nO),this}var aO=iO;function oO(e){return this.__data__.has(e)}var sO=oO,cO=Ol,lO=aO,uO=sO;function ba(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new cO;++t<r;)this.add(e[t])}ba.prototype.add=ba.prototype.push=lO;ba.prototype.has=uO;var jm=ba;function fO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Om=fO;function dO(e,t){return e.has(t)}var Sm=dO,hO=jm,pO=Om,mO=Sm,vO=1,yO=2;function gO(e,t,r,n,i,a){var o=r&vO,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,h=!0,p=r&yO?new hO:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var m=e[f],v=t[f];if(n)var y=o?n(v,m,f,t,e,a):n(m,v,f,e,t,a);if(y!==void 0){if(y)continue;h=!1;break}
vendor: 6,739 bytes, line 52
52if(p){if(!pO(t,function(x,g){if(!mO(p,g)&&(m===x||i(m,x,r,n,a)))return p.push(g)})){h=!1;break}}else if(!(m===v||i(m,v,r,n,a))){h=!1;break}}return a.delete(e),a.delete(t),h}var Am=gO,bO=$t,xO=bO.Uint8Array,wO=xO;function jO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var OO=jO;function SO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Dl=SO,rf=Bi,nf=wO,AO=wl,_O=Am,PO=OO,$O=Dl,TO=1,NO=2,EO="[object Boolean]",CO="[object Date]",kO="[object Error]",MO="[object Map]",IO="[object Number]",DO="[object RegExp]",RO="[object Set]",LO="[object String]",BO="[object Symbol]",FO="[object ArrayBuffer]",zO="[object DataView]",af=rf?rf.prototype:void 0,hs=af?af.valueOf:void 0;function UO(e,t,r,n,i,a,o){switch(r){case zO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case FO:return!(e.byteLength!=t.byteLength||!a(new nf(e),new nf(t)));case EO:case CO:case IO:return AO(+e,+t);case kO:return e.name==t.name&&e.message==t.message;case DO:case LO:return e==t+"";case MO:var s=PO;case RO:var c=n&TO;if(s||(s=$O),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;n|=NO,o.set(e,t);var d=_O(s(e),s(t),n,i,a,o);return o.delete(e),d;case BO:if(hs)return hs.call(e)==hs.call(t)}return!1}var WO=UO;function GO(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var _m=GO,qO=_m,HO=Ze;function KO(e,t,r){var n=t(e);return HO(e)?n:qO(n,r(e))}var VO=KO;function XO(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var YO=XO;function ZO(){return[]}var JO=ZO,QO=YO,eS=JO,tS=Object.prototype,rS=tS.propertyIsEnumerable,of=Object.getOwnPropertySymbols,nS=of?function(e){return e==null?[]:(e=Object(e),QO(of(e),function(t){return rS.call(e,t)}))}:eS,iS=nS;function aS(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var oS=aS,sS=Wt,cS=Gt,lS="[object Arguments]";function uS(e){return cS(e)&&sS(e)==lS}var fS=uS,sf=fS,dS=Gt,Pm=Object.prototype,hS=Pm.hasOwnProperty,pS=Pm.propertyIsEnumerable,mS=sf(function(){return arguments}())?sf:function(e){return dS(e)&&hS.call(e,"callee")&&!pS.call(e,"callee")},Rl=mS,xa={exports:{}};function vS(){return!1}var yS=vS;xa.exports;(function(e,t){var r=$t,n=yS,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||n;e.exports=l})(xa,xa.exports);var $m=xa.exports,gS=9007199254740991,bS=/^(?:0|[1-9]\d*)$/;function xS(e,t){var r=typeof e;return t=t??gS,!!t&&(r=="number"||r!="symbol"&&bS.test(e))&&e>-1&&e%1==0&&e<t}var Ll=xS,wS=9007199254740991;function jS(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wS}var Bl=jS,OS=Wt,SS=Bl,AS=Gt,_S="[object Arguments]",PS="[object Array]",$S="[object Boolean]",TS="[object Date]",NS="[object Error]",ES="[object Function]",CS="[object Map]",kS="[object Number]",MS="[object Object]",IS="[object RegExp]",DS="[object Set]",RS="[object String]",LS="[object WeakMap]",BS="[object ArrayBuffer]",FS="[object DataView]",zS="[object Float32Array]",US="[object Float64Array]",WS="[object Int8Array]",GS="[object Int16Array]",qS="[object Int32Array]",HS="[object Uint8Array]",KS="[object Uint8ClampedArray]",VS="[object Uint16Array]",XS="[object Uint32Array]",ge={};ge[zS]=ge[US]=ge[WS]=ge[GS]=ge[qS]=ge[HS]=ge[KS]=ge[VS]=ge[XS]=!0;ge[_S]=ge[PS]=ge[BS]=ge[$S]=ge[FS]=ge[TS]=ge[NS]=ge[ES]=ge[CS]=ge[kS]=ge[MS]=ge[IS]=ge[DS]=ge[RS]=ge[LS]=!1;function YS(e){return AS(e)&&SS(e.length)&&!!ge[OS(e)]}var ZS=YS;function JS(e){return function(t){return e(t)}}var Tm=JS,wa={exports:{}};wa.exports;(function(e,t){var r=Rp,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 c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(wa,wa.exports);var QS=wa.exports,eA=ZS,tA=Tm,cf=QS,lf=cf&&cf.isTypedArray,rA=lf?tA(lf):eA,Nm=rA,nA=oS,iA=Rl,aA=Ze,oA=$m,sA=Ll,cA=Nm,lA=Object.prototype,uA=lA.hasOwnProperty;function fA(e,t){var r=aA(e),n=!r&&iA(e),i=!r&&!n&&oA(e),a=!r&&!n&&!i&&cA(e),o=r||n||i||a,s=o?nA(e.length,String):[],c=s.length;for(var l in e)(t||uA.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||sA(l,c)))&&s.push(l);return s}var dA=fA,hA=Object.prototype;function pA(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||hA;return e===r}var mA=pA;function vA(e,t){return function(r){return e(t(r))}}var Em=vA,yA=Em,gA=yA(Object.keys,Object),bA=gA,xA=mA,wA=bA,jA=Object.prototype,OA=jA.hasOwnProperty;function SA(e){if(!xA(e))return wA(e);var t=[];for(var r in Object(e))OA.call(e,r)&&r!="constructor"&&t.push(r);return t}var AA=SA,_A=xl,PA=Bl;function $A(e){return e!=null&&PA(e.length)&&!_A(e)}var Ui=$A,TA=dA,NA=AA,EA=Ui;function CA(e){return EA(e)?TA(e):NA(e)}var Co=CA,kA=VO,MA=iS,IA=Co;function DA(e){return kA(e,IA,MA)}var RA=DA,uf=RA,LA=1,BA=Object.prototype,FA=BA.hasOwnProperty;function zA(e,t,r,n,i,a){var o=r&LA,s=uf(e),c=s.length,l=uf(t),d=l.length;if(c!=d&&!o)return!1;for(var f=c;f--;){var h=s[f];if(!(o?h in t:FA.call(t,h)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<c;){h=s[f];var x=e[h],g=t[h];if(n)var w=o?n(g,x,h,t,e,a):n(x,g,h,e,t,a);if(!(w===void 0?x===g||i(x,g,r,n,a):w)){v=!1;break}y||(y=h=="constructor")}if(v&&!y){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(v=!1)}return a.delete(e),a.delete(t),v}var UA=zA,WA=Nr,GA=$t,qA=WA(GA,"DataView"),HA=qA,KA=Nr,VA=$t,XA=KA(VA,"Promise"),YA=XA,ZA=Nr,JA=$t,QA=ZA(JA,"Set"),Cm=QA,e_=Nr,t_=$t,r_=e_(t_,"WeakMap"),n_=r_,ac=HA,oc=jl,sc=YA,cc=Cm,lc=n_,km=Wt,Tn=Bp,ff="[object Map]",i_="[object Object]",df="[object Promise]",hf="[object Set]",pf="[object WeakMap]",mf="[object DataView]",a_=Tn(ac),o_=Tn(oc),s_=Tn(sc),c_=Tn(cc),l_=Tn(lc),pr=km;(ac&&pr(new ac(new ArrayBuffer(1)))!=mf||oc&&pr(new oc)!=ff||sc&&pr(sc.resolve())!=df||cc&&pr(new cc)!=hf||lc&&pr(new lc)!=pf)&&(pr=function(e){var t=km(e),r=t==i_?e.constructor:void 0,n=r?Tn(r):"";if(n)switch(n){case a_:return mf;case o_:return ff;case s_:return df;case c_:return hf;case l_:return pf}return t});var u_=pr,ps=wm,f_=Am,d_=WO,h_=UA,vf=u_,yf=Ze,gf=$m,p_=Nm,m_=1,bf="[object Arguments]",xf="[object Array]",Yi="[object Object]",v_=Object.prototype,wf=v_.hasOwnProperty;function y_(e,t,r,n,i,a){var o=yf(e),s=yf(t),c=o?xf:vf(e),l=s?xf:vf(t);c=c==bf?Yi:c,l=l==bf?Yi:l;var d=c==Yi,f=l==Yi,h=c==l;if(h&&gf(e)){if(!gf(t))return!1;o=!0,d=!1}if(h&&!d)return a||(a=new ps),o||p_(e)?f_(e,t,r,n,i,a):d_(e,t,c,r,n,i,a);if(!(r&m_)){var p=d&&wf.call(e,"__wrapped__"),m=f&&wf.call(t,"__wrapped__");
vendor: 4,927 bytes, line 52
52if(p||m){var v=p?e.value():e,y=m?t.value():t;return a||(a=new ps),i(v,y,r,n,a)}}return h?(a||(a=new ps),h_(e,t,r,n,i,a)):!1}var g_=y_,b_=g_,jf=Gt;function Mm(e,t,r,n,i){return e===t?!0:e==null||t==null||!jf(e)&&!jf(t)?e!==e&&t!==t:b_(e,t,r,n,Mm,i)}var Fl=Mm,x_=wm,w_=Fl,j_=1,O_=2;function S_(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var c=s[0],l=e[c],d=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var f=new x_;if(n)var h=n(l,d,c,e,t,f);if(!(h===void 0?w_(d,l,j_|O_,n,f):h))return!1}}return!0}var A_=S_,__=rr;function P_(e){return e===e&&!__(e)}var Im=P_,$_=Im,T_=Co;function N_(e){for(var t=T_(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,$_(i)]}return t}var E_=N_;function C_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Dm=C_,k_=A_,M_=E_,I_=Dm;function D_(e){var t=M_(e);return t.length==1&&t[0][2]?I_(t[0][0],t[0][1]):function(r){return r===e||k_(r,e,t)}}var R_=D_;function L_(e,t){return e!=null&&t in Object(e)}var B_=L_,F_=Gp,z_=Rl,U_=Ze,W_=Ll,G_=Bl,q_=yo;function H_(e,t,r){t=F_(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=q_(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&G_(i)&&W_(o,i)&&(U_(e)||z_(e)))}var K_=H_,V_=B_,X_=K_;function Y_(e,t){return e!=null&&X_(e,t,V_)}var Z_=Y_,J_=Fl,Q_=qp,eP=Z_,tP=bl,rP=Im,nP=Dm,iP=yo,aP=1,oP=2;function sP(e,t){return tP(e)&&rP(t)?nP(iP(e),t):function(r){var n=Q_(r,e);return n===void 0&&n===t?eP(r,e):J_(t,n,aP|oP)}}var cP=sP;function lP(e){return e}var Nn=lP;function uP(e){return function(t){return t==null?void 0:t[e]}}var fP=uP,dP=_l;function hP(e){return function(t){return dP(t,e)}}var pP=hP,mP=fP,vP=pP,yP=bl,gP=yo;function bP(e){return yP(e)?mP(gP(e)):vP(e)}var xP=bP,wP=R_,jP=cP,OP=Nn,SP=Ze,AP=xP;function _P(e){return typeof e=="function"?e:e==null?OP:typeof e=="object"?SP(e)?jP(e[0],e[1]):wP(e):AP(e)}var Tt=_P;function PP(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Rm=PP;function $P(e){return e!==e}var TP=$P;function NP(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var EP=NP,CP=Rm,kP=TP,MP=EP;function IP(e,t,r){return t===t?MP(e,t,r):CP(e,kP,r)}var DP=IP,RP=DP;function LP(e,t){var r=e==null?0:e.length;return!!r&&RP(e,t,0)>-1}var BP=LP;function FP(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var zP=FP;function UP(){}var WP=UP,ms=Cm,GP=WP,qP=Dl,HP=1/0,KP=ms&&1/qP(new ms([,-0]))[1]==HP?function(e){return new ms(e)}:GP,VP=KP,XP=jm,YP=BP,ZP=zP,JP=Sm,QP=VP,e$=Dl,t$=200;function r$(e,t,r){var n=-1,i=YP,a=e.length,o=!0,s=[],c=s;if(r)o=!1,i=ZP;else if(a>=t$){var l=t?null:QP(e);if(l)return e$(l);o=!1,i=JP,c=new XP}else c=t?[]:s;e:for(;++n<a;){var d=e[n],f=t?t(d):d;if(d=r||d!==0?d:0,o&&f===f){for(var h=c.length;h--;)if(c[h]===f)continue e;t&&c.push(f),s.push(d)}else i(c,f,r)||(c!==s&&c.push(f),s.push(d))}return s}var n$=r$,i$=Tt,a$=n$;function o$(e,t){return e&&e.length?a$(e,i$(t)):[]}var s$=o$;const Of=fe(s$);function Lm(e,t,r){return t===!0?Of(e,r):Y(t)?Of(e,t):e}function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}var c$=["ref"];function Sf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sf(Object(r),!0).forEach(function(n){ko(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Af(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,Fm(n.key),n)}}function u$(e,t,r){return t&&Af(e.prototype,t),r&&Af(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f$(e,t,r){return t=ja(t),d$(e,Bm()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function d$(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 h$(e)}function h$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bm=function(){return!!e})()}
vendor: 38,366 bytes, lines 52-60
52function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function p$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uc(e,t)}function uc(e,t){return uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uc(e,t)}function ko(e,t,r){return t=Fm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fm(e){var t=m$(e,"string");return Qr(t)=="symbol"?t:t+""}function m$(e,t){if(Qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v$(e,t){if(e==null)return{};var r=y$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function g$(e){return e.value}function b$(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=v$(t,c$);return P.createElement(Il,r)}var _f=1,qr=function(e){function t(){var r;l$(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=f$(this,t,[].concat(i)),ko(r,"lastBoundingBox",{width:-1,height:-1}),r}return p$(t,e),u$(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)>_f||Math.abs(i.height-this.lastBoundingBox.height)>_f)&&(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?Nt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,c=i.margin,l=i.chartWidth,d=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((l||0)-p.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();h={top:((d||0)-m.height)/2}}else h=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Nt(Nt({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,c=i.wrapperStyle,l=i.payloadUniqBy,d=i.payload,f=Nt(Nt({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return P.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},b$(a,Nt(Nt({},this.props),{},{payload:Lm(d,l,g$)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Nt(Nt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&B(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(C.PureComponent);ko(qr,"displayName","Legend");ko(qr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Pf=Bi,x$=Rl,w$=Ze,$f=Pf?Pf.isConcatSpreadable:void 0;function j$(e){return w$(e)||x$(e)||!!($f&&e&&e[$f])}var O$=j$,S$=_m,A$=O$;function zm(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=A$),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?zm(s,t-1,r,n,i):S$(i,s):n||(i[i.length]=s)}return i}var Um=zm;function _$(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var c=o[e?s:++i];if(r(a[c],c,a)===!1)break}return t}}var P$=_$,$$=P$,T$=$$(),N$=T$,E$=N$,C$=Co;function k$(e,t){return e&&E$(e,t,C$)}var Wm=k$,M$=Ui;function I$(e,t){return function(r,n){if(r==null)return r;if(!M$(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var D$=I$,R$=Wm,L$=D$,B$=L$(R$),zl=B$,F$=zl,z$=Ui;function U$(e,t){var r=-1,n=z$(e)?Array(e.length):[];return F$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var Gm=U$;function W$(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var G$=W$,Tf=On;function q$(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=Tf(e),o=t!==void 0,s=t===null,c=t===t,l=Tf(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||n&&o&&c||!r&&c||!i)return 1;if(!n&&!a&&!l&&e<t||l&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!c)return-1}return 0}var H$=q$,K$=H$;function V$(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var c=K$(i[n],a[n]);if(c){if(n>=s)return c;var l=r[n];return c*(l=="desc"?-1:1)}}return e.index-t.index}var X$=V$,vs=Al,Y$=_l,Z$=Tt,J$=Gm,Q$=G$,eT=Tm,tT=X$,rT=Nn,nT=Ze;function iT(e,t,r){t.length?t=vs(t,function(a){return nT(a)?function(o){return Y$(o,a.length===1?a[0]:a)}:a}):t=[rT];var n=-1;t=vs(t,eT(Z$));var i=J$(e,function(a,o,s){var c=vs(t,function(l){return l(a)});return{criteria:c,index:++n,value:a}});return Q$(i,function(a,o){return tT(a,o,r)})}var aT=iT;function oT(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var sT=oT,cT=sT,Nf=Math.max;function lT(e,t,r){return t=Nf(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Nf(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),cT(e,this,s)}}var uT=lT;function fT(e){return function(){return e}}var dT=fT,hT=Nr,pT=function(){try{var e=hT(Object,"defineProperty");return e({},"",{}),e}catch{}}(),qm=pT,mT=dT,Ef=qm,vT=Nn,yT=Ef?function(e,t){return Ef(e,"toString",{configurable:!0,enumerable:!1,value:mT(t),writable:!0})}:vT,gT=yT,bT=800,xT=16,wT=Date.now;function jT(e){var t=0,r=0;return function(){var n=wT(),i=xT-(n-r);if(r=n,i>0){if(++t>=bT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var OT=jT,ST=gT,AT=OT,_T=AT(ST),PT=_T,$T=Nn,TT=uT,NT=PT;function ET(e,t){return NT(TT(e,t,$T),e+"")}var CT=ET,kT=wl,MT=Ui,IT=Ll,DT=rr;function RT(e,t,r){if(!DT(r))return!1;var n=typeof t;return(n=="number"?MT(r)&&IT(t,r.length):n=="string"&&t in r)?kT(r[t],e):!1}var Mo=RT,LT=Um,BT=aT,FT=CT,Cf=Mo,zT=FT(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Cf(e,t[0],t[1])?t=[]:r>2&&Cf(t[0],t[1],t[2])&&(t=[t[0]]),BT(e,LT(t,1),[])}),UT=zT;const Ul=fe(UT);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 fc(){return fc=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},fc.apply(this,arguments)}function WT(e,t){return KT(e)||HT(e,t)||qT(e,t)||GT()}function GT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 53In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qT(e,t){if(e){if(typeof e=="string")return kf(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 kf(e,t)}}function kf(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 HT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function KT(e){if(Array.isArray(e))return e}function Mf(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 ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mf(Object(r),!0).forEach(function(n){VT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VT(e,t,r){return t=XT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XT(e){var t=YT(e,"string");return ai(t)=="symbol"?t:t+""}function YT(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZT(e){return Array.isArray(e)&&Me(e[0])&&Me(e[1])?e.join(" ~ "):e}var JT=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,c=t.labelStyle,l=c===void 0?{}:c,d=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,v=t.label,y=t.labelFormatter,x=t.accessibilityLayer,g=x===void 0?!1:x,w=function(){if(d&&d.length){var N={padding:0,margin:0},M=(h?Ul(d,h):d).map(function(I,k){if(I.type==="none")return null;var D=ys({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},s),R=I.formatter||f||ZT,F=I.value,z=I.name,q=F,K=z;if(R&&q!=null&&K!=null){var W=R(F,z,I,k,d);if(Array.isArray(W)){var V=WT(W,2);q=V[0],K=V[1]}else q=W}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:D},Me(K)?P.createElement("span",{className:"recharts-tooltip-item-name"},K):null,Me(K)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},q),P.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:N},M)}return null},S=ys({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),b=ys({margin:0},l),j=!re(v),O=j?v:"",_=te("recharts-default-tooltip",p),A=te("recharts-tooltip-label",m);j&&y&&d!==void 0&&d!==null&&(O=y(v,d));var T=g?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",fc({className:_,style:S},T),P.createElement("p",{className:A,style:b},P.isValidElement(O)?O:"".concat(O)),w())};function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function Zi(e,t,r){return t=QT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QT(e){var t=eN(e,"string");return oi(t)=="symbol"?t:t+""}function eN(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rn="recharts-tooltip-wrapper",tN={visibility:"hidden"};function rN(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(Rn,Zi(Zi(Zi(Zi({},"".concat(Rn,"-right"),B(r)&&t&&B(t.x)&&r>=t.x),"".concat(Rn,"-left"),B(r)&&t&&B(t.x)&&r<t.x),"".concat(Rn,"-bottom"),B(n)&&t&&B(t.y)&&n>=t.y),"".concat(Rn,"-top"),B(n)&&t&&B(t.y)&&n<t.y))}function If(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&B(a[n]))return a[n];var d=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?d:f;if(o[n]){var h=d,p=c[n];return h<p?Math.max(f,c[n]):Math.max(d,c[n])}var m=f+s,v=c[n]+l;return m>v?Math.max(d,c[n]):Math.max(f,c[n])}function nN(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 iN(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,d,f;return o.height>0&&o.width>0&&r?(d=If({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=If({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),l=nN({translateX:d,translateY:f,useTranslate3d:s})):l=tN,{cssProperties:l,cssClasses:rN({translateX:d,translateY:f,coordinate:r})}}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 Df(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 Rf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Df(Object(r),!0).forEach(function(n){hc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Df(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oN(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,Km(n.key),n)}}function sN(e,t,r){return t&&oN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cN(e,t,r){return t=Oa(t),lN(e,Hm()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function lN(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 uN(e)}function uN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hm=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function fN(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&&dc(e,t)}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dc(e,t)}function hc(e,t,r){return t=Km(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Km(e){var t=dN(e,"string");return en(t)=="symbol"?t:t+""}function dN(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lf=1,hN=function(e){function t(){var r;aN(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=cN(this,t,[].concat(i)),hc(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),hc(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,c,l,d;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(l=(d=r.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&l!==void 0?l:0}})}}),r}return fN(t,e),sN(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Lf||Math.abs(n.height-this.state.lastBoundingBox.height)>Lf)&&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,c=i.animationEasing,l=i.children,d=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,m=i.position,v=i.reverseDirection,y=i.useTranslate3d,x=i.viewBox,g=i.wrapperStyle,w=iN({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:p,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:x}),S=w.cssClasses,b=w.cssProperties,j=Rf(Rf({transition:h&&a?"transform ".concat(s,"ms ").concat(c):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},g);return P.createElement("div",{tabIndex:-1,className:S,style:j,ref:function(_){n.wrapperNode=_}},l)}}])}(C.PureComponent),pN=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Dt={isSsr:pN(),get:function(t){return Dt[t]},set:function(t,r){if(typeof t=="string")Dt[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){Dt[i]=t[i]})}}};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 Bf(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 Ff(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bf(Object(r),!0).forEach(function(n){Wl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vN(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,Xm(n.key),n)}}function yN(e,t,r){return t&&vN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gN(e,t,r){return t=Sa(t),bN(e,Vm()?Reflect.construct(t,r||[],Sa(e).constructor):t.apply(e,r))}function bN(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 xN(e)}function xN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vm=function(){return!!e})()}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sa(e)}function wN(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&&pc(e,t)}function pc(e,t){return pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pc(e,t)}function Wl(e,t,r){return t=Xm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xm(e){var t=jN(e,"string");return tn(t)=="symbol"?t:t+""}function jN(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ON(e){return e.dataKey}function SN(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(JT,t)}var ze=function(e){function t(){return mN(this,t),gN(this,t,arguments)}return wN(t,e),yN(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,l=i.content,d=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,m=i.payload,v=i.payloadUniqBy,y=i.position,x=i.reverseDirection,g=i.useTranslate3d,w=i.viewBox,S=i.wrapperStyle,b=m??[];f&&b.length&&(b=Lm(m.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),v,ON));var j=b.length>0;return P.createElement(hN,{allowEscapeViewBox:o,animationDuration:s,animationEasing:c,isAnimationActive:h,active:a,coordinate:d,hasPayload:j,offset:p,position:y,reverseDirection:x,useTranslate3d:g,viewBox:w,wrapperStyle:S},SN(l,Ff(Ff({},this.props),{},{payload:b})))}}])}(C.PureComponent);Wl(ze,"displayName","Tooltip");Wl(ze,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Dt.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 AN=$t,_N=function(){return AN.Date.now()},PN=_N,$N=/\s/;function TN(e){for(var t=e.length;t--&&$N.test(e.charAt(t)););return t}var NN=TN,EN=NN,CN=/^\s+/;function kN(e){return e&&e.slice(0,EN(e)+1).replace(CN,"")}var MN=kN,IN=MN,zf=rr,DN=On,Uf=NaN,RN=/^[-+]0x[0-9a-f]+$/i,LN=/^0b[01]+$/i,BN=/^0o[0-7]+$/i,FN=parseInt;function zN(e){if(typeof e=="number")return e;if(DN(e))return Uf;if(zf(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zf(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IN(e);var r=LN.test(e);return r||BN.test(e)?FN(e.slice(2),r?2:8):RN.test(e)?Uf:+e}var Ym=zN,UN=rr,gs=PN,Wf=Ym,WN="Expected a function",GN=Math.max,qN=Math.min;function HN(e,t,r){var n,i,a,o,s,c,l=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(WN);t=Wf(t)||0,UN(r)&&(d=!!r.leading,f="maxWait"in r,a=f?GN(Wf(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function p(j){var O=n,_=i;return n=i=void 0,l=j,o=e.apply(_,O),o}function m(j){return l=j,s=setTimeout(x,t),d?p(j):o}function v(j){var O=j-c,_=j-l,A=t-O;return f?qN(A,a-_):A}function y(j){var O=j-c,_=j-l;return c===void 0||O>=t||O<0||f&&_>=a}function x(){var j=gs();if(y(j))return g(j);s=setTimeout(x,v(j))}function g(j){return s=void 0,h&&n?p(j):(n=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,n=c=i=s=void 0}function S(){return s===void 0?o:g(gs())}function b(){var j=gs(),O=y(j);if(n=arguments,i=this,c=j,O){if(s===void 0)return m(c);if(f)return clearTimeout(s),s=setTimeout(x,t),p(c)}return s===void 0&&(s=setTimeout(x,t)),o}return b.cancel=w,b.flush=S,b}var KN=HN,VN=KN,XN=rr,YN="Expected a function";function ZN(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(YN);return XN(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),VN(e,t,{leading:n,maxWait:t,trailing:i})}var JN=ZN;const Zm=fe(JN);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 Gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ji(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gf(Object(r),!0).forEach(function(n){QN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QN(e,t,r){return t=eE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eE(e){var t=tE(e,"string");return si(t)=="symbol"?t:t+""}function tE(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rE(e,t){return oE(e)||aE(e,t)||iE(e,t)||nE()}function nE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 54In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iE(e,t){if(e){if(typeof e=="string")return qf(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 qf(e,t)}}function qf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function oE(e){if(Array.isArray(e))return e}var lr=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,c=s===void 0?"100%":s,l=e.minWidth,d=l===void 0?0:l,f=e.minHeight,h=e.maxHeight,p=e.children,m=e.debounce,v=m===void 0?0:m,y=e.id,x=e.className,g=e.onResize,w=e.style,S=w===void 0?{}:w,b=C.useRef(null),j=C.useRef();j.current=g,C.useImperativeHandle(t,function(){return Object.defineProperty(b.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),b.current},configurable:!0})});var O=C.useState({containerWidth:i.width,containerHeight:i.height}),_=rE(O,2),A=_[0],T=_[1],$=C.useCallback(function(M,I){T(function(k){var D=Math.round(M),R=Math.round(I);return k.containerWidth===D&&k.containerHeight===R?k:{containerWidth:D,containerHeight:R}})},[]);C.useEffect(function(){var M=function(z){var q,K=z[0].contentRect,W=K.width,V=K.height;$(W,V),(q=j.current)===null||q===void 0||q.call(j,W,V)};v>0&&(M=Zm(M,v,{trailing:!0,leading:!1}));var I=new ResizeObserver(M),k=b.current.getBoundingClientRect(),D=k.width,R=k.height;return $(D,R),I.observe(b.current),function(){I.disconnect()}},[$,v]);var N=C.useMemo(function(){var M=A.containerWidth,I=A.containerHeight;if(M<0||I<0)return null;xt(yr(o)||yr(c),`The width(%s) and height(%s) are both fixed numbers, 55 maybe you don't need to use a ResponsiveContainer.`,o,c),xt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var k=yr(o)?M:o,D=yr(c)?I:c;r&&r>0&&(k?D=k/r:D&&(k=D*r),h&&D>h&&(D=h)),xt(k>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, 56 please check the style of container, or the props width(%s) and height(%s), 57 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 58 height and width.`,k,D,o,c,d,f,r);var R=!Array.isArray(p)&&It(p.type).endsWith("Chart");return P.Children.map(p,function(F){return P.isValidElement(F)?C.cloneElement(F,Ji({width:k,height:D},R?{style:Ji({height:"100%",width:"100%",maxHeight:D,maxWidth:k},F.props.style)}:{})):F})},[r,p,c,h,f,d,A,o]);return P.createElement("div",{id:y?"".concat(y):void 0,className:te("recharts-responsive-container",x),style:Ji(Ji({},S),{},{width:o,height:c,minWidth:d,minHeight:f,maxHeight:h}),ref:b},N)}),ci=function(t){return null};ci.displayName="Cell";function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function Hf(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 mc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hf(Object(r),!0).forEach(function(n){sE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sE(e,t,r){return t=cE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cE(e){var t=lE(e,"string");return li(t)=="symbol"?t:t+""}function lE(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mr={widthCache:{},cacheCount:0},uE=2e3,fE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Kf="recharts_measurement_span";function dE(e){var t=mc({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Vn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Dt.isSsr)return{width:0,height:0};var n=dE(r),i=JSON.stringify({text:t,copyStyle:n});if(Mr.widthCache[i])return Mr.widthCache[i];try{var a=document.getElementById(Kf);a||(a=document.createElement("span"),a.setAttribute("id",Kf),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=mc(mc({},fE),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),c={width:s.width,height:s.height};return Mr.widthCache[i]=c,++Mr.cacheCount>uE&&(Mr.cacheCount=0,Mr.widthCache={}),c}catch{return{width:0,height:0}}},hE=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function Aa(e,t){return yE(e)||vE(e,t)||mE(e,t)||pE()}function pE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 59In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mE(e,t){if(e){if(typeof e=="string")return Vf(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 Vf(e,t)}}function Vf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function yE(e){if(Array.isArray(e))return e}function gE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xf(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,xE(n.key),n)}}function bE(e,t,r){return t&&Xf(e.prototype,t),r&&Xf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xE(e){var t=wE(e,"string");return ui(t)=="symbol"?t:t+""}function wE(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,jE=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,OE=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Jm={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},SE=Object.keys(Jm),Lr="NaN";function AE(e,t){return e*Jm[t]}var Qi=function(){function e(t,r){gE(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!jE.test(r)&&(this.num=NaN,this.unit=""),SE.includes(r)&&(this.num=AE(t,r),this.unit="px")}return bE(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=OE.exec(r))!==null&&n!==void 0?n:[],a=Aa(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function Qm(e){if(e.includes(Lr))return Lr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Yf.exec(t))!==null&&r!==void 0?r:[],i=Aa(n,4),a=i[1],o=i[2],s=i[3],c=Qi.parse(a??""),l=Qi.parse(s??""),d=o==="*"?c.multiply(l):c.divide(l);if(d.isNaN())return Lr;t=t.replace(Yf,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=Zf.exec(t))!==null&&f!==void 0?f:[],p=Aa(h,4),m=p[1],v=p[2],y=p[3],x=Qi.parse(m??""),g=Qi.parse(y??""),w=v==="+"?x.add(g):x.subtract(g);if(w.isNaN())return Lr;t=t.replace(Zf,w.toString())}return t}var Jf=/\(([^()]*)\)/;function _E(e){for(var t=e;t.includes("(");){var r=Jf.exec(t),n=Aa(r,2),i=n[1];t=t.replace(Jf,Qm(i))}return t}function PE(e){var t=e.replace(/\s+/g,"");return t=_E(t),t=Qm(t),t}function $E(e){try{return PE(e)}catch{return Lr}}function bs(e){var t=$E(e.slice(5,-1));return t===Lr?"":t}var TE=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],NE=["dx","dy","angle","className","breakAll"];function vc(){return vc=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},vc.apply(this,arguments)}function Qf(e,t){if(e==null)return{};var r=EE(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 EE(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 ed(e,t){return IE(e)||ME(e,t)||kE(e,t)||CE()}function CE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kE(e,t){if(e){if(typeof e=="string")return td(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 td(e,t)}}function td(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 ME(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function IE(e){if(Array.isArray(e))return e}var ev=/[ \f\n\r\t\v\u2028\u2029]+/,tv=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(ev));var o=a.map(function(c){return{word:c,width:Vn(c,i).width}}
60),s=n?0:Vn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},DE=function(t,r,n,i,a){var o=t.maxLines,s=t.children,c=t.style,l=t.breakAll,d=B(o),f=s,h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(D,R){var F=R.word,z=R.width,q=D[D.length-1];if(q&&(i==null||a||q.width+z+n<Number(i)))q.words.push(F),q.width+=z+n;else{var K={words:[F],width:z};D.push(K)}return D},[])},p=h(r),m=function(k){return k.reduce(function(D,R){return D.width>R.width?D:R})};if(!d)return p;for(var v="â¦",y=function(k){var D=f.slice(0,k),R=tv({breakAll:l,style:c,children:D+v}).wordsWithComputedWidth,F=h(R),z=F.length>o||m(F).width>Number(i);return[z,F]},x=0,g=f.length-1,w=0,S;x<=g&&w<=f.length-1;){var b=Math.floor((x+g)/2),j=b-1,O=y(j),_=ed(O,2),A=_[0],T=_[1],$=y(b),N=ed($,1),M=N[0];if(!A&&!M&&(x=b+1),A&&M&&(g=b-1),!A&&M){S=T;break}w++}return S||p},rd=function(t){var r=re(t)?[]:t.toString().split(ev);return[{words:r}]},RE=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Dt.isSsr){var c,l,d=tv({breakAll:o,children:i,style:a});if(d){var f=d.wordsWithComputedWidth,h=d.spaceWidth;c=f,l=h}else return rd(i);return DE({breakAll:o,children:i,maxLines:s,style:a},c,l,r,n)}return rd(i)},nd="#808080",_r=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,c=t.capHeight,l=c===void 0?"0.71em":c,d=t.scaleToFit,f=d===void 0?!1:d,h=t.textAnchor,p=h===void 0?"start":h,m=t.verticalAnchor,v=m===void 0?"end":m,y=t.fill,x=y===void 0?nd:y,g=Qf(t,TE),w=C.useMemo(function(){return RE({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),S=g.dx,b=g.dy,j=g.angle,O=g.className,_=g.breakAll,A=Qf(g,NE);if(!Me(n)||!Me(a))return null;var T=n+(B(S)?S:0),$=a+(B(b)?b:0),N;switch(v){case"start":N=bs("calc(".concat(l,")"));break;case"middle":N=bs("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:N=bs("calc(".concat(w.length-1," * -").concat(s,")"));break}var M=[];if(f){var I=w[0].width,k=g.width;M.push("scale(".concat((B(k)?k/I:1)/I,")"))}return j&&M.push("rotate(".concat(j,", ").concat(T,", ").concat($,")")),M.length&&(A.transform=M.join(" ")),P.createElement("text",vc({},X(A,!0),{x:T,y:$,className:te("recharts-text",O),textAnchor:p,fill:x.includes("url")?nd:x}),w.map(function(D,R){var F=D.words.join(_?"":" ");return P.createElement("tspan",{x:T,dy:R===0?N:s,key:"".concat(F,"-").concat(R)},F)}))};function Qt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Gl(e){let t,r,n;e.length!==2?(t=Qt,r=(s,c)=>Qt(e(s),c),n=(s,c)=>e(s)-c):(t=e===Qt||e===LE?e:BE,r=e,n=e);function i(s,c,l=0,d=s.length){if(l<d){if(t(c,c)!==0)return d;do{const f=l+d>>>1;r(s[f],c)<0?l=f+1:d=f}while(l<d)}return l}function a(s,c,l=0,d=s.length){if(l<d){if(t(c,c)!==0)return d;do{const f=l+d>>>1;r(s[f],c)<=0?l=f+1:d=f}while(l<d)}return l}function o(s,c,l=0,d=s.length){const f=i(s,c,l,d-1);return f>l&&n(s[f-1],c)>-n(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function BE(){return 0}function rv(e){return e===null?NaN:+e}function*FE(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const zE=Gl(Qt),Wi=zE.right;Gl(rv).center;class id extends Map{constructor(t,r=GE){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(ad(this,t))}has(t){return super.has(ad(this,t))}set(t,r){return super.set(UE(this,t),r)}delete(t){return super.delete(WE(this,t))}}function ad({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function UE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function WE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function GE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function qE(e=Qt){if(e===Qt)return nv;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 nv(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const HE=Math.sqrt(50),KE=Math.sqrt(10),VE=Math.sqrt(2);function _a(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>=HE?10:a>=KE?5:a>=VE?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=r&&r<2?_a(e,t,r*2):[s,c,l]}function yc(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?_a(t,e,r):_a(e,t,r);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(n)if(o<0)for(let l=0;l<s;++l)c[l]=(a-l)/-o;else for(let l=0;l<s;++l)c[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)c[l]=(i+l)/-o;else for(let l=0;l<s;++l)c[l]=(i+l)*o;return c}function gc(e,t,r){return t=+t,e=+e,r=+r,_a(e,t,r)[2]}function bc(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?gc(t,e,r):gc(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function od(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function sd(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}
60function iv(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?nv:qE(i);n>r;){if(n-r>600){const c=n-r+1,l=t-r+1,d=Math.log(c),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(c-f)/c)*(l-c/2<0?-1:1),p=Math.max(r,Math.floor(t-l*f/c+h)),m=Math.min(n,Math.floor(t+(c-l)*f/c+h));iv(e,t,p,m,i)}const a=e[t];let o=r,s=n;for(Ln(e,r,t),i(e[n],a)>0&&Ln(e,r,n);o<s;){for(Ln(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Ln(e,r,s):(++s,Ln(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Ln(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function XE(e,t,r){if(e=Float64Array.from(FE(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return sd(e);if(t>=1)return od(e);var n,i=(n-1)*t,a=Math.floor(i),o=od(iv(e,a).subarray(0,a+1)),s=sd(e.subarray(a+1));return o+(s-o)*(i-a)}}function YE(e,t,r=rv){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 ZE(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 ht(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function qt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const xc=Symbol("implicit");function ql(){var e=new id,t=[],r=[],n=xc;function i(a){let o=e.get(a);if(o===void 0){if(n!==xc)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 id;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 ql(t,r).unknown(n)},ht.apply(i,arguments),i}function fi(){var e=ql().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,c=0,l=0,d=.5;delete e.unknown;function f(){var h=t().length,p=i<n,m=p?i:n,v=p?n:i;a=(v-m)/Math.max(1,h-c+l*2),s&&(a=Math.floor(a)),m+=(v-m-a*(h-c))*d,o=a*(1-c),s&&(m=Math.round(m),o=Math.round(o));var y=ZE(h).map(function(x){return m+a*x});return r(p?y.reverse():y)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(c=Math.min(1,l=+h),f()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),f()):c},e.paddingOuter=function(h){return arguments.length?(l=+h,f()):l},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),f()):d},e.copy=function(){return fi(t(),[n,i]).round(s).paddingInner(c).paddingOuter(l).align(d)},ht.apply(f(),arguments)}function av(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return av(t())},e}function Xn(){return av(fi.apply(null,arguments).paddingInner(1))}function Hl(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ov(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Gi(){}var di=.7,Pa=1/di,Hr="\\s*([+-]?\\d+)\\s*",hi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",St="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",JE=/^#([0-9a-f]{3,8})$/,QE=new RegExp(`^rgb\\(${Hr},${Hr},${Hr}\\)$`),eC=new RegExp(`^rgb\\(${St},${St},${St}\\)$`),tC=new RegExp(`^rgba\\(${Hr},${Hr},${Hr},${hi}\\)$`),rC=new RegExp(`^rgba\\(${St},${St},${St},${hi}\\)$`),nC=new RegExp(`^hsl\\(${hi},${St},${St}\\)$`),iC=new RegExp(`^hsla\\(${hi},${St},${St},${hi}\\)$`),cd={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};Hl(Gi,pi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ld,formatHex:ld,formatHex8:aC,formatHsl:oC,formatRgb:ud,toString:ud});function ld(){return this.rgb().formatHex()}function aC(){return this.rgb().formatHex8()}function oC(){return sv(this).formatHsl()}function ud(){return this.rgb().formatRgb()}function pi(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=JE.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?fd(t):r===3?new Ye(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ea(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ea(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=QE.exec(e))?new Ye(t[1],t[2],t[3],1):(t=eC.exec(e))?new Ye(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tC.exec(e))?ea(t[1],t[2],t[3],t[4]):(t=rC.exec(e))?ea(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nC.exec(e))?pd(t[1],t[2]/100,t[3]/100,1):(t=iC.exec(e))?pd(t[1],t[2]/100,t[3]/100,t[4]):cd.hasOwnProperty(e)?fd(cd[e]):e==="transparent"?new Ye(NaN,NaN,NaN,0):null}function fd(e){return new Ye(e>>16&255,e>>8&255,e&255,1)}function ea(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ye(e,t,r,n)}
vendor: 4,685 bytes, line 60
60function sC(e){return e instanceof Gi||(e=pi(e)),e?(e=e.rgb(),new Ye(e.r,e.g,e.b,e.opacity)):new Ye}function wc(e,t,r,n){return arguments.length===1?sC(e):new Ye(e,t,r,n??1)}function Ye(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Hl(Ye,wc,ov(Gi,{brighter(e){return e=e==null?Pa:Math.pow(Pa,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?di:Math.pow(di,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ye(wr(this.r),wr(this.g),wr(this.b),$a(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:dd,formatHex:dd,formatHex8:cC,formatRgb:hd,toString:hd}));function dd(){return`#${gr(this.r)}${gr(this.g)}${gr(this.b)}`}function cC(){return`#${gr(this.r)}${gr(this.g)}${gr(this.b)}${gr((isNaN(this.opacity)?1:this.opacity)*255)}`}function hd(){const e=$a(this.opacity);return`${e===1?"rgb(":"rgba("}${wr(this.r)}, ${wr(this.g)}, ${wr(this.b)}${e===1?")":`, ${e})`}`}function $a(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gr(e){return e=wr(e),(e<16?"0":"")+e.toString(16)}function pd(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yt(e,t,r,n)}function sv(e){if(e instanceof yt)return new yt(e.h,e.s,e.l,e.opacity);if(e instanceof Gi||(e=pi(e)),!e)return new yt;if(e instanceof yt)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,c=(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/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new yt(o,s,c,e.opacity)}function lC(e,t,r,n){return arguments.length===1?sv(e):new yt(e,t,r,n??1)}function yt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Hl(yt,lC,ov(Gi,{brighter(e){return e=e==null?Pa:Math.pow(Pa,e),new yt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?di:Math.pow(di,e),new yt(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 Ye(xs(e>=240?e-240:e+120,i,n),xs(e,i,n),xs(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new yt(md(this.h),ta(this.s),ta(this.l),$a(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=$a(this.opacity);return`${e===1?"hsl(":"hsla("}${md(this.h)}, ${ta(this.s)*100}%, ${ta(this.l)*100}%${e===1?")":`, ${e})`}`}}));function md(e){return e=(e||0)%360,e<0?e+360:e}function ta(e){return Math.max(0,Math.min(1,e||0))}function xs(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 Kl=e=>()=>e;function uC(e,t){return function(r){return e+r*t}}function fC(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function dC(e){return(e=+e)==1?cv:function(t,r){return r-t?fC(t,r,e):Kl(isNaN(t)?r:t)}}function cv(e,t){var r=t-e;return r?uC(e,r):Kl(isNaN(e)?t:e)}const vd=function e(t){var r=dC(t);function n(i,a){var o=r((i=wc(i)).r,(a=wc(a)).r),s=r(i.g,a.g),c=r(i.b,a.b),l=cv(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=s(d),i.b=c(d),i.opacity=l(d),i+""}}return n.gamma=e,n}(1);function hC(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 pC(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mC(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]=En(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 vC(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ta(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function yC(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]=En(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var jc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ws=new RegExp(jc.source,"g");function gC(e){return function(){return e}}function bC(e){return function(t){return e(t)+""}}function xC(e,t){var r=jc.lastIndex=ws.lastIndex=0,n,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(n=jc.exec(e))&&(i=ws.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,c.push({i:o,x:Ta(n,i)})),r=ws.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?bC(c[0].x):gC(t):(t=c.length,function(l){for(var d=0,f;d<t;
vendor: 4,465 bytes, line 60
60++d)s[(f=c[d]).i]=f.x(l);return s.join("")})}function En(e,t){var r=typeof t,n;return t==null||r==="boolean"?Kl(t):(r==="number"?Ta:r==="string"?(n=pi(t))?(t=n,vd):xC:t instanceof pi?vd:t instanceof Date?vC:pC(t)?hC:Array.isArray(t)?mC:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?yC:Ta)(e,t)}function Vl(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function wC(e,t){t===void 0&&(t=e,e=En);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 jC(e){return function(){return e}}function Na(e){return+e}var yd=[0,1];function Ke(e){return e}function Oc(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:jC(isNaN(t)?NaN:.5)}function OC(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function SC(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Oc(i,n),a=r(o,a)):(n=Oc(n,i),a=r(a,o)),function(s){return a(n(s))}}function AC(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]=Oc(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var c=Wi(e,s,1,n)-1;return a[c](i[c](s))}}function qi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Io(){var e=yd,t=yd,r=En,n,i,a,o=Ke,s,c,l;function d(){var h=Math.min(e.length,t.length);return o!==Ke&&(o=OC(e[0],e[h-1])),s=h>2?AC:SC,c=l=null,f}function f(h){return h==null||isNaN(h=+h)?a:(c||(c=s(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((l||(l=s(t,e.map(n),Ta)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Na),d()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=Vl,d()},f.clamp=function(h){return arguments.length?(o=h?!0:Ke,d()):o!==Ke},f.interpolate=function(h){return arguments.length?(r=h,d()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,d()}}function Xl(){return Io()(Ke,Ke)}function _C(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ea(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 rn(e){return e=Ea(Math.abs(e)),e?e[1]:NaN}function PC(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>n&&(s=Math.max(1,n-c)),a.push(r.substring(i-=s,i+s)),!((c+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function $C(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var TC=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mi(e){if(!(t=TC.exec(e)))throw new Error("invalid format: "+e);var t;return new Yl({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]})}mi.prototype=Yl.prototype;function Yl(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+""}Yl.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 NC(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 lv;function EC(e,t){var r=Ea(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(lv=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")+Ea(e,Math.max(0,t+a-1))[0]}function gd(e,t){var r=Ea(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 bd={"%":(e,t)=>
vendor: 4,845 bytes, line 60
60(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:_C,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)=>gd(e*100,t),r:gd,s:EC,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function xd(e){return e}var wd=Array.prototype.map,jd=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function CC(e){var t=e.grouping===void 0||e.thousands===void 0?xd:PC(wd.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?xd:$C(wd.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(f){f=mi(f);var h=f.fill,p=f.align,m=f.sign,v=f.symbol,y=f.zero,x=f.width,g=f.comma,w=f.precision,S=f.trim,b=f.type;b==="n"?(g=!0,b="g"):bd[b]||(w===void 0&&(w=12),S=!0,b="g"),(y||h==="0"&&p==="=")&&(y=!0,h="0",p="=");var j=v==="$"?r:v==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",O=v==="$"?n:/[%p]/.test(b)?o:"",_=bd[b],A=/[defgprs%]/.test(b);w=w===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function T($){var N=j,M=O,I,k,D;if(b==="c")M=_($)+M,$="";else{$=+$;var R=$<0||1/$<0;if($=isNaN($)?c:_(Math.abs($),w),S&&($=NC($)),R&&+$==0&&m!=="+"&&(R=!1),N=(R?m==="("?m:s:m==="-"||m==="("?"":m)+N,M=(b==="s"?jd[8+lv/3]:"")+M+(R&&m==="("?")":""),A){for(I=-1,k=$.length;++I<k;)if(D=$.charCodeAt(I),48>D||D>57){M=(D===46?i+$.slice(I+1):$.slice(I))+M,$=$.slice(0,I);break}}}g&&!y&&($=t($,1/0));var F=N.length+$.length+M.length,z=F<x?new Array(x-F+1).join(h):"";switch(g&&y&&($=t(z+$,z.length?x-M.length:1/0),z=""),p){case"<":$=N+$+M+z;break;case"=":$=N+z+$+M;break;case"^":$=z.slice(0,F=z.length>>1)+N+$+M+z.slice(F);break;default:$=z+N+$+M;break}return a($)}return T.toString=function(){return f+""},T}function d(f,h){var p=l((f=mi(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(rn(h)/3)))*3,v=Math.pow(10,-m),y=jd[8+m/3];return function(x){return p(v*x)+y}}return{format:l,formatPrefix:d}}var ra,Zl,uv;kC({thousands:",",grouping:[3],currency:["$",""]});function kC(e){return ra=CC(e),Zl=ra.format,uv=ra.formatPrefix,ra}function MC(e){return Math.max(0,-rn(Math.abs(e)))}function IC(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(rn(t)/3)))*3-rn(Math.abs(e)))}function DC(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rn(t)-rn(e))+1}function fv(e,t,r,n){var i=bc(e,t,r),a;switch(n=mi(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=IC(i,o))&&(n.precision=a),uv(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=DC(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=MC(i))&&(n.precision=a-(n.type==="%")*2);break}}return Zl(n)}function nr(e){var t=e.domain;return e.ticks=function(r){var n=t();return yc(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return fv(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],c,l,d=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);d-- >0;){if(l=gc(o,s,r),l===c)return n[i]=o,n[a]=s,t(n);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function Ca(){var e=Xl();return e.copy=function(){return qi(e,Ca())},ht.apply(e,arguments),nr(e)}function dv(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Na),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return dv(e).unknown(t)},e=arguments.length?Array.from(e,Na):[0,1],nr(r)}function hv(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 Od(e){return Math.log(e)}function Sd(e){return Math.exp(e)}function RC(e){return-Math.log(-e)}function LC(e){return-Math.exp(-e)}function BC(e){return isFinite(e)?+("1e"+e):e<0?0:e}function FC(e){return e===10?BC:e===Math.E?Math.exp:t=>Math.pow(e,t)}function zC(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 Ad(e){return(t,r)=>-e(-t,r)}function Jl(e){const t=e(Od,Sd),r=t.domain;let n=10,i,a;function o(){return i=zC(n),a=FC(n),r()[0]<0?(i=Ad(i),a=Ad(a),e(RC,LC)):e(Od,Sd),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 c=r();let l=c[0],d=c[c.length-1];const f=d<l;f&&([l,d]=[d,l]);let h=i(l),p=i(d),m,v;const y=s==null?10:+s;let x=[];if(!(n%1)&&p-h<y){if(h=Math.floor(h),p=Math.ceil(p),l>0){for(;h<=p;
vendor: 4,451 bytes, line 60
60++h)for(m=1;m<n;++m)if(v=h<0?m/a(-h):m*a(h),!(v<l)){if(v>d)break;x.push(v)}}else for(;h<=p;++h)for(m=n-1;m>=1;--m)if(v=h>0?m/a(-h):m*a(h),!(v<l)){if(v>d)break;x.push(v)}x.length*2<y&&(x=yc(l,d,y))}else x=yc(h,p,Math.min(p-h,y)).map(a);return f?x.reverse():x},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=mi(c)).precision==null&&(c.trim=!0),c=Zl(c)),s===1/0)return c;const l=Math.max(1,n*s/t.ticks().length);return d=>{let f=d/a(Math.round(i(d)));return f*n<n-.5&&(f*=n),f<=l?c(d):""}},t.nice=()=>r(hv(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function pv(){const e=Jl(Io()).domain([1,10]);return e.copy=()=>qi(e,pv()).base(e.base()),ht.apply(e,arguments),e}function _d(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Pd(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ql(e){var t=1,r=e(_d(t),Pd(t));return r.constant=function(n){return arguments.length?e(_d(t=+n),Pd(t)):t},nr(r)}function mv(){var e=Ql(Io());return e.copy=function(){return qi(e,mv()).constant(e.constant())},ht.apply(e,arguments)}function $d(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function UC(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function WC(e){return e<0?-e*e:e*e}function eu(e){var t=e(Ke,Ke),r=1;function n(){return r===1?e(Ke,Ke):r===.5?e(UC,WC):e($d(r),$d(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},nr(t)}function tu(){var e=eu(Io());return e.copy=function(){return qi(e,tu()).exponent(e.exponent())},ht.apply(e,arguments),e}function GC(){return tu.apply(null,arguments).exponent(.5)}function Td(e){return Math.sign(e)*e*e}function qC(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function vv(){var e=Xl(),t=[0,1],r=!1,n;function i(a){var o=qC(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Td(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Na)).map(Td)),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 vv(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},ht.apply(i,arguments),nr(i)}function yv(){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]=YE(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Wi(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(Qt),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 yv().domain(e).range(t).unknown(n)},ht.apply(a,arguments)}function gv(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Wi(n,c,0,r)]:a}function s(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,s()):i.slice()},o.invertExtent=function(c){var l=i.indexOf(c);return l<0?[NaN,NaN]:l<1?[e,n[0]]:l>=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return gv().domain([e,t]).range(i).unknown(a)},ht.apply(nr(o),arguments)}function bv(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Wi(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 bv().domain(e).range(t).unknown(r)},ht.apply(i,arguments)}const js=new Date,Os=new Date;function Ie(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>
vendor: 5,719 bytes, line 60
60(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const c=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;let l;do c.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return c},i.filter=a=>Ie(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(js.setTime(+a),Os.setTime(+o),e(js),e(Os),Math.floor(r(js,Os))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ka=Ie(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ka.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ie(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ka);ka.range;const Ct=1e3,lt=Ct*60,kt=lt*60,Bt=kt*24,ru=Bt*7,Nd=Bt*30,Ss=Bt*365,br=Ie(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ct)},(e,t)=>(t-e)/Ct,e=>e.getUTCSeconds());br.range;const nu=Ie(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getMinutes());nu.range;const iu=Ie(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCMinutes());iu.range;const au=Ie(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*lt)},(e,t)=>{e.setTime(+e+t*kt)},(e,t)=>(t-e)/kt,e=>e.getHours());au.range;const ou=Ie(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*kt)},(e,t)=>(t-e)/kt,e=>e.getUTCHours());ou.range;const Hi=Ie(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lt)/Bt,e=>e.getDate()-1);Hi.range;const Do=Ie(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bt,e=>e.getUTCDate()-1);Do.range;const xv=Ie(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bt,e=>Math.floor(e/Bt));xv.range;function Er(e){return Ie(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())*lt)/ru)}const Ro=Er(0),Ma=Er(1),HC=Er(2),KC=Er(3),nn=Er(4),VC=Er(5),XC=Er(6);Ro.range;Ma.range;HC.range;KC.range;nn.range;VC.range;XC.range;function Cr(e){return Ie(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)/ru)}const Lo=Cr(0),Ia=Cr(1),YC=Cr(2),ZC=Cr(3),an=Cr(4),JC=Cr(5),QC=Cr(6);Lo.range;Ia.range;YC.range;ZC.range;an.range;JC.range;QC.range;const su=Ie(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());su.range;const cu=Ie(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());cu.range;const Ft=Ie(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());Ft.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ie(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)});Ft.range;const zt=Ie(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());zt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ie(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)});zt.range;function wv(e,t,r,n,i,a){const o=[[br,1,Ct],[br,5,5*Ct],[br,15,15*Ct],[br,30,30*Ct],[a,1,lt],[a,5,5*lt],[a,15,15*lt],[a,30,30*lt],[i,1,kt],[i,3,3*kt],[i,6,6*kt],[i,12,12*kt],[n,1,Bt],[n,2,2*Bt],[r,1,ru],[t,1,Nd],[t,3,3*Nd],[e,1,Ss]];function s(l,d,f){const h=d<l;h&&([l,d]=[d,l]);const p=f&&typeof f.range=="function"?f:c(l,d,f),m=p?p.range(l,+d+1):[];return h?m.reverse():m}function c(l,d,f){const h=Math.abs(d-l)/f,p=Gl(([,,y])=>y).right(o,h);if(p===o.length)return e.every(bc(l/Ss,d/Ss,f));if(p===0)return ka.every(Math.max(bc(l,d,f),1));const[m,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return m.every(v)}return[s,c]}const[ek,tk]=wv(zt,cu,Lo,xv,ou,iu),[rk,nk]=wv(Ft,su,Ro,Hi,au,nu);function As(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 _s(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 Bn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function ik(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Fn(i),d=zn(i),f=Fn(a),h=zn(a),p=Fn(o),m=zn(o),v=Fn(s),y=zn(s),x=Fn(c),g=zn(c),w={a:R,A:F,b:z,B:q,c:null,d:Dd,e:Dd,f:Pk,g:Rk,G:Bk,H:Sk,I:Ak,j:_k,L:jv,m:$k,M:Tk,p:K,q:W,Q:Bd,s:Fd,S:Nk,u:Ek,U:Ck,V:kk,w:Mk,W:Ik,x:null,X:null,y:Dk,Y:Lk,Z:Fk,"%":Ld},S={a:V,A:ye,b:Ae,B:Je,c:null,d:Rd,e:Rd,f:Gk,g:eM,G:rM,H:zk,I:Uk,j:Wk,L:Sv,m:qk,M:Hk,p:or,q:Ve,Q:Bd,s:Fd,S:Kk,u:Vk,U:Xk,V:Yk,w:Zk,W:Jk,x:null,X:null,y:Qk,Y:tM,Z:nM,"%":Ld},b={a:T,A:$,b:N,B:M,c:I,d:Md,e:Md,f:xk,g:kd,G:Cd,H:Id,I:Id,j:vk,L:bk,m:mk,M:yk,p:A,q:pk,Q:jk,s:Ok,S:gk,u:lk,U:uk,V:fk,w:ck,W:dk,x:k,X:D,y:kd,Y:Cd,Z:hk,"%":wk};w.x=j(r,w),w.X=j(n,w),w.c=j(t,w),S.x=j(r,S),S.X=j(n,S),S.c=j(t,S);function j(U,Z){return function(Q){var L=[],we=-1,ae=0,$e=U.length,Te,Xe,Ht;for(Q instanceof Date||(Q=new Date(+Q));++we<$e;
vendor: 5,133 bytes, line 60
60)U.charCodeAt(we)===37&&(L.push(U.slice(ae,we)),(Xe=Ed[Te=U.charAt(++we)])!=null?Te=U.charAt(++we):Xe=Te==="e"?" ":"0",(Ht=Z[Te])&&(Te=Ht(Q,Xe)),L.push(Te),ae=we+1);return L.push(U.slice(ae,we)),L.join("")}}function O(U,Z){return function(Q){var L=Bn(1900,void 0,1),we=_(L,U,Q+="",0),ae,$e;if(we!=Q.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));if(Z&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(ae=_s(Bn(L.y,0,1)),$e=ae.getUTCDay(),ae=$e>4||$e===0?Ia.ceil(ae):Ia(ae),ae=Do.offset(ae,(L.V-1)*7),L.y=ae.getUTCFullYear(),L.m=ae.getUTCMonth(),L.d=ae.getUTCDate()+(L.w+6)%7):(ae=As(Bn(L.y,0,1)),$e=ae.getDay(),ae=$e>4||$e===0?Ma.ceil(ae):Ma(ae),ae=Hi.offset(ae,(L.V-1)*7),L.y=ae.getFullYear(),L.m=ae.getMonth(),L.d=ae.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),$e="Z"in L?_s(Bn(L.y,0,1)).getUTCDay():As(Bn(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-($e+5)%7:L.w+L.U*7-($e+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,_s(L)):As(L)}}function _(U,Z,Q,L){for(var we=0,ae=Z.length,$e=Q.length,Te,Xe;we<ae;){if(L>=$e)return-1;if(Te=Z.charCodeAt(we++),Te===37){if(Te=Z.charAt(we++),Xe=b[Te in Ed?Z.charAt(we++):Te],!Xe||(L=Xe(U,Q,L))<0)return-1}else if(Te!=Q.charCodeAt(L++))return-1}return L}function A(U,Z,Q){var L=l.exec(Z.slice(Q));return L?(U.p=d.get(L[0].toLowerCase()),Q+L[0].length):-1}function T(U,Z,Q){var L=p.exec(Z.slice(Q));return L?(U.w=m.get(L[0].toLowerCase()),Q+L[0].length):-1}function $(U,Z,Q){var L=f.exec(Z.slice(Q));return L?(U.w=h.get(L[0].toLowerCase()),Q+L[0].length):-1}function N(U,Z,Q){var L=x.exec(Z.slice(Q));return L?(U.m=g.get(L[0].toLowerCase()),Q+L[0].length):-1}function M(U,Z,Q){var L=v.exec(Z.slice(Q));return L?(U.m=y.get(L[0].toLowerCase()),Q+L[0].length):-1}function I(U,Z,Q){return _(U,t,Z,Q)}function k(U,Z,Q){return _(U,r,Z,Q)}function D(U,Z,Q){return _(U,n,Z,Q)}function R(U){return o[U.getDay()]}function F(U){return a[U.getDay()]}function z(U){return c[U.getMonth()]}function q(U){return s[U.getMonth()]}function K(U){return i[+(U.getHours()>=12)]}function W(U){return 1+~~(U.getMonth()/3)}function V(U){return o[U.getUTCDay()]}function ye(U){return a[U.getUTCDay()]}function Ae(U){return c[U.getUTCMonth()]}function Je(U){return s[U.getUTCMonth()]}function or(U){return i[+(U.getUTCHours()>=12)]}function Ve(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var Z=j(U+="",w);return Z.toString=function(){return U},Z},parse:function(U){var Z=O(U+="",!1);return Z.toString=function(){return U},Z},utcFormat:function(U){var Z=j(U+="",S);return Z.toString=function(){return U},Z},utcParse:function(U){var Z=O(U+="",!0);return Z.toString=function(){return U},Z}}}var Ed={"-":"",_:" ",0:"0"},Le=/^\s*\d+/,ak=/^%/,ok=/[\\^$*+?|[\]().{}]/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 sk(e){return e.replace(ok,"\\$&")}function Fn(e){return new RegExp("^(?:"+e.map(sk).join("|")+")","i")}function zn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function ck(e,t,r){var n=Le.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function lk(e,t,r){var n=Le.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function uk(e,t,r){var n=Le.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function fk(e,t,r){var n=Le.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function dk(e,t,r){var n=Le.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Cd(e,t,r){var n=Le.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function kd(e,t,r){var n=Le.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function hk(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 pk(e,t,r){var n=Le.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function mk(e,t,r){var n=Le.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Md(e,t,r){var n=Le.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function vk(e,t,r){var n=Le.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Id(e,t,r){var n=Le.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function yk(e,t,r){var n=Le.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function gk(e,t,r){var n=Le.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function bk(e,t,r){var n=Le.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function xk(e,t,r){var n=Le.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function wk(e,t,r){var n=ak.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function jk(e,t,r){var n=Le.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Ok(e,t,r){var n=Le.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Dd(e,t){return oe(e.getDate(),t,2)}function Sk(e,t){return oe(e.getHours(),t,2)}function Ak(e,t){return oe(e.getHours()%12||12,t,2)}
60function _k(e,t){return oe(1+Hi.count(Ft(e),e),t,3)}function jv(e,t){return oe(e.getMilliseconds(),t,3)}function Pk(e,t){return jv(e,t)+"000"}function $k(e,t){return oe(e.getMonth()+1,t,2)}function Tk(e,t){return oe(e.getMinutes(),t,2)}function Nk(e,t){return oe(e.getSeconds(),t,2)}function Ek(e){var t=e.getDay();return t===0?7:t}function Ck(e,t){return oe(Ro.count(Ft(e)-1,e),t,2)}function Ov(e){var t=e.getDay();return t>=4||t===0?nn(e):nn.ceil(e)}function kk(e,t){return e=Ov(e),oe(nn.count(Ft(e),e)+(Ft(e).getDay()===4),t,2)}function Mk(e){return e.getDay()}function Ik(e,t){return oe(Ma.count(Ft(e)-1,e),t,2)}function Dk(e,t){return oe(e.getFullYear()%100,t,2)}function Rk(e,t){return e=Ov(e),oe(e.getFullYear()%100,t,2)}function Lk(e,t){return oe(e.getFullYear()%1e4,t,4)}function Bk(e,t){var r=e.getDay();return e=r>=4||r===0?nn(e):nn.ceil(e),oe(e.getFullYear()%1e4,t,4)}function Fk(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+oe(t/60|0,"0",2)+oe(t%60,"0",2)}function Rd(e,t){return oe(e.getUTCDate(),t,2)}function zk(e,t){return oe(e.getUTCHours(),t,2)}function Uk(e,t){return oe(e.getUTCHours()%12||12,t,2)}function Wk(e,t){return oe(1+Do.count(zt(e),e),t,3)}function Sv(e,t){return oe(e.getUTCMilliseconds(),t,3)}function Gk(e,t){return Sv(e,t)+"000"}function qk(e,t){return oe(e.getUTCMonth()+1,t,2)}function Hk(e,t){return oe(e.getUTCMinutes(),t,2)}function Kk(e,t){return oe(e.getUTCSeconds(),t,2)}function Vk(e){var t=e.getUTCDay();return t===0?7:t}function Xk(e,t){return oe(Lo.count(zt(e)-1,e),t,2)}function Av(e){var t=e.getUTCDay();return t>=4||t===0?an(e):an.ceil(e)}function Yk(e,t){return e=Av(e),oe(an.count(zt(e),e)+(zt(e).getUTCDay()===4),t,2)}function Zk(e){return e.getUTCDay()}function Jk(e,t){return oe(Ia.count(zt(e)-1,e),t,2)}function Qk(e,t){return oe(e.getUTCFullYear()%100,t,2)}function eM(e,t){return e=Av(e),oe(e.getUTCFullYear()%100,t,2)}function tM(e,t){return oe(e.getUTCFullYear()%1e4,t,4)}function rM(e,t){var r=e.getUTCDay();return e=r>=4||r===0?an(e):an.ceil(e),oe(e.getUTCFullYear()%1e4,t,4)}function nM(){return"+0000"}function Ld(){return"%"}function Bd(e){return+e}function Fd(e){return Math.floor(+e/1e3)}var Ir,_v,Pv;iM({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 iM(e){return Ir=ik(e),_v=Ir.format,Ir.parse,Pv=Ir.utcFormat,Ir.utcParse,Ir}function aM(e){return new Date(e)}function oM(e){return e instanceof Date?+e:+new Date(+e)}function lu(e,t,r,n,i,a,o,s,c,l){var d=Xl(),f=d.invert,h=d.domain,p=l(".%L"),m=l(":%S"),v=l("%I:%M"),y=l("%I %p"),x=l("%a %d"),g=l("%b %d"),w=l("%B"),S=l("%Y");function b(j){return(c(j)<j?p:s(j)<j?m:o(j)<j?v:a(j)<j?y:n(j)<j?i(j)<j?x:g:r(j)<j?w:S)(j)}return d.invert=function(j){return new Date(f(j))},d.domain=function(j){return arguments.length?h(Array.from(j,oM)):h().map(aM)},d.ticks=function(j){var O=h();return e(O[0],O[O.length-1],j??10)},d.tickFormat=function(j,O){return O==null?b:l(O)},d.nice=function(j){var O=h();return(!j||typeof j.range!="function")&&(j=t(O[0],O[O.length-1],j??10)),j?h(hv(O,j)):d},d.copy=function(){return qi(d,lu(e,t,r,n,i,a,o,s,c,l))},d}function sM(){return ht.apply(lu(rk,nk,Ft,su,Ro,Hi,au,nu,br,_v).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cM(){return ht.apply(lu(ek,tk,zt,cu,Lo,Do,ou,iu,br,Pv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bo(){var e=0,t=1,r,n,i,a,o=Ke,s=!1,c;function l(f){return f==null||isNaN(f=+f)?c:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),l):[e,t]},l.clamp=function(f){return arguments.length?(s=!!f,l):s},l.interpolator=function(f){return arguments.length?(o=f,l):o};function d(f){return function(h){var p,m;return arguments.length?([p,m]=h,o=f(p,m),l):[o(0),o(1)]}}return l.range=d(En),l.rangeRound=d(Vl),l.unknown=function(f){return arguments.length?(c=f,l):c},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),l}}function ir(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function $v(){var e=nr(Bo()(Ke));return e.copy=function(){return ir(e,$v())},qt.apply(e,arguments)}function Tv(){var e=Jl(Bo()).domain([1,10]);return e.copy=function(){return ir(e,Tv()).base(e.base())},qt.apply(e,arguments)}function Nv(){var e=Ql(Bo());return e.copy=function(){return ir(e,Nv()).constant(e.constant())},qt.apply(e,arguments)}function uu(){var e=eu(Bo());return e.copy=function(){return ir(e,uu()).exponent(e.exponent())},qt.apply(e,arguments)}function lM(){return uu.apply(null,arguments).exponent(.5)}function Ev(){var e=[],t=Ke;function r(n){if(n!=null&&!isNaN(n=+n))return t((Wi(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(Qt),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)=>XE(e,a/n))},r.copy=function(){return Ev(t).domain(e)},qt.apply(r,arguments)}function Fo(){var e=0,t=.5,r=1,n=1,i,a,o,s,c,l=Ke,d,f=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+d(v))-a)*(n*v<n*a?s:c),l(f?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=d(e=+e),a=d(t=+t),o=d(r=+r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(f=!!v,p):f},p.interpolator=function(v){return arguments.length?(l=v,p):l};function m(v){return function(y){var x,g,w;return arguments.length?([x,g,w]=y,l=wC(v,[x,g,w]),p):[l(0),l(.5),l(1)]}}return p.range=m(En),p.rangeRound=m(Vl),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return d=v,i=v(e),a=v(t),o=v(r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function Cv(){var e=nr(Fo()(Ke));return e.copy=function(){return ir(e,Cv())},qt.apply(e,arguments)}function kv(){var e=Jl(Fo()).domain([.1,1,10]);return e.copy=function(){return ir(e,kv()).base(e.base())},qt.apply(e,arguments)}function Mv(){var e=Ql(Fo());return e.copy=function(){return ir(e,Mv()).constant(e.constant())},qt.apply(e,arguments)}function fu(){var e=eu(Fo());return e.copy=function(){return ir(e,fu()).exponent(e.exponent())},qt.apply(e,arguments)}function uM(){return fu.apply(null,arguments).exponent(.5)}const zd=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:fi,scaleDiverging:Cv,scaleDivergingLog:kv,scaleDivergingPow:fu,scaleDivergingSqrt:uM,scaleDivergingSymlog:Mv,scaleIdentity:dv,scaleImplicit:xc,scaleLinear:Ca,scaleLog:pv,scaleOrdinal:ql,scalePoint:Xn,scalePow:tu,scaleQuantile:yv,scaleQuantize:gv,scaleRadial:vv,scaleSequential:$v,scaleSequentialLog:Tv,scaleSequentialPow:uu,scaleSequentialQuantile:Ev,scaleSequentialSqrt:lM,scaleSequentialSymlog:Nv,scaleSqrt:GC,scaleSymlog:mv,scaleThreshold:bv,scaleTime:sM,scaleUtc:cM,tickFormat:fv},Symbol.toStringTag,{value:"Module"}));var fM=On;function dM(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!fM(o):r(o,s)))var s=o,c=a}return c}var zo=dM;function hM(e,t){return e>t}var Iv=hM,pM=zo,mM=Iv,vM=Nn;function yM(e){return e&&e.length?pM(e,vM,mM):void 0}var gM=yM;const Uo=fe(gM);function bM(e,t){return e<t}var Dv=bM,xM=zo,wM=Dv,jM=Nn;function OM(e){return e&&e.length?xM(e,jM,wM):void 0}var SM=OM;const Wo=fe(SM);var AM=Al,_M=Tt,PM=Gm,$M=Ze;function TM(e,t){var r=$M(e)?AM:PM;return r(e,_M(t))}var NM=TM,EM=Um,CM=NM;function kM(e,t){return EM(CM(e,t),1)}var MM=kM;const IM=fe(MM);var DM=Fl;function RM(e,t){return DM(e,t)}var LM=RM;const Go=fe(LM);
vendor: 61,630 bytes, lines 60-87
60var Cn=1e9,BM={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},hu,xe=!0,ft="[DecimalError] ",jr=ft+"Invalid argument: ",du=ft+"Exponent out of range: ",kn=Math.floor,mr=Math.pow,FM=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tt,De=1e7,be=7,Rv=9007199254740991,Da=kn(Rv/be),G={};G.absoluteValue=G.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};G.comparedTo=G.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};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*be;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};G.dividedBy=G.div=function(e){return Rt(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,r=t.constructor;return he(Rt(t,new r(e),0,1),r.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return Pe(this)};G.greaterThan=G.gt=function(e){return this.cmp(e)>0};G.greaterThanOrEqualTo=G.gte=function(e){return this.cmp(e)>=0};G.isInteger=G.isint=function(){return this.e>this.d.length-2};G.isNegative=G.isneg=function(){return this.s<0};G.isPositive=G.ispos=function(){return this.s>0};G.isZero=function(){return this.s===0};G.lessThan=G.lt=function(e){return this.cmp(e)<0};G.lessThanOrEqualTo=G.lte=function(e){return this.cmp(e)<1};G.logarithm=G.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(tt))throw Error(ft+"NaN");if(r.s<1)throw Error(ft+(r.s?"NaN":"-Infinity"));return r.eq(tt)?new n(0):(xe=!1,t=Rt(vi(r,a),vi(e,a),a),xe=!0,he(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Fv(t,e):Lv(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ft+"NaN");return r.s?(xe=!1,t=Rt(r,e,0,1).times(e),xe=!0,r.minus(t)):he(new n(r),i)};G.naturalExponential=G.exp=function(){return Bv(this)};G.naturalLogarithm=G.ln=function(){return vi(this)};G.negated=G.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};G.plus=G.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Lv(t,e):Fv(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(jr+e);if(t=Pe(i)+1,n=i.d.length-1,r=n*be+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};G.squareRoot=G.sqrt=function(){var e,t,r,n,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(ft+"NaN")}for(e=Pe(s),xe=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=jt(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=kn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(Rt(s,a,o+2)).times(.5),jt(a.d).slice(0,o)===(t=jt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(he(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return xe=!0,he(n,r)};G.times=G.mul=function(e){var t,r,n,i,a,o,s,c,l,d=this,f=d.constructor,h=d.d,p=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,r=d.e+e.e,c=h.length,l=p.length,c<l&&(a=h,h=p,p=a,o=c,c=l,l=o),a=[],o=c+l,n=o;n--;)a.push(0);for(n=l;--n>=0;){for(t=0,i=c+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%De|0,t=s/De|0;a[i]=(a[i]+t)%De|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,xe?he(e,f.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(_t(e,0,Cn),t===void 0?t=n.rounding:_t(t,0,8),he(r,e+Pe(r)+1,t))};G.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Pr(n,!0):(_t(e,0,Cn),t===void 0?t=i.rounding:_t(t,0,8),n=he(new i(n),e+1,t),r=Pr(n,!0,e+1)),r};G.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Pr(i):(_t(e,0,Cn),t===void 0?t=a.rounding:_t(t,0,8),n=he(new a(i),e+Pe(i)+1,t),r=Pr(n.abs(),!1,e+Pe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return he(new t(e),Pe(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,r,n,i,a,o,s=this,c=s.constructor,l=12,d=+(e=new c(e));if(!e.s)return new c(tt);if(s=new c(s),!s.s){if(e.s<1)throw Error(ft+"Infinity");return s}if(s.eq(tt))return s;if(n=c.precision,e.eq(tt))return he(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=d<0?-d:d)<=Rv){for(i=new c(tt),t=Math.ceil(n/be+4),xe=!1;r%2&&(i=i.times(s),Wd(i.d,t)),r=kn(r/2),r!==0;)s=s.times(s),Wd(s.d,t);return xe=!0,e.s<0?new c(tt).div(i):he(i,n)}}else if(a<0)throw Error(ft+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,xe=!1,i=e.times(vi(s,n+l)),xe=!0,i=Bv(i),i.s=a,i};G.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Pe(i),n=Pr(i,r<=a.toExpNeg||r>=a.toExpPos)):(_t(e,1,Cn),t===void 0?t=a.rounding:_t(t,0,8),i=he(new a(i),e,t),r=Pe(i),n=Pr(i,e<=r||r<=a.toExpNeg,e)),n};G.toSignificantDigits=G.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(_t(e,1,Cn),t===void 0?t=n.rounding:_t(t,0,8)),he(new n(r),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Pe(e),r=e.constructor;return Pr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Lv(e,t){var r,n,i,a,o,s,c,l,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),xe?he(t,f):t;if(c=e.d,l=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,s=l.length):(n=l,i=o,s=c.length),o=Math.ceil(f/be),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=c.length,a=l.length,s-a<0&&(a=s,n=l,l=c,c=n),r=0;a;)r=(c[--a]=c[a]+l[a]+r)/De|0,c[a]%=De;for(r&&(c.unshift(r),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,xe?he(t,f):t}function _t(e,t,r){if(e!==~~e||e<t||e>r)throw Error(jr+e)}function jt(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=be-n.length,r&&(a+=Vt(r)),a+=n;o=e[t],n=o+"",r=be-n.length,r&&(a+=Vt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Rt=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%De|0,o=a/De|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,c;if(a!=o)c=a>o?1:-1;else for(s=c=0;s<a;s++)if(n[s]!=i[s]){c=n[s]>i[s]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*De+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,c,l,d,f,h,p,m,v,y,x,g,w,S,b,j,O,_,A=n.constructor,T=n.s==i.s?1:-1,$=n.d,N=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(ft+"Division by zero");for(c=n.e-i.e,O=N.length,b=$.length,p=new A(T),m=p.d=[],l=0;N[l]==($[l]||0);)++l;if(N[l]>($[l]||0)&&--c,a==null?g=a=A.precision:o?g=a+(Pe(n)-Pe(i))+1:g=a,g<0)return new A(0);if(g=g/be+2|0,l=0,O==1)for(d=0,N=N[0],g++;(l<b||d)&&g--;l++)w=d*De+($[l]||0),m[l]=w/N|0,d=w%N|0;else{for(d=De/(N[0]+1)|0,d>1&&(N=e(N,d),$=e($,d),O=N.length,b=$.length),S=O,v=$.slice(0,O),y=v.length;y<O;)v[y++]=0;_=N.slice(),_.unshift(0),j=N[0],N[1]>=De/2&&++j;do d=0,s=t(N,v,O,y),s<0?(x=v[0],O!=y&&(x=x*De+(v[1]||0)),d=x/j|0,d>1?(d>=De&&(d=De-1),f=e(N,d),h=f.length,y=v.length,s=t(f,v,h,y),s==1&&(d--,r(f,O<h?_:N,h))):(d==0&&(s=d=1),f=N.slice()),h=f.length,h<y&&f.unshift(0),r(v,f,y),s==-1&&(y=v.length,s=t(N,v,O,y),s<1&&(d++,r(v,O<y?_:N,y))),y=v.length):s===0&&(d++,v=[0]),m[l++]=d,s&&v[0]?v[y++]=$[S]||0:(v=[$[S]],y=1);while((S++<b||v[0]!==void 0)&&g--)}return m[0]||m.shift(),p.e=c,he(p,o?a+Pe(p)+1:a)}}();function Bv(e,t){var r,n,i,a,o,s,c=0,l=0,d=e.constructor,f=d.precision;if(Pe(e)>16)throw Error(du+Pe(e));if(!e.s)return new d(tt);for(t==null?(xe=!1,s=f):s=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(mr(2,l))/Math.LN10*2+5|0,s+=n,r=i=a=new d(tt),d.precision=s;;){if(i=he(i.times(e),s),r=r.times(++c),o=a.plus(Rt(i,r,s)),jt(o.d).slice(0,s)===jt(a.d).slice(0,s)){for(;l--;)a=he(a.times(a),s);return d.precision=f,t==null?(xe=!0,he(a,f)):a}a=o}}function Pe(e){for(var t=e.e*be,r=e.d[0];r>=10;r/=10)t++;return t}function Ps(e,t,r){if(t>e.LN10.sd())throw xe=!0,r&&(e.precision=r),Error(ft+"LN10 precision limit exceeded");return he(new e(e.LN10),t)}function Vt(e){for(var t="";e--;)t+="0";return t}function vi(e,t){var r,n,i,a,o,s,c,l,d,f=1,h=10,p=e,m=p.d,v=p.constructor,y=v.precision;if(p.s<1)throw Error(ft+(p.s?"NaN":"-Infinity"));if(p.eq(tt))return new v(0);if(t==null?(xe=!1,l=y):l=t,p.eq(10))return t==null&&(xe=!0),Ps(v,l);if(l+=h,v.precision=l,r=jt(m),n=r.charAt(0),a=Pe(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=jt(p.d),n=r.charAt(0),f++;a=Pe(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return c=Ps(v,l+2,y).times(a+""),p=vi(new v(n+"."+r.slice(1)),l-h).plus(c),v.precision=y,t==null?(xe=!0,he(p,y)):p;for(s=o=p=Rt(p.minus(tt),p.plus(tt),l),d=he(p.times(p),l),i=3;;){if(o=he(o.times(d),l),c=s.plus(Rt(o,new v(i),l)),jt(c.d).slice(0,l)===jt(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(Ps(v,l+2,y).times(a+""))),s=Rt(s,new v(f),l),v.precision=y,t==null?(xe=!0,he(s,y)):s;s=c,i+=2}}function Ud(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=kn(r/be),e.d=[],n=(r+1)%be,r<0&&(n+=be),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=be;n<i;)e.d.push(+t.slice(n,n+=be));t=t.slice(n),n=be-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),xe&&(e.e>Da||e.e<-Da))throw Error(du+r)}else e.s=0,e.e=0,e.d=[0];return e}function he(e,t,r){var n,i,a,o,s,c,l,d,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=be,i=t,l=f[d=0];else{if(d=Math.ceil((n+1)/be),a=f.length,d>=a)return e;for(l=a=f[d],o=1;a>=10;a/=10)o++;n%=be,i=n-be+o}if(r!==void 0&&(a=mr(10,o-i-1),s=l/a%10|0,c=t<0||f[d+1]!==void 0||l%a,c=r<4?(s||c)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||c||r==6&&(n>0?i>0?l/mr(10,o-i):0:f[d-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(a=Pe(e),f.length=1,t=t-a-1,f[0]=mr(10,(be-t%be)%be),e.e=kn(-t/be)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=d,a=1,d--):(f.length=d+1,a=mr(10,be-n),f[d]=i>0?(l/mr(10,o-i)%mr(10,i)|0)*a:0),c)for(;;)if(d==0){(f[0]+=a)==De&&(f[0]=1,++e.e);break}else{if(f[d]+=a,f[d]!=De)break;f[d--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(xe&&(e.e>Da||e.e<-Da))throw Error(du+Pe(e));return e}function Fv(e,t){var r,n,i,a,o,s,c,l,d,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),xe?he(t,p):t;if(c=e.d,f=t.d,n=t.e,l=e.e,c=c.slice(),o=l-n,o){for(d=o<0,d?(r=c,o=-o,s=f.length):(r=f,n=l,s=c.length),i=Math.max(Math.ceil(p/be),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,s=f.length,d=i<s,d&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){d=c[i]<f[i];break}o=0}for(d&&(r=c,c=f,f=r,t.s=-t.s),s=c.length,i=f.length-s;i>0;--i)c[s++]=0;for(i=f.length;i>o;){if(c[--i]<f[i]){for(a=i;a&&c[--a]===0;)c[a]=De-1;--c[a],c[i]+=De}c[i]-=f[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,xe?he(t,p):t):new h(0)}function Pr(e,t,r){var n,i=Pe(e),a=jt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Vt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Vt(-i-1)+a,r&&(n=r-o)>0&&(a+=Vt(n))):i>=o?(a+=Vt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Vt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Vt(n))),e.s<0?"-"+a:a}function Wd(e,t){if(e.length>t)return e.length=t,!0}function zv(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(jr+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 Ud(o,a.toString())}else if(typeof a!="string")throw Error(jr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,FM.test(a))Ud(o,a);else throw Error(jr+a)}if(i.prototype=G,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=zv,i.config=i.set=zM,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 zM(e){if(!e||typeof e!="object")throw Error(ft+"Object expected");var t,r,n,i=["precision",1,Cn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(kn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(jr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(jr+r+": "+n);return this}var hu=zv(BM);tt=new hu(1);const ue=hu;function UM(e){return HM(e)||qM(e)||GM(e)||WM()}function WM(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GM(e,t){if(e){if(typeof e=="string")return Sc(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 Sc(e,t)}}function qM(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function HM(e){if(Array.isArray(e))return Sc(e)}function Sc(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 KM=function(t){return t},Uv={"@@functional/placeholder":!0},Wv=function(t){return t===Uv},Gd=function(t){return function r(){return arguments.length===0||arguments.length===1&&Wv(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},VM=function e(t,r){return t===1?r:Gd(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!==Uv}).length;return o>=t?r.apply(void 0,i):e(t-o,Gd(function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var d=i.map(function(f){return Wv(f)?c.shift():f});return r.apply(void 0,UM(d).concat(c))}))})},qo=function(t){return VM(t.length,t)},Ac=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},XM=qo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),YM=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return KM;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,c){return c(s)},a.apply(void 0,arguments))}},_c=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Gv=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,c){return s===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function ZM(e){var t;return e===0?t=1:t=Math.floor(new ue(e).abs().log(10).toNumber())+1,t}function JM(e,t,r){for(var n=new ue(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var QM=qo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),e2=qo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),t2=qo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ho={rangeStep:JM,getDigitCount:ZM,interpolateNumber:QM,uninterpolateNumber:e2,uninterpolateTruncation:t2};function Pc(e){return i2(e)||n2(e)||qv(e)||r2()}function r2(){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 n2(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function i2(e){if(Array.isArray(e))return $c(e)}function yi(e,t){return s2(e)||o2(e,t)||qv(e,t)||a2()}function a2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 63In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qv(e,t){if(e){if(typeof e=="string")return $c(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 $c(e,t)}}function $c(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 o2(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(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function s2(e){if(Array.isArray(e))return e}function Hv(e){var t=yi(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Kv(e,t,r){if(e.lte(0))return new ue(0);var n=Ho.getDigitCount(e.toNumber()),i=new ue(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new ue(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=s.mul(i);return t?c:new ue(Math.ceil(c))}function c2(e,t,r){var n=1,i=new ue(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ue(10).pow(Ho.getDigitCount(e)-1),i=new ue(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ue(Math.floor(e)))}else e===0?i=new ue(Math.floor((t-1)/2)):r||(i=new ue(Math.floor(e)));var o=Math.floor((t-1)/2),s=YM(XM(function(c){return i.add(new ue(c-o).mul(n)).toNumber()}),Ac);return s(0,t)}function Vv(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 ue(0),tickMin:new ue(0),tickMax:new ue(0)};var a=Kv(new ue(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ue(0):(o=new ue(e).add(t).div(2),o=o.sub(new ue(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ue(t).sub(o).div(a).toNumber()),l=s+c+1;return l>r?Vv(e,t,r,n,i+1):(l<r&&(c=t>0?c+(r-l):c,s=t>0?s:s+(r-l)),{step:a,tickMin:o.sub(new ue(s).mul(a)),tickMax:o.add(new ue(c).mul(a))})}function l2(e){var t=yi(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=Hv([r,n]),c=yi(s,2),l=c[0],d=c[1];if(l===-1/0||d===1/0){var f=d===1/0?[l].concat(Pc(Ac(0,i-1).map(function(){return 1/0}))):[].concat(Pc(Ac(0,i-1).map(function(){return-1/0})),[d]);return r>n?_c(f):f}if(l===d)return c2(l,i,a);var h=Vv(l,d,o,a),p=h.step,m=h.tickMin,v=h.tickMax,y=Ho.rangeStep(m,v.add(new ue(.1).mul(p)),p);return r>n?_c(y):y}function u2(e,t){var r=yi(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Hv([n,i]),s=yi(o,2),c=s[0],l=s[1];if(c===-1/0||l===1/0)return[n,i];if(c===l)return[c];var d=Math.max(t,2),f=Kv(new ue(l).sub(c).div(d-1),a,0),h=[].concat(Pc(Ho.rangeStep(new ue(c),new ue(l).sub(new ue(.99).mul(f)),f)),[l]);return n>i?_c(h):h}var f2=Gv(l2),d2=Gv(u2),h2="Invariant failed";function $r(e,t){throw new Error(h2)}var p2=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 Ra(){return Ra=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},Ra.apply(this,arguments)}function m2(e,t){return b2(e)||g2(e,t)||y2(e,t)||v2()}function v2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y2(e,t){if(e){if(typeof e=="string")return qd(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 qd(e,t)}}function qd(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 g2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function b2(e){if(Array.isArray(e))return e}function x2(e,t){if(e==null)return{};var r=w2(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 w2(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 j2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O2(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,Zv(n.key),n)}}function S2(e,t,r){return t&&O2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function A2(e,t,r){return t=La(t),_2(e,Xv()?Reflect.construct(t,r||[],La(e).constructor):t.apply(e,r))}function _2(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 P2(e)}function P2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xv=function(){return!!e})()}function La(e){return La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},La(e)}function $2(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&&Tc(e,t)}function Tc(e,t){return Tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tc(e,t)}function Yv(e,t,r){return t=Zv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zv(e){var t=T2(e,"string");return on(t)=="symbol"?t:t+""}function T2(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ko=function(e){function t(){return j2(this,t),A2(this,t,arguments)}return $2(t,e),S2(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,c=n.data,l=n.dataPointFormatter,d=n.xAxis,f=n.yAxis,h=x2(n,p2),p=X(h,!1);this.props.direction==="x"&&d.type!=="number"&&$r();var m=c.map(function(v){var y=l(v,s),x=y.x,g=y.y,w=y.value,S=y.errorVal;if(!S)return null;var b=[],j,O;if(Array.isArray(S)){var _=m2(S,2);j=_[0],O=_[1]}else j=O=S;if(a==="vertical"){var A=d.scale,T=g+i,$=T+o,N=T-o,M=A(w-j),I=A(w+O);b.push({x1:I,y1:$,x2:I,y2:N}),b.push({x1:M,y1:T,x2:I,y2:T}),b.push({x1:M,y1:$,x2:M,y2:N})}else if(a==="horizontal"){var k=f.scale,D=x+i,R=D-o,F=D+o,z=k(w-j),q=k(w+O);b.push({x1:R,y1:q,x2:F,y2:q}),b.push({x1:D,y1:z,x2:D,y2:q}),b.push({x1:R,y1:z,x2:F,y2:z})}return P.createElement(ce,Ra({className:"recharts-errorBar",key:"bar-".concat(b.map(function(K){return"".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))},p),b.map(function(K){return P.createElement("line",Ra({},K,{key:"line-".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))}))});return P.createElement(ce,{className:"recharts-errorBars"},m)}}])}(P.Component);Yv(Ko,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Yv(Ko,"displayName","ErrorBar");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 Hd(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 ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hd(Object(r),!0).forEach(function(n){N2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N2(e,t,r){return t=E2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E2(e){var t=C2(e,"string");return gi(t)=="symbol"?t:t+""}function C2(e,t){if(gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jv=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=et(r,qr);if(!o)return null;var s=qr.defaultProps,c=s!==void 0?ur(ur({},s),o.props):{},l;return o.props&&o.props.payload?l=o.props&&o.props.payload:a==="children"?l=(n||[]).reduce(function(d,f){var h=f.item,p=f.props,m=p.sectors||p.data||[];return d.concat(m.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):l=(n||[]).map(function(d){var f=d.item,h=f.type.defaultProps,p=h!==void 0?ur(ur({},h),f.props):{},m=p.dataKey,v=p.name,y=p.legendType,x=p.hide;return{inactive:x,dataKey:m,type:c.iconType||y||"square",color:pu(f),value:v||m,payload:p}}),ur(ur(ur({},c),qr.getWithHeight(o,i)),{},{payload:l,item:o})};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 Kd(e){return D2(e)||I2(e)||M2(e)||k2()}function k2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M2(e,t){if(e){if(typeof e=="string")return Nc(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 Nc(e,t)}}function I2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function D2(e){if(Array.isArray(e))return Nc(e)}function Nc(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 Vd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vd(Object(r),!0).forEach(function(n){Kr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kr(e,t,r){return t=R2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R2(e){var t=L2(e,"string");return bi(t)=="symbol"?t:t+""}function L2(e,t){if(bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ge(e,t,r){return re(e)||re(t)?r:Me(t)?rt(e,t,r):Y(t)?t(e):r}function Yn(e,t,r,n){var i=IM(e,function(s){return Ge(s,t)});if(r==="number"){var a=i.filter(function(s){return B(s)||parseFloat(s)});return a.length?[Wo(a),Uo(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!re(s)}):i;return o.map(function(s){return Me(s)||s instanceof Date?s:""})}var B2=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==null?void 0: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 c=a.range,l=0;l<s;l++){var d=l>0?i[l-1].coordinate:i[s-1].coordinate,f=i[l].coordinate,h=l>=s-1?i[0].coordinate:i[l+1].coordinate,p=void 0;if(qe(f-d)!==qe(h-f)){var m=[];if(qe(h-f)===qe(c[1]-c[0])){p=h;var v=f+c[1]-c[0];m[0]=Math.min(v,(v+d)/2),m[1]=Math.max(v,(v+d)/2)}else{p=d;var y=h+c[1]-c[0];m[0]=Math.min(f,(y+f)/2),m[1]=Math.max(f,(y+f)/2)}var x=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>x[0]&&t<=x[1]||t>=m[0]&&t<=m[1]){o=i[l].index;break}}else{var g=Math.min(d,h),w=Math.max(d,h);if(t>(g+f)/2&&t<=(w+f)/2){o=i[l].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},pu=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Se(Se({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:s;break;default:c=s;break}return c},F2=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),c=0,l=s.length;c<l;c++)for(var d=a[s[c]].stackGroups,f=Object.keys(d),h=0,p=f.length;h<p;h++){var m=d[f[h]],v=m.items,y=m.cateAxisId,x=v.filter(function(O){return It(O.type).indexOf("Bar")>=0});if(x&&x.length){var g=x[0].type.defaultProps,w=g!==void 0?Se(Se({},g),x[0].props):x[0].props,S=w.barSize,b=w[y];o[b]||(o[b]=[]);var j=re(S)?r:S;o[b].push({item:x[0],stackList:x.slice(1),barSize:re(j)?void 0:He(j,n,0)})}}return o},z2=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,c=o.length;if(c<1)return null;var l=He(r,i,0,!0),d,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/c,m=o.reduce(function(S,b){return S+b.barSize||0},0);m+=(c-1)*l,m>=i&&(m-=(c-1)*l,l=0),m>=i&&p>0&&(h=!0,p*=.9,m=c*p);var v=(i-m)/2>>0,y={offset:v-l,size:0};d=o.reduce(function(S,b){var j={item:b.item,position:{offset:y.offset+y.size+l,size:h?p:b.barSize}},O=[].concat(Kd(S),[j]);return y=O[O.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){O.push({item:_,position:y})}),O},f)}else{var x=He(n,i,0,!0);i-2*x-(c-1)*l<=0&&(l=0);var g=(i-2*x-(c-1)*l)/c;g>1&&(g>>=0);var w=s===+s?Math.min(g,s):g;d=o.reduce(function(S,b,j){var O=[].concat(Kd(S),[{item:b.item,position:{offset:x+(g+l)*j+(g-w)/2,size:w}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){O.push({item:_,position:O[O.length-1].position})}),O},f)}return d},U2=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,c=o-(s.left||0)-(s.right||0),l=Jv({children:a,legendWidth:c});if(l){var d=i||{},f=d.width,h=d.height,p=l.align,m=l.verticalAlign,v=l.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&p!=="center"&&B(t[p]))return Se(Se({},t),{},Kr({},p,t[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&B(t[m]))return Se(Se({},t),{},Kr({},m,t[m]+(h||0)))}return t},W2=function(t,r,n){return re(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Qv=function(t,r,n,i,a){var o=r.props.children,s=ut(o,Ko).filter(function(l){return W2(i,a,l.props.direction)});if(s&&s.length){var c=s.map(function(l){return l.props.dataKey});return t.reduce(function(l,d){var f=Ge(d,n);if(re(f))return l;var h=Array.isArray(f)?[Wo(f),Uo(f)]:[f,f],p=c.reduce(function(m,v){var y=Ge(d,v,0),x=h[0]-Math.abs(Array.isArray(y)?y[0]:y),g=h[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(x,m[0]),Math.max(g,m[1])]},[1/0,-1/0]);return[Math.min(p[0],l[0]),Math.max(p[1],l[1])]},[1/0,-1/0])}return null},G2=function(t,r,n,i,a){var o=r.map(function(s){return Qv(t,s,n,a,i)}).filter(function(s){return!re(s)});return o&&o.length?o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},ey=function(t,r,n,i,a){var o=r.map(function(c){var l=c.props.dataKey;return n==="number"&&l&&Qv(t,c,l,i)||Yn(t,l,n,a)});if(n==="number")return o.reduce(function(c,l){return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);var s={};return o.reduce(function(c,l){for(var d=0,f=l.length;d<f;d++)s[l[d]]||(s[l[d]]=!0,c.push(l[d]));return c},[])},ty=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},ry=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,s=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||s.push(r),o||s.push(n),s},Mt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(l=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?qe(s[0]-s[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+l,value:f,offset:l}});return d.filter(function(f){return!Fi(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+l,value:f,index:h,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+l,value:f,offset:l}}):i.domain().map(function(f,h){return{coordinate:i(f)+l,value:a?a[f]:f,index:h,offset:l}})},$s=new WeakMap,na=function(t,r){if(typeof r!="function")return t;$s.has(t)||$s.set(t,new WeakMap);var n=$s.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},ny=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:fi(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Ca(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Xn(),realScaleType:"point"}:a==="category"?{scale:fi(),realScaleType:"band"}:{scale:Ca(),realScaleType:"linear"};if(Sr(i)){var c="scale".concat($o(i));return{scale:(zd[c]||Xn)(),realScaleType:zd[c]?c:"point"}}return Y(i)?{scale:i}:{scale:Xn(),realScaleType:"point"}},Xd=1e-4,iy=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])-Xd,o=Math.max(i[0],i[1])+Xd,s=t(r[0]),c=t(r[n-1]);(s<a||s>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},q2=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},H2=function(t,r){if(!r||r.length!==2||!B(r[0])||!B(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(!B(t[0])||t[0]<n)&&(a[0]=n),(!B(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},K2=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 c=Fi(t[s][n][1])?t[s][n][0]:t[s][n][1];c>=0?(t[s][n][0]=a,t[s][n][1]=a+c,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+c,o=t[s][n][1])}},V2=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=Fi(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)}},X2={sign:K2,expand:pj,none:Zr,silhouette:mj,wiggle:vj,positive:V2},Y2=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=X2[n],o=hj().keys(i).value(function(s,c){return+Ge(s,c,0)}).order(tc).offset(a);return o(t)},Z2=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,c={},l=s.reduce(function(f,h){var p,m=(p=h.type)!==null&&p!==void 0&&p.defaultProps?Se(Se({},h.type.defaultProps),h.props):h.props,v=m.stackId,y=m.hide;if(y)return f;var x=m[n],g=f[x]||{hasStack:!1,stackGroups:{}};if(Me(v)){var w=g.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),g.hasStack=!0,g.stackGroups[v]=w}else g.stackGroups[zi("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return Se(Se({},f),{},Kr({},x,g))},c),d={};return Object.keys(l).reduce(function(f,h){var p=l[h];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,y){var x=p.stackGroups[y];return Se(Se({},v),{},Kr({},y,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:Y2(t,x.items,a)}))},m)}return Se(Se({},f),{},Kr({},h,p))},d)},ay=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=t.domain();if(!l.length)return null;var d=f2(l,a,s);return t.domain([Wo(d),Uo(d)]),{niceTicks:d}}if(a&&i==="number"){var f=t.domain(),h=d2(f,a,s);return{niceTicks:h}}return null},Yd=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 c=Ge(o,r.dataKey,r.domain[s]);return re(c)?null:r.scale(c)-a/2+i},J2=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]},Q2=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Se(Se({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Me(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},eI=function(t){return t.reduce(function(r,n){return[Wo(n.concat([r[0]]).filter(B)),Uo(n.concat([r[1]]).filter(B))]},[1/0,-1/0])},oy=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,c=s.reduce(function(l,d){var f=eI(d.slice(r,n+1));return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Zd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Jd=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ec=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(B(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Zd.test(t[0])){var a=+Zd.exec(t[0])[1];i[0]=r[0]-a}else Y(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(B(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Jd.test(t[1])){var o=+Jd.exec(t[1])[1];i[1]=r[1]+o}else Y(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Ba=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=Ul(r,function(f){return f.coordinate}),o=1/0,s=1,c=a.length;s<c;s++){var l=a[s],d=a[s-1];o=Math.min((l.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Qd=function(t,r,n){return!t||!t.length||Go(t,rt(n,"type.defaultProps.domain"))?r:t},sy=function(t,r){var n=t.type.defaultProps?Se(Se({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,c=n.tooltipType,l=n.chartType,d=n.hide;return Se(Se({},X(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:pu(t),value:Ge(r,i),type:c,payload:r,chartType:l,hide:d})};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 eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eh(Object(r),!0).forEach(function(n){cy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cy(e,t,r){return t=tI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tI(e){var t=rI(e,"string");return xi(t)=="symbol"?t:t+""}function rI(e,t){if(xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nI(e,t){return sI(e)||oI(e,t)||aI(e,t)||iI()}function iI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 66In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aI(e,t){if(e){if(typeof e=="string")return th(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 th(e,t)}}function th(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 oI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function sI(e){if(Array.isArray(e))return e}var Fa=Math.PI/180,cI=function(t){return t*180/Math.PI},ve=function(t,r,n,i){return{x:t+Math.cos(-Fa*i)*n,y:r+Math.sin(-Fa*i)*n}},ly=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},lI=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.startAngle,l=t.endAngle,d=He(t.cx,o,o/2),f=He(t.cy,s,s/2),h=ly(o,s,n),p=He(t.innerRadius,h,0),m=He(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(y,x){var g=r[x],w=g.domain,S=g.reversed,b;if(re(g.range))i==="angleAxis"?b=[c,l]:i==="radiusAxis"&&(b=[p,m]),S&&(b=[b[1],b[0]]);else{b=g.range;var j=b,O=nI(j,2);c=O[0],l=O[1]}var _=ny(g,a),A=_.realScaleType,T=_.scale;T.domain(w).range(b),iy(T);var $=ay(T,Et(Et({},g),{},{realScaleType:A})),N=Et(Et(Et({},g),$),{},{range:b,radius:m,realScaleType:A,scale:T,cx:d,cy:f,innerRadius:p,outerRadius:m,startAngle:c,endAngle:l});return Et(Et({},y),{},cy({},x,N))},{})},uI=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))},fI=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=uI({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var c=(n-a)/s,l=Math.acos(c);return i>o&&(l=2*Math.PI-l),{radius:s,angle:cI(l),angleInRadian:l}},dI=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}},hI=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},rh=function(t,r){var n=t.x,i=t.y,a=fI({x:n,y:i},r),o=a.radius,s=a.angle,c=r.innerRadius,l=r.outerRadius;if(o<c||o>l)return!1;if(o===0)return!0;var d=dI(r),f=d.startAngle,h=d.endAngle,p=s,m;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;m=p>=h&&p<=f}return m?Et(Et({},r),{},{radius:o,angle:hI(p,r)}):null},uy=function(t){return!C.isValidElement(t)&&!Y(t)&&typeof t!="boolean"?t.className:""};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)}var pI=["offset"];function mI(e){return bI(e)||gI(e)||yI(e)||vI()}function vI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 67In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yI(e,t){if(e){if(typeof e=="string")return Cc(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 Cc(e,t)}}function gI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bI(e){if(Array.isArray(e))return Cc(e)}function Cc(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 xI(e,t){if(e==null)return{};var r=wI(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 wI(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 nh(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 Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nh(Object(r),!0).forEach(function(n){jI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jI(e,t,r){return t=OI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OI(e){var t=SI(e,"string");return wi(t)=="symbol"?t:t+""}function SI(e,t){if(wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ji(){return ji=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},ji.apply(this,arguments)}var AI=function(t){var r=t.value,n=t.formatter,i=re(t.children)?r:t.children;return Y(n)?n(i):i},_I=function(t,r){var n=qe(r-t),i=Math.min(Math.abs(r-t),360);return n*i},PI=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,c=a,l=c.cx,d=c.cy,f=c.innerRadius,h=c.outerRadius,p=c.startAngle,m=c.endAngle,v=c.clockWise,y=(f+h)/2,x=_I(p,m),g=x>=0?1:-1,w,S;i==="insideStart"?(w=p+g*o,S=v):i==="insideEnd"?(w=m-g*o,S=!v):i==="end"&&(w=m+g*o,S=v),S=x<=0?S:!S;var b=ve(l,d,y,w),j=ve(l,d,y,w+(S?1:-1)*359),O="M".concat(b.x,",").concat(b.y,` 68 A`).concat(y,",").concat(y,",0,1,").concat(S?0:1,`, 69 `).concat(j.x,",").concat(j.y),_=re(t.id)?zi("recharts-radial-line-"):t.id;return P.createElement("text",ji({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",s)}),P.createElement("defs",null,P.createElement("path",{id:_,d:O})),P.createElement("textPath",{xlinkHref:"#".concat(_)},r))},$I=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,c=a.innerRadius,l=a.outerRadius,d=a.startAngle,f=a.endAngle,h=(d+f)/2;if(i==="outside"){var p=ve(o,s,l+n,h),m=p.x,v=p.y;return{x:m,y:v,textAnchor:m>=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 y=(c+l)/2,x=ve(o,s,y,h),g=x.x,w=x.y;return{x:g,y:w,textAnchor:"middle",verticalAnchor:"middle"}},TI=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,c=o.y,l=o.width,d=o.height,f=d>=0?1:-1,h=f*i,p=f>0?"end":"start",m=f>0?"start":"end",v=l>=0?1:-1,y=v*i,x=v>0?"end":"start",g=v>0?"start":"end";if(a==="top"){var w={x:s+l/2,y:c-f*i,textAnchor:"middle",verticalAnchor:p};return Ee(Ee({},w),n?{height:Math.max(c-n.y,0),width:l}:{})}if(a==="bottom"){var S={x:s+l/2,y:c+d+h,textAnchor:"middle",verticalAnchor:m};return Ee(Ee({},S),n?{height:Math.max(n.y+n.height-(c+d),0),width:l}:{})}if(a==="left"){var b={x:s-y,y:c+d/2,textAnchor:x,verticalAnchor:"middle"};return Ee(Ee({},b),n?{width:Math.max(b.x-n.x,0),height:d}:{})}if(a==="right"){var j={x:s+l+y,y:c+d/2,textAnchor:g,verticalAnchor:"middle"};return Ee(Ee({},j),n?{width:Math.max(n.x+n.width-j.x,0),height:d}:{})}var O=n?{width:l,height:d}:{};return a==="insideLeft"?Ee({x:s+y,y:c+d/2,textAnchor:g,verticalAnchor:"middle"},O):a==="insideRight"?Ee({x:s+l-y,y:c+d/2,textAnchor:x,verticalAnchor:"middle"},O):a==="insideTop"?Ee({x:s+l/2,y:c+h,textAnchor:"middle",verticalAnchor:m},O):a==="insideBottom"?Ee({x:s+l/2,y:c+d-h,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Ee({x:s+y,y:c+h,textAnchor:g,verticalAnchor:m},O):a==="insideTopRight"?Ee({x:s+l-y,y:c+h,textAnchor:x,verticalAnchor:m},O):a==="insideBottomLeft"?Ee({x:s+y,y:c+d-h,textAnchor:g,verticalAnchor:p},O):a==="insideBottomRight"?Ee({x:s+l-y,y:c+d-h,textAnchor:x,verticalAnchor:p},O):Sn(a)&&(B(a.x)||yr(a.x))&&(B(a.y)||yr(a.y))?Ee({x:s+He(a.x,l),y:c+He(a.y,d),textAnchor:"end",verticalAnchor:"end"},O):Ee({x:s+l/2,y:c+d/2,textAnchor:"middle",verticalAnchor:"middle"},O)},NI=function(t){return"cx"in t&&B(t.cx)};function Re(e){var t=e.offset,r=t===void 0?5:t,n=xI(e,pI),i=Ee({offset:r},n),a=i.viewBox,o=i.position,s=i.value,c=i.children,l=i.content,d=i.className,f=d===void 0?"":d,h=i.textBreakAll;if(!a||re(s)&&re(c)&&!C.isValidElement(l)&&!Y(l))return null;if(C.isValidElement(l))return C.cloneElement(l,i);var p;if(Y(l)){if(p=C.createElement(l,i),C.isValidElement(p))return p}else p=AI(i);var m=NI(a),v=X(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return PI(i,p,v);var y=m?$I(i):TI(i);return P.createElement(_r,ji({className:te("recharts-label",f)},v,y,{breakAll:h}),p)}Re.displayName="Label";var fy=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,c=t.radius,l=t.innerRadius,d=t.outerRadius,f=t.x,h=t.y,p=t.top,m=t.left,v=t.width,y=t.height,x=t.clockWise,g=t.labelViewBox;if(g)return g;if(B(v)&&B(y)){if(B(f)&&B(h))return{x:f,y:h,width:v,height:y};if(B(p)&&B(m))return{x:p,y:m,width:v,height:y}}return B(f)&&B(h)?{x:f,y:h,width:0,height:0}:B(r)&&B(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:d||c||s||0,clockWise:x}:t.viewBox?t.viewBox:{}},EI=function(t,r){return t?t===!0?P.createElement(Re,{key:"label-implicit",viewBox:r}):Me(t)?P.createElement(Re,{key:"label-implicit",viewBox:r,value:t}):C.isValidElement(t)?t.type===Re?C.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement(Re,{key:"label-implicit",content:t,viewBox:r}):Y(t)?P.createElement(Re,{key:"label-implicit",content:t,viewBox:r}):Sn(t)?P.createElement(Re,ji({viewBox:r},t,{key:"label-implicit"})):null:null},CI=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=fy(t),o=ut(i,Re).map(function(c,l){return C.cloneElement(c,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var s=EI(t.label,r||a);return[s].concat(mI(o))};Re.parseViewBox=fy;Re.renderCallByParent=CI;function kI(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var MI=kI;const II=fe(MI);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 DI=["valueAccessor"],RI=["data","dataKey","clockWise","id","textBreakAll"];function LI(e){return UI(e)||zI(e)||FI(e)||BI()}function BI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 70In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FI(e,t){if(e){if(typeof e=="string")return kc(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 kc(e,t)}}function zI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UI(e){if(Array.isArray(e))return kc(e)}function kc(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 za(){return za=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},za.apply(this,arguments)}function ih(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 ah(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ih(Object(r),!0).forEach(function(n){WI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ih(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WI(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=qI(e,"string");return Oi(t)=="symbol"?t:t+""}function qI(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oh(e,t){if(e==null)return{};var r=HI(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 HI(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 KI=function(t){return Array.isArray(t.value)?II(t.value):t.value};function er(e){var t=e.valueAccessor,r=t===void 0?KI:t,n=oh(e,DI),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,c=n.textBreakAll,l=oh(n,RI);return!i||!i.length?null:P.createElement(ce,{className:"recharts-label-list"},i.map(function(d,f){var h=re(a)?r(d,f):Ge(d&&d.payload,a),p=re(s)?{}:{id:"".concat(s,"-").concat(f)};return P.createElement(Re,za({},X(d,!0),l,p,{parentViewBox:d.parentViewBox,value:h,textBreakAll:c,viewBox:Re.parseViewBox(re(o)?d:ah(ah({},d),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}er.displayName="LabelList";function VI(e,t){return e?e===!0?P.createElement(er,{key:"labelList-implicit",data:t}):P.isValidElement(e)||Y(e)?P.createElement(er,{key:"labelList-implicit",data:t,content:e}):Sn(e)?P.createElement(er,za({data:t},e,{key:"labelList-implicit"})):null:null}function XI(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=ut(n,er).map(function(o,s){return C.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=VI(e.label,t);return[a].concat(LI(i))}er.renderCallByParent=XI;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 Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mc.apply(this,arguments)}function sh(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 ch(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sh(Object(r),!0).forEach(function(n){YI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YI(e,t,r){return t=ZI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZI(e){var t=JI(e,"string");return Si(t)=="symbol"?t:t+""}function JI(e,t){if(Si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QI=function(t,r){var n=qe(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ia=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,c=t.cornerRadius,l=t.cornerIsExternal,d=c*(s?1:-1)+i,f=Math.asin(c/d)/Fa,h=l?a:a+o*f,p=ve(r,n,d,h),m=ve(r,n,i,h),v=l?a-o*f:a,y=ve(r,n,d*Math.cos(f*Fa),v);return{center:p,circleTangency:m,lineTangency:y,theta:f}},dy=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,c=QI(o,s),l=o+c,d=ve(r,n,a,o),f=ve(r,n,a,l),h="M ".concat(d.x,",").concat(d.y,` 71 A `).concat(a,",").concat(a,`,0, 72 `).concat(+(Math.abs(c)>180),",").concat(+(o>l),`, 73 `).concat(f.x,",").concat(f.y,` 74 `);if(i>0){var p=ve(r,n,i,o),m=ve(r,n,i,l);h+="L ".concat(m.x,",").concat(m.y,` 75 A `).concat(i,",").concat(i,`,0, 76 `).concat(+(Math.abs(c)>180),",").concat(+(o<=l),`, 77 `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},eD=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,d=t.endAngle,f=qe(d-l),h=ia({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:c}),p=h.circleTangency,m=h.lineTangency,v=h.theta,y=ia({cx:r,cy:n,radius:a,angle:d,sign:-f,cornerRadius:o,cornerIsExternal:c}),x=y.circleTangency,g=y.lineTangency,w=y.theta,S=c?Math.abs(l-d):Math.abs(l-d)-v-w;if(S<0)return s?"M ".concat(m.x,",").concat(m.y,` 78 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 79 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 80 `):dy({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:d});var b="M ".concat(m.x,",").concat(m.y,` 81 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,` 82 A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(x.x,",").concat(x.y,` 83 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(g.x,",").concat(g.y,` 84 `);if(i>0){var j=ia({cx:r,cy:n,radius:i,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=j.circleTangency,_=j.lineTangency,A=j.theta,T=ia({cx:r,cy:n,radius:i,angle:d,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),$=T.circleTangency,N=T.lineTangency,M=T.theta,I=c?Math.abs(l-d):Math.abs(l-d)-A-M;if(I<0&&o===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="L".concat(N.x,",").concat(N.y,` 85 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat($.x,",").concat($.y,` 86 A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,` 87 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,"Z")}else b+="L".concat(r,",").concat(n,"Z");return b},tD={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},hy=function(t){var r=ch(ch({},tD),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,c=r.forceCornerRadius,l=r.cornerIsExternal,d=r.startAngle,f=r.endAngle,h=r.className;if(o<a||d===f)return null;var p=te("recharts-sector",h),m=o-a,v=He(s,m,0,!0),y;return v>0&&Math.abs(d-f)<360?y=eD({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:d,endAngle:f}):y=dy({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:d,endAngle:f}),P.createElement("path",Mc({},X(r,!0),{className:p,d:y,role:"img"}))};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 Ic(){return Ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
87for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ic.apply(this,arguments)}function lh(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 uh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(r),!0).forEach(function(n){rD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rD(e,t,r){return t=nD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nD(e){var t=iD(e,"string");return Ai(t)=="symbol"?t:t+""}function iD(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fh={curveBasisClosed:rj,curveBasisOpen:nj,curveBasis:tj,curveBumpX:z1,curveBumpY:U1,curveLinearClosed:ij,curveLinear:No,curveMonotoneX:aj,curveMonotoneY:oj,curveNatural:sj,curveStep:cj,curveStepAfter:uj,curveStepBefore:lj},aa=function(t){return t.x===+t.x&&t.y===+t.y},Un=function(t){return t.x},Wn=function(t){return t.y},aD=function(t,r){if(Y(t))return t;var n="curve".concat($o(t));return(n==="curveMonotone"||n==="curveBump")&&r?fh["".concat(n).concat(r==="vertical"?"Y":"X")]:fh[n]||No},oD=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,c=t.connectNulls,l=c===void 0?!1:c,d=aD(n,s),f=l?a.filter(function(v){return aa(v)}):a,h;if(Array.isArray(o)){var p=l?o.filter(function(v){return aa(v)}):o,m=f.map(function(v,y){return uh(uh({},v),{},{base:p[y]})});return s==="vertical"?h=Xi().y(Wn).x1(Un).x0(function(v){return v.base.x}):h=Xi().x(Un).y1(Wn).y0(function(v){return v.base.y}),h.defined(aa).curve(d),h(m)}return s==="vertical"&&B(o)?h=Xi().y(Wn).x1(Un).x0(o):B(o)?h=Xi().x(Un).y1(Wn).y0(o):h=sm().x(Un).y(Wn),h.defined(aa).curve(d),h(f)},Dc=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?oD(t):i;return C.createElement("path",Ic({},X(t,!1),da(t),{className:te("recharts-curve",r),d:o,ref:a}))},py={exports:{}},sD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",cD=sD,lD=cD;function my(){}function vy(){}vy.resetWarningCache=my;var uD=function(){function e(n,i,a,o,s,c){if(c!==lD){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vy,resetWarningCache:my};return r.PropTypes=r,r};py.exports=uD();var fD=py.exports;const se=fe(fD);var dD=Object.getOwnPropertyNames,hD=Object.getOwnPropertySymbols,pD=Object.prototype.hasOwnProperty;function dh(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function oa(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 c=e(r,n,i);return a.delete(r),a.delete(n),c}}function hh(e){return dD(e).concat(hD(e))}var yy=Object.hasOwn||function(e,t){return pD.call(e,t)};function Mn(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var gy="_owner",ph=Object.getOwnPropertyDescriptor,mh=Object.keys;function mD(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 vD(e,t){return Mn(e.getTime(),t.getTime())}function vh(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),a=0,o,s;(o=i.next())&&!o.done;){for(var c=t.entries(),l=!1,d=0;(s=c.next())&&!s.done;){var f=o.value,h=f[0],p=f[1],m=s.value,v=m[0],y=m[1];!l&&!n[d]&&(l=r.equals(h,v,a,d,e,t,r)&&r.equals(p,y,h,v,e,t,r))&&(n[d]=!0),d++}if(!l)return!1;a++}return!0}function yD(e,t,r){var n=mh(e),i=n.length;if(mh(t).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===gy&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!yy(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Gn(e,t,r){var n=hh(e),i=n.length;if(hh(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],a===gy&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!yy(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(o=ph(e,a),s=ph(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function gD(e,t){return Mn(e.valueOf(),t.valueOf())}function bD(e,t){return e.source===t.source&&e.flags===t.flags}function yh(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var s=t.values(),c=!1,l=0;(o=s.next())&&!o.done;)!c&&!n[l]&&(c=r.equals(a.value,o.value,a.value,o.value,e,t,r))&&(n[l]=!0),l
87++;if(!c)return!1}return!0}function xD(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var wD="[object Arguments]",jD="[object Boolean]",OD="[object Date]",SD="[object Map]",AD="[object Number]",_D="[object Object]",PD="[object RegExp]",$D="[object Set]",TD="[object String]",ND=Array.isArray,gh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,bh=Object.assign,ED=Object.prototype.toString.call.bind(Object.prototype.toString);function CD(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(d,f,h){if(d===f)return!0;if(d==null||f==null||typeof d!="object"||typeof f!="object")return d!==d&&f!==f;var p=d.constructor;if(p!==f.constructor)return!1;if(p===Object)return i(d,f,h);if(ND(d))return t(d,f,h);if(gh!=null&&gh(d))return c(d,f,h);if(p===Date)return r(d,f,h);if(p===RegExp)return o(d,f,h);if(p===Map)return n(d,f,h);if(p===Set)return s(d,f,h);var m=ED(d);return m===OD?r(d,f,h):m===PD?o(d,f,h):m===SD?n(d,f,h):m===$D?s(d,f,h):m===_D?typeof d.then!="function"&&typeof f.then!="function"&&i(d,f,h):m===wD?i(d,f,h):m===jD||m===AD||m===TD?a(d,f,h):!1}}function kD(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Gn:mD,areDatesEqual:vD,areMapsEqual:n?dh(vh,Gn):vh,areObjectsEqual:n?Gn:yD,arePrimitiveWrappersEqual:gD,areRegExpsEqual:bD,areSetsEqual:n?dh(yh,Gn):yh,areTypedArraysEqual:n?Gn:xD};if(r&&(i=bh({},i,r(i))),t){var a=oa(i.areArraysEqual),o=oa(i.areMapsEqual),s=oa(i.areObjectsEqual),c=oa(i.areSetsEqual);i=bh({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:c})}return i}function MD(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function ID(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(c,l){var d=n(),f=d.cache,h=f===void 0?t?new WeakMap:void 0:f,p=d.meta;return r(c,l,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(c,l){return r(c,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(c,l){return r(c,l,o)}}var DD=ar();ar({strict:!0});ar({circular:!0});ar({circular:!0,strict:!0});ar({createInternalComparator:function(){return Mn}});ar({strict:!0,createInternalComparator:function(){return Mn}});ar({circular:!0,createInternalComparator:function(){return Mn}});ar({circular:!0,createInternalComparator:function(){return Mn},strict:!0});function ar(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=kD(e),c=CD(s),l=n?n(c):MD(c);return ID({circular:r,comparator:c,createState:i,equals:l,strict:o})}function RD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function xh(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):RD(i)};requestAnimationFrame(n)}function Rc(e){"@babel/helpers - typeof";return Rc=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},Rc(e)}function LD(e){return UD(e)||zD(e)||FD(e)||BD()}function BD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FD(e,t){if(e){if(typeof e=="string")return wh(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 wh(e,t)}}function wh(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 zD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UD(e){if(Array.isArray(e))return e}function WD(){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=LD(o),c=s[0],l=s.slice(1);if(typeof c=="number"){xh(i.bind(null,l),c);return}i(c),xh(i.bind(null,l));return}Rc(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 _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 jh(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 Oh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 58,356 bytes, lines 88-106
88t%2?jh(Object(r),!0).forEach(function(n){by(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function by(e,t,r){return t=GD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GD(e){var t=qD(e,"string");return _i(t)==="symbol"?t:String(t)}function qD(e,t){if(_i(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_i(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HD=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},KD=function(t){return t},VD=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Zn=function(t,r){return Object.keys(r).reduce(function(n,i){return Oh(Oh({},n),{},by({},i,t(i,r[i])))},{})},Sh=function(t,r,n){return t.map(function(i){return"".concat(VD(i)," ").concat(r,"ms ").concat(n)}).join(",")};function XD(e,t){return JD(e)||ZD(e,t)||xy(e,t)||YD()}function YD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 89In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function JD(e){if(Array.isArray(e))return e}function QD(e){return rR(e)||tR(e)||xy(e)||eR()}function eR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 90In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xy(e,t){if(e){if(typeof e=="string")return Lc(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 Lc(e,t)}}function tR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rR(e){if(Array.isArray(e))return Lc(e)}function Lc(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 Ua=1e-4,wy=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},jy=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Ah=function(t,r){return function(n){var i=wy(t,r);return jy(i,n)}},nR=function(t,r){return function(n){var i=wy(t,r),a=[].concat(QD(i.map(function(o,s){return o*s}).slice(1)),[0]);return jy(a,n)}},_h=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 c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var l=c[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),d=XD(l,4);i=d[0],a=d[1],o=d[2],s=d[3]}}}var f=Ah(i,o),h=Ah(a,s),p=nR(i,o),m=function(x){return x>1?1:x<0?0:x},v=function(x){for(var g=x>1?1:x,w=g,S=0;S<8;++S){var b=f(w)-g,j=p(w);if(Math.abs(b-g)<Ua||j<Ua)return h(w);w=m(w-b/j)}return h(w)};return v.isStepper=!1,v},iR=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,c=function(d,f,h){var p=-(d-f)*n,m=h*a,v=h+(p-m)*s/1e3,y=h*s/1e3+d;return Math.abs(y-f)<Ua&&Math.abs(v)<Ua?[f,0]:[y,v]};return c.isStepper=!0,c.dt=s,c},aR=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 _h(i);case"spring":return iR();default:if(i.split("(")[0]==="cubic-bezier")return _h(i)}return typeof i=="function"?i:null};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 Ph(e){return cR(e)||sR(e)||Oy(e)||oR()}function oR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 91In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cR(e){if(Array.isArray(e))return Fc(e)}function $h(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?$h(Object(r),!0).forEach(function(n){Bc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bc(e,t,r){return t=lR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lR(e){var t=uR(e,"string");return Pi(t)==="symbol"?t:String(t)}function uR(e,t){if(Pi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fR(e,t){return pR(e)||hR(e,t)||Oy(e,t)||dR()}function dR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 92In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oy(e,t){if(e){if(typeof e=="string")return Fc(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 Fc(e,t)}}function Fc(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 hR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function pR(e){if(Array.isArray(e))return e}var Wa=function(t,r,n){return t+(r-t)*n},zc=function(t){var r=t.from,n=t.to;return r!==n},mR=function e(t,r,n){var i=Zn(function(a,o){if(zc(o)){var s=t(o.from,o.to,o.velocity),c=fR(s,2),l=c[0],d=c[1];return Be(Be({},o),{},{from:l,velocity:d})}return o},r);return n<1?Zn(function(a,o){return zc(o)?Be(Be({},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 vR=function(e,t,r,n,i){var a=HD(e,t),o=a.reduce(function(y,x){return Be(Be({},y),{},Bc({},x,[e[x],t[x]]))},{}),s=a.reduce(function(y,x){return Be(Be({},y),{},Bc({},x,{from:e[x],velocity:0,to:t[x]}))},{}),c=-1,l,d,f=function(){return null},h=function(){return Zn(function(x,g){return g.from},s)},p=function(){return!Object.values(s).filter(zc).length},m=function(x){l||(l=x);var g=x-l,w=g/r.dt;s=mR(r,s,w),i(Be(Be(Be({},e),t),h())),l=x,p()||(c=requestAnimationFrame(f))},v=function(x){d||(d=x);var g=(x-d)/n,w=Zn(function(b,j){return Wa.apply(void 0,Ph(j).concat([r(g)]))},o);if(i(Be(Be(Be({},e),t),w)),g<1)c=requestAnimationFrame(f);else{var S=Zn(function(b,j){return Wa.apply(void 0,Ph(j).concat([r(1)]))},o);i(Be(Be(Be({},e),t),S))}};return f=r.isStepper?m:v,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}};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)}var yR=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function gR(e,t){if(e==null)return{};var r=bR(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 bR(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 Ts(e){return OR(e)||jR(e)||wR(e)||xR()}function xR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 93In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wR(e,t){if(e){if(typeof e=="string")return Uc(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 Uc(e,t)}}function jR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OR(e){if(Array.isArray(e))return Uc(e)}function Uc(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 Th(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 pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Th(Object(r),!0).forEach(function(n){Kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Th(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kn(e,t,r){return t=Sy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AR(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,Sy(n.key),n)}}function _R(e,t,r){return t&&AR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sy(e){var t=PR(e,"string");return sn(t)==="symbol"?t:String(t)}function PR(e,t){if(sn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(sn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $R(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wc(e,t)}function Wc(e,t){return Wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wc(e,t)}function TR(e){var t=NR();return function(){var n=Ga(e),i;if(t){var a=Ga(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Gc(this,i)}}function Gc(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 qc(e)}function qc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NR(){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 Ga(e){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ga(e)}var Ut=function(e){$R(r,e);var t=TR(r);function r(n,i){var a;SR(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,c=o.attributeName,l=o.from,d=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(qc(a)),a.changeStyle=a.changeStyle.bind(qc(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:d}),Gc(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof h=="function")return a.state={style:l},Gc(a);a.state={style:c?Kn({},c,l):l}}else a.state={style:{}};return a}return _R(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,c=a.attributeName,l=a.shouldReAnimate,d=a.to,f=a.from,h=this.state.style;if(s){if(!o){var p={style:c?Kn({},c,d):d};this.state&&h&&(c&&h[c]!==d||!c&&h!==d)&&this.setState(p);return}if(!(DD(i.to,d)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||l?f:i.to;if(this.state&&h){var y={style:c?Kn({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(y)}this.runAnimation(pt(pt({},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,c=i.duration,l=i.easing,d=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=vR(o,s,aR(l),c,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([h,d,m,c,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,c=i.onAnimationStart,l=o[0],d=l.style,f=l.duration,h=f===void 0?0:f,p=function(v,y,x){if(x===0)return v;var g=y.duration,w=y.easing,S=w===void 0?"ease":w,b=y.style,j=y.properties,O=y.onAnimationEnd,_=x>0?o[x-1]:y,A=j||Object.keys(b);if(typeof S=="function"||S==="spring")return[].concat(Ts(v),[a.runJSAnimation.bind(a,{from:_.style,to:b,duration:g,easing:S}),g]);var T=Sh(A,g,S),$=pt(pt(pt({},_.style),b),{},{transition:T});return[].concat(Ts(v),[$,g,O]).filter(KD)};return this.manager.start([c].concat(Ts(o.reduce(p,[d,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=WD());var a=i.begin,o=i.duration,s=i.attributeName,c=i.to,l=i.easing,d=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=s?Kn({},s,c):c,y=Sh(Object.keys(v),o,l);m.start([d,a,pt(pt({},v),{},{transition:y}),o,f])}},{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 c=gR(i,yR),l=C.Children.count(a),d=this.state.style;if(typeof a=="function")return a(d);if(!s||l===0||o<=0)return a;var f=function(p){var m=p.props,v=m.style,y=v===void 0?{}:v,x=m.className,g=C.cloneElement(p,pt(pt({},c),{},{style:pt(pt({},y),d),className:x}));return g};return l===1?f(C.Children.only(a)):P.createElement("div",null,C.Children.map(a,function(h){return f(h)}))}}]),r}(C.PureComponent);Ut.displayName="Animate";Ut.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ut.propTypes={from:se.oneOfType([se.object,se.string]),to:se.oneOfType([se.object,se.string]),attributeName:se.string,duration:se.number,begin:se.number,easing:se.oneOfType([se.string,se.func]),steps:se.arrayOf(se.shape({duration:se.number.isRequired,style:se.object.isRequired,easing:se.oneOfType([se.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),se.func]),properties:se.arrayOf("string"),onAnimationEnd:se.func})),children:se.oneOfType([se.node,se.func]),isActive:se.bool,canBegin:se.bool,onAnimationEnd:se.func,shouldReAnimate:se.bool,onAnimationStart:se.func,onAnimationReStart:se.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 qa(){return qa=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},qa.apply(this,arguments)}function ER(e,t){return IR(e)||MR(e,t)||kR(e,t)||CR()}function CR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 94In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kR(e,t){if(e){if(typeof e=="string")return Nh(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 Nh(e,t)}}function Nh(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 MR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function IR(e){if(Array.isArray(e))return e}function Eh(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 Ch(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(r),!0).forEach(function(n){DR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DR(e,t,r){return t=RR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RR(e){var t=LR(e,"string");return $i(t)=="symbol"?t:t+""}function LR(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kh=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,c=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,d;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];d="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(t+c*f[0],",").concat(r)),d+="L ".concat(t+n-c*f[1],",").concat(r),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`, 95 `).concat(t+n,",").concat(r+s*f[1])),d+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`, 96 `).concat(t+n-c*f[2],",").concat(r+i)),d+="L ".concat(t+c*f[3],",").concat(r+i),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`, 97 `).concat(t,",").concat(r+i-s*f[3])),d+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);d="M ".concat(t,",").concat(r+s*m,` 98 A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(t+c*m,",").concat(r,` 99 L `).concat(t+n-c*m,",").concat(r,` 100 A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(t+n,",").concat(r+s*m,` 101 L `).concat(t+n,",").concat(r+i-s*m,` 102 A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(t+n-c*m,",").concat(r+i,` 103 L `).concat(t+c*m,",").concat(r+i,` 104 A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(t,",").concat(r+i-s*m," Z")}else d="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return d},BR=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,c=r.height;if(Math.abs(s)>0&&Math.abs(c)>0){var l=Math.min(a,a+s),d=Math.max(a,a+s),f=Math.min(o,o+c),h=Math.max(o,o+c);return n>=l&&n<=d&&i>=f&&i<=h}return!1},FR={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mu=function(t){var r=Ch(Ch({},FR),t),n=C.useRef(),i=C.useState(-1),a=ER(i,2),o=a[0],s=a[1];C.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var c=r.x,l=r.y,d=r.width,f=r.height,h=r.radius,p=r.className,m=r.animationEasing,v=r.animationDuration,y=r.animationBegin,x=r.isAnimationActive,g=r.isUpdateAnimationActive;if(c!==+c||l!==+l||d!==+d||f!==+f||d===0||f===0)return null;var w=te("recharts-rectangle",p);return g?P.createElement(Ut,{canBegin:o>0,from:{width:d,height:f,x:c,y:l},to:{width:d,height:f,x:c,y:l},duration:v,animationEasing:m,isActive:g},function(S){var b=S.width,j=S.height,O=S.x,_=S.y;return P.createElement(Ut,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:x,easing:m},P.createElement("path",qa({},X(r,!0),{className:w,d:kh(O,_,b,j,h),ref:n})))}):P.createElement("path",qa({},X(r,!0),{className:w,d:kh(c,l,d,f,h)}))},zR=["points","className","baseLinePoints","connectNulls"];function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Br.apply(this,arguments)}function UR(e,t){if(e==null)return{};var r=WR(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 WR(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 Mh(e){return KR(e)||HR(e)||qR(e)||GR()}function GR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 105In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qR(e,t){if(e){if(typeof e=="string")return Hc(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 Hc(e,t)}}function HR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KR(e){if(Array.isArray(e))return Hc(e)}function Hc(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 Ih=function(t){return t&&t.x===+t.x&&t.y===+t.y},VR=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Ih(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Ih(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Jn=function(t,r){var n=VR(t);r&&(n=[n.reduce(function(a,o){return[].concat(Mh(a),Mh(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,c){return"".concat(o).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},XR=function(t,r,n){var i=Jn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Jn(r.reverse(),n).slice(1))},YR=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=UR(t,zR);if(!r||!r.length)return null;var s=te("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",l=XR(r,i,a);return P.createElement("g",{className:s},P.createElement("path",Br({},X(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:l})),c?P.createElement("path",Br({},X(o,!0),{fill:"none",d:Jn(r,a)})):null,c?P.createElement("path",Br({},X(o,!0),{fill:"none",d:Jn(i,a)})):null)}var d=Jn(r,a);return P.createElement("path",Br({},X(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",className:s,d}))};function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kc.apply(this,arguments)}var vu=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=te("recharts-dot",a);return r===+r&&n===+n&&i===+i?C.createElement("circle",Kc({},X(t,!1),da(t),{className:o,cx:r,cy:n,r:i})):null};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)}var ZR=["x","y","top","left","width","height","className"];function Vc(){return Vc=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},Vc.apply(this,arguments)}function Dh(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 JR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dh(Object(r),!0).forEach(function(n){QR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QR(e,t,r){return t=eL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eL(e){var t=tL(e,"string");return Ti(t)=="symbol"?t:t+""}function tL(e,t){if(Ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rL(e,t){if(e==null)return{};var r=nL(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 nL(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 iL=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},aL=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,c=t.left,l=c===void 0?0:c,d=t.width,f=d===void 0?0:d,h=t.height,p=h===void 0?0:h,m=t.className,v=rL(t,ZR),y=JR({x:n,y:a,top:s,left:l,width:f,height:p},v);return!B(n)||!B(a)||!B(f)||!B(p)||!B(s)||!B(l)?null:P.createElement("path",Vc({},X(y,!0),{className:te("recharts-cross",m),d:iL(n,a,f,p,s,l)}))},oL=zo,sL=Iv,cL=Tt;function lL(e,t){return e&&e.length?oL(e,cL(t),sL):void 0}var uL=lL;const fL=fe(uL);var dL=zo,hL=Tt,pL=Dv;function mL(e,t){return e&&e.length?dL(e,hL(t),pL):void 0}var vL=mL;const yL=fe(vL);var gL=["cx","cy","angle","ticks","axisLine"],bL=["ticks","tick","angle","tickFormatter","stroke"];function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function Qn(){return Qn=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},Qn.apply(this,arguments)}function Rh(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 fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rh(Object(r),!0).forEach(function(n){Vo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lh(e,t){if(e==null)return{};var r=xL(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 xL(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 wL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bh(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,_y(n.key),n)}}function jL(e,t,r){return t&&Bh(e.prototype,t),r&&Bh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OL(e,t,r){return t=Ha(t),SL(e,Ay()?Reflect.construct(t,r||[],Ha(e).constructor):t.apply(e,r))}function SL(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AL(e)}function AL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ay(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ay=function(){return!!e})()}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ha(e)}function _L(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&&Xc(e,t)}function Xc(e,t){return Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xc(e,t)}function Vo(e,t,r){return t=_y(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _y(e){var t=PL(e,"string");return cn(t)=="symbol"?t:t+""}function PL(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xo=function(e){function t(){return wL(this,t),OL(this,t,arguments)}return _L(t,e),jL(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,c=a.cy;return ve(s,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=fL(s,function(d){return d.coordinate||0}),l=yL(s,function(d){return d.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:l.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=n.axisLine,l=Lh(n,gL),d=s.reduce(function(m,v){return[Math.min(m[0],v.coordinate),Math.max(m[1],v.coordinate)]},[1/0,-1/0]),f=ve(i,a,d[0],o),h=ve(i,a,d[1],o),p=fr(fr(fr({},X(l,!1)),{},{fill:"none"},X(c,!1)),{},{x1:f.x,y1:f.y,x2:h.x,y2:h.y});return P.createElement("line",Qn({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,c=i.tickFormatter,l=i.stroke,d=Lh(i,bL),f=this.getTickTextAnchor(),h=X(d,!1),p=X(o,!1),m=a.map(function(v,y){var x=n.getTickValueCoord(v),g=fr(fr(fr(fr({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(x.x,", ").concat(x.y,")")},h),{},{stroke:"none",fill:l},p),{},{index:y},x),{},{payload:v});return P.createElement(ce,Qn({className:te("recharts-polar-radius-axis-tick",uy(o)),key:"tick-".concat(v.coordinate)},Ar(n.props,v,y)),t.renderTickItem(o,g,c?c(v.value,y):v.value))});return P.createElement(ce,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:P.createElement(ce,{className:te("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Re.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):Y(n)?o=n(i):o=P.createElement(_r,Qn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(C.PureComponent);Vo(Xo,"displayName","PolarRadiusAxis");Vo(Xo,"axisType","radiusAxis");Vo(Xo,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function ln(e){"@babel/helpers - typeof";return ln=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},ln(e)}function vr(){return vr=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},vr.apply(this,arguments)}function Fh(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 dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fh(Object(r),!0).forEach(function(n){Yo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zh(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,$y(n.key),n)}}function TL(e,t,r){return t&&zh(e.prototype,t),r&&zh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NL(e,t,r){return t=Ka(t),EL(e,Py()?Reflect.construct(t,r||[],Ka(e).constructor):t.apply(e,r))}function EL(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CL(e)}function CL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Py(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Py=function(){return!!e})()}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ka(e)}function kL(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&&Yc(e,t)}function Yc(e,t){return Yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yc(e,t)}function Yo(e,t,r){return t=$y(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $y(e){var t=ML(e,"string");return ln(t)=="symbol"?t:t+""}function ML(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IL=Math.PI/180,Uh=1e-5,Zo=function(e){function t(){return $L(this,t),NL(this,t,arguments)}return kL(t,e),TL(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,c=i.orientation,l=i.tickSize,d=l||8,f=ve(a,o,s,n.coordinate),h=ve(a,o,s+(c==="inner"?-1:1)*d,n.coordinate);return{x1:f.x,y1:f.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*IL),o;return a>Uh?o=i==="outer"?"start":"end":a<-Uh?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,c=n.axisLineType,l=dr(dr({},X(this.props,!1)),{},{fill:"none"},X(s,!1));if(c==="circle")return P.createElement(vu,vr({className:"recharts-polar-angle-axis-line"},l,{cx:i,cy:a,r:o}));var d=this.props.ticks,f=d.map(function(h){return ve(i,a,o,h.coordinate)});return P.createElement(YR,vr({className:"recharts-polar-angle-axis-line"},l,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,c=i.tickFormatter,l=i.stroke,d=X(this.props,!1),f=X(o,!1),h=dr(dr({},d),{},{fill:"none"},X(s,!1)),p=a.map(function(m,v){var y=n.getTickLineCoord(m),x=n.getTickTextAnchor(m),g=dr(dr(dr({textAnchor:x},d),{},{stroke:"none",fill:l},f),{},{index:v,payload:m,x:y.x2,y:y.y2});return P.createElement(ce,vr({className:te("recharts-polar-angle-axis-tick",uy(o)),key:"tick-".concat(m.coordinate)},Ar(n.props,m,v)),s&&P.createElement("line",vr({className:"recharts-polar-angle-axis-tick-line"},h,y)),o&&t.renderTickItem(o,g,c?c(m.value,v):m.value))});return P.createElement(ce,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:P.createElement(ce,{className:te("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):Y(n)?o=n(i):o=P.createElement(_r,vr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(C.PureComponent);Yo(Zo,"displayName","PolarAngleAxis");Yo(Zo,"axisType","angleAxis");Yo(Zo,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var DL=Em,RL=DL(Object.getPrototypeOf,Object),LL=RL,BL=Wt,FL=LL,zL=Gt,UL="[object Object]",WL=Function.prototype,GL=Object.prototype,Ty=WL.toString,qL=GL.hasOwnProperty,HL=Ty.call(Object);function KL(e){if(!zL(e)||BL(e)!=UL)return!1;var t=FL(e);if(t===null)return!0;var r=qL.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ty.call(r)==HL}var VL=KL;const XL=fe(VL);var YL=Wt,ZL=Gt,JL="[object Boolean]";function QL(e){return e===!0||e===!1||ZL(e)&&YL(e)==JL}var eB=QL;const tB=fe(eB);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 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 rB(e,t){return oB(e)||aB(e,t)||iB(e,t)||nB()}function nB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 106In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iB(e,t){if(e){if(typeof e=="string")return Wh(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 Wh(e,t)}}function Wh(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 aB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function oB(e){if(Array.isArray(e))return e}function Gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gh(Object(r),!0).forEach(function(n){sB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sB(e,t,r){return t=cB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cB(e){var t=lB(e,"string");return Ni(t)=="symbol"?t:t+""}function lB(e,t){if(Ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hh=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},uB={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},fB=function(t){var r=qh(qh({},uB),t),n=C.useRef(),i=C.useState(-1),a=rB(i,2),o=a[0],s=a[1];C.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var c=r.x,l=r.y,d=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,m=r.animationEasing,v=r.animationDuration,y=r.animationBegin,x=r.isUpdateAnimationActive;if(c!==+c||l!==+l||d!==+d||f!==+f||h!==+h||d===0&&f===0||h===0)return null;var g=te("recharts-trapezoid",p);return x?P.createElement(Ut,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:l},to:{upperWidth:d,lowerWidth:f,height:h,x:c,y:l},duration:v,animationEasing:m,isActive:x},function(w){var S=w.upperWidth,b=w.lowerWidth,j=w.height,O=w.x,_=w.y;return P.createElement(Ut,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,easing:m},P.createElement("path",Va({},X(r,!0),{className:g,d:Hh(O,_,S,b,j),ref:n})))}):P.createElement("g",null,P.createElement("path",Va({},X(r,!0),{className:g,d:Hh(c,l,d,f,h)})))},dB=["option","shapeType","propTransformer","activeClassName","isActive"];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 hB(e,t){if(e==null)return{};var r=pB(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 pB(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 Kh(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 Xa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kh(Object(r),!0).forEach(function(n){mB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mB(e,t,r){return t=vB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vB(e){var t=yB(e,"string");return Ei(t)=="symbol"?t:t+""}function yB(e,t){if(Ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gB(e,t){return Xa(Xa({},t),e)}function bB(e,t){return e==="symbols"}function Vh(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(mu,r);case"trapezoid":return P.createElement(fB,r);case"sector":return P.createElement(hy,r);case"symbols":if(bB(t))return P.createElement(Ml,r);break;default:return null}}function xB(e){return C.isValidElement(e)?e.props:e}function Ny(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?gB:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,c=hB(e,dB),l;if(C.isValidElement(t))l=C.cloneElement(t,Xa(Xa({},c),xB(t)));else if(Y(t))l=t(c);else if(XL(t)&&!tB(t)){var d=i(t,c);l=P.createElement(Vh,{shapeType:r,elementProps:d})}else{var f=c;l=P.createElement(Vh,{shapeType:r,elementProps:f})}return s?P.createElement(ce,{className:o},l):l}function Jo(e,t){return t!=null&&"trapezoids"in e.props}function Qo(e,t){return t!=null&&"sectors"in e.props}function Ci(e,t){return t!=null&&"points"in e.props}function wB(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 jB(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function OB(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function SB(e,t){var r;return Jo(e,t)?r=wB:Qo(e,t)?r=jB:Ci(e,t)&&(r=OB),r}function AB(e,t){var r;return Jo(e,t)?r="trapezoids":Qo(e,t)?r="sectors":Ci(e,t)&&(r="points"),r}function _B(e,t){if(Jo(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(Qo(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 Ci(e,t)?t.payload:{}}function PB(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=AB(r,t),a=_B(r,t),o=n.filter(function(c,l){var d=Go(a,c),f=r.props[i].filter(function(m){var v=SB(r,t);return v(m,t)}),h=r.props[i].indexOf(f[f.length-1]),p=l===h;return d&&p}),s=n.indexOf(o[o.length-1]);return s}var fa;function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function Fr(){return Fr=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},Fr.apply(this,arguments)}function Xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xh(Object(r),!0).forEach(function(n){ct(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yh(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,Cy(n.key),n)}}function TB(e,t,r){return t&&Yh(e.prototype,t),r&&Yh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NB(e,t,r){return t=Ya(t),EB(e,Ey()?Reflect.construct(t,r||[],Ya(e).constructor):t.apply(e,r))}function EB(e,t){if(t&&(un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CB(e)}function CB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ey(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ey=function(){return!!e})()}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ya(e)}function kB(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&&Zc(e,t)}function Zc(e,t){return Zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zc(e,t)}function ct(e,t,r){return t=Cy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cy(e){var t=MB(e,"string");return un(t)=="symbol"?t:t+""}function MB(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pt=function(e){function t(r){var n;return $B(this,t),n=NB(this,t,[r]),ct(n,"pieRef",null),ct(n,"sectorRefs",[]),ct(n,"id",zi("recharts-pie-")),ct(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Y(i)&&i()}),ct(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Y(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return kB(t,e),TB(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,c=a.dataKey,l=a.valueKey,d=X(this.props,!1),f=X(o,!1),h=X(s,!1),p=o&&o.offsetRadius||20,m=n.map(function(v,y){var x=(v.startAngle+v.endAngle)/2,g=ve(v.cx,v.cy,v.outerRadius+p,x),w=pe(pe(pe(pe({},d),v),{},{stroke:"none"},f),{},{index:y,textAnchor:t.getTextAnchor(g.x,v.cx)},g),S=pe(pe(pe(pe({},d),v),{},{fill:"none",stroke:v.fill},h),{},{index:y,points:[ve(v.cx,v.cy,v.outerRadius,x),g]}),b=c;return re(c)&&re(l)?b="value":re(c)&&(b=l),P.createElement(ce,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(y)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(o,w,Ge(v,b)))});return P.createElement(ce,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,c=a.inactiveShape;return n.map(function(l,d){if((l==null?void 0:l.startAngle)===0&&(l==null?void 0:l.endAngle)===0&&n.length!==1)return null;var f=i.isActiveIndex(d),h=c&&i.hasActiveIndex()?c:null,p=f?o:h,m=pe(pe({},l),{},{stroke:s?l.fill:l.stroke,tabIndex:-1});return P.createElement(ce,Fr({ref:function(y){y&&!i.sectorRefs.includes(y)&&i.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},Ar(i.props,l,d),{key:"sector-".concat(l==null?void 0:l.startAngle,"-").concat(l==null?void 0:l.endAngle,"-").concat(l.midAngle,"-").concat(d)}),P.createElement(Ny,Fr({option:p,isActive:f,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,l=i.animationEasing,d=i.animationId,f=this.state,h=f.prevSectors,p=f.prevIsAnimationActive;return P.createElement(Ut,{begin:s,duration:c,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var v=m.t,y=[],x=a&&a[0],g=x.startAngle;return a.forEach(function(w,S){var b=h&&h[S],j=S>0?rt(w,"paddingAngle",0):0;if(b){var O=Kt(b.endAngle-b.startAngle,w.endAngle-w.startAngle),_=pe(pe({},w),{},{startAngle:g+j,endAngle:g+O(v)+j});y.push(_),g=_.endAngle}else{var A=w.endAngle,T=w.startAngle,$=Kt(0,A-T),N=$(v),M=pe(pe({},w),{},{startAngle:g+j,endAngle:g+N+j});y.push(M),g=M.endAngle}}),P.createElement(ce,null,n.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Go(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,c=i.label,l=i.cx,d=i.cy,f=i.innerRadius,h=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!B(l)||!B(d)||!B(f)||!B(h))return null;var v=te("recharts-pie",s);return P.createElement(ce,{tabIndex:this.props.rootTabIndex,className:v,ref:function(x){n.pieRef=x}},this.renderSectors(),c&&this.renderLabels(o),Re.renderCallByParent(this.props,null,!1),(!p||m)&&er.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);if(Y(n))return n(i);var o=te("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(Dc,Fr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);var o=a;if(Y(n)&&(o=n(i),P.isValidElement(o)))return o;var s=te("recharts-pie-label-text",typeof n!="boolean"&&!Y(n)?n.className:"");return P.createElement(_r,Fr({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(C.PureComponent);fa=Pt;ct(Pt,"displayName","Pie");ct(Pt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Dt.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ct(Pt,"parseDeltaAngle",function(e,t){var r=qe(t-e),n=Math.min(Math.abs(t-e),360);return r*n});ct(Pt,"getRealPieData",function(e){var t=e.data,r=e.children,n=X(e,!1),i=ut(r,ci);return t&&t.length?t.map(function(a,o){return pe(pe(pe({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return pe(pe({},n),a.props)}):[]});ct(Pt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=ly(i,a),s=n+He(e.cx,i,i/2),c=r+He(e.cy,a,a/2),l=He(e.innerRadius,o,0),d=He(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:c,innerRadius:l,outerRadius:d,maxRadius:f}});ct(Pt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?pe(pe({},t.type.defaultProps),t.props):t.props,i=fa.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,c=n.paddingAngle,l=n.dataKey,d=n.nameKey,f=n.valueKey,h=n.tooltipType,p=Math.abs(n.minAngle),m=fa.parseCoordinateOfPie(n,r),v=fa.parseDeltaAngle(o,s),y=Math.abs(v),x=l;re(l)&&re(f)?(xt(!1,`Use "dataKey" to specify the value of pie,
107 the props "valueKey" will be deprecated in 1.1.0`),x="value"):re(l)&&(xt(!1,`Use "dataKey" to specify the value of pie, 108 the props "valueKey" will be deprecated in 1.1.0`),x=f);var g=i.filter(function(_){return Ge(_,x,0)!==0}).length,w=(y>=360?g:g-1)*c,S=y-g*p-w,b=i.reduce(function(_,A){var T=Ge(A,x,0);return _+(B(T)?T:0)},0),j;if(b>0){var O;j=i.map(function(_,A){var T=Ge(_,x,0),$=Ge(_,d,A),N=(B(T)?T:0)/b,M;A?M=O.endAngle+qe(v)*c*(T!==0?1:0):M=o;var I=M+qe(v)*((T!==0?p:0)+N*S),k=(M+I)/2,D=(m.innerRadius+m.outerRadius)/2,R=[{name:$,value:T,payload:_,dataKey:x,type:h}],F=ve(m.cx,m.cy,D,k);return O=pe(pe(pe({percent:N,cornerRadius:a,name:$,tooltipPayload:R,midAngle:k,middleRadius:D,tooltipPosition:F},_),m),{},{value:Ge(_,x),startAngle:M,endAngle:I,payload:_,paddingAngle:qe(v)*c}),O})}return pe(pe({},m),{},{sectors:j,data:i})});var IB=Math.ceil,DB=Math.max;function RB(e,t,r,n){for(var i=-1,a=DB(IB((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var LB=RB,BB=Ym,Zh=1/0,FB=17976931348623157e292;function zB(e){if(!e)return e===0?e:0;if(e=BB(e),e===Zh||e===-Zh){var t=e<0?-1:1;return t*FB}return e===e?e:0}var ky=zB,UB=LB,WB=Mo,Ns=ky;function GB(e){return function(t,r,n){return n&&typeof n!="number"&&WB(t,r,n)&&(r=n=void 0),t=Ns(t),r===void 0?(r=t,t=0):r=Ns(r),n=n===void 0?t<r?1:-1:Ns(n),UB(t,r,n,e)}}var qB=GB,HB=qB,KB=HB(),VB=KB;const Za=fe(VB);function ki(e){"@babel/helpers - typeof";return ki=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},ki(e)}function Jh(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 Qh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jh(Object(r),!0).forEach(function(n){My(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function My(e,t,r){return t=XB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XB(e){var t=YB(e,"string");return ki(t)=="symbol"?t:t+""}function YB(e,t){if(ki(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZB=["Webkit","Moz","O","ms"],JB=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=ZB.reduce(function(a,o){return Qh(Qh({},a),{},My({},o+n,r))},{});return i[t]=r,i};function fn(e){"@babel/helpers - typeof";return fn=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},fn(e)}function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ja.apply(this,arguments)}function ep(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ep(Object(r),!0).forEach(function(n){Qe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tp(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,Dy(n.key),n)}}function e4(e,t,r){return t&&tp(e.prototype,t),r&&tp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function t4(e,t,r){return t=Qa(t),r4(e,Iy()?Reflect.construct(t,r||[],Qa(e).constructor):t.apply(e,r))}function r4(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n4(e)}function n4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iy=function(){return!!e})()}
vendor: 113,642 bytes, lines 108-112
108function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qa(e)}function i4(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&&Jc(e,t)}function Jc(e,t){return Jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jc(e,t)}function Qe(e,t,r){return t=Dy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dy(e){var t=a4(e,"string");return fn(t)=="symbol"?t:t+""}function a4(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o4=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 c=r.length,l=Xn().domain(Za(0,c)).range([a,a+o-s]),d=l.domain().map(function(f){return l(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(i),scale:l,scaleValues:d}},rp=function(t){return t.changedTouches&&!!t.changedTouches.length},dn=function(e){function t(r){var n;return QB(this,t),n=t4(this,t,[r]),Qe(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Qe(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Qe(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Qe(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Qe(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Qe(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Qe(n,"handleSlideDragStart",function(i){var a=rp(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 i4(t,e),e4(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,c=s.gap,l=s.data,d=l.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),m=t.getIndexInRange(o,h);return{startIndex:p-p%c,endIndex:m===d?d:m-m%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,c=Ge(a[n],s,n);return Y(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,c=this.props,l=c.x,d=c.width,f=c.travellerWidth,h=c.startIndex,p=c.endIndex,m=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,l+d-f-s,l+d-f-o):v<0&&(v=Math.max(v,l-o,l-s));var y=this.getIndex({startX:o+v,endX:s+v});(y.startIndex!==h||y.endIndex!==p)&&m&&m(y),this.setState({startX:o+v,endX:s+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=rp(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,c=i.startX,l=this.state[o],d=this.props,f=d.x,h=d.width,p=d.travellerWidth,m=d.onChange,v=d.gap,y=d.data,x={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,f+h-p-l):g<0&&(g=Math.max(g,f-l)),x[o]=l+g;var w=this.getIndex(x),S=w.startIndex,b=w.endIndex,j=function(){var _=y.length-1;return o==="startX"&&(s>c?S%v===0:b%v===0)||s<c&&b===_||o==="endX"&&(s>c?b%v===0:S%v===0)||s>c&&b===_};this.setState(Qe(Qe({},o,l+g),"brushMoveStartX",n.pageX),function(){m&&j()&&m(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,c=o.startX,l=o.endX,d=this.state[i],f=s.indexOf(d);if(f!==-1){var h=f+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=l||i==="endX"&&p<=c||this.setState(Qe({},i,p),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,c=n.fill,l=n.stroke;return P.createElement("rect",{stroke:l,fill:c,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,c=n.data,l=n.children,d=n.padding,f=C.Children.only(l);return f?P.cloneElement(f,{x:i,y:a,width:o,height:s,margin:d,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,c=this.props,l=c.y,d=c.travellerWidth,f=c.height,h=c.traveller,p=c.ariaLabel,m=c.data,v=c.startIndex,y=c.endIndex,x=Math.max(n,this.props.x),g=Es(Es({},X(this.props,!1)),{},{x,y:l,width:d,height:f}),w=p||"Min value: ".concat((a=m[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[y])===null||o===void 0?void 0:o.name);return P.createElement(ce,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),s.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,g))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,c=a.stroke,l=a.travellerWidth,d=Math.min(n,i)+l,f=Math.max(Math.abs(i-n)-l,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:d,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,c=n.travellerWidth,l=n.stroke,d=this.state,f=d.startX,h=d.endX,p=5,m={pointerEvents:"none",fill:l};return P.createElement(ce,{className:"recharts-brush-texts"},P.createElement(_r,Ja({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},m),this.getTextOfTick(i)),P.createElement(_r,Ja({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+c+p,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,c=n.y,l=n.width,d=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,m=h.endX,v=h.isTextActive,y=h.isSlideMoving,x=h.isTravellerMoving,g=h.isTravellerFocused;if(!i||!i.length||!B(s)||!B(c)||!B(l)||!B(d)||l<=0||d<=0)return null;var w=te("recharts-brush",a),S=P.Children.count(o)===1,b=JB("userSelect","none");return P.createElement(ce,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(v||y||x||g||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,c=n.stroke,l=Math.floor(a+s/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:s,fill:c,stroke:"none"}),P.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:l+2,x2:i+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):Y(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,c=n.travellerWidth,l=n.updateId,d=n.startIndex,f=n.endIndex;if(a!==i.prevData||l!==i.prevUpdateId)return Es({prevData:a,prevTravellerWidth:c,prevUpdateId:l,prevX:s,prevWidth:o},a&&a.length?o4({data:a,width:o,x:s,travellerWidth:c,startIndex:d,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+o-c]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:l,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var c=Math.floor((o+s)/2);n[c]>i?s=c:o=c}return i>=n[s]?s:o}}])}(C.PureComponent);Qe(dn,"displayName","Brush");Qe(dn,"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 s4=zl;function c4(e,t){var r;return s4(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var l4=c4,u4=Om,f4=Tt,d4=l4,h4=Ze,p4=Mo;function m4(e,t,r){var n=h4(e)?u4:d4;return r&&p4(e,t,r)&&(t=void 0),n(e,f4(t))}var v4=m4;const y4=fe(v4);var At=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},np=qm;function g4(e,t,r){t=="__proto__"&&np?np(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var b4=g4,x4=b4,w4=Wm,j4=Tt;function O4(e,t){var r={};return t=j4(t),w4(e,function(n,i,a){x4(r,i,t(n,i,a))}),r}var S4=O4;const A4=fe(S4);function _4(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var P4=_4,$4=zl;function T4(e,t){var r=!0;return $4(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var N4=T4,E4=P4,C4=N4,k4=Tt,M4=Ze,I4=Mo;function D4(e,t,r){var n=M4(e)?E4:C4;return r&&I4(e,t,r)&&(t=void 0),n(e,k4(t))}var R4=D4;const Ry=fe(R4);var L4=["x","y"];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 Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qc.apply(this,arguments)}function ip(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 qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ip(Object(r),!0).forEach(function(n){B4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ip(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B4(e,t,r){return t=F4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F4(e){var t=z4(e,"string");return Mi(t)=="symbol"?t:t+""}function z4(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U4(e,t){if(e==null)return{};var r=W4(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 W4(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 G4(e,t){var r=e.x,n=e.y,i=U4(e,L4),a="".concat(r),o=parseInt(a,10),s="".concat(n),c=parseInt(s,10),l="".concat(t.height||i.height),d=parseInt(l,10),f="".concat(t.width||i.width),h=parseInt(f,10);return qn(qn(qn(qn(qn({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function ap(e){return P.createElement(Ny,Qc({shapeType:"rectangle",propTransformer:G4,activeClassName:"recharts-active-bar"},e))}var q4=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=B(n)||Pw(n);return a?t(n,i):(a||$r(),r)}},H4=["value","background"],Ly;function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function K4(e,t){if(e==null)return{};var r=V4(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 V4(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 eo(){return eo=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},eo.apply(this,arguments)}function op(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?op(Object(r),!0).forEach(function(n){Jt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):op(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sp(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,Fy(n.key),n)}}function Y4(e,t,r){return t&&sp(e.prototype,t),r&&sp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z4(e,t,r){return t=to(t),J4(e,By()?Reflect.construct(t,r||[],to(e).constructor):t.apply(e,r))}function J4(e,t){if(t&&(hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q4(e)}function Q4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function By(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(By=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(e)}function e5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&el(e,t)}function el(e,t){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},el(e,t)}function Jt(e,t,r){return t=Fy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fy(e){var t=t5(e,"string");return hn(t)=="symbol"?t:t+""}function t5(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var st=function(e){function t(){var r;X4(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Z4(this,t,[].concat(i)),Jt(r,"state",{isAnimationFinished:!1}),Jt(r,"id",zi("recharts-bar-")),Jt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Jt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return e5(t,e),Y4(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,c=a.activeIndex,l=a.activeBar,d=X(this.props,!1);return n&&n.map(function(f,h){var p=h===c,m=p?l:o,v=_e(_e(_e({},d),f),{},{isActive:p,option:m,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(ce,eo({className:"recharts-bar-rectangle"},Ar(i.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),P.createElement(ap,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,c=i.animationBegin,l=i.animationDuration,d=i.animationEasing,f=i.animationId,h=this.state.prevData;return P.createElement(Ut,{begin:c,duration:l,isActive:s,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,v=a.map(function(y,x){var g=h&&h[x];if(g){var w=Kt(g.x,y.x),S=Kt(g.y,y.y),b=Kt(g.width,y.width),j=Kt(g.height,y.height);return _e(_e({},y),{},{x:w(m),y:S(m),width:b(m),height:j(m)})}if(o==="horizontal"){var O=Kt(0,y.height),_=O(m);return _e(_e({},y),{},{y:y.y+y.height-_,height:_})}var A=Kt(0,y.width),T=A(m);return _e(_e({},y),{},{width:T})});return P.createElement(ce,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Go(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,c=X(this.props.background,!1);return a.map(function(l,d){l.value;var f=l.background,h=K4(l,H4);if(!f)return null;var p=_e(_e(_e(_e(_e({},h),{},{fill:"#eee"},f),c),Ar(n.props,l,d)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return P.createElement(ap,eo({key:"background-bar-".concat(d),option:n.props.background,isActive:d===s},p))})}},{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,c=a.yAxis,l=a.layout,d=a.children,f=ut(d,Ko);if(!f)return null;var h=l==="vertical"?o[0].height/2:o[0].width/2,p=function(y,x){var g=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:g,errorVal:Ge(y,x)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(ce,m,f.map(function(v){return P.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:s,yAxis:c,layout:l,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,c=n.yAxis,l=n.left,d=n.top,f=n.width,h=n.height,p=n.isAnimationActive,m=n.background,v=n.id;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,x=te("recharts-bar",o),g=s&&s.allowDataOverflow,w=c&&c.allowDataOverflow,S=g||w,b=re(v)?this.id:v;return P.createElement(ce,{className:x},g||w?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(b)},P.createElement("rect",{x:g?l:l-f/2,y:w?d:d-h/2,width:g?f:f*2,height:w?h:h*2}))):null,P.createElement(ce,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(b,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,b),(!p||y)&&er.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);Ly=st;Jt(st,"displayName","Bar");Jt(st,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Dt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Jt(st,"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,c=e.yAxisTicks,l=e.stackedData,d=e.dataStartIndex,f=e.displayedData,h=e.offset,p=q2(n,r);if(!p)return null;var m=t.layout,v=r.type.defaultProps,y=v!==void 0?_e(_e({},v),r.props):r.props,x=y.dataKey,g=y.children,w=y.minPointSize,S=m==="horizontal"?o:a,b=l?S.scale.domain():null,j=J2({numericAxis:S}),O=ut(g,ci),_=f.map(function(A,T){var $,N,M,I,k,D;l?$=H2(l[d+T],b):($=Ge(A,x),Array.isArray($)||($=[j,$]));var R=q4(w,Ly.defaultProps.minPointSize)($[1],T);if(m==="horizontal"){var F,z=[o.scale($[0]),o.scale($[1])],q=z[0],K=z[1];N=Yd({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:A,index:T}),M=(F=K??q)!==null&&F!==void 0?F:void 0,I=p.size;var W=q-K;if(k=Number.isNaN(W)?0:W,D={x:N,y:o.y,width:I,height:o.height},Math.abs(R)>0&&Math.abs(k)<Math.abs(R)){var V=qe(k||R)*(Math.abs(R)-Math.abs(k));M-=V,k+=V}}else{var ye=[a.scale($[0]),a.scale($[1])],Ae=ye[0],Je=ye[1];if(N=Ae,M=Yd({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:A,index:T}),I=Je-Ae,k=p.size,D={x:a.x,y:M,width:a.width,height:k},Math.abs(R)>0&&Math.abs(I)<Math.abs(R)){var or=qe(I||R)*(Math.abs(R)-Math.abs(I));I+=or}}return _e(_e(_e({},A),{},{x:N,y:M,width:I,height:k,value:l?$:$[1],payload:A,background:D},O&&O[T]&&O[T].props),{},{tooltipPayload:[sy(r,A)],tooltipPosition:{x:N+I/2,y:M+k/2}})});return _e({data:_,layout:m},h)});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 r5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cp(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,zy(n.key),n)}}function n5(e,t,r){return t&&cp(e.prototype,t),r&&cp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lp(Object(r),!0).forEach(function(n){es(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function es(e,t,r){return t=zy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zy(e){var t=i5(e,"string");return Ii(t)=="symbol"?t:t+""}function i5(e,t){if(Ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var a5=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.layout,l=t.children,d=Object.keys(r),f={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},h=!!et(l,st);return d.reduce(function(p,m){var v=r[m],y=v.orientation,x=v.domain,g=v.padding,w=g===void 0?{}:g,S=v.mirror,b=v.reversed,j="".concat(y).concat(S?"Mirror":""),O,_,A,T,$;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var N=x[1]-x[0],M=1/0,I=v.categoricalDomain.sort(Nw);if(I.forEach(function(ye,Ae){Ae>0&&(M=Math.min((ye||0)-(I[Ae-1]||0),M))}),Number.isFinite(M)){var k=M/N,D=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(O=k*D/2),v.padding==="no-gap"){var R=He(t.barCategoryGap,k*D),F=k*D/2;O=F-R-(F-R)/D*R}}}i==="xAxis"?_=[n.left+(w.left||0)+(O||0),n.left+n.width-(w.right||0)-(O||0)]:i==="yAxis"?_=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(O||0),n.top+n.height-(w.bottom||0)-(O||0)]:_=v.range,b&&(_=[_[1],_[0]]);var z=ny(v,a,h),q=z.scale,K=z.realScaleType;q.domain(x).range(_),iy(q);var W=ay(q,mt(mt({},v),{},{realScaleType:K}));i==="xAxis"?($=y==="top"&&!S||y==="bottom"&&S,A=n.left,T=f[j]-$*v.height):i==="yAxis"&&($=y==="left"&&!S||y==="right"&&S,A=f[j]-$*v.width,T=n.top);var V=mt(mt(mt({},v),W),{},{realScaleType:K,x:A,y:T,scale:q,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return V.bandSize=Ba(V,W),!v.hide&&i==="xAxis"?f[j]+=($?-1:1)*V.height:v.hide||(f[j]+=($?-1:1)*V.width),mt(mt({},p),{},es({},m,V))},{})},Uy=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)}},o5=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Uy({x:r,y:n},{x:i,y:a})},Wy=function(){function e(t){r5(this,e),this.scale=t}return n5(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 c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();es(Wy,"EPS",1e-4);var yu=function(t){var r=Object.keys(t).reduce(function(n,i){return mt(mt({},n),{},es({},i,Wy.create(t[i])))},{});return mt(mt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return A4(i,function(c,l){return r[l].apply(c,{bandAware:o,position:s})})},isInRange:function(i){return Ry(i,function(a,o){return r[o].isInRange(a)})}})};function s5(e){return(e%180+180)%180}var c5=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=s5(i),o=a*Math.PI/180,s=Math.atan(n/r),c=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},l5=Tt,u5=Ui,f5=Co;function d5(e){return function(t,r,n){var i=Object(t);if(!u5(t)){var a=l5(r);t=f5(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var h5=d5,p5=ky;function m5(e){var t=p5(e),r=t%1;return t===t?r?t-r:t:0}var v5=m5,y5=Rm,g5=Tt,b5=v5,x5=Math.max;function w5(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:b5(r);return i<0&&(i=x5(n+i,0)),y5(e,g5(t),i)}var j5=w5,O5=h5,S5=j5,A5=O5(S5),_5=A5;const P5=fe(_5);var $5=E0(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("")}),gu=C.createContext(void 0),bu=C.createContext(void 0),Gy=C.createContext(void 0),qy=C.createContext({}),Hy=C.createContext(void 0),Ky=C.createContext(0),Vy=C.createContext(0),up=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,c=t.width,l=t.height,d=$5(a);return P.createElement(gu.Provider,{value:n},P.createElement(bu.Provider,{value:i},P.createElement(qy.Provider,{value:a},P.createElement(Gy.Provider,{value:d},P.createElement(Hy.Provider,{value:o},P.createElement(Ky.Provider,{value:l},P.createElement(Vy.Provider,{value:c},s)))))))},T5=function(){return C.useContext(Hy)},Xy=function(t){var r=C.useContext(gu);r==null&&$r();var n=r[t];return n==null&&$r(),n},N5=function(){var t=C.useContext(gu);return Xt(t)},E5=function(){var t=C.useContext(bu),r=P5(t,function(n){return Ry(n.domain,Number.isFinite)});return r||Xt(t)},Yy=function(t){var r=C.useContext(bu);r==null&&$r();var n=r[t];return n==null&&$r(),n},C5=function(){var t=C.useContext(Gy);return t},k5=function(){return C.useContext(qy)},xu=function(){return C.useContext(Vy)},wu=function(){return C.useContext(Ky)};function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function M5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I5(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,Jy(n.key),n)}}function D5(e,t,r){return t&&I5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R5(e,t,r){return t=ro(t),L5(e,Zy()?Reflect.construct(t,r||[],ro(e).constructor):t.apply(e,r))}function L5(e,t){if(t&&(pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B5(e)}function B5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zy=function(){return!!e})()}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ro(e)}function F5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tl(e,t)}function tl(e,t){return tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tl(e,t)}function fp(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 dp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fp(Object(r),!0).forEach(function(n){ju(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ju(e,t,r){return t=Jy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jy(e){var t=z5(e,"string");return pn(t)=="symbol"?t:t+""}function z5(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U5(e,t){return H5(e)||q5(e,t)||G5(e,t)||W5()}function W5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 109In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G5(e,t){if(e){if(typeof e=="string")return hp(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 hp(e,t)}}function hp(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 q5(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function H5(e){if(Array.isArray(e))return e}function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rl.apply(this,arguments)}var K5=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):Y(t)?n=t(r):n=P.createElement("line",rl({},r,{className:"recharts-reference-line-line"})),n},V5=function(t,r,n,i,a,o,s,c,l){var d=a.x,f=a.y,h=a.width,p=a.height;if(n){var m=l.y,v=t.y.apply(m,{position:o});if(At(l,"discard")&&!t.y.isInRange(v))return null;var y=[{x:d+h,y:v},{x:d,y:v}];return c==="left"?y.reverse():y}if(r){var x=l.x,g=t.x.apply(x,{position:o});if(At(l,"discard")&&!t.x.isInRange(g))return null;var w=[{x:g,y:f+p},{x:g,y:f}];return s==="top"?w.reverse():w}if(i){var S=l.segment,b=S.map(function(j){return t.apply(j,{position:o})});return At(l,"discard")&&y4(b,function(j){return!t.isInRange(j)})?null:b}return null};function X5(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,c=e.alwaysShow,l=T5(),d=Xy(i),f=Yy(a),h=C5();if(!l||!h)return null;xt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=yu({x:d.scale,y:f.scale}),m=Me(t),v=Me(r),y=n&&n.length===2,x=V5(p,m,v,y,h,e.position,d.orientation,f.orientation,e);if(!x)return null;var g=U5(x,2),w=g[0],S=w.x,b=w.y,j=g[1],O=j.x,_=j.y,A=At(e,"hidden")?"url(#".concat(l,")"):void 0,T=dp(dp({clipPath:A},X(e,!0)),{},{x1:S,y1:b,x2:O,y2:_});return P.createElement(ce,{className:te("recharts-reference-line",s)},K5(o,T),Re.renderCallByParent(e,o5({x1:S,y1:b,x2:O,y2:_})))}var Ou=function(e){function t(){return M5(this,t),R5(this,t,arguments)}return F5(t,e),D5(t,[{key:"render",value:function(){return P.createElement(X5,this.props)}}])}(P.Component);ju(Ou,"displayName","ReferenceLine");ju(Ou,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nl.apply(this,arguments)}function mn(e){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(e)}function pp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pp(Object(r),!0).forEach(function(n){ts(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z5(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,eg(n.key),n)}}function J5(e,t,r){return t&&Z5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q5(e,t,r){return t=no(t),e3(e,Qy()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function e3(e,t){if(t&&(mn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t3(e)}function t3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qy=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(e)}function r3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&il(e,t)}function il(e,t){return il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},il(e,t)}function ts(e,t,r){return t=eg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eg(e){var t=n3(e,"string");return mn(t)=="symbol"?t:t+""}function n3(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i3=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=yu({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return At(t,"discard")&&!o.isInRange(s)?null:s},rs=function(e){function t(){return Y5(this,t),Q5(this,t,arguments)}return r3(t,e),J5(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,c=n.clipPathId,l=Me(i),d=Me(a);if(xt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!d)return null;var f=i3(this.props);if(!f)return null;var h=f.x,p=f.y,m=this.props,v=m.shape,y=m.className,x=At(this.props,"hidden")?"url(#".concat(c,")"):void 0,g=mp(mp({clipPath:x},X(this.props,!0)),{},{cx:h,cy:p});return P.createElement(ce,{className:te("recharts-reference-dot",y)},t.renderDot(v,g),Re.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(P.Component);ts(rs,"displayName","ReferenceDot");ts(rs,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ts(rs,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Y(e)?r=e(t):r=P.createElement(vu,nl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},al.apply(this,arguments)}function vn(e){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}function vp(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 yp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(r),!0).forEach(function(n){ns(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o3(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,rg(n.key),n)}}function s3(e,t,r){return t&&o3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c3(e,t,r){return t=io(t),l3(e,tg()?Reflect.construct(t,r||[],io(e).constructor):t.apply(e,r))}function l3(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u3(e)}function u3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tg=function(){return!!e})()}function io(e){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},io(e)}function f3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ol(e,t)}function ol(e,t){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ol(e,t)}function ns(e,t,r){return t=rg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rg(e){var t=d3(e,"string");return vn(t)=="symbol"?t:t+""}function d3(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var h3=function(t,r,n,i,a){var o=a.x1,s=a.x2,c=a.y1,l=a.y2,d=a.xAxis,f=a.yAxis;if(!d||!f)return null;var h=yu({x:d.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},m={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(l,{position:"end"}):h.y.rangeMax};return At(a,"discard")&&(!h.isInRange(p)||!h.isInRange(m))?null:Uy(p,m)},is=function(e){function t(){return a3(this,t),c3(this,t,arguments)}return f3(t,e),s3(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,c=n.className,l=n.alwaysShow,d=n.clipPathId;xt(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Me(i),h=Me(a),p=Me(o),m=Me(s),v=this.props.shape;if(!f&&!h&&!p&&!m&&!v)return null;var y=h3(f,h,p,m,this.props);if(!y&&!v)return null;var x=At(this.props,"hidden")?"url(#".concat(d,")"):void 0;return P.createElement(ce,{className:te("recharts-reference-area",c)},t.renderRect(v,yp(yp({clipPath:x},X(this.props,!0)),y)),Re.renderCallByParent(this.props,y))}}])}(P.Component);ns(is,"displayName","ReferenceArea");ns(is,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ns(is,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Y(e)?r=e(t):r=P.createElement(mu,al({},t,{className:"recharts-reference-area-rect"})),r});function ng(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 p3(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return c5(n,r)}function m3(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 ao(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 v3(e,t){return ng(e,t+1)}function y3(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,c=0,l=1,d=o,f=function(){var m=n==null?void 0:n[c];if(m===void 0)return{v:ng(n,l)};var v=c,y,x=function(){return y===void 0&&(y=r(m,v)),y},g=m.coordinate,w=c===0||ao(e,g,x,d,s);w||(c=0,d=o,l+=1),w&&(d=g+e*(x()/2+i),c+=l)},h;l<=a.length;)if(h=f(),h)return h.v;return[]}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 gp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gp(Object(r),!0).forEach(function(n){g3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g3(e,t,r){return t=b3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b3(e){var t=x3(e,"string");return Di(t)=="symbol"?t:t+""}function x3(e,t){if(Di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w3(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,c=t.end,l=function(h){var p=a[h],m,v=function(){return m===void 0&&(m=r(p,h)),m};if(h===o-1){var y=e*(p.coordinate+e*v()/2-c);a[h]=p=Fe(Fe({},p),{},{tickCoord:y>0?p.coordinate-y*e:p.coordinate})}else a[h]=p=Fe(Fe({},p),{},{tickCoord:p.coordinate});var x=ao(e,p.tickCoord,v,s,c);x&&(c=p.tickCoord-e*(v()/2+i),a[h]=Fe(Fe({},p),{},{isShow:!0}))},d=o-1;d>=0;d--)l(d);return a}function j3(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,c=t.start,l=t.end;if(a){var d=n[s-1],f=r(d,s-1),h=e*(d.coordinate+e*f/2-l);o[s-1]=d=Fe(Fe({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate});var p=ao(e,d.tickCoord,function(){return f},c,l);p&&(l=d.tickCoord-e*(f/2+i),o[s-1]=Fe(Fe({},d),{},{isShow:!0}))}for(var m=a?s-1:s,v=function(g){var w=o[g],S,b=function(){return S===void 0&&(S=r(w,g)),S};if(g===0){var j=e*(w.coordinate-e*b()/2-c);o[g]=w=Fe(Fe({},w),{},{tickCoord:j<0?w.coordinate-j*e:w.coordinate})}else o[g]=w=Fe(Fe({},w),{},{tickCoord:w.coordinate});var O=ao(e,w.tickCoord,b,c,l);O&&(c=w.tickCoord+e*(b()/2+i),o[g]=Fe(Fe({},w),{},{isShow:!0}))},y=0;y<m;y++)v(y);return o}function Su(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,d=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(B(c)||Dt.isSsr)return v3(i,typeof c=="number"&&B(c)?c:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",m=d&&p==="width"?Vn(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,S){var b=Y(l)?l(w.value,S):w.value;return p==="width"?p3(Vn(b,{fontSize:t,letterSpacing:r}),m,f):Vn(b,{fontSize:t,letterSpacing:r})[p]},y=i.length>=2?qe(i[1].coordinate-i[0].coordinate):1,x=m3(a,y,p);return c==="equidistantPreserveStart"?y3(y,x,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=j3(y,x,v,i,o,c==="preserveStartEnd"):h=w3(y,x,v,i,o),h.filter(function(g){return g.isShow}))}var O3=["viewBox"],S3=["viewBox"],A3=["ticks"];function yn(e){"@babel/helpers - typeof";return yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(e)}function zr(){return zr=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},zr.apply(this,arguments)}function bp(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 Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bp(Object(r),!0).forEach(function(n){Au(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cs(e,t){if(e==null)return{};var r=_3(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 _3(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 P3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xp(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,ag(n.key),n)}}function $3(e,t,r){return t&&xp(e.prototype,t),r&&xp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function T3(e,t,r){return t=oo(t),N3(e,ig()?Reflect.construct(t,r||[],oo(e).constructor):t.apply(e,r))}function N3(e,t){if(t&&(yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E3(e)}function E3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ig(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ig=function(){return!!e})()}function oo(e){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oo(e)}function C3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sl(e,t)}function sl(e,t){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sl(e,t)}function Au(e,t,r){return t=ag(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ag(e){var t=k3(e,"string");return yn(t)=="symbol"?t:t+""}function k3(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var In=function(e){function t(r){var n;return P3(this,t),n=T3(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return C3(t,e),$3(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Cs(n,O3),s=this.props,c=s.viewBox,l=Cs(s,S3);return!Gr(a,c)||!Gr(o,l)||!Gr(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,c=i.height,l=i.orientation,d=i.tickSize,f=i.mirror,h=i.tickMargin,p,m,v,y,x,g,w=f?-1:1,S=n.tickSize||d,b=B(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":p=m=n.coordinate,y=o+ +!f*c,v=y-w*S,g=v-w*h,x=b;break;case"left":v=y=n.coordinate,m=a+ +!f*s,p=m-w*S,x=p-w*h,g=b;break;case"right":v=y=n.coordinate,m=a+ +f*s,p=m+w*S,x=p+w*h,g=b;break;default:p=m=n.coordinate,y=o+ +f*c,v=y+w*S,g=v+w*h,x=b;break}return{line:{x1:p,y1:v,x2:m,y2:y},tick:{x,y:g}}}},{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,c=n.orientation,l=n.mirror,d=n.axisLine,f=Ne(Ne(Ne({},X(this.props,!1)),X(d,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!l||c==="bottom"&&l);f=Ne(Ne({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(c==="left"&&!l||c==="right"&&l);f=Ne(Ne({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return P.createElement("line",zr({},f,{className:te("recharts-cartesian-axis-line",rt(d,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,c=s.tickLine,l=s.stroke,d=s.tick,f=s.tickFormatter,h=s.unit,p=Su(Ne(Ne({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),y=X(this.props,!1),x=X(d,!1),g=Ne(Ne({},y),{},{fill:"none"},X(c,!1)),w=p.map(function(S,b){var j=o.getTickLineCoord(S),O=j.line,_=j.tick,A=Ne(Ne(Ne(Ne({textAnchor:m,verticalAnchor:v},y),{},{stroke:"none",fill:l},x),_),{},{index:b,payload:S,visibleTicksCount:p.length,tickFormatter:f});return P.createElement(ce,zr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Ar(o.props,S,b)),c&&P.createElement("line",zr({},g,O,{className:te("recharts-cartesian-axis-tick-line",rt(c,"className"))})),d&&t.renderTickItem(d,A,"".concat(Y(f)?f(S.value,b):S.value).concat(h||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,c=i.ticksGenerator,l=i.className,d=i.hide;if(d)return null;var f=this.props,h=f.ticks,p=Cs(f,A3),m=h;return Y(c)&&(m=h&&h.length>0?c(this.props):c(p)),o<=0||s<=0||!m||!m.length?null:P.createElement(ce,{className:te("recharts-cartesian-axis",l),ref:function(y){n.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),Re.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=te(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,Ne(Ne({},i),{},{className:s})):Y(n)?o=n(Ne(Ne({},i),{},{className:s})):o=P.createElement(_r,zr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(C.Component);Au(In,"displayName","CartesianAxis");Au(In,"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 M3=["x1","y1","x2","y2","key"],I3=["offset"];function Tr(e){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}function wp(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 Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wp(Object(r),!0).forEach(function(n){D3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D3(e,t,r){return t=R3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R3(e){var t=L3(e,"string");return Tr(t)=="symbol"?t:t+""}function L3(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xr.apply(this,arguments)}function jp(e,t){if(e==null)return{};var r=B3(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 B3(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 F3=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,c=t.ry;return P.createElement("rect",{x:i,y:a,ry:c,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function og(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=jp(t,M3),l=X(c,!1);l.offset;var d=jp(l,I3);r=P.createElement("line",xr({},d,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function z3(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,c){var l=Ue(Ue({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return og(i,l)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function U3(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,c){var l=Ue(Ue({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return og(i,l)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function W3(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal,l=c===void 0?!0:c;if(!l||!t||!t.length)return null;var d=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==d[0]&&d.unshift(0);var f=d.map(function(h,p){var m=!d[p+1],v=m?i+o-h:d[p+1]-h;if(v<=0)return null;var y=p%t.length;return P.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:v,width:a,stroke:"none",fill:t[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function G3(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,c=e.height,l=e.verticalPoints;if(!r||!n||!n.length)return null;var d=l.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==d[0]&&d.unshift(0);var f=d.map(function(h,p){var m=!d[p+1],v=m?a+s-h:d[p+1]-h;if(v<=0)return null;var y=p%n.length;return P.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:v,height:c,stroke:"none",fill:n[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var q3=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return ry(Su(Ue(Ue(Ue({},In.defaultProps),n),{},{ticks:Mt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},H3=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return ry(Su(Ue(Ue(Ue({},In.defaultProps),n),{},{ticks:Mt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Dr={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Rr(e){var t,r,n,i,a,o,s=xu(),c=wu(),l=k5(),d=Ue(Ue({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Dr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Dr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Dr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Dr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Dr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Dr.verticalFill,x:B(e.x)?e.x:l.left,y:B(e.y)?e.y:l.top,width:B(e.width)?e.width:l.width,height:B(e.height)?e.height:l.height}),f=d.x,h=d.y,p=d.width,m=d.height,v=d.syncWithTicks,y=d.horizontalValues,x=d.verticalValues,g=N5(),w=E5();if(!B(p)||p<=0||!B(m)||m<=0||!B(f)||f!==+f||!B(h)||h!==+h)return null;var S=d.verticalCoordinatesGenerator||q3,b=d.horizontalCoordinatesGenerator||H3,j=d.horizontalPoints,O=d.verticalPoints;if((!j||!j.length)&&Y(b)){var _=y&&y.length,A=b({yAxis:w?Ue(Ue({},w),{},{ticks:_?y:w.ticks}):void 0,width:s,height:c,offset:l},_?!0:v);xt(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Tr(A),"]")),Array.isArray(A)&&(j=A)}if((!O||!O.length)&&Y(S)){var T=x&&x.length,$=S({xAxis:g?Ue(Ue({},g),{},{ticks:T?x:g.ticks}):void 0,width:s,height:c,offset:l},T?!0:v);xt(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Tr($),"]")),Array.isArray($)&&(O=$)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(F3,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),P.createElement(z3,xr({},d,{offset:l,horizontalPoints:j,xAxis:g,yAxis:w})),P.createElement(U3,xr({},d,{offset:l,verticalPoints:O,xAxis:g,yAxis:w})),P.createElement(W3,xr({},d,{horizontalPoints:j})),P.createElement(G3,xr({},d,{verticalPoints:O})))}Rr.displayName="CartesianGrid";function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}function K3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V3(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,lg(n.key),n)}}function X3(e,t,r){return t&&V3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y3(e,t,r){return t=so(t),Z3(e,sg()?Reflect.construct(t,r||[],so(e).constructor):t.apply(e,r))}function Z3(e,t){if(t&&(gn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J3(e)}function J3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sg=function(){return!!e})()}function so(e){return so=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},so(e)}function Q3(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&&cl(e,t)}function cl(e,t){return cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cl(e,t)}function cg(e,t,r){return t=lg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lg(e){var t=eF(e,"string");return gn(t)=="symbol"?t:t+""}function eF(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ll(){return ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ll.apply(this,arguments)}function tF(e){var t=e.xAxisId,r=xu(),n=wu(),i=Xy(t);return i==null?null:C.createElement(In,ll({},i,{className:te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Mt(o,!0)}}))}var Yt=function(e){function t(){return K3(this,t),Y3(this,t,arguments)}return Q3(t,e),X3(t,[{key:"render",value:function(){return C.createElement(tF,this.props)}}])}(C.Component);cg(Yt,"displayName","XAxis");cg(Yt,"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 bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function rF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nF(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,dg(n.key),n)}}function iF(e,t,r){return t&&nF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aF(e,t,r){return t=co(t),oF(e,ug()?Reflect.construct(t,r||[],co(e).constructor):t.apply(e,r))}function oF(e,t){if(t&&(bn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sF(e)}function sF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ug(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ug=function(){return!!e})()}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},co(e)}function cF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ul(e,t)}function ul(e,t){return ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ul(e,t)}function fg(e,t,r){return t=dg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dg(e){var t=lF(e,"string");return bn(t)=="symbol"?t:t+""}function lF(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fl.apply(this,arguments)}var uF=function(t){var r=t.yAxisId,n=xu(),i=wu(),a=Yy(r);return a==null?null:C.createElement(In,fl({},a,{className:te("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Mt(s,!0)}}))},Zt=function(e){function t(){return rF(this,t),aF(this,t,arguments)}return cF(t,e),iF(t,[{key:"render",value:function(){return C.createElement(uF,this.props)}}])}(C.Component);fg(Zt,"displayName","YAxis");fg(Zt,"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 Op(e){return pF(e)||hF(e)||dF(e)||fF()}function fF(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 110In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dF(e,t){if(e){if(typeof e=="string")return dl(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 dl(e,t)}}function hF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pF(e){if(Array.isArray(e))return dl(e)}function dl(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 hl=function(t,r,n,i,a){var o=ut(t,Ou),s=ut(t,rs),c=[].concat(Op(o),Op(s)),l=ut(t,is),d="".concat(i,"Id"),f=i[0],h=r;if(c.length&&(h=c.reduce(function(v,y){if(y.props[d]===n&&At(y.props,"extendDomain")&&B(y.props[f])){var x=y.props[f];return[Math.min(v[0],x),Math.max(v[1],x)]}return v},h)),l.length){var p="".concat(f,"1"),m="".concat(f,"2");h=l.reduce(function(v,y){if(y.props[d]===n&&At(y.props,"extendDomain")&&B(y.props[p])&&B(y.props[m])){var x=y.props[p],g=y.props[m];return[Math.min(v[0],x,g),Math.max(v[1],x,g)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,y){return B(y)?[Math.min(v[0],y),Math.max(v[1],y)]:v},h)),h},hg={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,l,d){this.fn=c,this.context=l,this.once=d||!1}function a(c,l,d,f,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new i(d,f||c,h),m=r?r+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],p]:c._events[m].push(p):(c._events[m]=p,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],d,f;if(this._eventsCount===0)return l;for(f in d=this._events)t.call(d,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(d)):l},s.prototype.listeners=function(l){var d=r?r+l:l,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,m=new Array(p);h<p;h++)m[h]=f[h].fn;return m},s.prototype.listenerCount=function(l){var d=r?r+l:l,f=this._events[d];return f?f.fn?1:f.length:0},s.prototype.emit=function(l,d,f,h,p,m){var v=r?r+l:l;if(!this._events[v])return!1;var y=this._events[v],x=arguments.length,g,w;if(y.fn){switch(y.once&&this.removeListener(l,y.fn,void 0,!0),x){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,d),!0;case 3:return y.fn.call(y.context,d,f),!0;case 4:return y.fn.call(y.context,d,f,h),!0;case 5:return y.fn.call(y.context,d,f,h,p),!0;case 6:return y.fn.call(y.context,d,f,h,p,m),!0}for(w=1,g=new Array(x-1);w<x;w++)g[w-1]=arguments[w];y.fn.apply(y.context,g)}else{var S=y.length,b;for(w=0;w<S;w++)switch(y[w].once&&this.removeListener(l,y[w].fn,void 0,!0),x){case 1:y[w].fn.call(y[w].context);break;case 2:y[w].fn.call(y[w].context,d);break;case 3:y[w].fn.call(y[w].context,d,f);break;case 4:y[w].fn.call(y[w].context,d,f,h);break;default:if(!g)for(b=1,g=new Array(x-1);b<x;b++)g[b-1]=arguments[b];y[w].fn.apply(y[w].context,g)}}return!0},s.prototype.on=function(l,d,f){return a(this,l,d,f,!1)},s.prototype.once=function(l,d,f){return a(this,l,d,f,!0)},s.prototype.removeListener=function(l,d,f,h){var p=r?r+l:l;if(!this._events[p])return this;if(!d)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn===d&&(!h||m.once)&&(!f||m.context===f)&&o(this,p);else{for(var v=0,y=[],x=m.length;v<x;v++)(m[v].fn!==d||h&&!m[v].once||f&&m[v].context!==f)&&y.push(m[v]);y.length?this._events[p]=y.length===1?y[0]:y:o(this,p)}return this},s.prototype.removeAllListeners=function(l){var d;return l?(d=r?r+l:l,this._events[d]&&o(this,d)):(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})(hg);var mF=hg.exports;const vF=fe(mF);var ks=new vF,Ms="recharts.syncMouseEvents";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 yF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gF(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,pg(n.key),n)}}function bF(e,t,r){return t&&gF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Is(e,t,r){return t=pg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pg(e){var t=xF(e,"string");return Ri(t)=="symbol"?t:t+""}function xF(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 String(e)}var wF=function(){function e(){yF(this,e),Is(this,"activeIndex",0),Is(this,"coordinateList",[]),Is(this,"layout","horizontal")}return bF(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,c=r.layout,l=c===void 0?null:c,d=r.offset,f=d===void 0?null:d,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=l??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??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,c=this.coordinateList[this.activeIndex].coordinate,l=((r=window)===null||r===void 0?void 0:r.scrollX)||0,d=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+c+l,h=o+this.offset.top+s/2+d;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])}();function jF(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&B(n)&&B(i))return!0}return!1}function OF(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 mg(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=ve(t,r,n,i),s=ve(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function SF(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,c=t.cy,l=t.innerRadius,d=t.outerRadius,f=t.angle,h=ve(s,c,l,f),p=ve(s,c,d,f);n=h.x,i=h.y,a=p.x,o=p.y}else return mg(t);return[{x:n,y:i},{x:a,y:o}]}function Li(e){"@babel/helpers - typeof";return Li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Li(e)}function Sp(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 sa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sp(Object(r),!0).forEach(function(n){AF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AF(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=PF(e,"string");return Li(t)=="symbol"?t:t+""}function PF(e,t){if(Li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $F(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,c=e.offset,l=e.activeTooltipIndex,d=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var m,v=Dc;if(h==="ScatterChart")m=o,v=aL;else if(h==="BarChart")m=OF(f,o,c,d),v=mu;else if(f==="radial"){var y=mg(o),x=y.cx,g=y.cy,w=y.radius,S=y.startAngle,b=y.endAngle;m={cx:x,cy:g,startAngle:S,endAngle:b,innerRadius:w,outerRadius:w},v=hy}else m={points:SF(f,o,c)},v=Dc;var j=sa(sa(sa(sa({stroke:"#ccc",pointerEvents:"none"},c),m),X(p,!1)),{},{payload:s,payloadIndex:l,className:te("recharts-tooltip-cursor",p.className)});return C.isValidElement(p)?C.cloneElement(p,j):C.createElement(v,j)}var TF=["item"],NF=["children","className","width","height","style","compact","title","desc"];function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function Ur(){return Ur=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},Ur.apply(this,arguments)}function Ap(e,t){return kF(e)||CF(e,t)||yg(e,t)||EF()}function EF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 111In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kF(e){if(Array.isArray(e))return e}function _p(e,t){if(e==null)return{};var r=MF(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 MF(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 IF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DF(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,gg(n.key),n)}}function RF(e,t,r){return t&&DF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LF(e,t,r){return t=lo(t),BF(e,vg()?Reflect.construct(t,r||[],lo(e).constructor):t.apply(e,r))}function BF(e,t){if(t&&(xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FF(e)}function FF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vg=function(){return!!e})()}function lo(e){return lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lo(e)}function zF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pl(e,t)}function pl(e,t){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pl(e,t)}function wn(e){return GF(e)||WF(e)||yg(e)||UF()}function UF(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 112In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yg(e,t){if(e){if(typeof e=="string")return ml(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ml(e,t)}}function WF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GF(e){if(Array.isArray(e))return ml(e)}function ml(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pp(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?Pp(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=gg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gg(e){var t=qF(e,"string");return xn(t)=="symbol"?t:t+""}function qF(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HF={xAxis:["bottom","top"],yAxis:["left","right"]},KF={width:"100%",height:"100%"},bg={x:0,y:0};function ca(e){return e}var VF=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},XF=function(t,r,n,i){var a=r.find(function(d){return d&&d.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 E(E(E({},i),ve(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var c=a.coordinate,l=i.angle;return E(E(E({},i),ve(i.cx,i.cy,c,l)),{},{angle:l,radius:c})}return bg},as=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,c){var l=c.props.data;return l&&l.length?[].concat(wn(s),wn(l)):s},[]);return o.length>0?o:t&&t.length&&B(i)&&B(a)?t.slice(i,a+1):[]};function xg(e){return e==="number"?[0,"auto"]:void 0}var vl=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=as(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(c,l){var d,f=(d=l.props.data)!==null&&d!==void 0?d:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;h=Gs(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(wn(c),[sy(l,h)]):c},[])},$p=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=VF(a,n),s=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,d=B2(o,s,l,c);if(d>=0&&l){var f=l[d]&&l[d].value,h=vl(t,r,d,f),p=XF(n,s,d,a);return{activeTooltipIndex:d,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},YF=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,d=t.layout,f=t.children,h=t.stackOffset,p=ty(d,a);return n.reduce(function(m,v){var y,x=v.type.defaultProps!==void 0?E(E({},v.type.defaultProps),v.props):v.props,g=x.type,w=x.dataKey,S=x.allowDataOverflow,b=x.allowDuplicatedCategory,j=x.scale,O=x.ticks,_=x.includeHidden,A=x[o];if(m[A])return m;var T=as(t.data,{graphicalItems:i.filter(function(W){var V,ye=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o];return ye===A}),dataStartIndex:c,dataEndIndex:l}),$=T.length,N,M,I;jF(x.domain,S,g)&&(N=Ec(x.domain,null,S),p&&(g==="number"||j!=="auto")&&(I=Yn(T,w,"category")));var k=xg(g);if(!N||N.length===0){var D,R=(D=x.domain)!==null&&D!==void 0?D:k;if(w){if(N=Yn(T,w,g),g==="category"&&p){var F=Tw(N);b&&F?(M=N,N=Za(0,$)):b||(N=Qd(R,N,v).reduce(function(W,V){return W.indexOf(V)>=0?W:[].concat(wn(W),[V])},[]))}else if(g==="category")b?N=N.filter(function(W){return W!==""&&!re(W)}):N=Qd(R,N,v).reduce(function(W,V){return W.indexOf(V)>=0||V===""||re(V)?W:[].concat(wn(W),[V])},[]);else if(g==="number"){var z=G2(T,i.filter(function(W){var V,ye,Ae=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o],Je="hide"in W.props?W.props.hide:(ye=W.type.defaultProps)===null||ye===void 0?void 0:ye.hide;return Ae===A&&(_||!Je)}),w,a,d);z&&(N=z)}p&&(g==="number"||j!=="auto")&&(I=Yn(T,w,"category"))}else p?N=Za(0,$):s&&s[A]&&s[A].hasStack&&g==="number"?N=h==="expand"?[0,1]:oy(s[A].stackGroups,c,l):N=ey(T,i.filter(function(W){var V=o in W.props?W.props[o]:W.type.defaultProps[o],ye="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return V===A&&(_||!ye)}),g,d,!0);if(g==="number")N=hl(f,N,A,a,O),R&&(N=Ec(R,N,S));else if(g==="category"&&R){var q=R,K=N.every(function(W){return q.indexOf(W)>=0});K&&(N=q)}}return E(E({},m),{},H({},A,E(E({},x),{},{axisType:a,domain:N,categoricalDomain:I,duplicateDomain:M,originalDomain:(y=x.domain)!==null&&y!==void 0?y:k,isCategorical:p,layout:d})))},{})},ZF=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,d=t.layout,f=t.children,h=as(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:l}),p=h.length,m=ty(d,a),v=-1;return n.reduce(function(y,x){var g=x.type.defaultProps!==void 0?E(E({},x.type.defaultProps),x.props):x.props,w=g[o],S=xg("number");if(!y[w]){v++;var b;return m?b=Za(0,p):s&&s[w]&&s[w].hasStack?(b=oy(s[w].stackGroups,c,l),b=hl(f,b,w,a)):(b=Ec(S,ey(h,n.filter(function(j){var O,_,A=o in j.props?j.props[o]:(O=j.type.defaultProps)===null||O===void 0?void 0:O[o],T="hide"in j.props?j.props.hide:(_=j.type.defaultProps)===null||_===void 0?void 0:_.hide;return A===w&&!T}),"number",d),i.defaultProps.allowDataOverflow),b=hl(f,b,w,a)),E(E({},y),{},H({},w,E(E({axisType:a},i.defaultProps),{},{hide:!0,orientation:rt(HF,"".concat(a,".").concat(v%2),null),domain:b,originalDomain:S,isCategorical:m,layout:d})))}return y},{})},JF=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,d=t.children,f="".concat(i,"Id"),h=ut(d,a),p={};return h&&h.length?p=YF(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(p=ZF(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:l})),p},QF=function(t){var r=Xt(t),n=Mt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ul(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ba(r,n)}},Tp=function(t){var r=t.children,n=t.defaultShowTooltip,i=et(r,dn),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}},ez=function(t){return!t||!t.length?!1:t.some(function(r){var n=It(r&&r.type);return n&&n.indexOf("Bar")>=0})},Np=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"}},tz=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,c=s===void 0?{}:s,l=n.width,d=n.height,f=n.children,h=n.margin||{},p=et(f,dn),m=et(f,qr),v=Object.keys(c).reduce(function(b,j){var O=c[j],_=O.orientation;return!O.mirror&&!O.hide?E(E({},b),{},H({},_,b[_]+O.width)):b},{left:h.left||0,right:h.right||0}),y=Object.keys(o).reduce(function(b,j){var O=o[j],_=O.orientation;return!O.mirror&&!O.hide?E(E({},b),{},H({},_,rt(b,"".concat(_))+O.height)):b},{top:h.top||0,bottom:h.bottom||0}),x=E(E({},y),v),g=x.bottom;p&&(x.bottom+=p.props.height||dn.defaultProps.height),m&&r&&(x=U2(x,i,n,r));var w=l-x.left-x.right,S=d-x.top-x.bottom;return E(E({brushBottom:g},x),{},{width:Math.max(w,0),height:Math.max(S,0)})},rz=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},wg=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,c=t.axisComponents,l=t.legendContent,d=t.formatAxisMap,f=t.defaultProps,h=function(x,g){var w=g.graphicalItems,S=g.stackGroups,b=g.offset,j=g.updateId,O=g.dataStartIndex,_=g.dataEndIndex,A=x.barSize,T=x.layout,$=x.barGap,N=x.barCategoryGap,M=x.maxBarSize,I=Np(T),k=I.numericAxisName,D=I.cateAxisName,R=ez(w),F=[];return w.forEach(function(z,q){var K=as(x.data,{graphicalItems:[z],dataStartIndex:O,dataEndIndex:_}),W=z.type.defaultProps!==void 0?E(E({},z.type.defaultProps),z.props):z.props,V=W.dataKey,ye=W.maxBarSize,Ae=W["".concat(k,"Id")],Je=W["".concat(D,"Id")],or={},Ve=c.reduce(function(sr,cr){var os=g["".concat(cr.axisType,"Map")],_u=W["".concat(cr.axisType,"Id")];os&&os[_u]||cr.axisType==="zAxis"||$r();var Pu=os[_u];return E(E({},sr),{},H(H({},cr.axisType,Pu),"".concat(cr.axisType,"Ticks"),Mt(Pu)))},or),U=Ve[D],Z=Ve["".concat(D,"Ticks")],Q=S&&S[Ae]&&S[Ae].hasStack&&Q2(z,S[Ae].stackGroups),L=It(z.type).indexOf("Bar")>=0,we=Ba(U,Z),ae=[],$e=R&&F2({barSize:A,stackGroups:S,totalSize:rz(Ve,D)});if(L){var Te,Xe,Ht=re(ye)?M:ye,kr=(Te=(Xe=Ba(U,Z,!0))!==null&&Xe!==void 0?Xe:Ht)!==null&&Te!==void 0?Te:0;ae=z2({barGap:$,barCategoryGap:N,bandSize:kr!==we?kr:we,sizeList:$e[Je],maxBarSize:Ht}),kr!==we&&(ae=ae.map(function(sr){return E(E({},sr),{},{position:E(E({},sr.position),{},{offset:sr.position.offset-kr/2})})}))}var Ki=z&&z.type&&z.type.getComposedData;Ki&&F.push({props:E(E({},Ki(E(E({},Ve),{},{displayedData:K,props:x,dataKey:V,item:z,bandSize:we,barPosition:ae,offset:b,stackedData:Q,layout:T,dataStartIndex:O,dataEndIndex:_}))),{},H(H(H({key:z.key||"item-".concat(q)},k,Ve[k]),D,Ve[D]),"animationId",j)),childIndex:zw(z,x.children),item:z})}),F},p=function(x,g){var w=x.props,S=x.dataStartIndex,b=x.dataEndIndex,j=x.updateId;if(!Hu({props:w}))return null;var O=w.children,_=w.layout,A=w.stackOffset,T=w.data,$=w.reverseStackOrder,N=Np(_),M=N.numericAxisName,I=N.cateAxisName,k=ut(O,n),D=Z2(T,k,"".concat(M,"Id"),"".concat(I,"Id"),A,$),R=c.reduce(function(W,V){var ye="".concat(V.axisType,"Map");return E(E({},W),{},H({},ye,JF(w,E(E({},V),{},{graphicalItems:k,stackGroups:V.axisType===M&&D,dataStartIndex:S,dataEndIndex:b}))))},{}),F=tz(E(E({},R),{},{props:w,graphicalItems:k}),g==null?void 0:g.legendBBox);Object.keys(R).forEach(function(W){R[W]=d(w,R[W],F,W.replace("Map",""),r)});var z=R["".concat(I,"Map")],q=QF(z),K=h(w,E(E({},R),{},{dataStartIndex:S,dataEndIndex:b,updateId:j,graphicalItems:k,stackGroups:D,offset:F}));return E(E({formattedGraphicalItems:K,graphicalItems:k,offset:F,stackGroups:D},q),R)},m=function(y){function x(g){var w,S,b;return IF(this,x),b=LF(this,x,[g]),H(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(b,"accessibilityManager",new wF),H(b,"handleLegendBBoxUpdate",function(j){if(j){var O=b.state,_=O.dataStartIndex,A=O.dataEndIndex,T=O.updateId;b.setState(E({legendBBox:j},p({props:b.props,dataStartIndex:_,dataEndIndex:A,updateId:T},E(E({},b.state),{},{legendBBox:j}))))}}),H(b,"handleReceiveSyncEvent",function(j,O,_){if(b.props.syncId===j){if(_===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(O)}}),H(b,"handleBrushChange",function(j){var O=j.startIndex,_=j.endIndex;if(O!==b.state.dataStartIndex||_!==b.state.dataEndIndex){var A=b.state.updateId;b.setState(function(){return E({dataStartIndex:O,dataEndIndex:_},p({props:b.props,dataStartIndex:O,dataEndIndex:_,updateId:A},b.state))}),b.triggerSyncEvent({dataStartIndex:O,dataEndIndex:_})}}),H(b,"handleMouseEnter",function(j){var O=b.getMouseInfo(j);if(O){var _=E(E({},O),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var A=b.props.onMouseEnter;Y(A)&&A(_,j)}}),H(b,"triggeredAfterMouseMove",function(j){var O=b.getMouseInfo(j),_=O?E(E({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(_),b.triggerSyncEvent(_);var A=b.props.onMouseMove;Y(A)&&A(_,j)}),H(b,"handleItemMouseEnter",function(j){b.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),H(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),H(b,"handleMouseMove",function(j){j.persist(),b.throttleTriggeredAfterMouseMove(j)}),H(b,"handleMouseLeave",function(j){b.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};b.setState(O),b.triggerSyncEvent(O);var _=b.props.onMouseLeave;Y(_)&&_(O,j)}),H(b,"handleOuterEvent",function(j){var O=Fw(j),_=rt(b.props,"".concat(O));if(O&&Y(_)){var A,T;/.*touch.*/i.test(O)?T=b.getMouseInfo(j.changedTouches[0]):T=b.getMouseInfo(j),_((A=T)!==null&&A!==void 0?A:{},j)}}),H(b,"handleClick",function(j){var O=b.getMouseInfo(j);if(O){var _=E(E({},O),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var A=b.props.onClick;Y(A)&&A(_,j)}}),H(b,"handleMouseDown",function(j){var O=b.props.onMouseDown;if(Y(O)){var _=b.getMouseInfo(j);O(_,j)}}),H(b,"handleMouseUp",function(j){var O=b.props.onMouseUp;if(Y(O)){var _=b.getMouseInfo(j);O(_,j)}}),H(b,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),H(b,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&b.handleMouseDown(j.changedTouches[0])}),H(b,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&b.handleMouseUp(j.changedTouches[0])}),H(b,"handleDoubleClick",function(j){var O=b.props.onDoubleClick;if(Y(O)){var _=b.getMouseInfo(j);O(_,j)}}),H(b,"handleContextMenu",function(j){var O=b.props.onContextMenu;if(Y(O)){var _=b.getMouseInfo(j);O(_,j)}}),H(b,"triggerSyncEvent",function(j){b.props.syncId!==void 0&&ks.emit(Ms,b.props.syncId,j,b.eventEmitterSymbol)}),H(b,"applySyncEvent",function(j){var O=b.props,_=O.layout,A=O.syncMethod,T=b.state.updateId,$=j.dataStartIndex,N=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)b.setState(E({dataStartIndex:$,dataEndIndex:N},p({props:b.props,dataStartIndex:$,dataEndIndex:N,updateId:T},b.state)));else if(j.activeTooltipIndex!==void 0){var M=j.chartX,I=j.chartY,k=j.activeTooltipIndex,D=b.state,R=D.offset,F=D.tooltipTicks;if(!R)return;if(typeof A=="function")k=A(F,j);else if(A==="value"){k=-1;for(var z=0;z<F.length;z++)if(F[z].value===j.activeLabel){k=z;break}}var q=E(E({},R),{},{x:R.left,y:R.top}),K=Math.min(M,q.x+q.width),W=Math.min(I,q.y+q.height),V=F[k]&&F[k].value,ye=vl(b.state,b.props.data,k),Ae=F[k]?{x:_==="horizontal"?F[k].coordinate:K,y:_==="horizontal"?W:F[k].coordinate}:bg;b.setState(E(E({},j),{},{activeLabel:V,activeCoordinate:Ae,activePayload:ye,activeTooltipIndex:k}))}else b.setState(j)}),H(b,"renderCursor",function(j){var O,_=b.state,A=_.isTooltipActive,T=_.activeCoordinate,$=_.activePayload,N=_.offset,M=_.activeTooltipIndex,I=_.tooltipAxisBandSize,k=b.getTooltipEventType(),D=(O=j.props.active)!==null&&O!==void 0?O:A,R=b.props.layout,F=j.key||"_recharts-cursor";return P.createElement($F,{key:F,activeCoordinate:T,activePayload:$,activeTooltipIndex:M,chartName:r,element:j,isActive:D,layout:R,offset:N,tooltipAxisBandSize:I,tooltipEventType:k})}),H(b,"renderPolarAxis",function(j,O,_){var A=rt(j,"type.axisType"),T=rt(b.state,"".concat(A,"Map")),$=j.type.defaultProps,N=$!==void 0?E(E({},$),j.props):j.props,M=T&&T[N["".concat(A,"Id")]];return C.cloneElement(j,E(E({},M),{},{className:te(A,M.className),key:j.key||"".concat(O,"-").concat(_),ticks:Mt(M,!0)}))}),H(b,"renderPolarGrid",function(j){var O=j.props,_=O.radialLines,A=O.polarAngles,T=O.polarRadius,$=b.state,N=$.radiusAxisMap,M=$.angleAxisMap,I=Xt(N),k=Xt(M),D=k.cx,R=k.cy,F=k.innerRadius,z=k.outerRadius;return C.cloneElement(j,{polarAngles:Array.isArray(A)?A:Mt(k,!0).map(function(q){return q.coordinate}),polarRadius:Array.isArray(T)?T:Mt(I,!0).map(function(q){return q.coordinate}),cx:D,cy:R,innerRadius:F,outerRadius:z,key:j.key||"polar-grid",radialLines:_})}),H(b,"renderLegend",function(){var j=b.state.formattedGraphicalItems,O=b.props,_=O.children,A=O.width,T=O.height,$=b.props.margin||{},N=A-($.left||0)-($.right||0),M=Jv({children:_,formattedGraphicalItems:j,legendWidth:N,legendContent:l});if(!M)return null;var I=M.item,k=_p(M,TF);return C.cloneElement(I,E(E({},k),{},{chartWidth:A,chartHeight:T,margin:$,onBBoxUpdate:b.handleLegendBBoxUpdate}))}),H(b,"renderTooltip",function(){var j,O=b.props,_=O.children,A=O.accessibilityLayer,T=et(_,ze);if(!T)return null;var $=b.state,N=$.isTooltipActive,M=$.activeCoordinate,I=$.activePayload,k=$.activeLabel,D=$.offset,R=(j=T.props.active)!==null&&j!==void 0?j:N;return C.cloneElement(T,{viewBox:E(E({},D),{},{x:D.left,y:D.top}),active:R,label:k,payload:R?I:[],coordinate:M,accessibilityLayer:A})}),H(b,"renderBrush",function(j){var O=b.props,_=O.margin,A=O.data,T=b.state,$=T.offset,N=T.dataStartIndex,M=T.dataEndIndex,I=T.updateId;return C.cloneElement(j,{key:j.key||"_recharts-brush",onChange:na(b.handleBrushChange,j.props.onChange),data:A,x:B(j.props.x)?j.props.x:$.left,y:B(j.props.y)?j.props.y:$.top+$.height+$.brushBottom-(_.bottom||0),width:B(j.props.width)?j.props.width:$.width,startIndex:N,endIndex:M,updateId:"brush-".concat(I)})}),H(b,"renderReferenceElement",function(j,O,_){if(!j)return null;var A=b,T=A.clipPathId,$=b.state,N=$.xAxisMap,M=$.yAxisMap,I=$.offset,k=j.type.defaultProps||{},D=j.props,R=D.xAxisId,F=R===void 0?k.xAxisId:R,z=D.yAxisId,q=z===void 0?k.yAxisId:z;return C.cloneElement(j,{key:j.key||"".concat(O,"-").concat(_),xAxis:N[F],yAxis:M[q],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:T})}),H(b,"renderActivePoints",function(j){var O=j.item,_=j.activePoint,A=j.basePoint,T=j.childIndex,$=j.isRange,N=[],M=O.props.key,I=O.item.type.defaultProps!==void 0?E(E({},O.item.type.defaultProps),O.item.props):O.item.props,k=I.activeDot,D=I.dataKey,R=E(E({index:T,dataKey:D,cx:_.x,cy:_.y,r:4,fill:pu(O.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},X(k,!1)),da(k));return N.push(x.renderActiveDot(k,R,"".concat(M,"-activePoint-").concat(T))),A?N.push(x.renderActiveDot(k,E(E({},R),{},{cx:A.x,cy:A.y}),"".concat(M,"-basePoint-").concat(T))):$&&N.push(null),N}),H(b,"renderGraphicChild",function(j,O,_){var A=b.filterFormatItem(j,O,_);if(!A)return null;var T=b.getTooltipEventType(),$=b.state,N=$.isTooltipActive,M=$.tooltipAxis,I=$.activeTooltipIndex,k=$.activeLabel,D=b.props.children,R=et(D,ze),F=A.props,z=F.points,q=F.isRange,K=F.baseLine,W=A.item.type.defaultProps!==void 0?E(E({},A.item.type.defaultProps),A.item.props):A.item.props,V=W.activeDot,ye=W.hide,Ae=W.activeBar,Je=W.activeShape,or=!!(!ye&&N&&R&&(V||Ae||Je)),Ve={};T!=="axis"&&R&&R.props.trigger==="click"?Ve={onClick:na(b.handleItemMouseEnter,j.props.onClick)}:T!=="axis"&&(Ve={onMouseLeave:na(b.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:na(b.handleItemMouseEnter,j.props.onMouseEnter)});var U=C.cloneElement(j,E(E({},A.props),Ve));function Z(cr){return typeof M.dataKey=="function"?M.dataKey(cr.payload):null}if(or)if(I>=0){var Q,L;if(M.dataKey&&!M.allowDuplicatedCategory){var we=typeof M.dataKey=="function"?Z:"payload.".concat(M.dataKey.toString());Q=Gs(z,we,k),L=q&&K&&Gs(K,we,k)}else Q=z==null?void 0:z[I],L=q&&K&&K[I];if(Je||Ae){var ae=j.props.activeIndex!==void 0?j.props.activeIndex:I;return[C.cloneElement(j,E(E(E({},A.props),Ve),{},{activeIndex:ae})),null,null]}if(!re(Q))return[U].concat(wn(b.renderActivePoints({item:A,activePoint:Q,basePoint:L,childIndex:I,isRange:q})))}else{var $e,Te=($e=b.getItemByXY(b.state.activeCoordinate))!==null&&$e!==void 0?$e:{graphicalItem:U},Xe=Te.graphicalItem,Ht=Xe.item,kr=Ht===void 0?j:Ht,Ki=Xe.childIndex,sr=E(E(E({},A.props),Ve),{},{activeIndex:Ki});return[C.cloneElement(kr,sr),null,null]}return q?[U,null,null]:[U,null]}),H(b,"renderCustomized",function(j,O,_){return C.cloneElement(j,E(E({key:"recharts-customized-".concat(_)},b.props),b.state))}),H(b,"renderMap",{CartesianGrid:{handler:ca,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:ca},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:ca},YAxis:{handler:ca},Brush:{handler:b.renderBrush,once:!0},Bar:{handler:b.renderGraphicChild},Line:{handler:b.renderGraphicChild},Area:{handler:b.renderGraphicChild},Radar:{handler:b.renderGraphicChild},RadialBar:{handler:b.renderGraphicChild},Scatter:{handler:b.renderGraphicChild},Pie:{handler:b.renderGraphicChild},Funnel:{handler:b.renderGraphicChild},Tooltip:{handler:b.renderCursor,once:!0},PolarGrid:{handler:b.renderPolarGrid,once:!0},PolarAngleAxis:{handler:b.renderPolarAxis},PolarRadiusAxis:{handler:b.renderPolarAxis},Customized:{handler:b.renderCustomized}}),b.clipPathId="".concat((w=g.id)!==null&&w!==void 0?w:zi("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=Zm(b.triggeredAfterMouseMove,(S=g.throttleDelay)!==null&&S!==void 0?S:1e3/60),b.state={},b}return zF(x,y),RF(x,[{key:"componentDidMount",value:function(){var w,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,S=w.children,b=w.data,j=w.height,O=w.layout,_=et(S,ze);if(_){var A=_.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,$=vl(this.state,b,A,T),N=this.state.tooltipTicks[A].coordinate,M=(this.state.offset.top+j)/2,I=O==="horizontal",k=I?{x:N,y:M}:{y:N,x:M},D=this.state.formattedGraphicalItems.find(function(F){var z=F.item;return z.type.name==="Scatter"});D&&(k=E(E({},k),D.props.points[A].tooltipPosition),$=D.props.points[A].tooltipPayload);var R={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:T,activePayload:$,activeCoordinate:k};this.setState(R),this.renderCursor(_),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var b,j;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(w){Hs([et(w.children,ze)],[et(this.props.children,ze)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=et(this.props.children,ze);if(w&&typeof w.props.shared=="boolean"){var S=w.props.shared?"axis":"item";return s.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var S=this.container,b=S.getBoundingClientRect(),j=hE(b),O={chartX:Math.round(w.pageX-j.left),chartY:Math.round(w.pageY-j.top)},_=b.width/S.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,_);if(!A)return null;var T=this.state,$=T.xAxisMap,N=T.yAxisMap,M=this.getTooltipEventType(),I=$p(this.state,this.props.data,this.props.layout,A);if(M!=="axis"&&$&&N){var k=Xt($).scale,D=Xt(N).scale,R=k&&k.invert?k.invert(O.chartX):null,F=D&&D.invert?D.invert(O.chartY):null;return E(E({},O),{},{xValue:R,yValue:F},I)}return I?E(E({},O),I):null}},{key:"inRange",value:function(w,S){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,O=w/b,_=S/b;if(j==="horizontal"||j==="vertical"){var A=this.state.offset,T=O>=A.left&&O<=A.left+A.width&&_>=A.top&&_<=A.top+A.height;return T?{x:O,y:_}:null}var $=this.state,N=$.angleAxisMap,M=$.radiusAxisMap;if(N&&M){var I=Xt(N);return rh({x:O,y:_},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,S=this.getTooltipEventType(),b=et(w,ze),j={};b&&S==="axis"&&(b.props.trigger==="click"?j={onClick:this.handleClick}:j={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 O=da(this.props,this.handleOuterEvent);return E(E({},O),j)}},{key:"addListener",value:function(){ks.on(Ms,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ks.removeListener(Ms,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,S,b){for(var j=this.state.formattedGraphicalItems,O=0,_=j.length;O<_;O++){var A=j[O];if(A.item===w||A.props.key===w.key||S===It(A.item.type)&&b===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,S=this.state.offset,b=S.left,j=S.top,O=S.height,_=S.width;return P.createElement("defs",null,P.createElement("clipPath",{id:w},P.createElement("rect",{x:b,y:j,height:O,width:_})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(S,b){var j=Ap(b,2),O=j[0],_=j[1];return E(E({},S),{},H({},O,_.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(S,b){var j=Ap(b,2),O=j[0],_=j[1];return E(E({},S),{},H({},O,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(w){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(w){var S=this.state,b=S.formattedGraphicalItems,j=S.activeItem;if(b&&b.length)for(var O=0,_=b.length;O<_;O++){var A=b[O],T=A.props,$=A.item,N=$.type.defaultProps!==void 0?E(E({},$.type.defaultProps),$.props):$.props,M=It($.type);if(M==="Bar"){var I=(T.data||[]).find(function(F){return BR(w,F)});if(I)return{graphicalItem:A,payload:I}}else if(M==="RadialBar"){var k=(T.data||[]).find(function(F){return rh(w,F)});if(k)return{graphicalItem:A,payload:k}}else if(Jo(A,j)||Qo(A,j)||Ci(A,j)){var D=PB({graphicalItem:A,activeTooltipItem:j,itemData:N.data}),R=N.activeIndex===void 0?D:N.activeIndex;return{graphicalItem:E(E({},A),{},{childIndex:R}),payload:Ci(A,j)?N.data[D]:A.props.data[D]}}}return null}},{key:"render",value:function(){var w=this;if(!Hu(this))return null;var S=this.props,b=S.children,j=S.className,O=S.width,_=S.height,A=S.style,T=S.compact,$=S.title,N=S.desc,M=_p(S,NF),I=X(M,!1);if(T)return P.createElement(up,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(Vs,Ur({},I,{width:O,height:_,title:$,desc:N}),this.renderClipPath(),Vu(b,this.renderMap)));if(this.props.accessibilityLayer){var k,D;I.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,I.role=(D=this.props.role)!==null&&D!==void 0?D:"application",I.onKeyDown=function(F){w.accessibilityManager.keyboardEvent(F)},I.onFocus=function(){w.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return P.createElement(up,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Ur({className:te("recharts-wrapper",j),style:E({position:"relative",cursor:"default",width:O,height:_},A)},R,{ref:function(z){w.container=z}}),P.createElement(Vs,Ur({},I,{width:O,height:_,title:$,desc:N,style:KF}),this.renderClipPath(),Vu(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(C.Component);H(m,"displayName",r),H(m,"defaultProps",E({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),H(m,"getDerivedStateFromProps",function(y,x){var g=y.dataKey,w=y.data,S=y.children,b=y.width,j=y.height,O=y.layout,_=y.stackOffset,A=y.margin,T=x.dataStartIndex,$=x.dataEndIndex;if(x.updateId===void 0){var N=Tp(y);return E(E(E({},N),{},{updateId:0},p(E(E({props:y},N),{},{updateId:0}),x)),{},{prevDataKey:g,prevData:w,prevWidth:b,prevHeight:j,prevLayout:O,prevStackOffset:_,prevMargin:A,prevChildren:S})}if(g!==x.prevDataKey||w!==x.prevData||b!==x.prevWidth||j!==x.prevHeight||O!==x.prevLayout||_!==x.prevStackOffset||!Gr(A,x.prevMargin)){var M=Tp(y),I={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},k=E(E({},$p(x,w,O)),{},{updateId:x.updateId+1}),D=E(E(E({},M),I),k);return E(E(E({},D),p(E({props:y},D),x)),{},{prevDataKey:g,prevData:w,prevWidth:b,prevHeight:j,prevLayout:O,prevStackOffset:_,prevMargin:A,prevChildren:S})}if(!Hs(S,x.prevChildren)){var R,F,z,q,K=et(S,dn),W=K&&(R=(F=K.props)===null||F===void 0?void 0:F.startIndex)!==null&&R!==void 0?R:T,V=K&&(z=(q=K.props)===null||q===void 0?void 0:q.endIndex)!==null&&z!==void 0?z:$,ye=W!==T||V!==$,Ae=!re(w),Je=Ae&&!ye?x.updateId:x.updateId+1;return E(E({updateId:Je},p(E(E({props:y},x),{},{updateId:Je,dataStartIndex:W,dataEndIndex:V}),x)),{},{prevChildren:S,dataStartIndex:W,dataEndIndex:V})}return null}),H(m,"renderActiveDot",function(y,x,g){var w;return C.isValidElement(y)?w=C.cloneElement(y,x):Y(y)?w=y(x):w=P.createElement(vu,x),P.createElement(ce,{className:"recharts-active-dot",key:g},w)});var v=C.forwardRef(function(x,g){return P.createElement(m,Ur({},x,{ref:g}))});return v.displayName=m.displayName,v},Hn=wg({chartName:"BarChart",GraphicalChild:st,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Yt},{axisType:"yAxis",AxisComp:Zt}],formatAxisMap:a5}),Ep=wg({chartName:"PieChart",GraphicalChild:Pt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Zo},{axisType:"radiusAxis",AxisComp:Xo}],formatAxisMap:lI,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const nz=({language:e,url:t,competitors:r})=>{const[n,i]=C.useState(!1),[a,o]=C.useState(r?r.split(",").map(A=>A.trim()).filter(Boolean):[]),[s,c]=C.useState(""),[l,d]=C.useState(["traffic","organic","advertising","social","local","backlinks"]),[f,h]=C.useState(null),[p,m]=C.useState(""),{user:v}=jn(),x={es:{title:"Análisis Competitivo Avanzado",description:"Compara tu sitio web con la competencia en múltiples métricas",addCompetitor:"Agregar Competidor",removeCompetitor:"Remover",startAnalysis:"Iniciar Análisis",selectMetrics:"Seleccionar Métricas",saveReport:"Guardar Reporte",downloadReport:"Descargar Reporte",overview:"Resumen",traffic:"Tráfico",organic:"Orgánico",advertising:"Publicidad",social:"Redes Sociales",local:"Local",backlinks:"Backlinks",monthlyVisits:"Visitas Mensuales",organicKeywords:"Palabras Clave Orgánicas",paidKeywords:"Palabras Clave Pagadas",backlinkCount:"Total de Backlinks",referringDomains:"Dominios de Referencia",domainAuthority:"Autoridad del Dominio",trafficGrowth:"Crecimiento del Tráfico",adSpend:"Gasto Publicitario",localPosition:"Posición Local",socialFollowers:"Seguidores Sociales",socialEngagement:"Engagement Social",bounceRate:"Tasa de Rebote",avgSessionDuration:"Duración Promedio de Sesión",pages:"Páginas",organicTraffic:"Orgánico",directTraffic:"Directo",referralTraffic:"Referencia",socialTraffic:"Social",paidTraffic:"Pagado",vs:"vs",higher:"Mayor",lower:"Menor",similar:"Similar",opportunities:"Oportunidades",threats:"Amenazas",strengths:"Fortalezas",weaknesses:"Debilida
112des",competitiveGaps:"Brechas Competitivas",marketShare:"Participación de Mercado",performanceScore:"Puntuación de Rendimiento",placeholder:"ejemplo.com",reportNamePlaceholder:"Nombre del reporte...",trafficAnalysis:"Análisis de Tráfico",organicResearch:"Investigación Orgánica",adResearch:"Investigación Publicitaria",socialAnalysis:"Análisis de Redes Sociales",localAnalysis:"Análisis Local",backlinkAnalysis:"Análisis de Backlinks"},en:{title:"Advanced Competitive Analysis",description:"Compare your website against competitors across multiple metrics",addCompetitor:"Add Competitor",removeCompetitor:"Remove",startAnalysis:"Start Analysis",selectMetrics:"Select Metrics",saveReport:"Save Report",downloadReport:"Download Report",overview:"Overview",traffic:"Traffic",organic:"Organic",advertising:"Advertising",social:"Social Media",local:"Local",backlinks:"Backlinks",monthlyVisits:"Monthly Visits",organicKeywords:"Organic Keywords",paidKeywords:"Paid Keywords",backlinkCount:"Total Backlinks",referringDomains:"Referring Domains",domainAuthority:"Domain Authority",trafficGrowth:"Traffic Growth",adSpend:"Ad Spend",localPosition:"Local Position",socialFollowers:"Social Followers",socialEngagement:"Social Engagement",bounceRate:"Bounce Rate",avgSessionDuration:"Avg Session Duration",pages:"Pages",organicTraffic:"Organic",directTraffic:"Direct",referralTraffic:"Referral",socialTraffic:"Social",paidTraffic:"Paid",vs:"vs",higher:"Higher",lower:"Lower",similar:"Similar",opportunities:"Opportunities",threats:"Threats",strengths:"Strengths",weaknesses:"Weaknesses",competitiveGaps:"Competitive Gaps",marketShare:"Market Share",performanceScore:"Performance Score",placeholder:"example.com",reportNamePlaceholder:"Report name...",trafficAnalysis:"Traffic Analysis",organicResearch:"Organic Research",adResearch:"Advertising Research",socialAnalysis:"Social Media Analysis",localAnalysis:"Local Analysis",backlinkAnalysis:"Backlink Analysis"}}[e],g=()=>{s.trim()&&!a.includes(s.trim())&&(o([...a,s.trim()]),c(""))},w=A=>{o(a.filter((T,$)=>$!==A))},S=async()=>{i(!0);try{const{data:A,error:T}=await We.functions.invoke("competitive-analysis",{body:{website_url:t,competitor_urls:a,metrics:l,user_id:v==null?void 0:v.id}});if(T)throw new Error(T.message);if(A.success)h({yourSite:A.data.main_site,competitors:A.data.competitors}),Oe({title:e==="es"?"Análisis completado":"Analysis completed",description:e==="es"?"Los datos competitivos han sido analizados exitosamente":"Competitive data has been analyzed successfully"});else throw new Error(A.error||"Analysis failed")}catch(A){console.error("Analysis error:",A),Oe({title:"Error",description:"Failed to analyze competitive data",variant:"destructive"})}finally{i(!1)}},b=()=>{if(!p.trim()){Oe({title:"Error",description:e==="es"?"Por favor ingresa un nombre para el reporte":"Please enter a report name",variant:"destructive"});return}Oe({title:e==="es"?"Reporte guardado":"Report saved",description:e==="es"?`Reporte "${p}" guardado exitosamente`:`Report "${p}" saved successfully`})},j=()=>{const A={timestamp:new Date().toISOString(),website:t,competitors:a,analysisData:f},T=new Blob([JSON.stringify(A,null,2)],{type:"application/json"}),$=URL.createObjectURL(T),N=document.createElement("a");N.href=$,N.download=`competitive-analysis-${Date.now()}.json`,document.body.appendChild(N),N.click(),document.body.removeChild(N),URL.revokeObjectURL($),Oe({title:e==="es"?"Reporte descargado":"Report downloaded",description:e==="es"?"El reporte ha sido descargado exitosamente":"Report has been downloaded successfully"})},O=["#8884d8","#82ca9d","#ffc658","#ff7300","#00ff00"],_=[{id:"traffic",label:x.trafficAnalysis,icon:bt},{id:"organic",label:x.organicResearch,icon:vt},{id:"advertising",label:x.adResearch,icon:Tu},{id:"social",label:x.socialAnalysis,icon:Ws},{id:"local",label:x.localAnalysis,icon:Cg},{id:"backlinks",label:x.backlinkAnalysis,icon:Yr}];return u.jsxs("div",{className:"space-y-6",children:[u.jsxs(J,{children:[u.jsxs(ne,{children:[u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Mp,{className:"h-5 w-5"}),x.title]}),u.jsx(Ot,{children:x.description})]}),u.jsxs(ee,{className:"space-y-6",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-2 block",children:e==="es"?"Competidores":"Competitors"}),u.jsxs("div",{className:"space-y-2",children:[a.map((A,T)=>u.jsxs("div",{className:"flex items-center gap-2 p-2 bg-muted rounded-lg",children:[u.jsx(Lt,{className:"h-4 w-4"}),u.jsx("span",{className:"flex-1",children:A}),u.jsx(je,{size:"sm",variant:"ghost",onClick:()=>w(T),children:u.jsx(jg,{className:"h-4 w-4"})})]},T)),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(Or,{placeholder:x.placeholder,value:s,onChange:A=>c(A.target.value),onKeyPress:A=>A.key==="Enter"&&g()}),u.jsxs(je,{onClick:g,variant:"outline",children:[u.jsx(yl,{className:"h-4 w-4 mr-2"}),x.addCompetitor]})]})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-2 block",children:x.selectMetrics}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:_.map(A=>u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx(Eg,{id:A.id,checked:l.includes(A.id),onCheckedChange:T=>{d(T?[...l,A.id]:l.filter($=>$!==A.id))}}),u.jsxs("label",{htmlFor:A.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 flex items-center gap-2",children:[u.jsx(A.icon,{className:"h-4 w-4"}),A.label]})]},A.id))})]}),u.jsx("div",{className:"flex gap-4",children:u.jsx(je,{onClick:S,disabled:n||a.length===0,className:"flex-1",children:n?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white mr-2"}),e==="es"?"Analizando...":"Analyzing..."]}):u.jsxs(u.Fragment,{children:[u.jsx(vt,{className:"h-4 w-4 mr-2"}),x.startAnalysis]})})}),n&&u.jsxs("div",{className:"space-y-2",children:[u.jsx(gt,{value:33,className:"w-full"}),u.jsx("p",{className:"text-sm text-muted-foreground text-center",children:e==="es"?"Recopilando datos competitivos...":"Gathering competitive data..."})]})]})]}),f&&u.jsxs(u.Fragment,{children:[u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Us,{className:"h-5 w-5"}),e==="es"?"Gestión de Reportes":"Report Management"]})}),u.jsx(ee,{children:u.jsxs("div",{className:"flex gap-4",children:[u.jsx(Or,{placeholder:x.reportNamePlaceholder,value:p,onChange:A=>m(A.target.value),className:"flex-1"}),u.jsxs(je,{onClick:b,variant:"outline",children:[u.jsx(Us,{className:"h-4 w-4 mr-2"}),x.saveReport]}),u.jsxs(je,{onClick:j,variant:"outline",children:[u.jsx(kg,{className:"h-4 w-4 mr-2"}),x.downloadReport]})]})})]}),u.jsxs(uo,{defaultValue:"overview",className:"w-full",children:[u.jsxs(fo,{className:"grid w-full grid-cols-6",children:[u.jsx(Ce,{value:"overview",children:x.overview}),u.jsx(Ce,{value:"traffic",children:x.traffic}),u.jsx(Ce,{value:"organic",children:x.organic}),u.jsx(Ce,{value:"advertising",children:x.advertising}),u.jsx(Ce,{value:"social",children:x.social}),u.jsx(Ce,{value:"backlinks",children:x.backlinks})]}),u.jsxs(ke,{value:"overview",className:"space-y-6",children:[u.jsxs(J,{children:[u.jsx(ne,{children:u.jsx(ie,{children:x.performanceScore})}),u.jsx(ee,{children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsxs("div",{className:"text-center p-4 border rounded-lg",children:[u.jsx("div",{className:"text-2xl font-bold text-primary",children:"75"}),u.jsx("div",{className:"text-sm text-muted-foreground",children:t}),u.jsx(de,{variant:"outline",className:"mt-2",children:e==="es"?"Tu Sitio":"Your Site"})]}),f.competitors.map((A,T)=>u.jsxs("div",{className:"text-center p-4 border rounded-lg",children:[u.jsx("div",{className:"text-2xl font-bold",children:85-T*10}),u.jsx("div",{className:"text-sm text-muted-foreground",children:A.name}),u.jsxs(de,{variant:"secondary",className:"mt-2",children:["#",T+1]})]},T))]})})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsx(ie,{children:x.marketShare})}),u.jsx(ee,{children:u.jsx(lr,{width:"100%",height:300,children:u.jsxs(Ep,{children:[u.jsx(Pt,{data:[{name:t,value:f.yourSite.monthlyVisits,fill:O[0]},...f.competitors.map((A,T)=>({name:A.name,value:A.monthlyVisits,fill:O[T+1]}
112))],cx:"50%",cy:"50%",labelLine:!1,label:({name:A,percent:T})=>`${A}: ${(T*100).toFixed(0)}%`,outerRadius:80,dataKey:"value",children:[f.yourSite,...f.competitors].map((A,T)=>u.jsx(ci,{fill:O[T%O.length]},`cell-${T}`))}),u.jsx(ze,{formatter:A=>A.toLocaleString()})]})})})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsx(ie,{children:x.competitiveGaps})}),u.jsx(ee,{children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsxs("div",{children:[u.jsxs("h4",{className:"font-medium text-green-600 mb-3 flex items-center gap-2",children:[u.jsx(Xr,{className:"h-4 w-4"}),x.opportunities]}),u.jsxs("ul",{className:"space-y-2",children:[u.jsxs("li",{className:"text-sm",children:["⢠",e==="es"?"Mejorar palabras clave pagadas":"Improve paid keywords"]}),u.jsxs("li",{className:"text-sm",children:["⢠",e==="es"?"Incrementar engagement social":"Increase social engagement"]}),u.jsxs("li",{className:"text-sm",children:["⢠",e==="es"?"Optimizar rankings locales":"Optimize local rankings"]})]})]}),u.jsxs("div",{children:[u.jsxs("h4",{className:"font-medium text-red-600 mb-3 flex items-center gap-2",children:[u.jsx(Ip,{className:"h-4 w-4"}),x.threats]}),u.jsxs("ul",{className:"space-y-2",children:[u.jsxs("li",{className:"text-sm",children:["⢠",e==="es"?"Competidor 1 tiene mayor autoridad":"Competitor 1 has higher authority"]}),u.jsxs("li",{className:"text-sm",children:["⢠",e==="es"?"Menor gasto publicitario":"Lower ad spend"]}),u.jsxs("li",{className:"text-sm",children:["⢠",e==="es"?"Menos backlinks de calidad":"Fewer qual
112ity backlinks"]})]})]})]})})]})]}),u.jsxs(ke,{value:"traffic",className:"space-y-6",children:[u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(bt,{className:"h-5 w-5"}),x.trafficAnalysis]})}),u.jsx(ee,{children:u.jsx(lr,{width:"100%",height:400,children:u.jsxs(Hn,{data:[{name:t,visits:f.yourSite.monthlyVisits,growth:f.yourSite.trafficGrowth},...f.competitors.map(A=>({name:A.name,visits:A.monthlyVisits,growth:A.trafficGrowth}))],children:[u.jsx(Rr,{strokeDasharray:"3 3"}),u.jsx(Yt,{dataKey:"name"}),u.jsx(Zt,{}),u.jsx(ze,{}),u.jsx(st,{dataKey:"visits",fill:"#8884d8"})]})})})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsx(ie,{children:e==="es"?"Fuentes de Tráfico":"Traffic Sources"})}),u.jsx(ee,{children:u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[f.yourSite,...f.competitors].map((A,T)=>u.jsxs("div",{className:"space-y-4",children:[u.jsx("h4",{className:"font-medium",children:A.name}),u.jsx(lr,{width:"100%",height:200,children:u.jsxs(Ep,{children:[u.jsx(Pt,{data:[{name:x.organicTraffic,value:A.trafficSources.organic},{name:x.directTraffic,value:A.trafficSources.direct},{name:x.referralTraffic,value:A.trafficSources.referral},{name:x.socialTraffic,value:A.trafficSources.social},{name:x.paidTraffic,value:A.trafficSources.paid}],cx:"50%",cy:"50%",outerRadius:60,dataKey:"value",label:({value:$})=>`${$}%`,children:A.trafficSources&&Object.values(A.trafficSources).map(($,N)=>u.jsx(ci,{fill:O[N%O.length]},`cell-${N}`))}),u.jsx(ze,{})]})})]},T))})})]})]}),u.jsx(ke,{value:"organic",className:"space-y-6",children:u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(vt,{className:"h-5 w-5"}),x.organicResearch]})}),u.jsxs(ee,{children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[u.jsxs("div",{className:"text-center p-4 border rounded-lg bg-primary/5",children:[u.jsx("div",{className:"text-2xl font-bold text-primary",children:f.yourSite.organicKeywords.toLocaleString()}),u.jsx("div",{className:"text-sm text-muted-foreground",children:x.organicKeywords}),u.jsx(de,{variant:"outline",className:"mt-2",children:e==="es"?"Tu Sitio":"Your Site"})]}),f.competitors.map((A,T)=>u.jsxs("div",{className:"text-center p-4 border rounded-lg",children:[u.jsx("div",{className:"text-2xl font-bold",children:A.organicKeywords.toLocaleString()}),u.jsx("div",{className:"text-sm text-muted-foreground",children:x.organicKeywords}),u.jsx(de,{variant:"secondary",className:"mt-2",children:A.name})]},T))]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h4",{className:"font-medium",children:e==="es"?"Palabras Clave Principales":"Top Keywords"}),[f.yourSite,...f.competitors].map((A,T)=>u.jsxs("div",{className:"border rounded-lg p-4",children:[u.jsx("h5",{className:"font-medium mb-3",children:A.name}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:A.topKeywords.map(($,N)=>u.jsxs("div",{className:"flex justify-between items-center p-2 bg-muted rounded",children:[u.jsxs("div",{children:[u.jsx("div",{className:"font-medium text-sm",children:$.keyword}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:[e==="es"?"Posición":"Position",": ",$.position]})]}),u.jsx("div",{className:"text-sm font-medium",children:$.volume.toLocaleString()})]},N))})]},T))]})]})]})}),u.jsx(ke,{value:"advertising",className:"space-y-6",children:u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Tu,{className:"h-5 w-5"}),x.adResearch]})}),u.jsx(ee,{children:u.jsx(lr,{width:"100%",height:300,children:u.jsxs(Hn,{data:[{name:t,spend:f.yourSite.adSpend,keywords:f.yourSite.paidKeywords},...f.competitors.map(A=>({name:A.name,spend:A.adSpend,keywords:A.paidKeywords}))],children:[u.jsx(Rr,{strokeDasharray:"3 3"}),u.jsx(Yt,{dataKey:"name"}),u.jsx(Zt,{}),u.jsx(ze,{}),u.jsx(st,{dataKey:"spend",fill:"#82ca9d"})]})})})]})}),u.jsx(ke,{value:"social",className:"space-y-6",children:u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Ws,{className:"h-5 w-5"}),x.socialAnalysis]})}),u.jsx(ee,{children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsxs("div",{children:[u.jsx("h4",{className:"font-medium mb-4",children:e==="es"?"Seguidores por Plataforma":"Followers by Platform"}),u.jsx(lr,{width:"100%",height:300,children:u.jsxs(Hn,{data:[{name:"Facebook",[t]:f.yourSite.socialPlatforms.facebook,...Object.fromEntries(f.competitors.map(A=>[A.name,A.socialPlatforms.facebook]))},{name:"Instagram",[t]:f.yourSite.socialPlatforms.instagram,...Object.fromEntries(f.competitors.map(A=>[A.name,A.socialPlatforms.instagram]))},{name:"Twitter",[t]:f.yourSite.socialPlatforms.twitter,...Object.fromEntries(f.competitors.map(A=>[A.name,A.socialPlatforms.twitter]))},{name:"LinkedIn",[t]:f.yourSite.socialPlatforms.linkedin,...Object.fromEntries(f.competitors.map(A=>[A.name,A.socialPlatforms.linkedin]))}],children:[u.jsx(Rr,{strokeDasharray:"3 3"}),u.jsx(Yt,{dataKey:"name"}),u.jsx(Zt,{}),u.jsx(ze,{}),u.jsx(st,{dataKey:t,fill:O[0]}),f.competitors.map((A,T)=>u.jsx(st,{dataKey:A.name,fill:O[T+1]},A.name))]})})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-medium mb-4",children:"Engagement Rate"}),u.jsx("div",{className:"space-y-4",children:[f.yourSite,...f.competitors].map((A,T)=>u.jsxs("div",{className:"flex items-center justify-between p-3 border rounded",children:[u.jsx("span",{className:"font-medium",children:A.name}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("div",{className:"text-lg font-bold",children:[A.socialEngagement,"%"]}),u.jsx(gt,{value:A.socialEngagement*20,className:"w-20"})]})]},T))})]})]})})]})}),u.jsx(ke,{value:"backlinks",className:"space-y-6",children:u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Yr,{className:"h-5 w-5"}),x.backlinkAnalysis]})}),u.jsx(ee,{children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[u.jsxs("div",{children:[u.jsx("h4",{className:"font-medium mb-4",children:x.backlinkCount}),u.jsx(lr,{width:"100%",height:200,children:u.jsxs(Hn,{data:[{name:t,backlinks:f.yourSite.backlinks},...f.competitors.map(A=>({name:A.name,backlinks:A.backlinks}))],children:[u.jsx(Rr,{strokeDasharray:"3 3"}),u.jsx(Yt,{dataKey:"name",angle:-45,textAnchor:"end",height:80}),u.jsx(Zt,{}),u.jsx(ze,{}),u.jsx(st,{dataKey:"backlinks",fill:"#8884d8"})]})})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-medium mb-4",children:x.referringDomains}),u.jsx(lr,{width:"100%",height:200,children:u.jsxs(Hn,{data:[{name:t,domains:f.yourSite.referringDomains},...f.competitors.map(A=>({name:A.name,domains:A.referringDomains}))],children:[u.jsx(Rr,{strokeDasharray:"3 3"}),u.jsx(Yt,{dataKey:"name",angle:-45,textAnchor:"end",height:80}),u.jsx(Zt,{}),u.jsx(ze,{}),u.jsx(st,{dataKey:"domains",fill:"#82ca9d"})]})})]}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-medium mb-4",children:x.domainAuthority}),u.jsx("div",{className:"space-y-4",children:[f.yourSite,...f.competitors].map((A,T)=>u.jsxs("div",{className:"flex items-center justify-between p-3 border rounded",children:[u.jsx("span",{className:"font-medium text-sm",children:A.name}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"text-lg font-bold",children:A.domainAuthority}),u.jsx(gt,{value:A.domainAuthority,className:"w-20"})]})]},T))})]})]})})]})})]})]})]})},iz=({language:e,url:t,auditData:r})=>
112{const i={es:{title:"Métricas de Rendimiento",overview:"Resumen General",coreWebVitals:"Core Web Vitals",mobileOptimization:"Optimización Móvil",securityAnalysis:"Análisis de Seguridad",recommendations:"Recomendaciones de Mejora",pageSpeedScore:"Puntuación de Velocidad",mobileScore:"Puntuación Móvil",securityScore:"Puntuación de Seguridad",lcp:"Largest Contentful Paint",fid:"First Input Delay",cls:"Cumulative Layout Shift",fcp:"First Contentful Paint",ttfb:"Time to First Byte",loadTime:"Tiempo de Carga Total",pageSize:"Tamaño de Página",requests:"Solicitudes HTTP",mobileResponsive:"Diseño Responsivo",touchElements:"Elementos Táctiles",viewportConfig:"Configuración de Viewport",sslCertificate:"Certificado SSL",httpsSecurity:"Seguridad HTTPS",mixedContent:"Contenido Mixto",good:"Bueno",needsImprovement:"Necesita Mejora",poor:"Deficiente",critical:"CrÃtico",warning:"Advertencia",passed:"Aprobado",failed:"Falló"},en:{title:"Performance Metrics",overview:"Overview",coreWebVitals:"Core Web Vitals",mobileOptimization:"Mobile Optimization",securityAnalysis:"Security Analysis",recommendations:"Improvement Recommendations",pageSpeedScore:"Page Speed Score",mobileScore:"Mobile Score",securityScore:"Security Score",lcp:"Largest Contentful Paint",fid:"First Input Delay",cls:"Cumulative Layout Shift",fcp:"First Contentful Paint",ttfb:"Time to First Byte",loadTime:"Total Load Time",pageSize:"Page Size",requests:"HTTP Requests",mobileResponsive:"Responsive Design",touchElements:"Touch Elements",viewportConfig:"Viewport Configuration",sslCertificate:"SSL Certificate",httpsSecurity:"HTTPS Security",mixedContent:"Mixed Content",good:"Good",needsImprovement:"Needs Improvement",poor:"Poor",critical:"Critical",warning:"Warning",passed:"Passed",failed:"Failed"}}[e];r!=null&&r.audit_data;const a={overview:{pageSpeedScore:(r==null?void 0:r.performance_score)||65,mobileScore:(r==null?void 0:r.mobile_score)||78,securityScore:(r==null?void 0:r.security_score)||92},coreWebVitals:{lcp:{value:2.8,status:"good"},fid:{value:180,status:"needsImprovement"},cls:{value:.15,status:"good"},fcp:{value:1.9,status:"good"},ttfb:{value:850,status:"needsImprovement"}},metrics:{loadTime:4.2,pageSize:2.8,requests:87},mobile:{responsive:!0,touchElements:!0,viewport:!0},security:{ssl:!0,https:!0,mixedContent:!1},issues:[{type:"critical",title:e==="es"?"Imágenes sin optimizar":"Unoptimized images",description:e==="es"?"Las imágenes grandes están ralentizando tu sitio web":"Large images are slowing down your website"},{type:"warning",title:e==="es"?"CSS y JavaScript sin minificar":"Unminified CSS and JavaScript",description:e==="es"?"Los archivos CSS y JS podrÃan ser más pequeños":"CSS and JS files could be smaller"},{type:"warning",title:e==="es"?"Caché del navegador":"Browser caching",description:e==="es"?"Configura el caché para mejorar la velocidad":"Set up caching to improve speed"}]},o=c=>{switch(c){case"good":return u.jsx(de,{variant:"default",className:"bg-green-100 text-green-800",children:i.good});case"needsImprovement":return u.jsx(de,{variant:"secondary",className:"bg-yellow-100 text-yellow-800",children:i.needsImprovement});case"poor":return u.jsx(de,{variant:"destructive",children:i.poor});default:return null}},s=c=>{switch(c){case"critical":return u.jsx(ri,{className:"h-5 w-5 text-red-600"});case"warning":return u.jsx(Wr,{className:"h-5 w-5 text-yellow-600"});default:return u.jsx(ot,{className:"h-5 w-5 text-green-600"})}};return u.jsxs("div",{className:"space-y-6",children:[u.jsxs(J,{children:[u.jsxs(ne,{children:[u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(la,{className:"h-5 w-5"}),i.overview]}),u.jsx(Ot,{children:e==="es"?`Análisis de rendimiento para: ${t}`:`Performance analysis for: ${t}`})]}),u.jsx(ee,{children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[u.jsxs("div",{className:"text-center",children:[u.jsx(Lt,{className:"h-8 w-8 mx-auto mb-3 text-primary"}),u.jsx("div",{className:"text-3xl font-bold mb-2",children:a.overview.pageSpeedScore}),u.jsx("div",{className:"text-sm font-medium mb-2",children:i.pageSpeedScore}),u.jsx(gt,{value:a.overview.pageSpeedScore,className:"h-2"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx(Rs,{className:"h-8 w-8 mx-auto mb-3 text-primary"}),u.jsx("div",{className:"text-3xl font-bold mb-2",children:a.overview.mobileScore}),u.jsx("div",{className:"text-sm font-medium mb-2",children:i.mobileScore}),u.jsx(gt,{value:a.overview.mobileScore,className:"h-2"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx(Nu,{className:"h-8 w-8 mx-auto mb-3 text-primary"}),u.jsx("div",{className:"text-3xl font-bold mb-2",children:a.overview.securityScore}),u.jsx("div",{className:"text-sm font-medium mb-2",children:i.securityScore}),u.jsx(gt,{value:a.overview.securityScore,className:"h-2"})]})]})})]}),u.jsxs(J,{children:[u.jsxs(ne,{children:[u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Xr,{className:"h-5 w-5"}),i.coreWebVitals]}),u.jsx(Ot,{children:e==="es"?"Métricas clave de experiencia de usuario de Google":"Google's key user experience metrics"})]}),u.jsx(ee,{children:u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[u.jsxs("div",{className:"p-4 border rounded-lg",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("div",{className:"font-medium",children:i.lcp}),o(a.coreWebVitals.lcp.status)]}),u.jsxs("div",{className:"text-2xl font-bold mb-1",children:[a.coreWebVitals.lcp.value,"s"]}
112),u.jsx("div",{className:"text-sm text-muted-foreground",children:e==="es"?"< 2.5s es bueno":"< 2.5s is good"})]}),u.jsxs("div",{className:"p-4 border rounded-lg",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("div",{className:"font-medium",children:i.fid}),o(a.coreWebVitals.fid.status)]}),u.jsxs("div",{className:"text-2xl font-bold mb-1",children:[a.coreWebVitals.fid.value,"ms"]}),u.jsx("div",{className:"text-sm text-muted-foreground",children:e==="es"?"< 100ms es bueno":"< 100ms is good"})]}),u.jsxs("div",{className:"p-4 border rounded-lg",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("div",{className:"font-medium",children:i.cls}),o(a.coreWebVitals.cls.status)]}),u.jsx("div",{className:"text-2xl font-bold mb-1",children:a.coreWebVitals.cls.value}),u.jsx("div",{className:"text-sm text-muted-foreground",children:e==="es"?"< 0.1 es bueno":"< 0.1 is good"})]}),u.jsxs("div",{className:"p-4 border rounded-lg",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("div",{className:"font-medium",children:i.fcp}),o(a.coreWebVitals.fcp.status)]}),u.jsxs("div",{className:"text-2xl font-bold mb-1",children:[a.coreWebVitals.fcp.value,"s"]}),u.jsx("div",{className:"text-sm text-muted-foreground",children:e==="es"?"< 1.8s es bueno":"< 1.8s is good"})]}),u.jsxs("div",{className:"p-4 border rounded-lg",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("div",{className:"font-medium",children:i.ttfb}),o(a.coreWebVitals.ttfb.status)]}),u.jsxs("div",{className:"text-2xl font-bold mb-1",children:[a.coreWebVitals.ttfb.value,"ms"]}),u.jsx("div",{className:"text-sm text-muted-foreground",children:e==="es"?"< 600ms es bueno":"< 600ms is good"})]}),u.jsxs("div",{className:"p-4 border rounded-lg",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("div",{className:"font-medium",children:i.loadTime}),u.jsx(de,{variant:"secondary",className:"bg-yellow-100 text-yellow-800",children:i.needsImprovement})]}),u.jsxs("div",{className:"text-2xl font-bold mb-1",children:[a.metrics.loadTime,"s"]}),u.jsx("div",{className:"text-sm text-muted-foreground",children:e==="es"?"< 3s es bueno":"< 3s is good"})]})]})})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Rs,{className:"h-5 w-5"}),i.mobileOptimization]})}),u.jsx(ee,{children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ot,{className:"h-5 w-5 text-green-600"}),u.jsx("span",{children:i.mobileResponsive})]}),u.jsx(de,{variant:"default",className:"bg-green-100 text-green-800",children:i.passed})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ot,{className:"h-5 w-5 text-green-600"}),u.jsx("span",{children:i.touchElements})]}),u.jsx(de,{variant:"default",className:"bg-green-100 text-green-800",children:i.passed})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ot,{className:"h-5 w-5 text-green-600"}),u.jsx("span",{children:i.viewportConfig})]}),u.jsx(de,{variant:"default",className:"bg-green-100 text-green-800",children:i.passed})]})]})})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Nu,{className:"h-5 w-5"}),i.securityAnalysis]})}),u.jsx(ee,{children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ot,{className:"h-5 w-5 text-green-600"}),u.jsx("span",{children:i.sslCertificate})]}),u.jsx(de,{variant:"default",className:"bg-green-100 text-green-800",children:i.passed})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ot,{className:"h-5 w-5 text-green-600"}),u.jsx("span",{children:i.httpsSecurity})]}),u.jsx(de,{variant:"default",className:"bg-green-100 text-green-800",children:i.passed})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ot,{className:"h-5 w-5 text-green-600"}),u.jsx("span",{children:i.mixedContent})]}),u.jsx(de,{variant:"default",className:"bg-green-100 text-green-800",children:i.passed})]})]})})]})]}),u.jsxs(J,{children:[u.jsxs(ne,{children:[u.jsx(ie,{children:i.recommendations}),u.jsx(Ot,{children:e==="es"?"Acciones prioritarias para mejorar el rendimiento":"Priority actions to improve performance"})]}),u.jsx(ee,{children:u.jsx("div",{className:"space-y-4",children:a.issues.map((c,l)=>u.jsxs("div",{className:`flex items-start gap-3 p-4 border rounded-lg ${c.type==="critical"?"bg-red-50 dark:bg-red-950/20 border-red-200 dark:border-red-800":"bg-yellow-50 dark:bg-yellow-950/20 border-yellow-200 dark:border-yellow-800"}`,children:[s(c.type),u.jsxs("div",{children:[u.jsx("div",{className:`font-medium ${c.type==="critical"?"text-red-800 dark:text-red-200":"text-yellow-800 dark:text-yellow-200"}`,children:c.title}),u.jsx("div",{className:`text-sm ${c.type==="critical"?"text-red-700 dark:text-red-300":"text-yellow-700 dark:text-yellow-300"}`,children:c.description})]})]},l))})})]})]})},az=({language:e})=>{const{user:t}=jn(),[r,n]=C.useState([]),[i,a]=C.useState(!0),[o,s]=C.useState(null),l={es:{title:"Historial de AuditorÃas",description:"Revisa todas tus auditorÃas SEO anteriores y su evolución",noAudits:"No tienes auditorÃas guardadas. Realiza tu primera auditorÃa SEO arriba.",viewDetails:"Ver Detalles",delete:"Eliminar",website:"Sitio Web",score:"Puntuación",date:"Fecha",status:"Estado",pending:"Pendiente",completed:"Completado",failed:"Fallido",trend:"Tendencia",lastAudit:"Ãltima auditorÃa",loading:"Cargando historial..."},en:{title:"Audit History",description:"Review all your previous SEO audits and their evolution",noAudits:"You have no saved audits. Perform your first SEO audit above.",viewDetails:"View Details",delete:"Delete",website:"Website",score:"Score",date:"Date",status:"Status",pending:"Pending",completed:"Completed",failed:"Failed",trend:"Trend",lastAudit:"Last audit",loading:"Loading history..."}}[e];C.useEffect(()=>{t&&d()},[t]);const d=async()=>
112{if(t)try{a(!0);const{data:m,error:v}=await We.from("seo_audits").select("*").eq("user_id",t.id).order("created_at",{ascending:!1});if(v){console.log("Database not available, using mock data");const y=[{id:"1",website_url:"https://ejemplo.com",overall_score:85,on_page_score:90,off_page_score:75,technical_score:88,performance_score:82,social_score:70,status:"completed",created_at:new Date().toISOString(),updated_at:new Date().toISOString()},{id:"2",website_url:"https://mitienda.com",overall_score:72,on_page_score:80,off_page_score:65,technical_score:70,performance_score:75,social_score:68,status:"completed",created_at:new Date(Date.now()-7*24*60*60*1e3).toISOString(),updated_at:new Date(Date.now()-7*24*60*60*1e3).toISOString()}];n(y)}else n(m||[])}catch(m){console.error("Error fetching audits:",m),n([])}finally{a(!1)}},f=async m=>{if(t)try{const{error:v}=await We.from("seo_audits").delete().eq("id",m).eq("user_id",t.id);if(v)throw v;n(r.filter(y=>y.id!==m))}catch(v){console.error("Error deleting audit:",v)}},h=m=>{switch(m){case"completed":return u.jsx(de,{variant:"default",className:"bg-green-100 text-green-800",children:l.completed});case"pending":return u.jsx(de,{variant:"secondary",className:"bg-yellow-100 text-yellow-800",children:l.pending});case"failed":return u.jsx(de,{variant:"destructive",children:l.failed});default:return u.jsx(de,{variant:"outline",children:m})}},p=(m,v)=>v?m>v?u.jsx(Xr,{className:"h-4 w-4 text-green-600"}):m<v?u.jsx(Ip,{className:"h-4 w-4 text-red-600"}):null:null;return i?u.jsx(J,{children:u.jsxs(ee,{className:"flex items-center justify-center py-8",children:[u.jsx(Og,{className:"h-8 w-8 animate-spin text-muted-foreground"}),u.jsx("span",{className:"ml-2 text-muted-foreground",children:l.loading})]})}):u.jsx("div",{className:"space-y-6",children:u.jsxs(J,{children:[u.jsxs(ne,{children:[u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Ls,{className:"h-5 w-5"}),l.title]}),u.jsx(Ot,{children:l.description})]}),u.jsx(ee,{children:r.length===0?u.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[u.jsx(Lt,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),u.jsx("p",{children:l.noAudits})]}):u.jsx("div",{className:"space-y-4",children:r.map((m,v)=>{const y=r[v+1];return u.jsxs("div",{className:"border rounded-lg p-4 hover:bg-muted/50 transition-colors",children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Lt,{className:"h-5 w-5 text-primary"}),u.jsxs("div",{children:[u.jsx("div",{className:"font-medium",children:m.website_url}),u.jsx("div",{className:"text-sm text-muted-foreground",children:ua(new Date(m.created_at),"PPp",{locale:e==="es"?Bs:Fs})})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[h(m.status),u.jsxs("div",{className:"flex gap-1",children:[u.jsxs(je,{size:"sm",variant:"outline",onClick:()=>s(m),children:[u.jsx(kp,{className:"h-4 w-4 mr-1"}),l.viewDetails]}),u.jsx(je,{size:"sm",variant:"outline",onClick:()=>f(m.id),children:u.jsx(gl,{className:"h-4 w-4"})})]})]})]}),m.status==="completed"&&u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:[u.jsxs("div",{className:"text-center",children:[u.jsxs("div",{className:"flex items-center justify-center gap-1 mb-1",children:[u.jsx("div",{className:"text-2xl font-bold",children:m.overall_score}),p(m.overall_score,y==null?void 0:y.overall_score)]}),u.jsx("div",{className:"text-xs text-muted-foreground",children:l.score}),u.jsx(gt,{value:m.overall_score,className:"h-2 mt-1"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:m.on_page_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"On-Page"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:m.off_page_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Off-Page"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:m.technical_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Technical"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:m.performance_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Performance"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-lg font-semibold",children:m.social_score}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"Social"})]})]})]},m.id)})})})]})})},oz=({language:e,url:t=""})=>{const[r,n]=C.useState([]),[i,a]=C.useState(!0),[o,s]=C.useState(!1),[c,l]=C.useState({url:t,frequency:"weekly"}),{user:d}=jn(),h={es:{title:"Programar AuditorÃas",description:"Programa auditorÃas automáticas para mantener un seguimiento continuo de tu SEO",createNew:"Crear Nueva Programación",websiteUrl:"URL del Sitio Web",frequency:"Frecuencia",daily:"Diario",weekly:"Semanal",monthly:"Mensual",nextRun:"Próxima Ejecución",active:"Activo",inactive:"Inactivo",create:"Crear",delete:"Eliminar",toggle:"Activar/Desactivar",n
112oSchedules:"No tienes programaciones configuradas",scheduleCreated:"Programación creada exitosamente",scheduleDeleted:"Programación eliminada",scheduleUpdated:"Programación actualizada"},en:{title:"Schedule Audits",description:"Schedule automatic audits to maintain continuous SEO monitoring",createNew:"Create New Schedule",websiteUrl:"Website URL",frequency:"Frequency",daily:"Daily",weekly:"Weekly",monthly:"Monthly",nextRun:"Next Run",active:"Active",inactive:"Inactive",create:"Create",delete:"Delete",toggle:"Toggle",noSchedules:"You have no schedules configured",scheduleCreated:"Schedule created successfully",scheduleDeleted:"Schedule deleted",scheduleUpdated:"Schedule updated"}}[e];C.useEffect(()=>{d&&p()},[d]);const p=async()=>{if(d)try{const{data:g,error:w}=await We.from("audit_schedules").select("*").eq("user_id",d.id).order("created_at",{ascending:!1});if(w)throw w;n(g||[])}catch(g){console.error("Error fetching schedules:",g)}finally{a(!1)}},m=async()=>{if(!(!d||!c.url)){s(!0);try{let g;const w=new Date;switch(c.frequency){case"daily":g=Fg(w,1);break;case"weekly":g=Bg(w,1);break;case"monthly":g=Lg(w,1);break}const{data:S,error:b}=await We.from("audit_schedules").insert({user_id:d.id,website_url:c.url,frequency:c.frequency,next_run:g.toISOString()}).select().single();if(b)throw b;n([S,...r]),l({url:"",frequency:"weekly"}),Oe({title:h.scheduleCreated,description:e==="es"?`AuditorÃa programada para ${ua(g,"PPp",{locale:Bs})}`:`Audit scheduled for ${ua(g,"PPp",{locale:Fs})}`})}catch(g){console.error("Error creating schedule:",g),Oe({title:"Error",description:"Failed to create schedule",variant:"destructive"})}finally{s(!1)}}},v=async g=>{if(d)try{const{error:w}=await We.from("audit_schedules").delete().eq("id",g).eq("user_id",d.id);if(w)throw w;n(r.filter(S=>S.id!==g)),Oe({title:h.scheduleDeleted})}catch(w){console.error("Error deleting schedule:",w)}},y=async(g,w)=>{if(d)try{const{error:S}=await We.from("audit_schedules").update({is_active:w}).eq("id",g).eq("user_id",d.id);if(S)throw S;n(r.map(b=>b.id===g?{...b,is_active:w}:b)),Oe({title:h.scheduleUpdated})}catch(S){console.error("Error updating schedule:",S)}},x=g=>{switch(g){case"daily":return h.daily;case"weekly":return h.weekly;case"monthly":return h.monthly;default:return g}};return i?u.jsx("div",{className:"flex items-center justify-center p-8",children:u.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):u.jsxs("div",{className:"space-y-6",children:[u.jsxs(J,{children:[u.jsxs(ne,{children:[u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(yl,{className:"h-5 w-5"}),h.createNew]}),u.jsx(Ot,{children:h.description})]}),u.jsxs(ee,{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-2 block",children:h.websiteUrl}),u.jsx(Or,{placeholder:"https://example.com",value:c.url,onChange:g=>l({...c,url:g.target.value})})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-2 block",children:h.frequency}),u.jsxs(Mg,{value:c.frequency,onValueChange:g=>l({...c,frequency:g}),children:[u.jsx(Ig,{children:u.jsx(Dg,{})}),u.jsxs(Rg,{children:[u.jsx(ss,{value:"daily",children:h.daily}),u.jsx(ss,{value:"weekly",children:h.weekly}),u.jsx(ss,{value:"monthly",children:h.monthly})]})]})]}),u.jsx(je,{onClick:m,disabled:!c.url||o,className:"w-full",children:o?u.jsxs(u.Fragment,{children:[u.jsx(Dp,{className:"mr-2 h-4 w-4 animate-spin"}),e==="es"?"Creando...":"Creating..."]}):u.jsxs(u.Fragment,{children:[u.jsx(zs,{className:"mr-2 h-4 w-4"}),h.create]})})]})]}),u.jsxs(J,{children:[u.jsx(ne,{children:u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Vr,{className:"h-5 w-5"}),e==="es"?"Programaciones Existentes":"Existing Schedules"]})}),u.jsx(ee,{children:r.length===0?u.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[u.jsx(zs,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),u.jsx("p",{children:h.noSchedules})]}):u.jsx("div",{className:"space-y-4",children:r.map(g=>u.jsx("div",{className:"border rounded-lg p-4",children:u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsxs("div",{children:[u.jsx("div",{className:"font-medium",children:g.website_url}),u.jsxs("div",{className:"text-sm text-muted-foreground",children:[x(g.frequency)," ⢠",h.nextRun,": ",ua(new Date(g.next_run),"PPp",{locale:e==="es"?Bs:Fs})]})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(de,{variant:g.is_active?"default":"secondary",children:g.is_active?h.active:h.inactive}),u.jsx(Cp,{checked:g.is_active,onCheckedChange:w=>y(g.id,w)}),u.jsx(je,{size:"sm",variant:"outline",onClick:()=>v(g.id),children:u.jsx(gl,{className:"h-4 w-4"})})]})]})},g.id))})})]})]})},sz=({language:e})=>{const[t,r]=C.useState(""),[n,i]=C.useState(""),[a,o]=C.useState(!1),[s,c]=C.useState(!1),[l,d]=C.useState(null),[f,h]=C.useState("audit"),{user:p}=jn(),{subscription:m,isPro:v}=Vg(),x={es:{title:"SEO MEGA TOOL",subtitle:"AuditorÃa SEO Completa y Análisis Competitivo",description:"Analiza tu sitio web con nuestra herramienta completa de SEO que incluye auditorÃa técnica, análisis competitivo, rendimiento y más.",urlPlaceholder:"https://tusitio.com",competitorsPlaceholder:"competidor1.com, competidor2.com",analyzeButton:"Analizar Sitio Web",analyzing:"Analizando...",authRequired:"Inicia sesión para guardar tus auditorÃas",tabs:{audit:"AuditorÃa SEO",competitive:"Análisis Competitivo",performance:"Ren
112dimiento",history:"Historial",scheduler:"Programar"},features:["Análisis On-Page completo","Evaluación Off-Page y backlinks","AuditorÃa técnica SEO","Métricas de rendimiento","Análisis competitivo","Investigación de palabras clave","Seguimiento de posiciones","Análisis de redes sociales"]},en:{title:"SEO MEGA TOOL",subtitle:"Complete SEO Audit & Competitive Analysis",description:"Analyze your website with our comprehensive SEO tool that includes technical audit, competitive analysis, performance metrics and more.",urlPlaceholder:"https://yoursite.com",competitorsPlaceholder:"competitor1.com, competitor2.com",analyzeButton:"Analyze Website",analyzing:"Analyzing...",authRequired:"Sign in to save your audits",tabs:{audit:"SEO Audit",competitive:"Competitive Analysis",performance:"Performance",history:"History",scheduler:"Schedule"},features:["Complete On-Page analysis","Off-Page & backlink evaluation","Technical SEO audit","Performance metrics","Competitive analysis","Keyword research","Rank tracking","Social media analysis"]}}[e],g=async()=>{if(!p){Oe({title:"Autenticación requerida",description:"Debes iniciar sesión para usar esta herramienta",variant:"destructive"});return}if(!t){Oe({title:"URL requerida",description:"Por favor ingresa una URL para analizar",variant:"destructive"});return}o(!0);try{const{data:w,error:S}=await We.functions.invoke("seo-comprehensive-audit",{body:{url:t,user_id:p.id}});if(S)throw S;if(w!=null&&w.success)d(w),c(!0),Oe({title:"Análisis completado",description:"Tu auditorÃa SEO ha sido completada exitosamente."});else throw new Error((w==null?void 0:w.error)||"Analysis failed")}catch(w){console.error("SEO audit error:",w),Oe({title:"Error en el análisis",description:"Hubo un problema al analizar tu sitio web. Por favor, intenta de nuevo.",variant:"destructive"})}finally{o(!1)}};return p?u.jsxs("div",{className:"container mx-auto px-4 py-8",children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[u.jsx("div",{className:"p-3 rounded-full bg-primary/10",children:u.jsx(vt,{className:"h-8 w-8 text-primary"})}),u.jsx("h1",{className:"text-4xl font-bold bg-gradient-to-r from-primary to-primary-foreground bg-clip-text text-transparent",children:x.title})]}),u.jsx("p",{className:"text-xl text-muted-foreground mb-2",children:x.subtitle}),u.jsx("p",{className:"text-muted-foreground max-w-3xl mx-auto",children:x.description})]}),u.jsxs(J,{className:"mb-8",children:[u.jsxs(ne,{children:[u.jsxs(ie,{className:"flex items-center gap-2",children:[u.jsx(Lt,{className:"h-5 w-5"}),e==="es"?"Análisis de Sitio Web":"Website Analysis"]}),u.jsx(Ot,{children:e==="es"?"Ingresa la URL de tu sitio web y competidores para comenzar el análisis":"Enter your website URL and competitors to start the analysis"})]}),u.jsxs(ee,{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-2 block",children:e==="es"?"URL del Sitio Web":"Website URL"}),u.jsx(Or,{placeholder:x.urlPlaceholder,value:t,onChange:w=>r(w.target.value),className:"w-full"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-2 block",children:e==="es"?"Competidores (opcional)":"Competitors (optional)"}),u.jsx(Or,{placeholder:x.competitorsPlaceholder,value:n,onChange:w=>i(w.target.value),className:"w-full"})]}),u.jsx(je,{onClick:g,disabled:!t||a,className:"w-full",size:"lg",children:a?u.jsxs(u.Fragment,{children:[u.jsx(la,{className:"mr-2 h-4 w-4 animate-spin"}),x.analyzing]}):u.jsxs(u.Fragment,{children:[u.jsx(vt,{className:"mr-2 h-4 w-4"}),x.analyzeButton]})}),!p&&u.jsx("div",{className:"text-center text-sm text-muted-foreground mt-2",children:x.authRequired})]})]}),!s&&u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:x.features.map((w,S)=>u.jsx(J,{className:"text-center p-4",children:u.jsxs(ee,{className:"pt-0",children:[u.jsxs("div",{className:"flex items-center justify-center mb-2",children:[S===0&&u.jsx(Mp,{className:"h-6 w-6 text-primary"}),S===1&&u.jsx(Yr,{className:"h-6 w-6 text-primary"}),S===2&&u.jsx(la,{className:"h-6 w-6 text-primary"}),S===3&&u.jsx(Dp,{className:"h-6 w-6 text-primary"}),S===4&&u.jsx(bt,{className:"h-6 w-6 text-primary"}),S===5&&u.jsx(vt,{className:"h-6 w-6 text-primary"}),S===6&&u.jsx(Xr,{className:"h-6 w-6 text-primary"}),S===7&&u.jsx(Ws,{className:"h-6 w-6 text-primary"})]}),u.jsx("p",{className:"text-sm font-medium",children:w})]})},S))}),s&&l&&u.jsxs(uo,{value:f,onValueChange:h,className:"w-full",children:[u.jsxs(fo,{className:"grid w-full grid-cols-6",children:[u.jsxs(Ce,{value:"audit",className:"flex items-center gap-2",children:[u.jsx(vt,{className:"h-4 w-4"}),x.tabs.audit]}),u.jsxs(Ce,{value:"competitive",className:"flex items-center gap-2",children:[u.jsx(bt,{className:"h-4 w-4"}),x.tabs.competitive]}),u.jsxs(Ce,{value:"performance",className:"flex items-center gap-2",children:[u.jsx(la,{className:"h-4 w-4"}),x.tabs.performance]}),u.jsxs(Ce,{value:"connectors",className:"flex items-center gap-2",children:[u.jsx(Vr,{className:"h-4 w-4"}),e==="es"?"Conectores":"Connectors"]}),p&&u.jsxs(u.Fragment,{children:[u.jsxs(Ce,{value:"history",className:"flex items-center gap-2",children:[u.jsx(Ls,{className:"h-4 w-4"}),x.tabs.history]}),u.jsxs(Ce,{value:"scheduler",className:"flex items-center gap-2",children:[u.jsx(zs,{className:"h-4 w-4"}),x.tabs.scheduler]})]})]}),u.jsx(ke,{value:"audit",className:"mt-6",children:v()?u.jsx(Hg,{language:e,url:t,auditData:l}):u.jsx(qg,{language:e,url:t,auditData:l})}),u.jsx(ke,{value:"connectors",className:"mt-6",children:u.jsx(Kg,{language:e})}),u.jsx(ke,{value:"competitive",className:"mt-6",children:u.jsx(nz,{language:e,url:t,competitors:n})}),u.jsx(ke,{value:"performance",className:"mt-6",children:u.jsx(iz,{language:e,url:t,auditData:l})}),p&&u.jsxs(u.Fragment,{children:[u.jsx(ke,{value:"history",className:"mt-6",children:u.jsx(az,{language:e})}),u.jsx(ke,{value:"scheduler",className:"mt-6",children:u.jsx(oz,{language:e,url:t})})]})]})]}):u.jsxs("div",{className:"container mx-auto px-4 py-8",children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[u.jsx("div",{className:"p-3 rounded-full bg-primary/10",children:u.jsx(vt,{className:"h-8 w-8 text-primary"})}),u.jsx("h1",{className:"text-4xl font-bold bg-gradient-to-r from-primary to-primary-foreground bg-clip-text text-transparent",children:x.title})]}),u.jsx("p",{className:"text-xl text-muted-foreground mb-2",children:x.subtitle}),u.jsx("p",{className:"text-muted-foreground max-w-3xl mx-auto",children:x.description})]}),u.jsxs(J,{className:"max-w-2xl mx-auto",children:[u.jsxs(ne,{className:"text-center",children:[u.jsx("div",{className:"mx-auto mb-4 p-3 bg-primary/10 rounded-full w-fit",children:u.jsx(zg,{className:"h-8 w-8 text-primary"})}),u.jsx(ie,{className:"text-2xl",children:e==="es"?"Acceso Requerido":"Acce
112ss Required"}),u.jsx(Ot,{children:e==="es"?"Para usar nuestras herramientas avanzadas de SEO, necesitas crear una cuenta gratuita":"To use our advanced SEO tools, you need to create a free account"})]}),u.jsxs(ee,{className:"space-y-6",children:[u.jsxs(ei,{children:[u.jsx(Cu,{className:"h-4 w-4"}),u.jsx(ti,{children:e==="es"?"El registro es 100% gratuito y te dará acceso completo a todas nuestras herramientas profesionales de SEO":"Registration is 100% free and will give you full access to all our professional SEO tools"})]}),u.jsxs("div",{className:"grid gap-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(vt,{className:"h-5 w-5 text-primary"}),u.jsx("span",{className:"text-sm",children:e==="es"?"Análisis SEO completo y detallado":"Complete and detailed SEO analysis"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(bt,{className:"h-5 w-5 text-primary"}),u.jsx("span",{className:"text-sm",children:e==="es"?"Análisis competitivo avanzado":"Advanced competitive analysis"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Xr,{className:"h-5 w-5 text-primary"}),u.jsx("span",{className:"text-sm",children:e==="es"?"Métricas de rendimiento en tiempo real":"Real-time performance metrics"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Ls,{className:"h-5 w-5 text-primary"}),u.jsx("span",{className:"text-sm",children:e==="es"?"Historial de auditorÃas":"Audit history"})]})]}),u.jsxs("div",{className:"text-center pt-4",children:[u.jsx(Sg,{to:"/auth",children:u.jsxs(je,{size:"lg",className:"w-full",children:[u.jsx(Cu,{className:"mr-2 h-4 w-4"}),e==="es"?"Crear Cuenta Gratuita":"Create Free Account"]})}),u.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:e==="es"?"¿Ya tienes cuenta? Haz clic arriba para iniciar sesión":"Already have an account? Click above to sign in"})]})]})]})]})},Xz=()=>{const{language:e,url:t,esUrl:r,enUrl:n,onLanguageChange:i}=_g(),o={es:{title:"SEO MEGA TOOL - AuditorÃa SEO Completa y Análisis Competitivo | Luis ROC",description:"Herramienta completa de auditorÃa SEO con análisis on-page, off-page, técnico, rendimiento y análisis competitivo. Obtén insights detallados para mejorar tu posicionamiento.",url:"https://luisroc.com/herramientas/seo-mega-tool"},en:{title:"SEO MEGA TOOL - Complete SEO Audit & Competitive Analysis | Luis ROC",description:"Complete SEO audit tool with on-page, off-page, technical, performance analysis and competitive research. Get detailed insights to improve your rankings.",url:"https://luisroc.com/tools/seo-mega-tool"}}[e];return u.jsxs(u.Fragment,{children:[u.jsxs(Ag,{children:[u.jsx("html",{lang:e}),u.jsx("title",{children:o.title}),u.jsx("meta",{name:"description",content:o.description}),u.jsx("link",{rel:"canonical",href:t}),u.jsx("meta",{property:"og:type",content:"website"}),u.jsx("meta",{property:"og:title",content:o.title}),u.jsx("meta",{property:"og:description",content:o.description}),u.jsx("meta",{property:"og:url",content:t}),u.jsx("meta",{name:"keywords",content:"SEO audit, competitive analysis, on-page SEO, technical SEO, backlink analysis, keyword research, site performance"})]}),u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Pg,{language:e,onLanguageChange:i}),u.jsx("main",{children:u.jsx(sz,{language:e})}),u.jsx($g,{language:e})]})]})};export{Xz as default}; 113//# sourceMappingURL=SEOMegaToolPage-ApDHRrqX.js.map
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.