@gram-ai/elements 1.30.1 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/elements.cjs +1 -1
- package/dist/elements.css +1 -1
- package/dist/elements.js +2 -2
- package/dist/{index-4kebYSVY.js → index-C2i7R8R4.js} +5 -5
- package/dist/{index-4kebYSVY.js.map → index-C2i7R8R4.js.map} +1 -1
- package/dist/{index-CRhpKl-G.js → index-DPvsLSiy.js} +6897 -6738
- package/dist/index-DPvsLSiy.js.map +1 -0
- package/dist/index-d983oB4d.cjs +280 -0
- package/dist/index-d983oB4d.cjs.map +1 -0
- package/dist/{index-j7ZTyK_F.cjs → index-xXZAaORp.cjs} +4 -4
- package/dist/{index-j7ZTyK_F.cjs.map → index-xXZAaORp.cjs.map} +1 -1
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/{profiler-DS2JBj9s.js → profiler-DWKg-c7U.js} +2 -2
- package/dist/{profiler-DS2JBj9s.js.map → profiler-DWKg-c7U.js.map} +1 -1
- package/dist/{profiler-DQbQSZrm.cjs → profiler-HGfBsyH2.cjs} +2 -2
- package/dist/{profiler-DQbQSZrm.cjs.map → profiler-HGfBsyH2.cjs.map} +1 -1
- package/dist/{startRecording-BRRW8lGG.cjs → startRecording-Bu-GoQ7F.cjs} +2 -2
- package/dist/{startRecording-BRRW8lGG.cjs.map → startRecording-Bu-GoQ7F.cjs.map} +1 -1
- package/dist/{startRecording-BEVJ7NHn.js → startRecording-DJTfrko4.js} +2 -2
- package/dist/{startRecording-BEVJ7NHn.js.map → startRecording-DJTfrko4.js.map} +1 -1
- package/package.json +4 -4
- package/dist/index-COzPF-WM.cjs +0 -280
- package/dist/index-COzPF-WM.cjs.map +0 -1
- package/dist/index-CRhpKl-G.js.map +0 -1
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"use strict";const _=require("react/jsx-runtime"),S=require("react"),HS=require("react-dom");function VS(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const E=VS(S),Ys=VS(HS);var ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function KS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=KS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ce(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=KS(e))&&(n&&(n+=" "),n+=t);return n}const wC=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},OC=(e,t)=>({classGroupId:e,validator:t}),GS=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ro="-",zm=[],SC="arbitrary..",AC=e=>{const t=PC(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return _C(o);const s=o.split(Ro),c=s[0]===""&&s.length>1?1:0;return YS(s,c,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const c=n[o],u=r[o];return c?u?wC(u,c):c:u||zm}return r[o]||zm}}},YS=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=YS(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(Ro):e.slice(t).join(Ro),c=o.length;for(let u=0;u<c;u++){const l=o[u];if(l.validator(s))return l.classGroupId}},_C=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?SC+n:void 0})(),PC=e=>{const{theme:t,classGroups:r}=e;return EC(r,t)},EC=(e,t)=>{const r=GS();for(const n in e){const i=e[n];ev(i,r,n,t)}return r},ev=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];TC(o,t,r,n)}},TC=(e,t,r,n)=>{if(typeof e=="string"){CC(e,t,r);return}if(typeof e=="function"){jC(e,t,r,n);return}IC(e,t,r,n)},CC=(e,t,r)=>{const n=e===""?t:XS(t,e);n.classGroupId=r},jC=(e,t,r,n)=>{if(kC(e)){ev(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(OC(r,e))},IC=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,c]=i[o];ev(c,XS(t,s),r,n)}},XS=(e,t)=>{let r=e;const n=t.split(Ro),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=GS(),r.nextPart.set(o,s)),r=s}return r},kC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,RC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},vp="!",Wm=":",MC=[],Um=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),$C=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,c=0,u;const l=i.length;for(let p=0;p<l;p++){const v=i[p];if(o===0&&s===0){if(v===Wm){a.push(i.slice(c,p)),c=p+1;continue}if(v==="/"){u=p;continue}}v==="["?o++:v==="]"?o--:v==="("?s++:v===")"&&s--}const f=a.length===0?i:i.slice(c);let d=f,h=!1;f.endsWith(vp)?(d=f.slice(0,-1),h=!0):f.startsWith(vp)&&(d=f.slice(1),h=!0);const m=u&&u>c?u-c:void 0;return Um(a,h,d,m)};if(t){const i=t+Wm,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):Um(MC,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},NC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",c=t.has(o);s||c?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},DC=e=>({cache:RC(e.cacheSize),parseClassName:$C(e),sortModifiers:NC(e),...AC(e)}),LC=/\s+/,BC=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(LC);let c="";for(let u=s.length-1;u>=0;u-=1){const l=s[u],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:p}=r(l);if(f){c=l+(c.length>0?" "+c:c);continue}let v=!!p,y=n(v?m.substring(0,p):m);if(!y){if(!v){c=l+(c.length>0?" "+c:c);continue}if(y=n(m),!y){c=l+(c.length>0?" "+c:c);continue}v=!1}const g=d.length===0?"":d.length===1?d[0]:a(d).join(":"),x=h?g+vp:g,O=x+y;if(o.indexOf(O)>-1)continue;o.push(O);const b=i(y,v);for(let w=0;w<b.length;++w){const A=b[w];o.push(x+A)}c=l+(c.length>0?" "+c:c)}return c},qC=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=ZS(r))&&(i&&(i+=" "),i+=n);return i},ZS=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ZS(e[n]))&&(r&&(r+=" "),r+=t);return r},FC=(e,...t)=>{let r,n,i,a;const o=c=>{const u=t.reduce((l,f)=>f(l),e());return r=DC(u),n=r.cache.get,i=r.cache.set,a=s,s(c)},s=c=>{const u=n(c);if(u)return u;const l=BC(c,r);return i(c,l),l};return a=o,(...c)=>a(qC(...c))},zC=[],Ne=e=>{const t=r=>r[e]||zC;return t.isThemeGetter=!0,t},JS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,QS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,WC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,UC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,VC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,KC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yr=e=>WC.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),gr=e=>!!e&&Number.isInteger(Number(e)),Kc=e=>e.endsWith("%")&&pe(e.slice(0,-1)),Xt=e=>UC.test(e),eA=()=>!0,YC=e=>HC.test(e)&&!VC.test(e),tv=()=>!1,XC=e=>KC.test(e),ZC=e=>GC.test(e),JC=e=>!re(e)&&!ne(e),QC=e=>kr(e,nA,tv),re=e=>JS.test(e),Ur=e=>kr(e,iA,YC),Hm=e=>kr(e,sj,pe),ej=e=>kr(e,oA,eA),tj=e=>kr(e,aA,tv),Vm=e=>kr(e,tA,tv),rj=e=>kr(e,rA,ZC),no=e=>kr(e,sA,XC),ne=e=>QS.test(e),Ri=e=>dn(e,iA),nj=e=>dn(e,aA),Km=e=>dn(e,tA),ij=e=>dn(e,nA),aj=e=>dn(e,rA),io=e=>dn(e,sA,!0),oj=e=>dn(e,oA,!0),kr=(e,t,r)=>{const n=JS.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},dn=(e,t,r=!1)=>{const n=QS.exec(e);return n?n[1]?t(n[1]):r:!1},tA=e=>e==="position"||e==="percentage",rA=e=>e==="image"||e==="url",nA=e=>e==="length"||e==="size"||e==="bg-size",iA=e=>e==="length",sj=e=>e==="number",aA=e=>e==="family-name",oA=e=>e==="number"||e==="weight",sA=e=>e==="shadow",cj=()=>{const e=Ne("color"),t=Ne("font"),r=Ne("text"),n=Ne("font-weight"),i=Ne("tracking"),a=Ne("leading"),o=Ne("breakpoint"),s=Ne("container"),c=Ne("spacing"),u=Ne("radius"),l=Ne("shadow"),f=Ne("inset-shadow"),d=Ne("text-shadow"),h=Ne("drop-shadow"),m=Ne("blur"),p=Ne("perspective"),v=Ne("aspect"),y=Ne("ease"),g=Ne("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...O(),ne,re],w=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],P=()=>[ne,re,c],T=()=>[yr,"full","auto",...P()],k=()=>[gr,"none","subgrid",ne,re],C=()=>["auto",{span:["full",gr,ne,re]},gr,ne,re],j=()=>[gr,"auto",ne,re],R=()=>["auto","min","max","fr",ne,re],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...P()],D=()=>[yr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],B=()=>[yr,"screen","full","dvw","lvw","svw","min","max","fit",...P()],W=()=>[yr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],I=()=>[e,ne,re],z=()=>[...O(),Km,Vm,{position:[ne,re]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",ij,QC,{size:[ne,re]}],X=()=>[Kc,Ri,Ur],Z=()=>["","none","full",u,ne,re],J=()=>["",pe,Ri,Ur],V=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[pe,Kc,Km,Vm],H=()=>["","none",m,ne,re],Y=()=>["none",pe,ne,re],L=()=>["none",pe,ne,re],ue=()=>[pe,ne,re],le=()=>[yr,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xt],breakpoint:[Xt],color:[eA],container:[Xt],"drop-shadow":[Xt],ease:["in","out","in-out"],font:[JC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xt],shadow:[Xt],spacing:["px",pe],text:[Xt],"text-shadow":[Xt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yr,re,ne,v]}],container:["container"],columns:[{columns:[pe,re,ne,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[gr,"auto",ne,re]}],basis:[{basis:[yr,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,yr,"auto","initial","none",re]}],grow:[{grow:["",pe,ne,re]}],shrink:[{shrink:["",pe,ne,re]}],order:[{order:[gr,"first","last","none",ne,re]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[s,"screen",...D()]}],"min-w":[{"min-w":[s,"screen","none",...D()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,Ri,Ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,oj,ej]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kc,re]}],"font-family":[{font:[nj,tj,t]}],"font-features":[{"font-features":[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ne,re]}],"line-clamp":[{"line-clamp":[pe,"none",ne,Hm]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",ne,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",ne,Ur]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[pe,"auto",ne,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gr,ne,re],radial:["",ne,re],conic:[gr,ne,re]},aj,rj]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,ne,re]}],"outline-w":[{outline:["",pe,Ri,Ur]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",l,io,no]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",f,io,no]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[pe,Ur]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",d,io,no]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[pe,ne,re]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ne,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,re]}],filter:[{filter:["","none",ne,re]}],blur:[{blur:H()}],brightness:[{brightness:[pe,ne,re]}],contrast:[{contrast:[pe,ne,re]}],"drop-shadow":[{"drop-shadow":["","none",h,io,no]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",pe,ne,re]}],"hue-rotate":[{"hue-rotate":[pe,ne,re]}],invert:[{invert:["",pe,ne,re]}],saturate:[{saturate:[pe,ne,re]}],sepia:[{sepia:["",pe,ne,re]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,re]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[pe,ne,re]}],"backdrop-contrast":[{"backdrop-contrast":[pe,ne,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,ne,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,ne,re]}],"backdrop-invert":[{"backdrop-invert":["",pe,ne,re]}],"backdrop-opacity":[{"backdrop-opacity":[pe,ne,re]}],"backdrop-saturate":[{"backdrop-saturate":[pe,ne,re]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,ne,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",ne,re]}],ease:[{ease:["linear","initial",y,ne,re]}],delay:[{delay:[pe,ne,re]}],animate:[{animate:["none",g,ne,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,ne,re]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[ne,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,re]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[pe,Ri,Ur,Hm]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},uj=FC(cj);function ie(...e){return uj(ce(e))}function lj(e){throw new Error(`Unexpected value: ${e}`)}function fj(e,t){if(!e)throw new Error(t)}const cA=S.createContext(null),dj=()=>{const e=S.useContext(cA);if(!e)throw new Error("useChatId must be used within ElementsProvider");return e.chatId},uA=S.createContext(void 0),pj=S.createContext(null),rv=()=>{const e=S.useContext(uA);if(!e)throw new Error("useElements must be used within a ElementsProvider");return e},hj={compact:{"p-xs":"p-1","p-sm":"p-1.5","p-md":"p-2","p-lg":"p-2.5","p-xl":"p-3","px-xs":"px-1","px-sm":"px-1.5","px-md":"px-2","px-lg":"px-2.5","px-xl":"px-3","py-xs":"py-1","py-sm":"py-1.5","py-md":"py-2","py-lg":"py-2.5","py-xl":"py-3","gap-sm":"gap-1","gap-md":"gap-1.5","gap-lg":"gap-2","gap-xl":"gap-2.5","h-header":"h-10","h-input":"min-h-10","text-base":"text-sm","text-title":"text-xl","text-subtitle":"text-sm"},normal:{"p-xs":"p-1","p-sm":"p-2","p-md":"p-3","p-lg":"p-4","p-xl":"p-6","px-xs":"px-1","px-sm":"px-2","px-md":"px-3","px-lg":"px-4","px-xl":"px-6","py-xs":"py-1","py-sm":"py-2","py-md":"py-3","py-lg":"py-4","py-xl":"py-6","gap-sm":"gap-1.5","gap-md":"gap-2","gap-lg":"gap-3","gap-xl":"gap-4","h-header":"h-12","h-input":"min-h-12","text-base":"text-base","text-title":"text-2xl","text-subtitle":"text-base"},spacious:{"p-xs":"p-2","p-sm":"p-3","p-md":"p-4","p-lg":"p-6","p-xl":"p-10","px-xs":"px-2","px-sm":"px-3","px-md":"px-4","px-lg":"px-6","px-xl":"px-10","py-xs":"py-2","py-sm":"py-3","py-md":"py-4","py-lg":"py-6","py-xl":"py-10","gap-sm":"gap-2","gap-md":"gap-3","gap-lg":"gap-4","gap-xl":"gap-6","h-header":"h-14","h-input":"min-h-16","text-base":"text-lg","text-title":"text-3xl","text-subtitle":"text-lg"}},nv=()=>{const{config:e}=rv(),t=e.theme?.density??"normal";return r=>hj[t][r]};function lA(e){return typeof e=="object"&&e!==null&&"type"in e&&typeof e.type=="string"}const fA=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const vj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const mj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const Gm=e=>{const t=mj(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Gc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const yj=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},gj=S.createContext({}),bj=()=>S.useContext(gj),xj=S.forwardRef(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},c)=>{const{size:u=24,strokeWidth:l=2,absoluteStrokeWidth:f=!1,color:d="currentColor",className:h=""}=bj()??{},m=n??f?Number(r??l)*24/Number(t??u):r??l;return S.createElement("svg",{ref:c,...Gc,width:t??u??Gc.width,height:t??u??Gc.height,stroke:e??d,strokeWidth:m,className:fA("lucide",h,i),...!a&&!yj(s)&&{"aria-hidden":"true"},...s},[...o.map(([p,v])=>S.createElement(p,v)),...Array.isArray(a)?a:[a]])});const qa=(e,t)=>{const r=S.forwardRef(({className:n,...i},a)=>S.createElement(xj,{ref:a,iconNode:t,className:fA(`lucide-${vj(Gm(e))}`,`lucide-${e}`,n),...i}));return r.displayName=Gm(e),r};const wj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],iv=qa("check",wj);const Oj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xs=qa("chevron-down",Oj);const Sj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],dA=qa("chevron-up",Sj);const Aj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],av=qa("circle-alert",Aj),_j={sharp:{sm:"rounded-sm",md:"rounded",lg:"rounded-md",xl:"rounded-lg",full:"rounded-lg"},soft:{sm:"rounded",md:"rounded-lg",lg:"rounded-xl",xl:"rounded-2xl",full:"rounded-full"},round:{sm:"rounded-lg",md:"rounded-xl",lg:"rounded-2xl",xl:"rounded-3xl",full:"rounded-full"}},pA=()=>{const{config:e}=rv(),t=e.theme?.radius??"soft";return r=>_j[t][r]},Mo=({children:e,className:t,title:r})=>{const n=pA();return _.jsx("div",{className:"@container my-4 w-full first:mt-0",children:_.jsxs("div",{className:ie("w-full overflow-hidden border border-border after:hidden @sm:max-w-md @md:max-w-lg @lg:max-w-xl @xl:max-w-2xl",n("lg"),t),children:[_.jsxs("div",{className:"flex h-8 items-center gap-2 border-b border-border bg-muted/50 px-3",children:[_.jsxs("div",{className:"flex items-center gap-1.5",children:[_.jsx("div",{className:"size-3 rounded-full bg-[#FF5F57]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#FEBC2E]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#28C840]"})]}),r&&_.jsx("span",{className:"flex-1 text-center text-xs font-medium text-muted-foreground",children:r})]}),e]})})},Pj=({text:e,className:t})=>_.jsx(Mo,{className:t,children:_.jsx("div",{className:ie("relative flex min-h-[400px] items-center justify-center bg-background"),children:_.jsx("span",{className:"shimmer text-sm text-muted-foreground",children:e})})});var Yc,Ym;function rt(){if(Ym)return Yc;Ym=1;var e=Array.isArray;return Yc=e,Yc}var Xc,Xm;function hA(){if(Xm)return Xc;Xm=1;var e=typeof ro=="object"&&ro&&ro.Object===Object&&ro;return Xc=e,Xc}var Zc,Zm;function Ut(){if(Zm)return Zc;Zm=1;var e=hA(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Zc=r,Zc}var Jc,Jm;function Fa(){if(Jm)return Jc;Jm=1;var e=Ut(),t=e.Symbol;return Jc=t,Jc}var Qc,Qm;function Ej(){if(Qm)return Qc;Qm=1;var e=Fa(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),c=o[i];try{o[i]=void 0;var u=!0}catch{}var l=n.call(o);return u&&(s?o[i]=c:delete o[i]),l}return Qc=a,Qc}var eu,ey;function Tj(){if(ey)return eu;ey=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return eu=r,eu}var tu,ty;function pr(){if(ty)return tu;ty=1;var e=Fa(),t=Ej(),r=Tj(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return tu=o,tu}var ru,ry;function hr(){if(ry)return ru;ry=1;function e(t){return t!=null&&typeof t=="object"}return ru=e,ru}var nu,ny;function mi(){if(ny)return nu;ny=1;var e=pr(),t=hr(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return nu=n,nu}var iu,iy;function ov(){if(iy)return iu;iy=1;var e=rt(),t=mi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return iu=i,iu}var au,ay;function Rr(){if(ay)return au;ay=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return au=e,au}var ou,oy;function sv(){if(oy)return ou;oy=1;var e=pr(),t=Rr(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==a}return ou=o,ou}var su,sy;function Cj(){if(sy)return su;sy=1;var e=Ut(),t=e["__core-js_shared__"];return su=t,su}var cu,cy;function jj(){if(cy)return cu;cy=1;var e=Cj(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return cu=r,cu}var uu,uy;function vA(){if(uy)return uu;uy=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return uu=r,uu}var lu,ly;function Ij(){if(ly)return lu;ly=1;var e=sv(),t=jj(),r=Rr(),n=vA(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,c=o.toString,u=s.hasOwnProperty,l=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?l:a;return h.test(n(d))}return lu=f,lu}var fu,fy;function kj(){if(fy)return fu;fy=1;function e(t,r){return t?.[r]}return fu=e,fu}var du,dy;function pn(){if(dy)return du;dy=1;var e=Ij(),t=kj();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return du=r,du}var pu,py;function Zs(){if(py)return pu;py=1;var e=pn(),t=e(Object,"create");return pu=t,pu}var hu,hy;function Rj(){if(hy)return hu;hy=1;var e=Zs();function t(){this.__data__=e?e(null):{},this.size=0}return hu=t,hu}var vu,vy;function Mj(){if(vy)return vu;vy=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return vu=e,vu}var mu,my;function $j(){if(my)return mu;my=1;var e=Zs(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return mu=i,mu}var yu,yy;function Nj(){if(yy)return yu;yy=1;var e=Zs(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return yu=n,yu}var gu,gy;function Dj(){if(gy)return gu;gy=1;var e=Zs(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return gu=r,gu}var bu,by;function Lj(){if(by)return bu;by=1;var e=Rj(),t=Mj(),r=$j(),n=Nj(),i=Dj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,bu=a,bu}var xu,xy;function Bj(){if(xy)return xu;xy=1;function e(){this.__data__=[],this.size=0}return xu=e,xu}var wu,wy;function cv(){if(wy)return wu;wy=1;function e(t,r){return t===r||t!==t&&r!==r}return wu=e,wu}var Ou,Oy;function Js(){if(Oy)return Ou;Oy=1;var e=cv();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Ou=t,Ou}var Su,Sy;function qj(){if(Sy)return Su;Sy=1;var e=Js(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Su=n,Su}var Au,Ay;function Fj(){if(Ay)return Au;Ay=1;var e=Js();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Au=t,Au}var _u,_y;function zj(){if(_y)return _u;_y=1;var e=Js();function t(r){return e(this.__data__,r)>-1}return _u=t,_u}var Pu,Py;function Wj(){if(Py)return Pu;Py=1;var e=Js();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Pu=t,Pu}var Eu,Ey;function Qs(){if(Ey)return Eu;Ey=1;var e=Bj(),t=qj(),r=Fj(),n=zj(),i=Wj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Eu=a,Eu}var Tu,Ty;function uv(){if(Ty)return Tu;Ty=1;var e=pn(),t=Ut(),r=e(t,"Map");return Tu=r,Tu}var Cu,Cy;function Uj(){if(Cy)return Cu;Cy=1;var e=Lj(),t=Qs(),r=uv();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Cu=n,Cu}var ju,jy;function Hj(){if(jy)return ju;jy=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ju=e,ju}var Iu,Iy;function ec(){if(Iy)return Iu;Iy=1;var e=Hj();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Iu=t,Iu}var ku,ky;function Vj(){if(ky)return ku;ky=1;var e=ec();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ku=t,ku}var Ru,Ry;function Kj(){if(Ry)return Ru;Ry=1;var e=ec();function t(r){return e(this,r).get(r)}return Ru=t,Ru}var Mu,My;function Gj(){if(My)return Mu;My=1;var e=ec();function t(r){return e(this,r).has(r)}return Mu=t,Mu}var $u,$y;function Yj(){if($y)return $u;$y=1;var e=ec();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return $u=t,$u}var Nu,Ny;function lv(){if(Ny)return Nu;Ny=1;var e=Uj(),t=Vj(),r=Kj(),n=Gj(),i=Yj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Nu=a,Nu}var Du,Dy;function mA(){if(Dy)return Du;Dy=1;var e=lv(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],c=a.cache;if(c.has(s))return c.get(s);var u=n.apply(this,o);return a.cache=c.set(s,u)||c,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Du=r,Du}var Lu,Ly;function Xj(){if(Ly)return Lu;Ly=1;var e=mA(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Lu=r,Lu}var Bu,By;function Zj(){if(By)return Bu;By=1;var e=Xj(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,c,u){a.push(c?u.replace(r,"$1"):s||o)}),a});return Bu=n,Bu}var qu,qy;function fv(){if(qy)return qu;qy=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return qu=e,qu}var Fu,Fy;function Jj(){if(Fy)return Fu;Fy=1;var e=Fa(),t=fv(),r=rt(),n=mi(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return Fu=o,Fu}var zu,zy;function yA(){if(zy)return zu;zy=1;var e=Jj();function t(r){return r==null?"":e(r)}return zu=t,zu}var Wu,Wy;function gA(){if(Wy)return Wu;Wy=1;var e=rt(),t=ov(),r=Zj(),n=yA();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Wu=i,Wu}var Uu,Uy;function tc(){if(Uy)return Uu;Uy=1;var e=mi();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Uu=t,Uu}var Hu,Hy;function dv(){if(Hy)return Hu;Hy=1;var e=gA(),t=tc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Hu=r,Hu}var Vu,Vy;function bA(){if(Vy)return Vu;Vy=1;var e=dv();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Vu=t,Vu}var Qj=bA();const ct=ge(Qj);var Ku,Ky;function eI(){if(Ky)return Ku;Ky=1;function e(t){return t==null}return Ku=e,Ku}var tI=eI();const oe=ge(tI);var Gu,Gy;function rI(){if(Gy)return Gu;Gy=1;var e=pr(),t=rt(),r=hr(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Gu=i,Gu}var nI=rI();const an=ge(nI);var iI=sv();const ae=ge(iI);var aI=Rr();const yi=ge(aI);var ao={exports:{}},be={};var Yy;function oI(){if(Yy)return be;Yy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case e:switch(p=p.type,p){case r:case i:case n:case c:case u:case d:return p;default:switch(p=p&&p.$$typeof,p){case o:case s:case f:case l:return p;case a:return p;default:return v}}case t:return v}}}return be.ContextConsumer=a,be.ContextProvider=o,be.Element=e,be.ForwardRef=s,be.Fragment=r,be.Lazy=f,be.Memo=l,be.Portal=t,be.Profiler=i,be.StrictMode=n,be.Suspense=c,be.SuspenseList=u,be.isContextConsumer=function(p){return m(p)===a},be.isContextProvider=function(p){return m(p)===o},be.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},be.isForwardRef=function(p){return m(p)===s},be.isFragment=function(p){return m(p)===r},be.isLazy=function(p){return m(p)===f},be.isMemo=function(p){return m(p)===l},be.isPortal=function(p){return m(p)===t},be.isProfiler=function(p){return m(p)===i},be.isStrictMode=function(p){return m(p)===n},be.isSuspense=function(p){return m(p)===c},be.isSuspenseList=function(p){return m(p)===u},be.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===l||p.$$typeof===o||p.$$typeof===a||p.$$typeof===s||p.$$typeof===h||p.getModuleId!==void 0)},be.typeOf=m,be}var xe={};var Xy;function sI(){return Xy||(Xy=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case t:switch(p=p.type,p){case n:case a:case i:case u:case l:case h:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case d:case f:return p;case o:return p;default:return v}}case r:return v}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");xe.ContextConsumer=o,xe.ContextProvider=s,xe.Element=t,xe.ForwardRef=c,xe.Fragment=n,xe.Lazy=d,xe.Memo=f,xe.Portal=r,xe.Profiler=a,xe.StrictMode=i,xe.Suspense=u,xe.SuspenseList=l,xe.isContextConsumer=function(p){return e(p)===o},xe.isContextProvider=function(p){return e(p)===s},xe.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},xe.isForwardRef=function(p){return e(p)===c},xe.isFragment=function(p){return e(p)===n},xe.isLazy=function(p){return e(p)===d},xe.isMemo=function(p){return e(p)===f},xe.isPortal=function(p){return e(p)===r},xe.isProfiler=function(p){return e(p)===a},xe.isStrictMode=function(p){return e(p)===i},xe.isSuspense=function(p){return e(p)===u},xe.isSuspenseList=function(p){return e(p)===l},xe.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===a||p===i||p===u||p===l||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===s||p.$$typeof===o||p.$$typeof===c||p.$$typeof===m||p.getModuleId!==void 0)},xe.typeOf=e})()),xe}var Zy;function pv(){return Zy||(Zy=1,process.env.NODE_ENV==="production"?ao.exports=oI():ao.exports=sI()),ao.exports}var cI=pv(),Yu,Jy;function xA(){if(Jy)return Yu;Jy=1;var e=pr(),t=hr(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Yu=n,Yu}var Xu,Qy;function uI(){if(Qy)return Xu;Qy=1;var e=xA();function t(r){return e(r)&&r!=+r}return Xu=t,Xu}var lI=uI();const gi=ge(lI);var fI=xA();const dI=ge(fI);var Xe=function(t){return t===0?0:t>0?1:-1},Zr=function(t){return an(t)&&t.indexOf("%")===t.length-1},K=function(t){return dI(t)&&!gi(t)},pI=function(t){return oe(t)},Be=function(t){return K(t)||an(t)},hI=0,Mr=function(t){var r=++hI;return"".concat(t||"").concat(r)},Ze=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(!K(t)&&!an(t))return n;var a;if(Zr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gi(a)&&(a=n),i&&a>r&&(a=r),a},Or=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},vI=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},Oe=function(t,r){return K(t)&&K(r)?function(n){return t+n*(r-t)}:function(){return r}};function $o(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ct(n,t))===r})}var mI=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,c=-1/0,u=0,l=0,f=0;f<r;f++)u=t[f].cx||0,l=t[f].cy||0,n+=u,i+=l,a+=u*l,o+=u*u,s=Math.min(s,u),c=Math.max(c,u);var d=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:c,a:d,b:(i-d*n)/r}},yI=function(t,r){return K(t)&&K(r)?t-r:an(t)&&an(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function kn(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 mp(e){"@babel/helpers - typeof";return mp=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},mp(e)}var gI=["viewBox","children"],bI=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],eg=["points","pathLength"],Zu={svg:gI,polygon:eg,polyline:eg},hv=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],No=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(S.isValidElement(t)&&(n=t.props),!yi(n))return null;var i={};return Object.keys(n).forEach(function(a){hv.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},xI=function(t,r,n){return function(i){return t(r,n,i),null}},Cr=function(t,r,n){if(!yi(t)||mp(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];hv.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=xI(o,r,n))}),i},wI=["children"],OI=["children"];function tg(e,t){if(e==null)return{};var r=SI(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 SI(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 yp(e){"@babel/helpers - typeof";return yp=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},yp(e)}var rg={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"},nr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},ng=null,Ju=null,vv=function e(t){if(t===ng&&Array.isArray(Ju))return Ju;var r=[];return S.Children.forEach(t,function(n){oe(n)||(cI.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Ju=r,ng=t,r};function Qe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return nr(i)}):n=[nr(t)],vv(e).forEach(function(i){var a=ct(i,"type.displayName")||ct(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function at(e,t){var r=Qe(e,t);return r&&r[0]}var ig=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!K(n)||n<=0||!K(i)||i<=0)},AI=["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"],_I=function(t){return t&&t.type&&an(t.type)&&AI.indexOf(t.type)>=0},wA=function(t){return t&&yp(t)==="object"&&"clipDot"in t},PI=function(t,r,n,i){var a,o=(a=Zu?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!ae(t)&&(i&&o.includes(r)||bI.includes(r))||n&&hv.includes(r)},ee=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(S.isValidElement(t)&&(i=t.props),!yi(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;PI((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},gp=function e(t,r){if(t===r)return!0;var n=S.Children.count(t);if(n!==S.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ag(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(!ag(a,o))return!1}return!0},ag=function(t,r){if(oe(t)&&oe(r))return!0;if(!oe(t)&&!oe(r)){var n=t.props||{},i=n.children,a=tg(n,wI),o=r.props||{},s=o.children,c=tg(o,OI);return i&&s?kn(a,c)&&gp(i,s):!i&&!s?kn(a,c):!1}return!1},og=function(t,r){var n=[],i={};return vv(t).forEach(function(a,o){if(_I(a))n.push(a);else if(a){var s=nr(a.type),c=r[s]||{},u=c.handler,l=c.once;if(u&&(!l||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},EI=function(t){var r=t&&t.type;return r&&rg[r]?rg[r]:null},TI=function(t,r){return vv(r).indexOf(t)},CI=["children","width","height","viewBox","className","style","title","desc"];function bp(){return bp=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},bp.apply(this,arguments)}function jI(e,t){if(e==null)return{};var r=II(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 II(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 xp(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,u=jI(e,CI),l=i||{width:r,height:n,x:0,y:0},f=ce("recharts-surface",a);return S.createElement("svg",bp({},ee(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),S.createElement("title",null,s),S.createElement("desc",null,c),t)}var kI=["children","className"];function wp(){return wp=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},wp.apply(this,arguments)}function RI(e,t){if(e==null)return{};var r=MI(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 MI(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 fe=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=RI(e,kI),a=ce("recharts-layer",n);return S.createElement("g",wp({className:a},ee(i,!0),{ref:t}),r)}),$I=process.env.NODE_ENV!=="production",Pt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if($I&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Qu,sg;function NI(){if(sg)return Qu;sg=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Qu=e,Qu}var el,cg;function DI(){if(cg)return el;cg=1;var e=NI();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return el=t,el}var tl,ug;function OA(){if(ug)return tl;ug=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function c(u){return s.test(u)}return tl=c,tl}var rl,lg;function LI(){if(lg)return rl;lg=1;function e(t){return t.split("")}return rl=e,rl}var nl,fg;function BI(){if(fg)return nl;fg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+c+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",m=u+"?",p="["+a+"]?",v="(?:"+h+"(?:"+[l,f,d].join("|")+")"+p+m+")*",y=p+m+v,g="(?:"+[l+s+"?",s,f,d,o].join("|")+")",x=RegExp(c+"(?="+c+")|"+g+y,"g");function O(b){return b.match(x)||[]}return nl=O,nl}var il,dg;function qI(){if(dg)return il;dg=1;var e=LI(),t=OA(),r=BI();function n(i){return t(i)?r(i):e(i)}return il=n,il}var al,pg;function FI(){if(pg)return al;pg=1;var e=DI(),t=OA(),r=qI(),n=yA();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,c=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return c[a]()+u}}return al=i,al}var ol,hg;function zI(){if(hg)return ol;hg=1;var e=FI(),t=e("toUpperCase");return ol=t,ol}var WI=zI();const rc=ge(WI);function Pe(e){return function(){return e}}const SA=Math.cos,Do=Math.sin,It=Math.sqrt,Lo=Math.PI,nc=2*Lo,Op=Math.PI,Sp=2*Op,Gr=1e-6,UI=Sp-Gr;function AA(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function HI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return AA;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 VI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?AA:HI(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,c=n-t,u=i-r,l=o-t,f=s-r,d=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Gr)if(!(Math.abs(f*c-u*l)>Gr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,m=i-s,p=c*c+u*u,v=h*h+m*m,y=Math.sqrt(p),g=Math.sqrt(d),x=a*Math.tan((Op-Math.acos((p+d-v)/(2*y*g)))/2),O=x/g,b=x/y;Math.abs(O-1)>Gr&&this._append`L${t+O*l},${r+O*f}`,this._append`A${a},${a},0,0,${+(f*h>l*m)},${this._x1=t+b*c},${this._y1=r+b*u}`}}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),u=t+s,l=r+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Gr||Math.abs(this._y1-l)>Gr)&&this._append`L${u},${l}`,n&&(d<0&&(d=d%Sp+Sp),d>UI?this._append`A${n},${n},0,1,${f},${t-s},${r-c}A${n},${n},0,1,${f},${this._x1=u},${this._y1=l}`:d>Gr&&this._append`A${n},${n},0,${+(d>=Op)},${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 mv(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 VI(t)}function yv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function _A(e){this._context=e}_A.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 ic(e){return new _A(e)}function PA(e){return e[0]}function EA(e){return e[1]}function TA(e,t){var r=Pe(!0),n=null,i=ic,a=null,o=mv(s);e=typeof e=="function"?e:e===void 0?PA:Pe(e),t=typeof t=="function"?t:t===void 0?EA:Pe(t);function s(c){var u,l=(c=yv(c)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),u=0;u<=l;++u)!(u<l&&r(f=c[u],u,c))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,c),+t(f,u,c));if(h)return a=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Pe(!!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 oo(e,t,r){var n=null,i=Pe(!0),a=null,o=ic,s=null,c=mv(u);e=typeof e=="function"?e:e===void 0?PA:Pe(+e),t=typeof t=="function"?t:Pe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?EA:Pe(+r);function u(f){var d,h,m,p=(f=yv(f)).length,v,y=!1,g,x=new Array(p),O=new Array(p);for(a==null&&(s=o(g=c())),d=0;d<=p;++d){if(!(d<p&&i(v=f[d],d,f))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=h;--m)s.point(x[m],O[m]);s.lineEnd(),s.areaEnd()}y&&(x[d]=+e(v,d,f),O[d]=+t(v,d,f),s.point(n?+n(v,d,f):x[d],r?+r(v,d,f):O[d]))}if(g)return s=null,g+""||null}function l(){return TA().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Pe(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Pe(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Pe(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Pe(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Pe(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Pe(+f),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Pe(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class CA{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 KI(e){return new CA(e,!0)}function GI(e){return new CA(e,!1)}const gv={draw(e,t){const r=It(t/Lo);e.moveTo(r,0),e.arc(0,0,r,0,nc)}},YI={draw(e,t){const r=It(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()}},jA=It(1/3),XI=jA*2,ZI={draw(e,t){const r=It(t/XI),n=r*jA;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},JI={draw(e,t){const r=It(t),n=-r/2;e.rect(n,n,r,r)}},QI=.8908130915292852,IA=Do(Lo/10)/Do(7*Lo/10),ek=Do(nc/10)*IA,tk=-SA(nc/10)*IA,rk={draw(e,t){const r=It(t*QI),n=ek*r,i=tk*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=nc*a/5,s=SA(o),c=Do(o);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*i,c*n+s*i)}e.closePath()}},sl=It(3),nk={draw(e,t){const r=-It(t/(sl*3));e.moveTo(0,r*2),e.lineTo(-sl*r,-r),e.lineTo(sl*r,-r),e.closePath()}},ft=-.5,dt=It(3)/2,Ap=1/It(12),ik=(Ap/2+1)*3,ak={draw(e,t){const r=It(t/ik),n=r/2,i=r*Ap,a=n,o=r*Ap+r,s=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(ft*n-dt*i,dt*n+ft*i),e.lineTo(ft*a-dt*o,dt*a+ft*o),e.lineTo(ft*s-dt*c,dt*s+ft*c),e.lineTo(ft*n+dt*i,ft*i-dt*n),e.lineTo(ft*a+dt*o,ft*o-dt*a),e.lineTo(ft*s+dt*c,ft*c-dt*s),e.closePath()}};function ok(e,t){let r=null,n=mv(i);e=typeof e=="function"?e:Pe(e||gv),t=typeof t=="function"?t:Pe(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:Pe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Pe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Bo(){}function qo(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 kA(e){this._context=e}kA.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:qo(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:qo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sk(e){return new kA(e)}function RA(e){this._context=e}RA.prototype={areaStart:Bo,areaEnd:Bo,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:qo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ck(e){return new RA(e)}function MA(e){this._context=e}MA.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:qo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uk(e){return new MA(e)}function $A(e){this._context=e}$A.prototype={areaStart:Bo,areaEnd:Bo,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 lk(e){return new $A(e)}function vg(e){return e<0?-1:1}function mg(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(vg(a)+vg(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function yg(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function cl(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 Fo(e){this._context=e}Fo.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:cl(this,this._t0,yg(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,cl(this,yg(this,r=mg(this,e,t)),r);break;default:cl(this,this._t0,r=mg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function NA(e){this._context=new DA(e)}(NA.prototype=Object.create(Fo.prototype)).point=function(e,t){Fo.prototype.point.call(this,t,e)};function DA(e){this._context=e}DA.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 fk(e){return new Fo(e)}function dk(e){return new NA(e)}function LA(e){this._context=e}LA.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=gg(e),i=gg(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 gg(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 pk(e){return new LA(e)}function ac(e,t){this._context=e,this._t=t}ac.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function hk(e){return new ac(e,.5)}function vk(e){return new ac(e,0)}function mk(e){return new ac(e,1)}function Dn(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 _p(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function yk(e,t){return e[t]}function gk(e){const t=[];return t.key=e,t}function bk(){var e=Pe([]),t=_p,r=Dn,n=yk;function i(a){var o=Array.from(e.apply(this,arguments),gk),s,c=o.length,u=-1,l;for(const f of a)for(s=0,++u;s<c;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,l=yv(t(o));s<c;++s)o[l[s]].index=s;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Pe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?_p:typeof a=="function"?a:Pe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Dn,i):r},i}function xk(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}Dn(e,t)}}function wk(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}Dn(e,t)}}function Ok(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,u=0;s<o;++s){for(var l=e[t[s]],f=l[n][1]||0,d=l[n-1][1]||0,h=(f-d)/2,m=0;m<s;++m){var p=e[t[m]],v=p[n][1]||0,y=p[n-1][1]||0;h+=v-y}c+=f,u+=h*f}i[n-1][1]+=i[n-1][0]=r,c&&(r-=u/c)}i[n-1][1]+=i[n-1][0]=r,Dn(e,t)}}function ra(e){"@babel/helpers - typeof";return ra=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},ra(e)}var Sk=["type","size","sizeType"];function Pp(){return Pp=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},Pp.apply(this,arguments)}function bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){Ak(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ak(e,t,r){return t=_k(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _k(e){var t=Pk(e,"string");return ra(t)=="symbol"?t:t+""}function Pk(e,t){if(ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ek(e,t){if(e==null)return{};var r=Tk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var BA={symbolCircle:gv,symbolCross:YI,symbolDiamond:ZI,symbolSquare:JI,symbolStar:rk,symbolTriangle:nk,symbolWye:ak},Ck=Math.PI/180,jk=function(t){var r="symbol".concat(rc(t));return BA[r]||gv},Ik=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*Ck;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}},kk=function(t,r){BA["symbol".concat(rc(t))]=r},oc=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=Ek(t,Sk),u=xg(xg({},c),{},{type:n,size:a,sizeType:s}),l=function(){var v=jk(n),y=ok().type(v).size(Ik(a,s,n));return y()},f=u.className,d=u.cx,h=u.cy,m=ee(u,!0);return d===+d&&h===+h&&a===+a?S.createElement("path",Pp({},m,{className:ce("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:l()})):null};oc.registerSymbol=kk;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 Ep(){return Ep=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},Ep.apply(this,arguments)}function wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(r),!0).forEach(function(n){na(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $k(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,FA(n.key),n)}}function Nk(e,t,r){return t&&$k(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dk(e,t,r){return t=zo(t),Lk(e,qA()?Reflect.construct(t,r||[],zo(e).constructor):t.apply(e,r))}function Lk(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 Bk(e)}function Bk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qA=function(){return!!e})()}function zo(e){return zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zo(e)}function qk(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&&Tp(e,t)}function Tp(e,t){return Tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tp(e,t)}function na(e,t,r){return t=FA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FA(e){var t=Fk(e,"string");return Ln(t)=="symbol"?t:t+""}function Fk(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pt=32,bv=(function(e){function t(){return Mk(this,t),Dk(this,t,arguments)}return qk(t,e),Nk(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=pt/2,o=pt/6,s=pt/3,c=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:pt,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
|
|
2
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
|
|
3
|
+
H`).concat(pt,"M").concat(2*s,",").concat(a,`
|
|
4
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(pt/8,"h").concat(pt,"v").concat(pt*3/4,"h").concat(-pt,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var u=Rk({},n);return delete u.legendIcon,S.cloneElement(n.legendIcon,u)}return S.createElement(oc,{fill:c,cx:a,cy:a,size:pt,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,u=i.inactiveColor,l={x:0,y:0,width:pt,height:pt},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,m){var p=h.formatter||c,v=ce(na(na({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=ae(h.value)?null:h.value;Pt(!ae(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var g=h.inactive?u:h.color;return S.createElement("li",Ep({className:v,style:f,key:"legend-item-".concat(m)},Cr(n.props,h,m)),S.createElement(xp,{width:o,height:o,viewBox:l,style:d},n.renderIcon(h)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},p?p(y,h,m):y))})}},{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 S.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(S.PureComponent);na(bv,"displayName","Legend");na(bv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ul,Og;function zk(){if(Og)return ul;Og=1;var e=Qs();function t(){this.__data__=new e,this.size=0}return ul=t,ul}var ll,Sg;function Wk(){if(Sg)return ll;Sg=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ll=e,ll}var fl,Ag;function Uk(){if(Ag)return fl;Ag=1;function e(t){return this.__data__.get(t)}return fl=e,fl}var dl,_g;function Hk(){if(_g)return dl;_g=1;function e(t){return this.__data__.has(t)}return dl=e,dl}var pl,Pg;function Vk(){if(Pg)return pl;Pg=1;var e=Qs(),t=uv(),r=lv(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,o),this.size=s.size,this}return pl=i,pl}var hl,Eg;function zA(){if(Eg)return hl;Eg=1;var e=Qs(),t=zk(),r=Wk(),n=Uk(),i=Hk(),a=Vk();function o(s){var c=this.__data__=new e(s);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,hl=o,hl}var vl,Tg;function Kk(){if(Tg)return vl;Tg=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return vl=t,vl}var ml,Cg;function Gk(){if(Cg)return ml;Cg=1;function e(t){return this.__data__.has(t)}return ml=e,ml}var yl,jg;function WA(){if(jg)return yl;jg=1;var e=lv(),t=Kk(),r=Gk();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,yl=n,yl}var gl,Ig;function UA(){if(Ig)return gl;Ig=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return gl=e,gl}var bl,kg;function HA(){if(kg)return bl;kg=1;function e(t,r){return t.has(r)}return bl=e,bl}var xl,Rg;function VA(){if(Rg)return xl;Rg=1;var e=WA(),t=UA(),r=HA(),n=1,i=2;function a(o,s,c,u,l,f){var d=c&n,h=o.length,m=s.length;if(h!=m&&!(d&&m>h))return!1;var p=f.get(o),v=f.get(s);if(p&&v)return p==s&&v==o;var y=-1,g=!0,x=c&i?new e:void 0;for(f.set(o,s),f.set(s,o);++y<h;){var O=o[y],b=s[y];if(u)var w=d?u(b,O,y,s,o,f):u(O,b,y,o,s,f);if(w!==void 0){if(w)continue;g=!1;break}if(x){if(!t(s,function(A,P){if(!r(x,P)&&(O===A||l(O,A,c,u,f)))return x.push(P)})){g=!1;break}}else if(!(O===b||l(O,b,c,u,f))){g=!1;break}}return f.delete(o),f.delete(s),g}return xl=a,xl}var wl,Mg;function Yk(){if(Mg)return wl;Mg=1;var e=Ut(),t=e.Uint8Array;return wl=t,wl}var Ol,$g;function Xk(){if($g)return Ol;$g=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Ol=e,Ol}var Sl,Ng;function xv(){if(Ng)return Sl;Ng=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Sl=e,Sl}var Al,Dg;function Zk(){if(Dg)return Al;Dg=1;var e=Fa(),t=Yk(),r=cv(),n=VA(),i=Xk(),a=xv(),o=1,s=2,c="[object Boolean]",u="[object Date]",l="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",m="[object Set]",p="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",x=e?e.prototype:void 0,O=x?x.valueOf:void 0;function b(w,A,P,T,k,C,j){switch(P){case g:if(w.byteLength!=A.byteLength||w.byteOffset!=A.byteOffset)return!1;w=w.buffer,A=A.buffer;case y:return!(w.byteLength!=A.byteLength||!C(new t(w),new t(A)));case c:case u:case d:return r(+w,+A);case l:return w.name==A.name&&w.message==A.message;case h:case p:return w==A+"";case f:var R=i;case m:var $=T&o;if(R||(R=a),w.size!=A.size&&!$)return!1;var N=j.get(w);if(N)return N==A;T|=s,j.set(w,A);var M=n(R(w),R(A),T,k,C,j);return j.delete(w),M;case v:if(O)return O.call(w)==O.call(A)}return!1}return Al=b,Al}var _l,Lg;function KA(){if(Lg)return _l;Lg=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return _l=e,_l}var Pl,Bg;function Jk(){if(Bg)return Pl;Bg=1;var e=KA(),t=rt();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Pl=r,Pl}var El,qg;function Qk(){if(qg)return El;qg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return El=e,El}var Tl,Fg;function eR(){if(Fg)return Tl;Fg=1;function e(){return[]}return Tl=e,Tl}var Cl,zg;function tR(){if(zg)return Cl;zg=1;var e=Qk(),t=eR(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return Cl=a,Cl}var jl,Wg;function rR(){if(Wg)return jl;Wg=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return jl=e,jl}var Il,Ug;function nR(){if(Ug)return Il;Ug=1;var e=pr(),t=hr(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Il=n,Il}var kl,Hg;function wv(){if(Hg)return kl;Hg=1;var e=nR(),t=hr(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return kl=a,kl}var Wi={exports:{}},Rl,Vg;function iR(){if(Vg)return Rl;Vg=1;function e(){return!1}return Rl=e,Rl}Wi.exports;var Kg;function GA(){return Kg||(Kg=1,(function(e,t){var r=Ut(),n=iR(),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,u=c||n;e.exports=u})(Wi,Wi.exports)),Wi.exports}var Ml,Gg;function Ov(){if(Gg)return Ml;Gg=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Ml=r,Ml}var $l,Yg;function Sv(){if(Yg)return $l;Yg=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return $l=t,$l}var Nl,Xg;function aR(){if(Xg)return Nl;Xg=1;var e=pr(),t=Sv(),r=hr(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",l="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",m="[object String]",p="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",b="[object Int16Array]",w="[object Int32Array]",A="[object Uint8Array]",P="[object Uint8ClampedArray]",T="[object Uint16Array]",k="[object Uint32Array]",C={};C[g]=C[x]=C[O]=C[b]=C[w]=C[A]=C[P]=C[T]=C[k]=!0,C[n]=C[i]=C[v]=C[a]=C[y]=C[o]=C[s]=C[c]=C[u]=C[l]=C[f]=C[d]=C[h]=C[m]=C[p]=!1;function j(R){return r(R)&&t(R.length)&&!!C[e(R)]}return Nl=j,Nl}var Dl,Zg;function YA(){if(Zg)return Dl;Zg=1;function e(t){return function(r){return t(r)}}return Dl=e,Dl}var Ui={exports:{}};Ui.exports;var Jg;function oR(){return Jg||(Jg=1,(function(e,t){var r=hA(),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})(Ui,Ui.exports)),Ui.exports}var Ll,Qg;function XA(){if(Qg)return Ll;Qg=1;var e=aR(),t=YA(),r=oR(),n=r&&r.isTypedArray,i=n?t(n):e;return Ll=i,Ll}var Bl,eb;function sR(){if(eb)return Bl;eb=1;var e=rR(),t=wv(),r=rt(),n=GA(),i=Ov(),a=XA(),o=Object.prototype,s=o.hasOwnProperty;function c(u,l){var f=r(u),d=!f&&t(u),h=!f&&!d&&n(u),m=!f&&!d&&!h&&a(u),p=f||d||h||m,v=p?e(u.length,String):[],y=v.length;for(var g in u)(l||s.call(u,g))&&!(p&&(g=="length"||h&&(g=="offset"||g=="parent")||m&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i(g,y)))&&v.push(g);return v}return Bl=c,Bl}var ql,tb;function cR(){if(tb)return ql;tb=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return ql=t,ql}var Fl,rb;function ZA(){if(rb)return Fl;rb=1;function e(t,r){return function(n){return t(r(n))}}return Fl=e,Fl}var zl,nb;function uR(){if(nb)return zl;nb=1;var e=ZA(),t=e(Object.keys,Object);return zl=t,zl}var Wl,ib;function lR(){if(ib)return Wl;ib=1;var e=cR(),t=uR(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Wl=i,Wl}var Ul,ab;function za(){if(ab)return Ul;ab=1;var e=sv(),t=Sv();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ul=r,Ul}var Hl,ob;function sc(){if(ob)return Hl;ob=1;var e=sR(),t=lR(),r=za();function n(i){return r(i)?e(i):t(i)}return Hl=n,Hl}var Vl,sb;function fR(){if(sb)return Vl;sb=1;var e=Jk(),t=tR(),r=sc();function n(i){return e(i,r,t)}return Vl=n,Vl}var Kl,cb;function dR(){if(cb)return Kl;cb=1;var e=fR(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,c,u,l){var f=s&t,d=e(a),h=d.length,m=e(o),p=m.length;if(h!=p&&!f)return!1;for(var v=h;v--;){var y=d[v];if(!(f?y in o:n.call(o,y)))return!1}var g=l.get(a),x=l.get(o);if(g&&x)return g==o&&x==a;var O=!0;l.set(a,o),l.set(o,a);for(var b=f;++v<h;){y=d[v];var w=a[y],A=o[y];if(c)var P=f?c(A,w,y,o,a,l):c(w,A,y,a,o,l);if(!(P===void 0?w===A||u(w,A,s,c,l):P)){O=!1;break}b||(b=y=="constructor")}if(O&&!b){var T=a.constructor,k=o.constructor;T!=k&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof k=="function"&&k instanceof k)&&(O=!1)}return l.delete(a),l.delete(o),O}return Kl=i,Kl}var Gl,ub;function pR(){if(ub)return Gl;ub=1;var e=pn(),t=Ut(),r=e(t,"DataView");return Gl=r,Gl}var Yl,lb;function hR(){if(lb)return Yl;lb=1;var e=pn(),t=Ut(),r=e(t,"Promise");return Yl=r,Yl}var Xl,fb;function JA(){if(fb)return Xl;fb=1;var e=pn(),t=Ut(),r=e(t,"Set");return Xl=r,Xl}var Zl,db;function vR(){if(db)return Zl;db=1;var e=pn(),t=Ut(),r=e(t,"WeakMap");return Zl=r,Zl}var Jl,pb;function mR(){if(pb)return Jl;pb=1;var e=pR(),t=uv(),r=hR(),n=JA(),i=vR(),a=pr(),o=vA(),s="[object Map]",c="[object Object]",u="[object Promise]",l="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),m=o(t),p=o(r),v=o(n),y=o(i),g=a;return(e&&g(new e(new ArrayBuffer(1)))!=d||t&&g(new t)!=s||r&&g(r.resolve())!=u||n&&g(new n)!=l||i&&g(new i)!=f)&&(g=function(x){var O=a(x),b=O==c?x.constructor:void 0,w=b?o(b):"";if(w)switch(w){case h:return d;case m:return s;case p:return u;case v:return l;case y:return f}return O}),Jl=g,Jl}var Ql,hb;function yR(){if(hb)return Ql;hb=1;var e=zA(),t=VA(),r=Zk(),n=dR(),i=mR(),a=rt(),o=GA(),s=XA(),c=1,u="[object Arguments]",l="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function m(p,v,y,g,x,O){var b=a(p),w=a(v),A=b?l:i(p),P=w?l:i(v);A=A==u?f:A,P=P==u?f:P;var T=A==f,k=P==f,C=A==P;if(C&&o(p)){if(!o(v))return!1;b=!0,T=!1}if(C&&!T)return O||(O=new e),b||s(p)?t(p,v,y,g,x,O):r(p,v,A,y,g,x,O);if(!(y&c)){var j=T&&h.call(p,"__wrapped__"),R=k&&h.call(v,"__wrapped__");if(j||R){var $=j?p.value():p,N=R?v.value():v;return O||(O=new e),x($,N,y,g,O)}}return C?(O||(O=new e),n(p,v,y,g,x,O)):!1}return Ql=m,Ql}var ef,vb;function Av(){if(vb)return ef;vb=1;var e=yR(),t=hr();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return ef=r,ef}var tf,mb;function gR(){if(mb)return tf;mb=1;var e=zA(),t=Av(),r=1,n=2;function i(a,o,s,c){var u=s.length,l=u,f=!c;if(a==null)return!l;for(a=Object(a);u--;){var d=s[u];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++u<l;){d=s[u];var h=d[0],m=a[h],p=d[1];if(f&&d[2]){if(m===void 0&&!(h in a))return!1}else{var v=new e;if(c)var y=c(m,p,h,a,o,v);if(!(y===void 0?t(p,m,r|n,c,v):y))return!1}}return!0}return tf=i,tf}var rf,yb;function QA(){if(yb)return rf;yb=1;var e=Rr();function t(r){return r===r&&!e(r)}return rf=t,rf}var nf,gb;function bR(){if(gb)return nf;gb=1;var e=QA(),t=sc();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return nf=r,nf}var af,bb;function e_(){if(bb)return af;bb=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return af=e,af}var of,xb;function xR(){if(xb)return of;xb=1;var e=gR(),t=bR(),r=e_();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return of=n,of}var sf,wb;function wR(){if(wb)return sf;wb=1;function e(t,r){return t!=null&&r in Object(t)}return sf=e,sf}var cf,Ob;function OR(){if(Ob)return cf;Ob=1;var e=gA(),t=wv(),r=rt(),n=Ov(),i=Sv(),a=tc();function o(s,c,u){c=e(c,s);for(var l=-1,f=c.length,d=!1;++l<f;){var h=a(c[l]);if(!(d=s!=null&&u(s,h)))break;s=s[h]}return d||++l!=f?d:(f=s==null?0:s.length,!!f&&i(f)&&n(h,f)&&(r(s)||t(s)))}return cf=o,cf}var uf,Sb;function SR(){if(Sb)return uf;Sb=1;var e=wR(),t=OR();function r(n,i){return n!=null&&t(n,i,e)}return uf=r,uf}var lf,Ab;function AR(){if(Ab)return lf;Ab=1;var e=Av(),t=bA(),r=SR(),n=ov(),i=QA(),a=e_(),o=tc(),s=1,c=2;function u(l,f){return n(l)&&i(f)?a(o(l),f):function(d){var h=t(d,l);return h===void 0&&h===f?r(d,l):e(f,h,s|c)}}return lf=u,lf}var ff,_b;function bi(){if(_b)return ff;_b=1;function e(t){return t}return ff=e,ff}var df,Pb;function _R(){if(Pb)return df;Pb=1;function e(t){return function(r){return r?.[t]}}return df=e,df}var pf,Eb;function PR(){if(Eb)return pf;Eb=1;var e=dv();function t(r){return function(n){return e(n,r)}}return pf=t,pf}var hf,Tb;function ER(){if(Tb)return hf;Tb=1;var e=_R(),t=PR(),r=ov(),n=tc();function i(a){return r(a)?e(n(a)):t(a)}return hf=i,hf}var vf,Cb;function Ht(){if(Cb)return vf;Cb=1;var e=xR(),t=AR(),r=bi(),n=rt(),i=ER();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return vf=a,vf}var mf,jb;function t_(){if(jb)return mf;jb=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return mf=e,mf}var yf,Ib;function TR(){if(Ib)return yf;Ib=1;function e(t){return t!==t}return yf=e,yf}var gf,kb;function CR(){if(kb)return gf;kb=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return gf=e,gf}var bf,Rb;function jR(){if(Rb)return bf;Rb=1;var e=t_(),t=TR(),r=CR();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return bf=n,bf}var xf,Mb;function IR(){if(Mb)return xf;Mb=1;var e=jR();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return xf=t,xf}var wf,$b;function kR(){if($b)return wf;$b=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return wf=e,wf}var Of,Nb;function RR(){if(Nb)return Of;Nb=1;function e(){}return Of=e,Of}var Sf,Db;function MR(){if(Db)return Sf;Db=1;var e=JA(),t=RR(),r=xv(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Sf=i,Sf}var Af,Lb;function $R(){if(Lb)return Af;Lb=1;var e=WA(),t=IR(),r=kR(),n=HA(),i=MR(),a=xv(),o=200;function s(c,u,l){var f=-1,d=t,h=c.length,m=!0,p=[],v=p;if(l)m=!1,d=r;else if(h>=o){var y=u?null:i(c);if(y)return a(y);m=!1,d=n,v=new e}else v=u?[]:p;e:for(;++f<h;){var g=c[f],x=u?u(g):g;if(g=l||g!==0?g:0,m&&x===x){for(var O=v.length;O--;)if(v[O]===x)continue e;u&&v.push(x),p.push(g)}else d(v,x,l)||(v!==p&&v.push(x),p.push(g))}return p}return Af=s,Af}var _f,Bb;function NR(){if(Bb)return _f;Bb=1;var e=Ht(),t=$R();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return _f=r,_f}var DR=NR();const qb=ge(DR);function r_(e,t,r){return t===!0?qb(e,r):ae(t)?qb(e,t):e}function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}var LR=["ref"];function Fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fb(Object(r),!0).forEach(function(n){cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i_(n.key),n)}}function qR(e,t,r){return t&&zb(e.prototype,t),r&&zb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FR(e,t,r){return t=Wo(t),zR(e,n_()?Reflect.construct(t,r||[],Wo(e).constructor):t.apply(e,r))}function zR(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 WR(e)}function WR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n_=function(){return!!e})()}function Wo(e){return Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wo(e)}function UR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cp(e,t)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cp(e,t)}function cc(e,t,r){return t=i_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i_(e){var t=HR(e,"string");return Bn(t)=="symbol"?t:t+""}function HR(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function VR(e,t){if(e==null)return{};var r=KR(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 KR(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 GR(e){return e.value}function YR(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=VR(t,LR);return S.createElement(bv,r)}var Wb=1,yt=(function(e){function t(){var r;BR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=FR(this,t,[].concat(i)),cc(r,"lastBoundingBox",{width:-1,height:-1}),r}return UR(t,e),qR(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)>Wb||Math.abs(i.height-this.lastBoundingBox.height)>Wb)&&(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?Zt({},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,u=i.chartWidth,l=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.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();d={top:((l||0)-m.height)/2}}else d=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Zt(Zt({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,l=i.payload,f=Zt(Zt({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return S.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},YR(a,Zt(Zt({},this.props),{},{payload:r_(l,u,GR)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Zt(Zt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&K(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(S.PureComponent);cc(yt,"displayName","Legend");cc(yt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Pf,Ub;function XR(){if(Ub)return Pf;Ub=1;var e=Fa(),t=wv(),r=rt(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Pf=i,Pf}var Ef,Hb;function a_(){if(Hb)return Ef;Hb=1;var e=KA(),t=XR();function r(n,i,a,o,s){var c=-1,u=n.length;for(a||(a=t),s||(s=[]);++c<u;){var l=n[c];i>0&&a(l)?i>1?r(l,i-1,a,o,s):e(s,l):o||(s[s.length]=l)}return s}return Ef=r,Ef}var Tf,Vb;function ZR(){if(Vb)return Tf;Vb=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++a];if(n(o[u],u,o)===!1)break}return r}}return Tf=e,Tf}var Cf,Kb;function JR(){if(Kb)return Cf;Kb=1;var e=ZR(),t=e();return Cf=t,Cf}var jf,Gb;function o_(){if(Gb)return jf;Gb=1;var e=JR(),t=sc();function r(n,i){return n&&e(n,i,t)}return jf=r,jf}var If,Yb;function QR(){if(Yb)return If;Yb=1;var e=za();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,c=Object(i);(n?s--:++s<o)&&a(c[s],s,c)!==!1;);return i}}return If=t,If}var kf,Xb;function _v(){if(Xb)return kf;Xb=1;var e=o_(),t=QR(),r=t(e);return kf=r,kf}var Rf,Zb;function s_(){if(Zb)return Rf;Zb=1;var e=_v(),t=za();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,c,u){o[++a]=i(s,c,u)}),o}return Rf=r,Rf}var Mf,Jb;function eM(){if(Jb)return Mf;Jb=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Mf=e,Mf}var $f,Qb;function tM(){if(Qb)return $f;Qb=1;var e=mi();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),c=n!==void 0,u=n===null,l=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&c&&l&&!u&&!f||a&&c&&l||!i&&l||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!c&&o||!l)return-1}return 0}return $f=t,$f}var Nf,ex;function rM(){if(ex)return Nf;ex=1;var e=tM();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,c=o.length,u=i.length;++a<c;){var l=e(o[a],s[a]);if(l){if(a>=u)return l;var f=i[a];return l*(f=="desc"?-1:1)}}return r.index-n.index}return Nf=t,Nf}var Df,tx;function nM(){if(tx)return Df;tx=1;var e=fv(),t=dv(),r=Ht(),n=s_(),i=eM(),a=YA(),o=rM(),s=bi(),c=rt();function u(l,f,d){f.length?f=e(f,function(p){return c(p)?function(v){return t(v,p.length===1?p[0]:p)}:p}):f=[s];var h=-1;f=e(f,a(r));var m=n(l,function(p,v,y){var g=e(f,function(x){return x(p)});return{criteria:g,index:++h,value:p}});return i(m,function(p,v){return o(p,v,d)})}return Df=u,Df}var Lf,rx;function iM(){if(rx)return Lf;rx=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Lf=e,Lf}var Bf,nx;function aM(){if(nx)return Bf;nx=1;var e=iM(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,c=t(o.length-i,0),u=Array(c);++s<c;)u[s]=o[i+s];s=-1;for(var l=Array(i+1);++s<i;)l[s]=o[s];return l[i]=a(u),e(n,this,l)}}return Bf=r,Bf}var qf,ix;function oM(){if(ix)return qf;ix=1;function e(t){return function(){return t}}return qf=e,qf}var Ff,ax;function c_(){if(ax)return Ff;ax=1;var e=pn(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ff=t,Ff}var zf,ox;function sM(){if(ox)return zf;ox=1;var e=oM(),t=c_(),r=bi(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return zf=n,zf}var Wf,sx;function cM(){if(sx)return Wf;sx=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),c=t-(s-o);if(o=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Wf=n,Wf}var Uf,cx;function uM(){if(cx)return Uf;cx=1;var e=sM(),t=cM(),r=t(e);return Uf=r,Uf}var Hf,ux;function lM(){if(ux)return Hf;ux=1;var e=bi(),t=aM(),r=uM();function n(i,a){return r(t(i,a,e),i+"")}return Hf=n,Hf}var Vf,lx;function uc(){if(lx)return Vf;lx=1;var e=cv(),t=za(),r=Ov(),n=Rr();function i(a,o,s){if(!n(s))return!1;var c=typeof o;return(c=="number"?t(s)&&r(o,s.length):c=="string"&&o in s)?e(s[o],a):!1}return Vf=i,Vf}var Kf,fx;function fM(){if(fx)return Kf;fx=1;var e=a_(),t=nM(),r=lM(),n=uc(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Kf=i,Kf}var dM=fM();const Pv=ge(dM);function ia(e){"@babel/helpers - typeof";return ia=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},ia(e)}function jp(){return jp=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},jp.apply(this,arguments)}function pM(e,t){return yM(e)||mM(e,t)||vM(e,t)||hM()}function hM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vM(e,t){if(e){if(typeof e=="string")return dx(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 dx(e,t)}}function dx(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 mM(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function yM(e){if(Array.isArray(e))return e}function px(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 Gf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?px(Object(r),!0).forEach(function(n){gM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gM(e,t,r){return t=bM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bM(e){var t=xM(e,"string");return ia(t)=="symbol"?t:t+""}function xM(e,t){if(ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wM(e){return Array.isArray(e)&&Be(e[0])&&Be(e[1])?e.join(" ~ "):e}var OM=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,u=c===void 0?{}:c,l=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,m=t.labelClassName,p=t.label,v=t.labelFormatter,y=t.accessibilityLayer,g=y===void 0?!1:y,x=function(){if(l&&l.length){var j={padding:0,margin:0},R=(d?Pv(l,d):l).map(function($,N){if($.type==="none")return null;var M=Gf({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},s),D=$.formatter||f||wM,B=$.value,W=$.name,I=B,z=W;if(D&&I!=null&&z!=null){var U=D(B,W,$,N,l);if(Array.isArray(U)){var G=pM(U,2);I=G[0],z=G[1]}else I=U}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(N),style:M},Be(z)?S.createElement("span",{className:"recharts-tooltip-item-name"},z):null,Be(z)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},I),S.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:j},R)}return null},O=Gf({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),b=Gf({margin:0},u),w=!oe(p),A=w?p:"",P=ce("recharts-default-tooltip",h),T=ce("recharts-tooltip-label",m);w&&v&&l!==void 0&&l!==null&&(A=v(p,l));var k=g?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",jp({className:P,style:O},k),S.createElement("p",{className:T,style:b},S.isValidElement(A)?A:"".concat(A)),x())};function aa(e){"@babel/helpers - typeof";return aa=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},aa(e)}function so(e,t,r){return t=SM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SM(e){var t=AM(e,"string");return aa(t)=="symbol"?t:t+""}function AM(e,t){if(aa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(aa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mi="recharts-tooltip-wrapper",_M={visibility:"hidden"};function PM(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ce(Mi,so(so(so(so({},"".concat(Mi,"-right"),K(r)&&t&&K(t.x)&&r>=t.x),"".concat(Mi,"-left"),K(r)&&t&&K(t.x)&&r<t.x),"".concat(Mi,"-bottom"),K(n)&&t&&K(t.y)&&n>=t.y),"".concat(Mi,"-top"),K(n)&&t&&K(t.y)&&n<t.y))}function hx(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,u=e.viewBoxDimension;if(a&&K(a[n]))return a[n];var l=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?l:f;if(o[n]){var d=l,h=c[n];return d<h?Math.max(f,c[n]):Math.max(l,c[n])}var m=f+s,p=c[n]+u;return m>p?Math.max(l,c[n]):Math.max(f,c[n])}function EM(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 TM(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,u,l,f;return o.height>0&&o.width>0&&r?(l=hx({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=hx({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=EM({translateX:l,translateY:f,useTranslate3d:s})):u=_M,{cssProperties:u,cssClasses:PM({translateX:l,translateY:f,coordinate:r})}}function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function vx(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 mx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vx(Object(r),!0).forEach(function(n){kp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jM(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,l_(n.key),n)}}function IM(e,t,r){return t&&jM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kM(e,t,r){return t=Uo(t),RM(e,u_()?Reflect.construct(t,r||[],Uo(e).constructor):t.apply(e,r))}function RM(e,t){if(t&&(qn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MM(e)}function MM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u_=function(){return!!e})()}function Uo(e){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uo(e)}function $M(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&&Ip(e,t)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ip(e,t)}function kp(e,t,r){return t=l_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l_(e){var t=NM(e,"string");return qn(t)=="symbol"?t:t+""}function NM(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yx=1,DM=(function(e){function t(){var r;CM(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=kM(this,t,[].concat(i)),kp(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),kp(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,c,u,l;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:(u=(l=r.props.coordinate)===null||l===void 0?void 0:l.y)!==null&&u!==void 0?u:0}})}}),r}return $M(t,e),IM(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>yx||Math.abs(n.height-this.state.lastBoundingBox.height)>yx)&&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,u=i.children,l=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,m=i.position,p=i.reverseDirection,v=i.useTranslate3d,y=i.viewBox,g=i.wrapperStyle,x=TM({allowEscapeViewBox:o,coordinate:l,offsetTopLeft:h,position:m,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),O=x.cssClasses,b=x.cssProperties,w=mx(mx({transition:d&&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 S.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(P){n.wrapperNode=P}},u)}}])})(S.PureComponent),LM=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Vt={isSsr:LM()};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 gx(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 bx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gx(Object(r),!0).forEach(function(n){Ev(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qM(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,d_(n.key),n)}}function FM(e,t,r){return t&&qM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zM(e,t,r){return t=Ho(t),WM(e,f_()?Reflect.construct(t,r||[],Ho(e).constructor):t.apply(e,r))}function WM(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 UM(e)}function UM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f_=function(){return!!e})()}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ho(e)}function HM(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&&Rp(e,t)}function Rp(e,t){return Rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rp(e,t)}function Ev(e,t,r){return t=d_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d_(e){var t=VM(e,"string");return Fn(t)=="symbol"?t:t+""}function VM(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KM(e){return e.dataKey}function GM(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(OM,t)}var Ke=(function(e){function t(){return BM(this,t),zM(this,t,arguments)}return HM(t,e),FM(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.content,l=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,m=i.payload,p=i.payloadUniqBy,v=i.position,y=i.reverseDirection,g=i.useTranslate3d,x=i.viewBox,O=i.wrapperStyle,b=m??[];f&&b.length&&(b=r_(m.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),p,KM));var w=b.length>0;return S.createElement(DM,{allowEscapeViewBox:o,animationDuration:s,animationEasing:c,isAnimationActive:d,active:a,coordinate:l,hasPayload:w,offset:h,position:v,reverseDirection:y,useTranslate3d:g,viewBox:x,wrapperStyle:O},GM(u,bx(bx({},this.props),{},{payload:b})))}}])})(S.PureComponent);Ev(Ke,"displayName","Tooltip");Ev(Ke,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Vt.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 Yf,xx;function YM(){if(xx)return Yf;xx=1;var e=Ut(),t=function(){return e.Date.now()};return Yf=t,Yf}var Xf,wx;function XM(){if(wx)return Xf;wx=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Xf=t,Xf}var Zf,Ox;function ZM(){if(Ox)return Zf;Ox=1;var e=XM(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Zf=r,Zf}var Jf,Sx;function p_(){if(Sx)return Jf;Sx=1;var e=ZM(),t=Rr(),r=mi(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var l=typeof u.valueOf=="function"?u.valueOf():u;u=t(l)?l+"":l}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return Jf=c,Jf}var Qf,Ax;function JM(){if(Ax)return Qf;Ax=1;var e=Rr(),t=YM(),r=p_(),n="Expected a function",i=Math.max,a=Math.min;function o(s,c,u){var l,f,d,h,m,p,v=0,y=!1,g=!1,x=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(u)&&(y=!!u.leading,g="maxWait"in u,d=g?i(r(u.maxWait)||0,c):d,x="trailing"in u?!!u.trailing:x);function O(R){var $=l,N=f;return l=f=void 0,v=R,h=s.apply(N,$),h}function b(R){return v=R,m=setTimeout(P,c),y?O(R):h}function w(R){var $=R-p,N=R-v,M=c-$;return g?a(M,d-N):M}function A(R){var $=R-p,N=R-v;return p===void 0||$>=c||$<0||g&&N>=d}function P(){var R=t();if(A(R))return T(R);m=setTimeout(P,w(R))}function T(R){return m=void 0,x&&l?O(R):(l=f=void 0,h)}function k(){m!==void 0&&clearTimeout(m),v=0,l=p=f=m=void 0}function C(){return m===void 0?h:T(t())}function j(){var R=t(),$=A(R);if(l=arguments,f=this,p=R,$){if(m===void 0)return b(p);if(g)return clearTimeout(m),m=setTimeout(P,c),O(p)}return m===void 0&&(m=setTimeout(P,c)),h}return j.cancel=k,j.flush=C,j}return Qf=o,Qf}var ed,_x;function QM(){if(_x)return ed;_x=1;var e=JM(),t=Rr(),r="Expected a function";function n(i,a,o){var s=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:s,maxWait:a,trailing:c})}return ed=n,ed}var e$=QM();const h_=ge(e$);function oa(e){"@babel/helpers - typeof";return oa=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},oa(e)}function Px(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 co(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Px(Object(r),!0).forEach(function(n){t$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t$(e,t,r){return t=r$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r$(e){var t=n$(e,"string");return oa(t)=="symbol"?t:t+""}function n$(e,t){if(oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i$(e,t){return c$(e)||s$(e,t)||o$(e,t)||a$()}function a$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o$(e,t){if(e){if(typeof e=="string")return Ex(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 Ex(e,t)}}function Ex(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 s$(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function c$(e){if(Array.isArray(e))return e}var hn=S.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,u=e.minWidth,l=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,h=e.children,m=e.debounce,p=m===void 0?0:m,v=e.id,y=e.className,g=e.onResize,x=e.style,O=x===void 0?{}:x,b=S.useRef(null),w=S.useRef();w.current=g,S.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 A=S.useState({containerWidth:i.width,containerHeight:i.height}),P=i$(A,2),T=P[0],k=P[1],C=S.useCallback(function(R,$){k(function(N){var M=Math.round(R),D=Math.round($);return N.containerWidth===M&&N.containerHeight===D?N:{containerWidth:M,containerHeight:D}})},[]);S.useEffect(function(){var R=function(W){var I,z=W[0].contentRect,U=z.width,G=z.height;C(U,G),(I=w.current)===null||I===void 0||I.call(w,U,G)};p>0&&(R=h_(R,p,{trailing:!0,leading:!1}));var $=new ResizeObserver(R),N=b.current.getBoundingClientRect(),M=N.width,D=N.height;return C(M,D),$.observe(b.current),function(){$.disconnect()}},[C,p]);var j=S.useMemo(function(){var R=T.containerWidth,$=T.containerHeight;if(R<0||$<0)return null;Pt(Zr(o)||Zr(c),`The width(%s) and height(%s) are both fixed numbers,
|
|
7
|
+
maybe you don't need to use a ResponsiveContainer.`,o,c),Pt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var N=Zr(o)?R:o,M=Zr(c)?$:c;r&&r>0&&(N?M=N/r:M&&(N=M*r),d&&M>d&&(M=d)),Pt(N>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
8
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
9
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
10
|
+
height and width.`,N,M,o,c,l,f,r);var D=!Array.isArray(h)&&nr(h.type).endsWith("Chart");return S.Children.map(h,function(B){return S.isValidElement(B)?S.cloneElement(B,co({width:N,height:M},D?{style:co({height:"100%",width:"100%",maxHeight:M,maxWidth:N},B.props.style)}:{})):B})},[r,h,c,d,f,l,T,o]);return S.createElement("div",{id:v?"".concat(v):void 0,className:ce("recharts-responsive-container",y),style:co(co({},O),{},{width:o,height:c,minWidth:l,minHeight:f,maxHeight:d}),ref:b},j)}),$r=function(t){return null};$r.displayName="Cell";function sa(e){"@babel/helpers - typeof";return sa=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},sa(e)}function Tx(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?Tx(Object(r),!0).forEach(function(n){u$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u$(e,t,r){return t=l$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l$(e){var t=f$(e,"string");return sa(t)=="symbol"?t:t+""}function f$(e,t){if(sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xn={widthCache:{},cacheCount:0},d$=2e3,p$={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Cx="recharts_measurement_span";function h$(e){var t=Mp({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Ki=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Vt.isSsr)return{width:0,height:0};var n=h$(r),i=JSON.stringify({text:t,copyStyle:n});if(xn.widthCache[i])return xn.widthCache[i];try{var a=document.getElementById(Cx);a||(a=document.createElement("span"),a.setAttribute("id",Cx),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Mp(Mp({},p$),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),c={width:s.width,height:s.height};return xn.widthCache[i]=c,++xn.cacheCount>d$&&(xn.cacheCount=0,xn.widthCache={}),c}catch{return{width:0,height:0}}},v$=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ca(e){"@babel/helpers - typeof";return ca=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},ca(e)}function Vo(e,t){return b$(e)||g$(e,t)||y$(e,t)||m$()}function m$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y$(e,t){if(e){if(typeof e=="string")return jx(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 jx(e,t)}}function jx(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 g$(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function b$(e){if(Array.isArray(e))return e}function x$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ix(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,O$(n.key),n)}}function w$(e,t,r){return t&&Ix(e.prototype,t),r&&Ix(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function O$(e){var t=S$(e,"string");return ca(t)=="symbol"?t:t+""}function S$(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Rx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,A$=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,_$=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,v_={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},P$=Object.keys(v_),En="NaN";function E$(e,t){return e*v_[t]}var uo=(function(){function e(t,r){x$(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!A$.test(r)&&(this.num=NaN,this.unit=""),P$.includes(r)&&(this.num=E$(t,r),this.unit="px")}return w$(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=_$.exec(r))!==null&&n!==void 0?n:[],a=Vo(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function m_(e){if(e.includes(En))return En;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=kx.exec(t))!==null&&r!==void 0?r:[],i=Vo(n,4),a=i[1],o=i[2],s=i[3],c=uo.parse(a??""),u=uo.parse(s??""),l=o==="*"?c.multiply(u):c.divide(u);if(l.isNaN())return En;t=t.replace(kx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=Rx.exec(t))!==null&&f!==void 0?f:[],h=Vo(d,4),m=h[1],p=h[2],v=h[3],y=uo.parse(m??""),g=uo.parse(v??""),x=p==="+"?y.add(g):y.subtract(g);if(x.isNaN())return En;t=t.replace(Rx,x.toString())}return t}var Mx=/\(([^()]*)\)/;function T$(e){for(var t=e;t.includes("(");){var r=Mx.exec(t),n=Vo(r,2),i=n[1];t=t.replace(Mx,m_(i))}return t}function C$(e){var t=e.replace(/\s+/g,"");return t=T$(t),t=m_(t),t}function j$(e){try{return C$(e)}catch{return En}}function td(e){var t=j$(e.slice(5,-1));return t===En?"":t}var I$=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],k$=["dx","dy","angle","className","breakAll"];function $p(){return $p=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},$p.apply(this,arguments)}function $x(e,t){if(e==null)return{};var r=R$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function R$(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 Nx(e,t){return D$(e)||N$(e,t)||$$(e,t)||M$()}function M$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $$(e,t){if(e){if(typeof e=="string")return Dx(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 Dx(e,t)}}function Dx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function D$(e){if(Array.isArray(e))return e}var y_=/[ \f\n\r\t\v\u2028\u2029]+/,g_=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];oe(r)||(n?a=r.toString().split(""):a=r.toString().split(y_));var o=a.map(function(c){return{word:c,width:Ki(c,i).width}}),s=n?0:Ki(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},L$=function(t,r,n,i,a){var o=t.maxLines,s=t.children,c=t.style,u=t.breakAll,l=K(o),f=s,d=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(M,D){var B=D.word,W=D.width,I=M[M.length-1];if(I&&(i==null||a||I.width+W+n<Number(i)))I.words.push(B),I.width+=W+n;else{var z={words:[B],width:W};M.push(z)}return M},[])},h=d(r),m=function(N){return N.reduce(function(M,D){return M.width>D.width?M:D})};if(!l)return h;for(var p="…",v=function(N){var M=f.slice(0,N),D=g_({breakAll:u,style:c,children:M+p}).wordsWithComputedWidth,B=d(D),W=B.length>o||m(B).width>Number(i);return[W,B]},y=0,g=f.length-1,x=0,O;y<=g&&x<=f.length-1;){var b=Math.floor((y+g)/2),w=b-1,A=v(w),P=Nx(A,2),T=P[0],k=P[1],C=v(b),j=Nx(C,1),R=j[0];if(!T&&!R&&(y=b+1),T&&R&&(g=b-1),!T&&R){O=k;break}x++}return O||h},Lx=function(t){var r=oe(t)?[]:t.toString().split(y_);return[{words:r}]},B$=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Vt.isSsr){var c,u,l=g_({breakAll:o,children:i,style:a});if(l){var f=l.wordsWithComputedWidth,d=l.spaceWidth;c=f,u=d}else return Lx(i);return L$({breakAll:o,children:i,maxLines:s,style:a},c,u,r,n)}return Lx(i)},Bx="#808080",on=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,u=c===void 0?"0.71em":c,l=t.scaleToFit,f=l===void 0?!1:l,d=t.textAnchor,h=d===void 0?"start":d,m=t.verticalAnchor,p=m===void 0?"end":m,v=t.fill,y=v===void 0?Bx:v,g=$x(t,I$),x=S.useMemo(function(){return B$({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]),O=g.dx,b=g.dy,w=g.angle,A=g.className,P=g.breakAll,T=$x(g,k$);if(!Be(n)||!Be(a))return null;var k=n+(K(O)?O:0),C=a+(K(b)?b:0),j;switch(p){case"start":j=td("calc(".concat(u,")"));break;case"middle":j=td("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:j=td("calc(".concat(x.length-1," * -").concat(s,")"));break}var R=[];if(f){var $=x[0].width,N=g.width;R.push("scale(".concat((K(N)?N/$:1)/$,")"))}return w&&R.push("rotate(".concat(w,", ").concat(k,", ").concat(C,")")),R.length&&(T.transform=R.join(" ")),S.createElement("text",$p({},ee(T,!0),{x:k,y:C,className:ce("recharts-text",A),textAnchor:h,fill:y.includes("url")?Bx:y}),x.map(function(M,D){var B=M.words.join(P?"":" ");return S.createElement("tspan",{x:k,dy:D===0?j:s,key:"".concat(B,"-").concat(D)},B)}))};function Pr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function q$(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Tv(e){let t,r,n;e.length!==2?(t=Pr,r=(s,c)=>Pr(e(s),c),n=(s,c)=>e(s)-c):(t=e===Pr||e===q$?e:F$,r=e,n=e);function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<0?u=f+1:l=f}while(u<l)}return u}function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function o(s,c,u=0,l=s.length){const f=i(s,c,u,l-1);return f>u&&n(s[f-1],c)>-n(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function F$(){return 0}function b_(e){return e===null?NaN:+e}function*z$(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const W$=Tv(Pr),Wa=W$.right;Tv(b_).center;class qx extends Map{constructor(t,r=V$){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(Fx(this,t))}has(t){return super.has(Fx(this,t))}set(t,r){return super.set(U$(this,t),r)}delete(t){return super.delete(H$(this,t))}}function Fx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function U$({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function H$({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function V$(e){return e!==null&&typeof e=="object"?e.valueOf():e}function K$(e=Pr){if(e===Pr)return x_;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 x_(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const G$=Math.sqrt(50),Y$=Math.sqrt(10),X$=Math.sqrt(2);function Ko(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>=G$?10:a>=Y$?5:a>=X$?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=r&&r<2?Ko(e,t,r*2):[s,c,u]}function Np(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?Ko(t,e,r):Ko(e,t,r);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)c[u]=(a-u)/-o;else for(let u=0;u<s;++u)c[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(i+u)/-o;else for(let u=0;u<s;++u)c[u]=(i+u)*o;return c}function Dp(e,t,r){return t=+t,e=+e,r=+r,Ko(e,t,r)[2]}function Lp(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Dp(t,e,r):Dp(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function zx(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Wx(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function w_(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?x_:K$(i);n>r;){if(n-r>600){const c=n-r+1,u=t-r+1,l=Math.log(c),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(c-f)/c)*(u-c/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/c+d)),m=Math.min(n,Math.floor(t+(c-u)*f/c+d));w_(e,t,h,m,i)}const a=e[t];let o=r,s=n;for($i(e,r,t),i(e[n],a)>0&&$i(e,r,n);o<s;){for($i(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?$i(e,r,s):(++s,$i(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function $i(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Z$(e,t,r){if(e=Float64Array.from(z$(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Wx(e);if(t>=1)return zx(e);var n,i=(n-1)*t,a=Math.floor(i),o=zx(w_(e,a).subarray(0,a+1)),s=Wx(e.subarray(a+1));return o+(s-o)*(i-a)}}function J$(e,t,r=b_){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 Q$(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 xt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function vr(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 Bp=Symbol("implicit");function Cv(){var e=new qx,t=[],r=[],n=Bp;function i(a){let o=e.get(a);if(o===void 0){if(n!==Bp)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 qx;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 Cv(t,r).unknown(n)},xt.apply(i,arguments),i}function ua(){var e=Cv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function f(){var d=t().length,h=i<n,m=h?i:n,p=h?n:i;a=(p-m)/Math.max(1,d-c+u*2),s&&(a=Math.floor(a)),m+=(p-m-a*(d-c))*l,o=a*(1-c),s&&(m=Math.round(m),o=Math.round(o));var v=Q$(d).map(function(y){return m+a*y});return r(h?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(c=Math.min(1,u=+d),f()):c},e.paddingInner=function(d){return arguments.length?(c=Math.min(1,d),f()):c},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return ua(t(),[n,i]).round(s).paddingInner(c).paddingOuter(u).align(l)},xt.apply(f(),arguments)}function O_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return O_(t())},e}function Gi(){return O_(ua.apply(null,arguments).paddingInner(1))}function jv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function S_(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ua(){}var la=.7,Go=1/la,Rn="\\s*([+-]?\\d+)\\s*",fa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eN=/^#([0-9a-f]{3,8})$/,tN=new RegExp(`^rgb\\(${Rn},${Rn},${Rn}\\)$`),rN=new RegExp(`^rgb\\(${Lt},${Lt},${Lt}\\)$`),nN=new RegExp(`^rgba\\(${Rn},${Rn},${Rn},${fa}\\)$`),iN=new RegExp(`^rgba\\(${Lt},${Lt},${Lt},${fa}\\)$`),aN=new RegExp(`^hsl\\(${fa},${Lt},${Lt}\\)$`),oN=new RegExp(`^hsla\\(${fa},${Lt},${Lt},${fa}\\)$`),Ux={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};jv(Ua,da,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hx,formatHex:Hx,formatHex8:sN,formatHsl:cN,formatRgb:Vx,toString:Vx});function Hx(){return this.rgb().formatHex()}function sN(){return this.rgb().formatHex8()}function cN(){return A_(this).formatHsl()}function Vx(){return this.rgb().formatRgb()}function da(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=eN.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Kx(t):r===3?new et(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?lo(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?lo(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=tN.exec(e))?new et(t[1],t[2],t[3],1):(t=rN.exec(e))?new et(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nN.exec(e))?lo(t[1],t[2],t[3],t[4]):(t=iN.exec(e))?lo(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aN.exec(e))?Xx(t[1],t[2]/100,t[3]/100,1):(t=oN.exec(e))?Xx(t[1],t[2]/100,t[3]/100,t[4]):Ux.hasOwnProperty(e)?Kx(Ux[e]):e==="transparent"?new et(NaN,NaN,NaN,0):null}function Kx(e){return new et(e>>16&255,e>>8&255,e&255,1)}function lo(e,t,r,n){return n<=0&&(e=t=r=NaN),new et(e,t,r,n)}function uN(e){return e instanceof Ua||(e=da(e)),e?(e=e.rgb(),new et(e.r,e.g,e.b,e.opacity)):new et}function qp(e,t,r,n){return arguments.length===1?uN(e):new et(e,t,r,n??1)}function et(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}jv(et,qp,S_(Ua,{brighter(e){return e=e==null?Go:Math.pow(Go,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new et(rn(this.r),rn(this.g),rn(this.b),Yo(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:Gx,formatHex:Gx,formatHex8:lN,formatRgb:Yx,toString:Yx}));function Gx(){return`#${Jr(this.r)}${Jr(this.g)}${Jr(this.b)}`}function lN(){return`#${Jr(this.r)}${Jr(this.g)}${Jr(this.b)}${Jr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yx(){const e=Yo(this.opacity);return`${e===1?"rgb(":"rgba("}${rn(this.r)}, ${rn(this.g)}, ${rn(this.b)}${e===1?")":`, ${e})`}`}function Yo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jr(e){return e=rn(e),(e<16?"0":"")+e.toString(16)}function Xx(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new _t(e,t,r,n)}function A_(e){if(e instanceof _t)return new _t(e.h,e.s,e.l,e.opacity);if(e instanceof Ua||(e=da(e)),!e)return new _t;if(e instanceof _t)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 _t(o,s,c,e.opacity)}function fN(e,t,r,n){return arguments.length===1?A_(e):new _t(e,t,r,n??1)}function _t(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}jv(_t,fN,S_(Ua,{brighter(e){return e=e==null?Go:Math.pow(Go,e),new _t(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new _t(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 et(rd(e>=240?e-240:e+120,i,n),rd(e,i,n),rd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new _t(Zx(this.h),fo(this.s),fo(this.l),Yo(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=Yo(this.opacity);return`${e===1?"hsl(":"hsla("}${Zx(this.h)}, ${fo(this.s)*100}%, ${fo(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zx(e){return e=(e||0)%360,e<0?e+360:e}function fo(e){return Math.max(0,Math.min(1,e||0))}function rd(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 Iv=e=>()=>e;function dN(e,t){return function(r){return e+r*t}}function pN(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 hN(e){return(e=+e)==1?__:function(t,r){return r-t?pN(t,r,e):Iv(isNaN(t)?r:t)}}function __(e,t){var r=t-e;return r?dN(e,r):Iv(isNaN(e)?t:e)}const Jx=(function e(t){var r=hN(t);function n(i,a){var o=r((i=qp(i)).r,(a=qp(a)).r),s=r(i.g,a.g),c=r(i.b,a.b),u=__(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return n.gamma=e,n})(1);function vN(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 mN(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yN(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]=xi(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 gN(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Xo(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function bN(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]=xi(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Fp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nd=new RegExp(Fp.source,"g");function xN(e){return function(){return e}}function wN(e){return function(t){return e(t)+""}}function ON(e,t){var r=Fp.lastIndex=nd.lastIndex=0,n,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(n=Fp.exec(e))&&(i=nd.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:Xo(n,i)})),r=nd.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?wN(c[0].x):xN(t):(t=c.length,function(u){for(var l=0,f;l<t;++l)s[(f=c[l]).i]=f.x(u);return s.join("")})}function xi(e,t){var r=typeof t,n;return t==null||r==="boolean"?Iv(t):(r==="number"?Xo:r==="string"?(n=da(t))?(t=n,Jx):ON:t instanceof da?Jx:t instanceof Date?gN:mN(t)?vN:Array.isArray(t)?yN:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bN:Xo)(e,t)}function kv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function SN(e,t){t===void 0&&(t=e,e=xi);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 AN(e){return function(){return e}}function Zo(e){return+e}var Qx=[0,1];function Je(e){return e}function zp(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:AN(isNaN(t)?NaN:.5)}function _N(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function PN(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=zp(i,n),a=r(o,a)):(n=zp(n,i),a=r(a,o)),function(s){return a(n(s))}}function EN(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]=zp(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var c=Wa(e,s,1,n)-1;return a[c](i[c](s))}}function Ha(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lc(){var e=Qx,t=Qx,r=xi,n,i,a,o=Je,s,c,u;function l(){var d=Math.min(e.length,t.length);return o!==Je&&(o=_N(e[0],e[d-1])),s=d>2?EN:PN,c=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(c||(c=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=s(t,e.map(n),Xo)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Zo),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=kv,l()},f.clamp=function(d){return arguments.length?(o=d?!0:Je,l()):o!==Je},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,l()}}function Rv(){return lc()(Je,Je)}function TN(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Jo(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 zn(e){return e=Jo(Math.abs(e)),e?e[1]:NaN}function CN(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 jN(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var IN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pa(e){if(!(t=IN.exec(e)))throw new Error("invalid format: "+e);var t;return new Mv({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]})}pa.prototype=Mv.prototype;function Mv(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+""}Mv.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 kN(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 P_;function RN(e,t){var r=Jo(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(P_=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")+Jo(e,Math.max(0,t+a-1))[0]}function e0(e,t){var r=Jo(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 t0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:TN,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)=>e0(e*100,t),r:e0,s:RN,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function r0(e){return e}var n0=Array.prototype.map,i0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function MN(e){var t=e.grouping===void 0||e.thousands===void 0?r0:CN(n0.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?r0:jN(n0.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 u(f){f=pa(f);var d=f.fill,h=f.align,m=f.sign,p=f.symbol,v=f.zero,y=f.width,g=f.comma,x=f.precision,O=f.trim,b=f.type;b==="n"?(g=!0,b="g"):t0[b]||(x===void 0&&(x=12),O=!0,b="g"),(v||d==="0"&&h==="=")&&(v=!0,d="0",h="=");var w=p==="$"?r:p==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",A=p==="$"?n:/[%p]/.test(b)?o:"",P=t0[b],T=/[defgprs%]/.test(b);x=x===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function k(C){var j=w,R=A,$,N,M;if(b==="c")R=P(C)+R,C="";else{C=+C;var D=C<0||1/C<0;if(C=isNaN(C)?c:P(Math.abs(C),x),O&&(C=kN(C)),D&&+C==0&&m!=="+"&&(D=!1),j=(D?m==="("?m:s:m==="-"||m==="("?"":m)+j,R=(b==="s"?i0[8+P_/3]:"")+R+(D&&m==="("?")":""),T){for($=-1,N=C.length;++$<N;)if(M=C.charCodeAt($),48>M||M>57){R=(M===46?i+C.slice($+1):C.slice($))+R,C=C.slice(0,$);break}}}g&&!v&&(C=t(C,1/0));var B=j.length+C.length+R.length,W=B<y?new Array(y-B+1).join(d):"";switch(g&&v&&(C=t(W+C,W.length?y-R.length:1/0),W=""),h){case"<":C=j+C+R+W;break;case"=":C=j+W+C+R;break;case"^":C=W.slice(0,B=W.length>>1)+j+C+R+W.slice(B);break;default:C=W+j+C+R;break}return a(C)}return k.toString=function(){return f+""},k}function l(f,d){var h=u((f=pa(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(zn(d)/3)))*3,p=Math.pow(10,-m),v=i0[8+m/3];return function(y){return h(p*y)+v}}return{format:u,formatPrefix:l}}var po,$v,E_;$N({thousands:",",grouping:[3],currency:["$",""]});function $N(e){return po=MN(e),$v=po.format,E_=po.formatPrefix,po}function NN(e){return Math.max(0,-zn(Math.abs(e)))}function DN(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zn(t)/3)))*3-zn(Math.abs(e)))}function LN(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zn(t)-zn(e))+1}function T_(e,t,r,n){var i=Lp(e,t,r),a;switch(n=pa(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=DN(i,o))&&(n.precision=a),E_(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=LN(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=NN(i))&&(n.precision=a-(n.type==="%")*2);break}}return $v(n)}function Nr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Np(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return T_(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,u,l=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);l-- >0;){if(u=Dp(o,s,r),u===c)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function Qo(){var e=Rv();return e.copy=function(){return Ha(e,Qo())},xt.apply(e,arguments),Nr(e)}function C_(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,Zo),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return C_(e).unknown(t)},e=arguments.length?Array.from(e,Zo):[0,1],Nr(r)}function j_(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 a0(e){return Math.log(e)}function o0(e){return Math.exp(e)}function BN(e){return-Math.log(-e)}function qN(e){return-Math.exp(-e)}function FN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function zN(e){return e===10?FN:e===Math.E?Math.exp:t=>Math.pow(e,t)}function WN(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 s0(e){return(t,r)=>-e(-t,r)}function Nv(e){const t=e(a0,o0),r=t.domain;let n=10,i,a;function o(){return i=WN(n),a=zN(n),r()[0]<0?(i=s0(i),a=s0(a),e(BN,qN)):e(a0,o0),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 u=c[0],l=c[c.length-1];const f=l<u;f&&([u,l]=[l,u]);let d=i(u),h=i(l),m,p;const v=s==null?10:+s;let y=[];if(!(n%1)&&h-d<v){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(m=1;m<n;++m)if(p=d<0?m/a(-d):m*a(d),!(p<u)){if(p>l)break;y.push(p)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(p=d>0?m/a(-d):m*a(d),!(p<u)){if(p>l)break;y.push(p)}y.length*2<v&&(y=Np(u,l,v))}else y=Np(d,h,Math.min(h-d,v)).map(a);return f?y.reverse():y},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=pa(c)).precision==null&&(c.trim=!0),c=$v(c)),s===1/0)return c;const u=Math.max(1,n*s/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=u?c(l):""}},t.nice=()=>r(j_(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function I_(){const e=Nv(lc()).domain([1,10]);return e.copy=()=>Ha(e,I_()).base(e.base()),xt.apply(e,arguments),e}function c0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function u0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Dv(e){var t=1,r=e(c0(t),u0(t));return r.constant=function(n){return arguments.length?e(c0(t=+n),u0(t)):t},Nr(r)}function k_(){var e=Dv(lc());return e.copy=function(){return Ha(e,k_()).constant(e.constant())},xt.apply(e,arguments)}function l0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function UN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function HN(e){return e<0?-e*e:e*e}function Lv(e){var t=e(Je,Je),r=1;function n(){return r===1?e(Je,Je):r===.5?e(UN,HN):e(l0(r),l0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Nr(t)}function Bv(){var e=Lv(lc());return e.copy=function(){return Ha(e,Bv()).exponent(e.exponent())},xt.apply(e,arguments),e}function VN(){return Bv.apply(null,arguments).exponent(.5)}function f0(e){return Math.sign(e)*e*e}function KN(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function R_(){var e=Rv(),t=[0,1],r=!1,n;function i(a){var o=KN(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(f0(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,Zo)).map(f0)),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 R_(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},xt.apply(i,arguments),Nr(i)}function M_(){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]=J$(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Wa(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(Pr),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 M_().domain(e).range(t).unknown(n)},xt.apply(a,arguments)}function $_(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Wa(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 u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return $_().domain([e,t]).range(i).unknown(a)},xt.apply(Nr(o),arguments)}function N_(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Wa(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 N_().domain(e).range(t).unknown(r)},xt.apply(i,arguments)}const id=new Date,ad=new Date;function qe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),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 u;do c.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return c},i.filter=a=>qe(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)=>(id.setTime(+a),ad.setTime(+o),e(id),e(ad),Math.floor(r(id,ad))),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 es=qe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);es.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):es);es.range;const er=1e3,mt=er*60,tr=mt*60,ar=tr*24,qv=ar*7,d0=ar*30,od=ar*365,Qr=qe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*er)},(e,t)=>(t-e)/er,e=>e.getUTCSeconds());Qr.range;const Fv=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getMinutes());Fv.range;const zv=qe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getUTCMinutes());zv.range;const Wv=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er-e.getMinutes()*mt)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getHours());Wv.range;const Uv=qe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCHours());Uv.range;const Va=qe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mt)/ar,e=>e.getDate()-1);Va.range;const fc=qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ar,e=>e.getUTCDate()-1);fc.range;const D_=qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ar,e=>Math.floor(e/ar));D_.range;function vn(e){return qe(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())*mt)/qv)}const dc=vn(0),ts=vn(1),GN=vn(2),YN=vn(3),Wn=vn(4),XN=vn(5),ZN=vn(6);dc.range;ts.range;GN.range;YN.range;Wn.range;XN.range;ZN.range;function mn(e){return qe(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)/qv)}const pc=mn(0),rs=mn(1),JN=mn(2),QN=mn(3),Un=mn(4),eD=mn(5),tD=mn(6);pc.range;rs.range;JN.range;QN.range;Un.range;eD.range;tD.range;const Hv=qe(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());Hv.range;const Vv=qe(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());Vv.range;const or=qe(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());or.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(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)});or.range;const sr=qe(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());sr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(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)});sr.range;function L_(e,t,r,n,i,a){const o=[[Qr,1,er],[Qr,5,5*er],[Qr,15,15*er],[Qr,30,30*er],[a,1,mt],[a,5,5*mt],[a,15,15*mt],[a,30,30*mt],[i,1,tr],[i,3,3*tr],[i,6,6*tr],[i,12,12*tr],[n,1,ar],[n,2,2*ar],[r,1,qv],[t,1,d0],[t,3,3*d0],[e,1,od]];function s(u,l,f){const d=l<u;d&&([u,l]=[l,u]);const h=f&&typeof f.range=="function"?f:c(u,l,f),m=h?h.range(u,+l+1):[];return d?m.reverse():m}function c(u,l,f){const d=Math.abs(l-u)/f,h=Tv(([,,v])=>v).right(o,d);if(h===o.length)return e.every(Lp(u/od,l/od,f));if(h===0)return es.every(Math.max(Lp(u,l,f),1));const[m,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(p)}return[s,c]}const[rD,nD]=L_(sr,Vv,pc,D_,Uv,zv),[iD,aD]=L_(or,Hv,dc,Va,Wv,Fv);function sd(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 cd(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 Ni(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function oD(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,u=Di(i),l=Li(i),f=Di(a),d=Li(a),h=Di(o),m=Li(o),p=Di(s),v=Li(s),y=Di(c),g=Li(c),x={a:D,A:B,b:W,B:I,c:null,d:g0,e:g0,f:CD,g:BD,G:FD,H:PD,I:ED,j:TD,L:B_,m:jD,M:ID,p:z,q:U,Q:w0,s:O0,S:kD,u:RD,U:MD,V:$D,w:ND,W:DD,x:null,X:null,y:LD,Y:qD,Z:zD,"%":x0},O={a:G,A:X,b:Z,B:J,c:null,d:b0,e:b0,f:VD,g:rL,G:iL,H:WD,I:UD,j:HD,L:F_,m:KD,M:GD,p:V,q:Q,Q:w0,s:O0,S:YD,u:XD,U:ZD,V:JD,w:QD,W:eL,x:null,X:null,y:tL,Y:nL,Z:aL,"%":x0},b={a:k,A:C,b:j,B:R,c:$,d:m0,e:m0,f:OD,g:v0,G:h0,H:y0,I:y0,j:gD,L:wD,m:yD,M:bD,p:T,q:mD,Q:AD,s:_D,S:xD,u:fD,U:dD,V:pD,w:lD,W:hD,x:N,X:M,y:v0,Y:h0,Z:vD,"%":SD};x.x=w(r,x),x.X=w(n,x),x.c=w(t,x),O.x=w(r,O),O.X=w(n,O),O.c=w(t,O);function w(q,H){return function(Y){var L=[],ue=-1,le=0,je=q.length,Ie,Fe,mr;for(Y instanceof Date||(Y=new Date(+Y));++ue<je;)q.charCodeAt(ue)===37&&(L.push(q.slice(le,ue)),(Fe=p0[Ie=q.charAt(++ue)])!=null?Ie=q.charAt(++ue):Fe=Ie==="e"?" ":"0",(mr=H[Ie])&&(Ie=mr(Y,Fe)),L.push(Ie),le=ue+1);return L.push(q.slice(le,ue)),L.join("")}}function A(q,H){return function(Y){var L=Ni(1900,void 0,1),ue=P(L,q,Y+="",0),le,je;if(ue!=Y.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(H&&!("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?(le=cd(Ni(L.y,0,1)),je=le.getUTCDay(),le=je>4||je===0?rs.ceil(le):rs(le),le=fc.offset(le,(L.V-1)*7),L.y=le.getUTCFullYear(),L.m=le.getUTCMonth(),L.d=le.getUTCDate()+(L.w+6)%7):(le=sd(Ni(L.y,0,1)),je=le.getDay(),le=je>4||je===0?ts.ceil(le):ts(le),le=Va.offset(le,(L.V-1)*7),L.y=le.getFullYear(),L.m=le.getMonth(),L.d=le.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),je="Z"in L?cd(Ni(L.y,0,1)).getUTCDay():sd(Ni(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(je+5)%7:L.w+L.U*7-(je+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,cd(L)):sd(L)}}function P(q,H,Y,L){for(var ue=0,le=H.length,je=Y.length,Ie,Fe;ue<le;){if(L>=je)return-1;if(Ie=H.charCodeAt(ue++),Ie===37){if(Ie=H.charAt(ue++),Fe=b[Ie in p0?H.charAt(ue++):Ie],!Fe||(L=Fe(q,Y,L))<0)return-1}else if(Ie!=Y.charCodeAt(L++))return-1}return L}function T(q,H,Y){var L=u.exec(H.slice(Y));return L?(q.p=l.get(L[0].toLowerCase()),Y+L[0].length):-1}function k(q,H,Y){var L=h.exec(H.slice(Y));return L?(q.w=m.get(L[0].toLowerCase()),Y+L[0].length):-1}function C(q,H,Y){var L=f.exec(H.slice(Y));return L?(q.w=d.get(L[0].toLowerCase()),Y+L[0].length):-1}function j(q,H,Y){var L=y.exec(H.slice(Y));return L?(q.m=g.get(L[0].toLowerCase()),Y+L[0].length):-1}function R(q,H,Y){var L=p.exec(H.slice(Y));return L?(q.m=v.get(L[0].toLowerCase()),Y+L[0].length):-1}function $(q,H,Y){return P(q,t,H,Y)}function N(q,H,Y){return P(q,r,H,Y)}function M(q,H,Y){return P(q,n,H,Y)}function D(q){return o[q.getDay()]}function B(q){return a[q.getDay()]}function W(q){return c[q.getMonth()]}function I(q){return s[q.getMonth()]}function z(q){return i[+(q.getHours()>=12)]}function U(q){return 1+~~(q.getMonth()/3)}function G(q){return o[q.getUTCDay()]}function X(q){return a[q.getUTCDay()]}function Z(q){return c[q.getUTCMonth()]}function J(q){return s[q.getUTCMonth()]}function V(q){return i[+(q.getUTCHours()>=12)]}function Q(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var H=w(q+="",x);return H.toString=function(){return q},H},parse:function(q){var H=A(q+="",!1);return H.toString=function(){return q},H},utcFormat:function(q){var H=w(q+="",O);return H.toString=function(){return q},H},utcParse:function(q){var H=A(q+="",!0);return H.toString=function(){return q},H}}}var p0={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,sD=/^%/,cD=/[\\^$*+?|[\]().{}]/g;function ve(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 uD(e){return e.replace(cD,"\\$&")}function Di(e){return new RegExp("^(?:"+e.map(uD).join("|")+")","i")}function Li(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function lD(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function fD(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function dD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function pD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function hD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function h0(e,t,r){var n=Ue.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function v0(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function vD(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 mD(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function yD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function m0(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function gD(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function y0(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function bD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function xD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function wD(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function OD(e,t,r){var n=Ue.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function SD(e,t,r){var n=sD.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function AD(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function _D(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function g0(e,t){return ve(e.getDate(),t,2)}function PD(e,t){return ve(e.getHours(),t,2)}function ED(e,t){return ve(e.getHours()%12||12,t,2)}function TD(e,t){return ve(1+Va.count(or(e),e),t,3)}function B_(e,t){return ve(e.getMilliseconds(),t,3)}function CD(e,t){return B_(e,t)+"000"}function jD(e,t){return ve(e.getMonth()+1,t,2)}function ID(e,t){return ve(e.getMinutes(),t,2)}function kD(e,t){return ve(e.getSeconds(),t,2)}function RD(e){var t=e.getDay();return t===0?7:t}function MD(e,t){return ve(dc.count(or(e)-1,e),t,2)}function q_(e){var t=e.getDay();return t>=4||t===0?Wn(e):Wn.ceil(e)}function $D(e,t){return e=q_(e),ve(Wn.count(or(e),e)+(or(e).getDay()===4),t,2)}function ND(e){return e.getDay()}function DD(e,t){return ve(ts.count(or(e)-1,e),t,2)}function LD(e,t){return ve(e.getFullYear()%100,t,2)}function BD(e,t){return e=q_(e),ve(e.getFullYear()%100,t,2)}function qD(e,t){return ve(e.getFullYear()%1e4,t,4)}function FD(e,t){var r=e.getDay();return e=r>=4||r===0?Wn(e):Wn.ceil(e),ve(e.getFullYear()%1e4,t,4)}function zD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ve(t/60|0,"0",2)+ve(t%60,"0",2)}function b0(e,t){return ve(e.getUTCDate(),t,2)}function WD(e,t){return ve(e.getUTCHours(),t,2)}function UD(e,t){return ve(e.getUTCHours()%12||12,t,2)}function HD(e,t){return ve(1+fc.count(sr(e),e),t,3)}function F_(e,t){return ve(e.getUTCMilliseconds(),t,3)}function VD(e,t){return F_(e,t)+"000"}function KD(e,t){return ve(e.getUTCMonth()+1,t,2)}function GD(e,t){return ve(e.getUTCMinutes(),t,2)}function YD(e,t){return ve(e.getUTCSeconds(),t,2)}function XD(e){var t=e.getUTCDay();return t===0?7:t}function ZD(e,t){return ve(pc.count(sr(e)-1,e),t,2)}function z_(e){var t=e.getUTCDay();return t>=4||t===0?Un(e):Un.ceil(e)}function JD(e,t){return e=z_(e),ve(Un.count(sr(e),e)+(sr(e).getUTCDay()===4),t,2)}function QD(e){return e.getUTCDay()}function eL(e,t){return ve(rs.count(sr(e)-1,e),t,2)}function tL(e,t){return ve(e.getUTCFullYear()%100,t,2)}function rL(e,t){return e=z_(e),ve(e.getUTCFullYear()%100,t,2)}function nL(e,t){return ve(e.getUTCFullYear()%1e4,t,4)}function iL(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Un(e):Un.ceil(e),ve(e.getUTCFullYear()%1e4,t,4)}function aL(){return"+0000"}function x0(){return"%"}function w0(e){return+e}function O0(e){return Math.floor(+e/1e3)}var wn,W_,U_;oL({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 oL(e){return wn=oD(e),W_=wn.format,wn.parse,U_=wn.utcFormat,wn.utcParse,wn}function sL(e){return new Date(e)}function cL(e){return e instanceof Date?+e:+new Date(+e)}function Kv(e,t,r,n,i,a,o,s,c,u){var l=Rv(),f=l.invert,d=l.domain,h=u(".%L"),m=u(":%S"),p=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),g=u("%b %d"),x=u("%B"),O=u("%Y");function b(w){return(c(w)<w?h:s(w)<w?m:o(w)<w?p:a(w)<w?v:n(w)<w?i(w)<w?y:g:r(w)<w?x:O)(w)}return l.invert=function(w){return new Date(f(w))},l.domain=function(w){return arguments.length?d(Array.from(w,cL)):d().map(sL)},l.ticks=function(w){var A=d();return e(A[0],A[A.length-1],w??10)},l.tickFormat=function(w,A){return A==null?b:u(A)},l.nice=function(w){var A=d();return(!w||typeof w.range!="function")&&(w=t(A[0],A[A.length-1],w??10)),w?d(j_(A,w)):l},l.copy=function(){return Ha(l,Kv(e,t,r,n,i,a,o,s,c,u))},l}function uL(){return xt.apply(Kv(iD,aD,or,Hv,dc,Va,Wv,Fv,Qr,W_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function lL(){return xt.apply(Kv(rD,nD,sr,Vv,pc,fc,Uv,zv,Qr,U_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hc(){var e=0,t=1,r,n,i,a,o=Je,s=!1,c;function u(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))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function l(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),u):[o(0),o(1)]}}return u.range=l(xi),u.rangeRound=l(kv),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function Dr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function H_(){var e=Nr(hc()(Je));return e.copy=function(){return Dr(e,H_())},vr.apply(e,arguments)}function V_(){var e=Nv(hc()).domain([1,10]);return e.copy=function(){return Dr(e,V_()).base(e.base())},vr.apply(e,arguments)}function K_(){var e=Dv(hc());return e.copy=function(){return Dr(e,K_()).constant(e.constant())},vr.apply(e,arguments)}function Gv(){var e=Lv(hc());return e.copy=function(){return Dr(e,Gv()).exponent(e.exponent())},vr.apply(e,arguments)}function fL(){return Gv.apply(null,arguments).exponent(.5)}function G_(){var e=[],t=Je;function r(n){if(n!=null&&!isNaN(n=+n))return t((Wa(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(Pr),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)=>Z$(e,a/n))},r.copy=function(){return G_(t).domain(e)},vr.apply(r,arguments)}function vc(){var e=0,t=.5,r=1,n=1,i,a,o,s,c,u=Je,l,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+l(p))-a)*(n*p<n*a?s:c),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=l(e=+e),a=l(t=+t),o=l(r=+r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function m(p){return function(v){var y,g,x;return arguments.length?([y,g,x]=v,u=SN(p,[y,g,x]),h):[u(0),u(.5),u(1)]}}return h.range=m(xi),h.rangeRound=m(kv),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return l=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Y_(){var e=Nr(vc()(Je));return e.copy=function(){return Dr(e,Y_())},vr.apply(e,arguments)}function X_(){var e=Nv(vc()).domain([.1,1,10]);return e.copy=function(){return Dr(e,X_()).base(e.base())},vr.apply(e,arguments)}function Z_(){var e=Dv(vc());return e.copy=function(){return Dr(e,Z_()).constant(e.constant())},vr.apply(e,arguments)}function Yv(){var e=Lv(vc());return e.copy=function(){return Dr(e,Yv()).exponent(e.exponent())},vr.apply(e,arguments)}function dL(){return Yv.apply(null,arguments).exponent(.5)}const S0=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ua,scaleDiverging:Y_,scaleDivergingLog:X_,scaleDivergingPow:Yv,scaleDivergingSqrt:dL,scaleDivergingSymlog:Z_,scaleIdentity:C_,scaleImplicit:Bp,scaleLinear:Qo,scaleLog:I_,scaleOrdinal:Cv,scalePoint:Gi,scalePow:Bv,scaleQuantile:M_,scaleQuantize:$_,scaleRadial:R_,scaleSequential:H_,scaleSequentialLog:V_,scaleSequentialPow:Gv,scaleSequentialQuantile:G_,scaleSequentialSqrt:fL,scaleSequentialSymlog:K_,scaleSqrt:VN,scaleSymlog:k_,scaleThreshold:N_,scaleTime:uL,scaleUtc:lL,tickFormat:T_},Symbol.toStringTag,{value:"Module"}));var ud,A0;function mc(){if(A0)return ud;A0=1;var e=mi();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],c=n(s);if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,l=s}return l}return ud=t,ud}var ld,_0;function J_(){if(_0)return ld;_0=1;function e(t,r){return t>r}return ld=e,ld}var fd,P0;function pL(){if(P0)return fd;P0=1;var e=mc(),t=J_(),r=bi();function n(i){return i&&i.length?e(i,r,t):void 0}return fd=n,fd}var hL=pL();const Sr=ge(hL);var dd,E0;function Q_(){if(E0)return dd;E0=1;function e(t,r){return t<r}return dd=e,dd}var pd,T0;function vL(){if(T0)return pd;T0=1;var e=mc(),t=Q_(),r=bi();function n(i){return i&&i.length?e(i,r,t):void 0}return pd=n,pd}var mL=vL();const yc=ge(mL);var hd,C0;function yL(){if(C0)return hd;C0=1;var e=fv(),t=Ht(),r=s_(),n=rt();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return hd=i,hd}var vd,j0;function gL(){if(j0)return vd;j0=1;var e=a_(),t=yL();function r(n,i){return e(t(n,i),1)}return vd=r,vd}var bL=gL();const xL=ge(bL);var md,I0;function wL(){if(I0)return md;I0=1;var e=Av();function t(r,n){return e(r,n)}return md=t,md}var OL=wL();const cr=ge(OL);var wi=1e9,SL={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Zv,Te=!0,bt="[DecimalError] ",nn=bt+"Invalid argument: ",Xv=bt+"Exponent out of range: ",Oi=Math.floor,Yr=Math.pow,AL=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,st,ze=1e7,Ee=7,eP=9007199254740991,ns=Oi(eP/Ee),te={};te.absoluteValue=te.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};te.comparedTo=te.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};te.decimalPlaces=te.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ee;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};te.dividedBy=te.div=function(e){return ir(this,new this.constructor(e))};te.dividedToIntegerBy=te.idiv=function(e){var t=this,r=t.constructor;return Ae(ir(t,new r(e),0,1),r.precision)};te.equals=te.eq=function(e){return!this.cmp(e)};te.exponent=function(){return $e(this)};te.greaterThan=te.gt=function(e){return this.cmp(e)>0};te.greaterThanOrEqualTo=te.gte=function(e){return this.cmp(e)>=0};te.isInteger=te.isint=function(){return this.e>this.d.length-2};te.isNegative=te.isneg=function(){return this.s<0};te.isPositive=te.ispos=function(){return this.s>0};te.isZero=function(){return this.s===0};te.lessThan=te.lt=function(e){return this.cmp(e)<0};te.lessThanOrEqualTo=te.lte=function(e){return this.cmp(e)<1};te.logarithm=te.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(st))throw Error(bt+"NaN");if(r.s<1)throw Error(bt+(r.s?"NaN":"-Infinity"));return r.eq(st)?new n(0):(Te=!1,t=ir(ha(r,a),ha(e,a),a),Te=!0,Ae(t,i))};te.minus=te.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nP(t,e):tP(t,(e.s=-e.s,e))};te.modulo=te.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(bt+"NaN");return r.s?(Te=!1,t=ir(r,e,0,1).times(e),Te=!0,r.minus(t)):Ae(new n(r),i)};te.naturalExponential=te.exp=function(){return rP(this)};te.naturalLogarithm=te.ln=function(){return ha(this)};te.negated=te.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};te.plus=te.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?tP(t,e):nP(t,(e.s=-e.s,e))};te.precision=te.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(nn+e);if(t=$e(i)+1,n=i.d.length-1,r=n*Ee+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};te.squareRoot=te.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(bt+"NaN")}for(e=$e(s),Te=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=$t(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Oi((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(ir(s,a,o+2)).times(.5),$t(a.d).slice(0,o)===(t=$t(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ae(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Te=!0,Ae(n,r)};te.times=te.mul=function(e){var t,r,n,i,a,o,s,c,u,l=this,f=l.constructor,d=l.d,h=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,c=d.length,u=h.length,c<u&&(a=d,d=h,h=a,o=c,c=u,u=o),a=[],o=c+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%ze|0,t=s/ze|0;a[i]=(a[i]+t)%ze|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Te?Ae(e,f.precision):e};te.toDecimalPlaces=te.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ft(e,0,wi),t===void 0?t=n.rounding:Ft(t,0,8),Ae(r,e+$e(r)+1,t))};te.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=sn(n,!0):(Ft(e,0,wi),t===void 0?t=i.rounding:Ft(t,0,8),n=Ae(new i(n),e+1,t),r=sn(n,!0,e+1)),r};te.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?sn(i):(Ft(e,0,wi),t===void 0?t=a.rounding:Ft(t,0,8),n=Ae(new a(i),e+$e(i)+1,t),r=sn(n.abs(),!1,e+$e(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};te.toInteger=te.toint=function(){var e=this,t=e.constructor;return Ae(new t(e),$e(e)+1,t.rounding)};te.toNumber=function(){return+this};te.toPower=te.pow=function(e){var t,r,n,i,a,o,s=this,c=s.constructor,u=12,l=+(e=new c(e));if(!e.s)return new c(st);if(s=new c(s),!s.s){if(e.s<1)throw Error(bt+"Infinity");return s}if(s.eq(st))return s;if(n=c.precision,e.eq(st))return Ae(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=l<0?-l:l)<=eP){for(i=new c(st),t=Math.ceil(n/Ee+4),Te=!1;r%2&&(i=i.times(s),R0(i.d,t)),r=Oi(r/2),r!==0;)s=s.times(s),R0(s.d,t);return Te=!0,e.s<0?new c(st).div(i):Ae(i,n)}}else if(a<0)throw Error(bt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Te=!1,i=e.times(ha(s,n+u)),Te=!0,i=rP(i),i.s=a,i};te.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=$e(i),n=sn(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ft(e,1,wi),t===void 0?t=a.rounding:Ft(t,0,8),i=Ae(new a(i),e,t),r=$e(i),n=sn(i,e<=r||r<=a.toExpNeg,e)),n};te.toSignificantDigits=te.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ft(e,1,wi),t===void 0?t=n.rounding:Ft(t,0,8)),Ae(new n(r),e,t)};te.toString=te.valueOf=te.val=te.toJSON=te[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$e(e),r=e.constructor;return sn(e,t<=r.toExpNeg||t>=r.toExpPos)};function tP(e,t){var r,n,i,a,o,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),Te?Ae(t,f):t;if(c=e.d,u=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,s=u.length):(n=u,i=o,s=c.length),o=Math.ceil(f/Ee),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=u.length,s-a<0&&(a=s,n=u,u=c,c=n),r=0;a;)r=(c[--a]=c[a]+u[a]+r)/ze|0,c[a]%=ze;for(r&&(c.unshift(r),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,Te?Ae(t,f):t}function Ft(e,t,r){if(e!==~~e||e<t||e>r)throw Error(nn+e)}function $t(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=Ee-n.length,r&&(a+=wr(r)),a+=n;o=e[t],n=o+"",r=Ee-n.length,r&&(a+=wr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ir=(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%ze|0,o=a/ze|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*ze+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,c,u,l,f,d,h,m,p,v,y,g,x,O,b,w,A,P,T=n.constructor,k=n.s==i.s?1:-1,C=n.d,j=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(bt+"Division by zero");for(c=n.e-i.e,A=j.length,b=C.length,h=new T(k),m=h.d=[],u=0;j[u]==(C[u]||0);)++u;if(j[u]>(C[u]||0)&&--c,a==null?g=a=T.precision:o?g=a+($e(n)-$e(i))+1:g=a,g<0)return new T(0);if(g=g/Ee+2|0,u=0,A==1)for(l=0,j=j[0],g++;(u<b||l)&&g--;u++)x=l*ze+(C[u]||0),m[u]=x/j|0,l=x%j|0;else{for(l=ze/(j[0]+1)|0,l>1&&(j=e(j,l),C=e(C,l),A=j.length,b=C.length),O=A,p=C.slice(0,A),v=p.length;v<A;)p[v++]=0;P=j.slice(),P.unshift(0),w=j[0],j[1]>=ze/2&&++w;do l=0,s=t(j,p,A,v),s<0?(y=p[0],A!=v&&(y=y*ze+(p[1]||0)),l=y/w|0,l>1?(l>=ze&&(l=ze-1),f=e(j,l),d=f.length,v=p.length,s=t(f,p,d,v),s==1&&(l--,r(f,A<d?P:j,d))):(l==0&&(s=l=1),f=j.slice()),d=f.length,d<v&&f.unshift(0),r(p,f,v),s==-1&&(v=p.length,s=t(j,p,A,v),s<1&&(l++,r(p,A<v?P:j,v))),v=p.length):s===0&&(l++,p=[0]),m[u++]=l,s&&p[0]?p[v++]=C[O]||0:(p=[C[O]],v=1);while((O++<b||p[0]!==void 0)&&g--)}return m[0]||m.shift(),h.e=c,Ae(h,o?a+$e(h)+1:a)}})();function rP(e,t){var r,n,i,a,o,s,c=0,u=0,l=e.constructor,f=l.precision;if($e(e)>16)throw Error(Xv+$e(e));if(!e.s)return new l(st);for(Te=!1,s=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Yr(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new l(st),l.precision=s;;){if(i=Ae(i.times(e),s),r=r.times(++c),o=a.plus(ir(i,r,s)),$t(o.d).slice(0,s)===$t(a.d).slice(0,s)){for(;u--;)a=Ae(a.times(a),s);return l.precision=f,t==null?(Te=!0,Ae(a,f)):a}a=o}}function $e(e){for(var t=e.e*Ee,r=e.d[0];r>=10;r/=10)t++;return t}function yd(e,t,r){if(t>e.LN10.sd())throw Te=!0,r&&(e.precision=r),Error(bt+"LN10 precision limit exceeded");return Ae(new e(e.LN10),t)}function wr(e){for(var t="";e--;)t+="0";return t}function ha(e,t){var r,n,i,a,o,s,c,u,l,f=1,d=10,h=e,m=h.d,p=h.constructor,v=p.precision;if(h.s<1)throw Error(bt+(h.s?"NaN":"-Infinity"));if(h.eq(st))return new p(0);if(t==null?(Te=!1,u=v):u=t,h.eq(10))return t==null&&(Te=!0),yd(p,u);if(u+=d,p.precision=u,r=$t(m),n=r.charAt(0),a=$e(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=$t(h.d),n=r.charAt(0),f++;a=$e(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return c=yd(p,u+2,v).times(a+""),h=ha(new p(n+"."+r.slice(1)),u-d).plus(c),p.precision=v,t==null?(Te=!0,Ae(h,v)):h;for(s=o=h=ir(h.minus(st),h.plus(st),u),l=Ae(h.times(h),u),i=3;;){if(o=Ae(o.times(l),u),c=s.plus(ir(o,new p(i),u)),$t(c.d).slice(0,u)===$t(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(yd(p,u+2,v).times(a+""))),s=ir(s,new p(f),u),p.precision=v,t==null?(Te=!0,Ae(s,v)):s;s=c,i+=2}}function k0(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=Oi(r/Ee),e.d=[],n=(r+1)%Ee,r<0&&(n+=Ee),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ee;n<i;)e.d.push(+t.slice(n,n+=Ee));t=t.slice(n),n=Ee-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Te&&(e.e>ns||e.e<-ns))throw Error(Xv+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ae(e,t,r){var n,i,a,o,s,c,u,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ee,i=t,u=f[l=0];else{if(l=Math.ceil((n+1)/Ee),a=f.length,l>=a)return e;for(u=a=f[l],o=1;a>=10;a/=10)o++;n%=Ee,i=n-Ee+o}if(r!==void 0&&(a=Yr(10,o-i-1),s=u/a%10|0,c=t<0||f[l+1]!==void 0||u%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?u/Yr(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(a=$e(e),f.length=1,t=t-a-1,f[0]=Yr(10,(Ee-t%Ee)%Ee),e.e=Oi(-t/Ee)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=Yr(10,Ee-n),f[l]=i>0?(u/Yr(10,o-i)%Yr(10,i)|0)*a:0),c)for(;;)if(l==0){(f[0]+=a)==ze&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=ze)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Te&&(e.e>ns||e.e<-ns))throw Error(Xv+$e(e));return e}function nP(e,t){var r,n,i,a,o,s,c,u,l,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Te?Ae(t,h):t;if(c=e.d,f=t.d,n=t.e,u=e.e,c=c.slice(),o=u-n,o){for(l=o<0,l?(r=c,o=-o,s=f.length):(r=f,n=u,s=c.length),i=Math.max(Math.ceil(h/Ee),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,l=i<s,l&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}o=0}for(l&&(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]=ze-1;--c[a],c[i]+=ze}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,Te?Ae(t,h):t):new d(0)}function sn(e,t,r){var n,i=$e(e),a=$t(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+wr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+wr(-i-1)+a,r&&(n=r-o)>0&&(a+=wr(n))):i>=o?(a+=wr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+wr(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=wr(n))),e.s<0?"-"+a:a}function R0(e,t){if(e.length>t)return e.length=t,!0}function iP(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(nn+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 k0(o,a.toString())}else if(typeof a!="string")throw Error(nn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,AL.test(a))k0(o,a);else throw Error(nn+a)}if(i.prototype=te,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=iP,i.config=i.set=_L,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 _L(e){if(!e||typeof e!="object")throw Error(bt+"Object expected");var t,r,n,i=["precision",1,wi,"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(Oi(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(nn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(nn+r+": "+n);return this}var Zv=iP(SL);st=new Zv(1);const we=Zv;function PL(e){return jL(e)||CL(e)||TL(e)||EL()}function EL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TL(e,t){if(e){if(typeof e=="string")return Wp(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 Wp(e,t)}}function CL(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function jL(e){if(Array.isArray(e))return Wp(e)}function Wp(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 IL=function(t){return t},aP={},oP=function(t){return t===aP},M0=function(t){return function r(){return arguments.length===0||arguments.length===1&&oP(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},kL=function e(t,r){return t===1?r:M0(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!==aP}).length;return o>=t?r.apply(void 0,i):e(t-o,M0(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=i.map(function(f){return oP(f)?c.shift():f});return r.apply(void 0,PL(l).concat(c))}))})},gc=function(t){return kL(t.length,t)},Up=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},RL=gc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),ML=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return IL;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))}},Hp=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},sP=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 $L(e){var t;return e===0?t=1:t=Math.floor(new we(e).abs().log(10).toNumber())+1,t}function NL(e,t,r){for(var n=new we(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var DL=gc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),LL=gc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),BL=gc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const bc={rangeStep:NL,getDigitCount:$L,interpolateNumber:DL,uninterpolateNumber:LL,uninterpolateTruncation:BL};function Vp(e){return zL(e)||FL(e)||cP(e)||qL()}function qL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FL(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function zL(e){if(Array.isArray(e))return Kp(e)}function va(e,t){return HL(e)||UL(e,t)||cP(e,t)||WL()}function WL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cP(e,t){if(e){if(typeof e=="string")return Kp(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 Kp(e,t)}}function Kp(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 UL(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 HL(e){if(Array.isArray(e))return e}function uP(e){var t=va(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function lP(e,t,r){if(e.lte(0))return new we(0);var n=bc.getDigitCount(e.toNumber()),i=new we(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new we(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=s.mul(i);return t?c:new we(Math.ceil(c))}function VL(e,t,r){var n=1,i=new we(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new we(10).pow(bc.getDigitCount(e)-1),i=new we(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new we(Math.floor(e)))}else e===0?i=new we(Math.floor((t-1)/2)):r||(i=new we(Math.floor(e)));var o=Math.floor((t-1)/2),s=ML(RL(function(c){return i.add(new we(c-o).mul(n)).toNumber()}),Up);return s(0,t)}function fP(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 we(0),tickMin:new we(0),tickMax:new we(0)};var a=lP(new we(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new we(0):(o=new we(e).add(t).div(2),o=o.sub(new we(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new we(t).sub(o).div(a).toNumber()),u=s+c+1;return u>r?fP(e,t,r,n,i+1):(u<r&&(c=t>0?c+(r-u):c,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new we(s).mul(a)),tickMax:o.add(new we(c).mul(a))})}function KL(e){var t=va(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=uP([r,n]),c=va(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(Vp(Up(0,i-1).map(function(){return 1/0}))):[].concat(Vp(Up(0,i-1).map(function(){return-1/0})),[l]);return r>n?Hp(f):f}if(u===l)return VL(u,i,a);var d=fP(u,l,o,a),h=d.step,m=d.tickMin,p=d.tickMax,v=bc.rangeStep(m,p.add(new we(.1).mul(h)),h);return r>n?Hp(v):v}function GL(e,t){var r=va(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=uP([n,i]),s=va(o,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var l=Math.max(t,2),f=lP(new we(u).sub(c).div(l-1),a,0),d=[].concat(Vp(bc.rangeStep(new we(c),new we(u).sub(new we(.99).mul(f)),f)),[u]);return n>i?Hp(d):d}var YL=sP(KL),XL=sP(GL),ZL=process.env.NODE_ENV==="production",gd="Invariant failed";function tt(e,t){if(ZL)throw new Error(gd);var r=typeof t=="function"?t():t,n=r?"".concat(gd,": ").concat(r):gd;throw new Error(n)}var JL=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 is(){return is=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},is.apply(this,arguments)}function QL(e,t){return n2(e)||r2(e,t)||t2(e,t)||e2()}function e2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t2(e,t){if(e){if(typeof e=="string")return $0(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 $0(e,t)}}function $0(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 r2(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function n2(e){if(Array.isArray(e))return e}function i2(e,t){if(e==null)return{};var r=a2(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 a2(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 o2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s2(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,hP(n.key),n)}}function c2(e,t,r){return t&&s2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function u2(e,t,r){return t=as(t),l2(e,dP()?Reflect.construct(t,r||[],as(e).constructor):t.apply(e,r))}function l2(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 f2(e)}function f2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dP=function(){return!!e})()}function as(e){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},as(e)}function d2(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&&Gp(e,t)}function Gp(e,t){return Gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gp(e,t)}function pP(e,t,r){return t=hP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hP(e){var t=p2(e,"string");return Hn(t)=="symbol"?t:t+""}function p2(e,t){if(Hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Si=(function(e){function t(){return o2(this,t),u2(this,t,arguments)}return d2(t,e),c2(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,c=n.data,u=n.dataPointFormatter,l=n.xAxis,f=n.yAxis,d=i2(n,JL),h=ee(d,!1);this.props.direction==="x"&&l.type!=="number"&&(process.env.NODE_ENV!=="production"?tt(!1,'ErrorBar requires Axis type property to be "number".'):tt());var m=c.map(function(p){var v=u(p,s),y=v.x,g=v.y,x=v.value,O=v.errorVal;if(!O)return null;var b=[],w,A;if(Array.isArray(O)){var P=QL(O,2);w=P[0],A=P[1]}else w=A=O;if(a==="vertical"){var T=l.scale,k=g+i,C=k+o,j=k-o,R=T(x-w),$=T(x+A);b.push({x1:$,y1:C,x2:$,y2:j}),b.push({x1:R,y1:k,x2:$,y2:k}),b.push({x1:R,y1:C,x2:R,y2:j})}else if(a==="horizontal"){var N=f.scale,M=y+i,D=M-o,B=M+o,W=N(x-w),I=N(x+A);b.push({x1:D,y1:I,x2:B,y2:I}),b.push({x1:M,y1:W,x2:M,y2:I}),b.push({x1:D,y1:W,x2:B,y2:W})}return S.createElement(fe,is({className:"recharts-errorBar",key:"bar-".concat(b.map(function(z){return"".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))},h),b.map(function(z){return S.createElement("line",is({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return S.createElement(fe,{className:"recharts-errorBars"},m)}}])})(S.Component);pP(Si,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});pP(Si,"displayName","ErrorBar");function ma(e){"@babel/helpers - typeof";return ma=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},ma(e)}function N0(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 Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(r),!0).forEach(function(n){h2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h2(e,t,r){return t=v2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v2(e){var t=m2(e,"string");return ma(t)=="symbol"?t:t+""}function m2(e,t){if(ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vP=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=at(r,yt);if(!o)return null;var s=yt.defaultProps,c=s!==void 0?Hr(Hr({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(l,f){var d=f.item,h=f.props,m=h.sectors||h.data||[];return l.concat(m.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):u=(n||[]).map(function(l){var f=l.item,d=f.type.defaultProps,h=d!==void 0?Hr(Hr({},d),f.props):{},m=h.dataKey,p=h.name,v=h.legendType,y=h.hide;return{inactive:y,dataKey:m,type:c.iconType||v||"square",color:Jv(f),value:p||m,payload:h}}),Hr(Hr(Hr({},c),yt.getWithHeight(o,i)),{},{payload:u,item:o})};function ya(e){"@babel/helpers - typeof";return ya=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},ya(e)}function D0(e){return x2(e)||b2(e)||g2(e)||y2()}function y2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g2(e,t){if(e){if(typeof e=="string")return Yp(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 Yp(e,t)}}function b2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x2(e){if(Array.isArray(e))return Yp(e)}function Yp(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 L0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L0(Object(r),!0).forEach(function(n){Mn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mn(e,t,r){return t=w2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w2(e){var t=O2(e,"string");return ya(t)=="symbol"?t:t+""}function O2(e,t){if(ya(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ya(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e,t,r){return oe(e)||oe(t)?r:Be(t)?ct(e,t,r):ae(t)?t(e):r}function Yi(e,t,r,n){var i=xL(e,function(s){return Se(s,t)});if(r==="number"){var a=i.filter(function(s){return K(s)||parseFloat(s)});return a.length?[yc(a),Sr(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!oe(s)}):i;return o.map(function(s){return Be(s)||s instanceof Date?s:""})}var S2=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,u=0;u<s;u++){var l=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(Xe(f-l)!==Xe(d-f)){var m=[];if(Xe(d-f)===Xe(c[1]-c[0])){h=d;var p=f+c[1]-c[0];m[0]=Math.min(p,(p+l)/2),m[1]=Math.max(p,(p+l)/2)}else{h=l;var v=d+c[1]-c[0];m[0]=Math.min(f,(v+f)/2),m[1]=Math.max(f,(v+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var g=Math.min(l,d),x=Math.max(l,d);if(t>(g+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var O=0;O<s;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Jv=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ke(ke({},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},A2=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,u=s.length;c<u;c++)for(var l=a[s[c]].stackGroups,f=Object.keys(l),d=0,h=f.length;d<h;d++){var m=l[f[d]],p=m.items,v=m.cateAxisId,y=p.filter(function(A){return nr(A.type).indexOf("Bar")>=0});if(y&&y.length){var g=y[0].type.defaultProps,x=g!==void 0?ke(ke({},g),y[0].props):y[0].props,O=x.barSize,b=x[v];o[b]||(o[b]=[]);var w=oe(O)?r:O;o[b].push({item:y[0],stackList:y.slice(1),barSize:oe(w)?void 0:Ze(w,n,0)})}}return o},_2=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 u=Ze(r,i,0,!0),l,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/c,m=o.reduce(function(O,b){return O+b.barSize||0},0);m+=(c-1)*u,m>=i&&(m-=(c-1)*u,u=0),m>=i&&h>0&&(d=!0,h*=.9,m=c*h);var p=(i-m)/2>>0,v={offset:p-u,size:0};l=o.reduce(function(O,b){var w={item:b.item,position:{offset:v.offset+v.size+u,size:d?h:b.barSize}},A=[].concat(D0(O),[w]);return v=A[A.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){A.push({item:P,position:v})}),A},f)}else{var y=Ze(n,i,0,!0);i-2*y-(c-1)*u<=0&&(u=0);var g=(i-2*y-(c-1)*u)/c;g>1&&(g>>=0);var x=s===+s?Math.min(g,s):g;l=o.reduce(function(O,b,w){var A=[].concat(D0(O),[{item:b.item,position:{offset:y+(g+u)*w+(g-x)/2,size:x}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){A.push({item:P,position:A[A.length-1].position})}),A},f)}return l},P2=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,c=o-(s.left||0)-(s.right||0),u=vP({children:a,legendWidth:c});if(u){var l=i||{},f=l.width,d=l.height,h=u.align,m=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&m==="middle")&&h!=="center"&&K(t[h]))return ke(ke({},t),{},Mn({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&m!=="middle"&&K(t[m]))return ke(ke({},t),{},Mn({},m,t[m]+(d||0)))}return t},E2=function(t,r,n){return oe(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},mP=function(t,r,n,i,a){var o=r.props.children,s=Qe(o,Si).filter(function(u){return E2(i,a,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,l){var f=Se(l,n);if(oe(f))return u;var d=Array.isArray(f)?[yc(f),Sr(f)]:[f,f],h=c.reduce(function(m,p){var v=Se(l,p,0),y=d[0]-Math.abs(Array.isArray(v)?v[0]:v),g=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,m[0]),Math.max(g,m[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},T2=function(t,r,n,i,a){var o=r.map(function(s){return mP(t,s,n,a,i)}).filter(function(s){return!oe(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},yP=function(t,r,n,i,a){var o=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&mP(t,c,u,i)||Yi(t,u,n,a)});if(n==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(c,u){for(var l=0,f=u.length;l<f;l++)s[u[l]]||(s[u[l]]=!0,c.push(u[l]));return c},[])},gP=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},bP=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},rr=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,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&s?.length>=2?Xe(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var l=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return l.filter(function(f){return!gi(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},bd=new WeakMap,ho=function(t,r){if(typeof r!="function")return t;bd.has(t)||bd.set(t,new WeakMap);var n=bd.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},xP=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:ua(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Qo(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Gi(),realScaleType:"point"}:a==="category"?{scale:ua(),realScaleType:"band"}:{scale:Qo(),realScaleType:"linear"};if(an(i)){var c="scale".concat(rc(i));return{scale:(S0[c]||Gi)(),realScaleType:S0[c]?c:"point"}}return ae(i)?{scale:i}:{scale:Gi(),realScaleType:"point"}},B0=1e-4,wP=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])-B0,o=Math.max(i[0],i[1])+B0,s=t(r[0]),c=t(r[n-1]);(s<a||s>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},C2=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},j2=function(t,r){if(!r||r.length!==2||!K(r[0])||!K(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(!K(t[0])||t[0]<n)&&(a[0]=n),(!K(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},I2=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=gi(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])}},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;o<r;++o){var s=gi(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)}},R2={sign:I2,expand:xk,none:Dn,silhouette:wk,wiggle:Ok,positive:k2},M2=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=R2[n],o=bk().keys(i).value(function(s,c){return+Se(s,c,0)}).order(_p).offset(a);return o(t)},$2=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,c={},u=s.reduce(function(f,d){var h,m=(h=d.type)!==null&&h!==void 0&&h.defaultProps?ke(ke({},d.type.defaultProps),d.props):d.props,p=m.stackId,v=m.hide;if(v)return f;var y=m[n],g=f[y]||{hasStack:!1,stackGroups:{}};if(Be(p)){var x=g.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(d),g.hasStack=!0,g.stackGroups[p]=x}else g.stackGroups[Mr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ke(ke({},f),{},Mn({},y,g))},c),l={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,v){var y=h.stackGroups[v];return ke(ke({},p),{},Mn({},v,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:M2(t,y.items,a)}))},m)}return ke(ke({},f),{},Mn({},d,h))},l)},OP=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 u=t.domain();if(!u.length)return null;var l=YL(u,a,s);return t.domain([yc(l),Sr(l)]),{niceTicks:l}}if(a&&i==="number"){var f=t.domain(),d=XL(f,a,s);return{niceTicks:d}}return null};function Vn(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!oe(i[t.dataKey])){var s=$o(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Se(i,oe(o)?t.dataKey:o);return oe(c)?null:t.scale(c)}var q0=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=Se(o,r.dataKey,r.domain[s]);return oe(c)?null:r.scale(c)-a/2+i},N2=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]},D2=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ke(ke({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Be(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},L2=function(t){return t.reduce(function(r,n){return[yc(n.concat([r[0]]).filter(K)),Sr(n.concat([r[1]]).filter(K))]},[1/0,-1/0])},SP=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,c=s.reduce(function(u,l){var f=L2(l.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[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})},F0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,z0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xp=function(t,r,n){if(ae(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(K(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(F0.test(t[0])){var a=+F0.exec(t[0])[1];i[0]=r[0]-a}else ae(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(K(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(z0.test(t[1])){var o=+z0.exec(t[1])[1];i[1]=r[1]+o}else ae(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},os=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=Pv(r,function(f){return f.coordinate}),o=1/0,s=1,c=a.length;s<c;s++){var u=a[s],l=a[s-1];o=Math.min((u.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},W0=function(t,r,n){return!t||!t.length||cr(t,ct(n,"type.defaultProps.domain"))?r:t},AP=function(t,r){var n=t.type.defaultProps?ke(ke({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,c=n.tooltipType,u=n.chartType,l=n.hide;return ke(ke({},ee(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:Jv(t),value:Se(r,i),type:c,payload:r,chartType:u,hide:l})};function ga(e){"@babel/helpers - typeof";return ga=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},ga(e)}function U0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U0(Object(r),!0).forEach(function(n){_P(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _P(e,t,r){return t=B2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B2(e){var t=q2(e,"string");return ga(t)=="symbol"?t:t+""}function q2(e,t){if(ga(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ga(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F2(e,t){return H2(e)||U2(e,t)||W2(e,t)||z2()}function z2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W2(e,t){if(e){if(typeof e=="string")return H0(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 H0(e,t)}}function H0(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 U2(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function H2(e){if(Array.isArray(e))return e}var ss=Math.PI/180,V2=function(t){return t*180/Math.PI},me=function(t,r,n,i){return{x:t+Math.cos(-ss*i)*n,y:r+Math.sin(-ss*i)*n}},PP=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},EP=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.startAngle,u=t.endAngle,l=Ze(t.cx,o,o/2),f=Ze(t.cy,s,s/2),d=PP(o,s,n),h=Ze(t.innerRadius,d,0),m=Ze(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(v,y){var g=r[y],x=g.domain,O=g.reversed,b;if(oe(g.range))i==="angleAxis"?b=[c,u]:i==="radiusAxis"&&(b=[h,m]),O&&(b=[b[1],b[0]]);else{b=g.range;var w=b,A=F2(w,2);c=A[0],u=A[1]}var P=xP(g,a),T=P.realScaleType,k=P.scale;k.domain(x).range(b),wP(k);var C=OP(k,Jt(Jt({},g),{},{realScaleType:T})),j=Jt(Jt(Jt({},g),C),{},{range:b,radius:m,realScaleType:T,scale:k,cx:l,cy:f,innerRadius:h,outerRadius:m,startAngle:c,endAngle:u});return Jt(Jt({},v),{},_P({},y,j))},{})},K2=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))},G2=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=K2({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var c=(n-a)/s,u=Math.acos(c);return i>o&&(u=2*Math.PI-u),{radius:s,angle:V2(u),angleInRadian:u}},Y2=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}},X2=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},V0=function(t,r){var n=t.x,i=t.y,a=G2({x:n,y:i},r),o=a.radius,s=a.angle,c=r.innerRadius,u=r.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var l=Y2(r),f=l.startAngle,d=l.endAngle,h=s,m;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;m=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;m=h>=d&&h<=f}return m?Jt(Jt({},r),{},{radius:o,angle:X2(h,r)}):null},TP=function(t){return!S.isValidElement(t)&&!ae(t)&&typeof t!="boolean"?t.className:""};function ba(e){"@babel/helpers - typeof";return ba=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},ba(e)}var Z2=["offset"];function J2(e){return rB(e)||tB(e)||eB(e)||Q2()}function Q2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eB(e,t){if(e){if(typeof e=="string")return Zp(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 Zp(e,t)}}function tB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rB(e){if(Array.isArray(e))return Zp(e)}function Zp(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 nB(e,t){if(e==null)return{};var r=iB(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 iB(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 K0(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 Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K0(Object(r),!0).forEach(function(n){aB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aB(e,t,r){return t=oB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oB(e){var t=sB(e,"string");return ba(t)=="symbol"?t:t+""}function sB(e,t){if(ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xa(){return xa=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},xa.apply(this,arguments)}var cB=function(t){var r=t.value,n=t.formatter,i=oe(t.children)?r:t.children;return ae(n)?n(i):i},uB=function(t,r){var n=Xe(r-t),i=Math.min(Math.abs(r-t),360);return n*i},lB=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,c=a,u=c.cx,l=c.cy,f=c.innerRadius,d=c.outerRadius,h=c.startAngle,m=c.endAngle,p=c.clockWise,v=(f+d)/2,y=uB(h,m),g=y>=0?1:-1,x,O;i==="insideStart"?(x=h+g*o,O=p):i==="insideEnd"?(x=m-g*o,O=!p):i==="end"&&(x=m+g*o,O=p),O=y<=0?O:!O;var b=me(u,l,v,x),w=me(u,l,v,x+(O?1:-1)*359),A="M".concat(b.x,",").concat(b.y,`
|
|
20
|
+
A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`,
|
|
21
|
+
`).concat(w.x,",").concat(w.y),P=oe(t.id)?Mr("recharts-radial-line-"):t.id;return S.createElement("text",xa({},n,{dominantBaseline:"central",className:ce("recharts-radial-bar-label",s)}),S.createElement("defs",null,S.createElement("path",{id:P,d:A})),S.createElement("textPath",{xlinkHref:"#".concat(P)},r))},fB=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,c=a.innerRadius,u=a.outerRadius,l=a.startAngle,f=a.endAngle,d=(l+f)/2;if(i==="outside"){var h=me(o,s,u+n,d),m=h.x,p=h.y;return{x:m,y:p,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 v=(c+u)/2,y=me(o,s,v,d),g=y.x,x=y.y;return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},dB=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,c=o.y,u=o.width,l=o.height,f=l>=0?1:-1,d=f*i,h=f>0?"end":"start",m=f>0?"start":"end",p=u>=0?1:-1,v=p*i,y=p>0?"end":"start",g=p>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:c-f*i,textAnchor:"middle",verticalAnchor:h};return Le(Le({},x),n?{height:Math.max(c-n.y,0),width:u}:{})}if(a==="bottom"){var O={x:s+u/2,y:c+l+d,textAnchor:"middle",verticalAnchor:m};return Le(Le({},O),n?{height:Math.max(n.y+n.height-(c+l),0),width:u}:{})}if(a==="left"){var b={x:s-v,y:c+l/2,textAnchor:y,verticalAnchor:"middle"};return Le(Le({},b),n?{width:Math.max(b.x-n.x,0),height:l}:{})}if(a==="right"){var w={x:s+u+v,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return Le(Le({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:l}:{})}var A=n?{width:u,height:l}:{};return a==="insideLeft"?Le({x:s+v,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},A):a==="insideRight"?Le({x:s+u-v,y:c+l/2,textAnchor:y,verticalAnchor:"middle"},A):a==="insideTop"?Le({x:s+u/2,y:c+d,textAnchor:"middle",verticalAnchor:m},A):a==="insideBottom"?Le({x:s+u/2,y:c+l-d,textAnchor:"middle",verticalAnchor:h},A):a==="insideTopLeft"?Le({x:s+v,y:c+d,textAnchor:g,verticalAnchor:m},A):a==="insideTopRight"?Le({x:s+u-v,y:c+d,textAnchor:y,verticalAnchor:m},A):a==="insideBottomLeft"?Le({x:s+v,y:c+l-d,textAnchor:g,verticalAnchor:h},A):a==="insideBottomRight"?Le({x:s+u-v,y:c+l-d,textAnchor:y,verticalAnchor:h},A):yi(a)&&(K(a.x)||Zr(a.x))&&(K(a.y)||Zr(a.y))?Le({x:s+Ze(a.x,u),y:c+Ze(a.y,l),textAnchor:"end",verticalAnchor:"end"},A):Le({x:s+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},A)},pB=function(t){return"cx"in t&&K(t.cx)};function We(e){var t=e.offset,r=t===void 0?5:t,n=nB(e,Z2),i=Le({offset:r},n),a=i.viewBox,o=i.position,s=i.value,c=i.children,u=i.content,l=i.className,f=l===void 0?"":l,d=i.textBreakAll;if(!a||oe(s)&&oe(c)&&!S.isValidElement(u)&&!ae(u))return null;if(S.isValidElement(u))return S.cloneElement(u,i);var h;if(ae(u)){if(h=S.createElement(u,i),S.isValidElement(h))return h}else h=cB(i);var m=pB(a),p=ee(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return lB(i,h,p);var v=m?fB(i):dB(i);return S.createElement(on,xa({className:ce("recharts-label",f)},p,v,{breakAll:d}),h)}We.displayName="Label";var CP=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,f=t.x,d=t.y,h=t.top,m=t.left,p=t.width,v=t.height,y=t.clockWise,g=t.labelViewBox;if(g)return g;if(K(p)&&K(v)){if(K(f)&&K(d))return{x:f,y:d,width:p,height:v};if(K(h)&&K(m))return{x:h,y:m,width:p,height:v}}return K(f)&&K(d)?{x:f,y:d,width:0,height:0}:K(r)&&K(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:l||c||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},hB=function(t,r){return t?t===!0?S.createElement(We,{key:"label-implicit",viewBox:r}):Be(t)?S.createElement(We,{key:"label-implicit",viewBox:r,value:t}):S.isValidElement(t)?t.type===We?S.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(We,{key:"label-implicit",content:t,viewBox:r}):ae(t)?S.createElement(We,{key:"label-implicit",content:t,viewBox:r}):yi(t)?S.createElement(We,xa({viewBox:r},t,{key:"label-implicit"})):null:null},vB=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=CP(t),o=Qe(i,We).map(function(c,u){return S.cloneElement(c,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=hB(t.label,r||a);return[s].concat(J2(o))};We.parseViewBox=CP;We.renderCallByParent=vB;var xd,G0;function mB(){if(G0)return xd;G0=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return xd=e,xd}var yB=mB();const jP=ge(yB);function wa(e){"@babel/helpers - typeof";return wa=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},wa(e)}var gB=["valueAccessor"],bB=["data","dataKey","clockWise","id","textBreakAll"];function xB(e){return AB(e)||SB(e)||OB(e)||wB()}function wB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OB(e,t){if(e){if(typeof e=="string")return Jp(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 Jp(e,t)}}function SB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AB(e){if(Array.isArray(e))return Jp(e)}function Jp(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 cs(){return cs=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},cs.apply(this,arguments)}function Y0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function X0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y0(Object(r),!0).forEach(function(n){_B(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _B(e,t,r){return t=PB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PB(e){var t=EB(e,"string");return wa(t)=="symbol"?t:t+""}function EB(e,t){if(wa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z0(e,t){if(e==null)return{};var r=TB(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 TB(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 CB=function(t){return Array.isArray(t.value)?jP(t.value):t.value};function gt(e){var t=e.valueAccessor,r=t===void 0?CB:t,n=Z0(e,gB),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,c=n.textBreakAll,u=Z0(n,bB);return!i||!i.length?null:S.createElement(fe,{className:"recharts-label-list"},i.map(function(l,f){var d=oe(a)?r(l,f):Se(l&&l.payload,a),h=oe(s)?{}:{id:"".concat(s,"-").concat(f)};return S.createElement(We,cs({},ee(l,!0),u,h,{parentViewBox:l.parentViewBox,value:d,textBreakAll:c,viewBox:We.parseViewBox(oe(o)?l:X0(X0({},l),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}gt.displayName="LabelList";function jB(e,t){return e?e===!0?S.createElement(gt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||ae(e)?S.createElement(gt,{key:"labelList-implicit",data:t,content:e}):yi(e)?S.createElement(gt,cs({data:t},e,{key:"labelList-implicit"})):null:null}function IB(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=Qe(n,gt).map(function(o,s){return S.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=jB(e.label,t);return[a].concat(xB(i))}gt.renderCallByParent=IB;function Oa(e){"@babel/helpers - typeof";return Oa=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},Oa(e)}function Qp(){return Qp=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},Qp.apply(this,arguments)}function J0(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 Q0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J0(Object(r),!0).forEach(function(n){kB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kB(e,t,r){return t=RB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RB(e){var t=MB(e,"string");return Oa(t)=="symbol"?t:t+""}function MB(e,t){if(Oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $B=function(t,r){var n=Xe(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},vo=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(s?1:-1)+i,f=Math.asin(c/l)/ss,d=u?a:a+o*f,h=me(r,n,l,d),m=me(r,n,i,d),p=u?a-o*f:a,v=me(r,n,l*Math.cos(f*ss),p);return{center:h,circleTangency:m,lineTangency:v,theta:f}},IP=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,c=$B(o,s),u=o+c,l=me(r,n,a,o),f=me(r,n,a,u),d="M ".concat(l.x,",").concat(l.y,`
|
|
23
|
+
A `).concat(a,",").concat(a,`,0,
|
|
24
|
+
`).concat(+(Math.abs(c)>180),",").concat(+(o>u),`,
|
|
25
|
+
`).concat(f.x,",").concat(f.y,`
|
|
26
|
+
`);if(i>0){var h=me(r,n,i,o),m=me(r,n,i,u);d+="L ".concat(m.x,",").concat(m.y,`
|
|
27
|
+
A `).concat(i,",").concat(i,`,0,
|
|
28
|
+
`).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`,
|
|
29
|
+
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},NB=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,f=Xe(l-u),d=vo({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:c}),h=d.circleTangency,m=d.lineTangency,p=d.theta,v=vo({cx:r,cy:n,radius:a,angle:l,sign:-f,cornerRadius:o,cornerIsExternal:c}),y=v.circleTangency,g=v.lineTangency,x=v.theta,O=c?Math.abs(u-l):Math.abs(u-l)-p-x;if(O<0)return s?"M ".concat(m.x,",").concat(m.y,`
|
|
30
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
31
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
32
|
+
`):IP({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:l});var b="M ".concat(m.x,",").concat(m.y,`
|
|
33
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
|
|
34
|
+
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
|
|
35
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
|
|
36
|
+
`);if(i>0){var w=vo({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=w.circleTangency,P=w.lineTangency,T=w.theta,k=vo({cx:r,cy:n,radius:i,angle:l,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),C=k.circleTangency,j=k.lineTangency,R=k.theta,$=c?Math.abs(u-l):Math.abs(u-l)-T-R;if($<0&&o===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="L".concat(j.x,",").concat(j.y,`
|
|
37
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,`
|
|
38
|
+
A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
|
|
39
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else b+="L".concat(r,",").concat(n,"Z");return b},DB={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},kP=function(t){var r=Q0(Q0({},DB),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,l=r.startAngle,f=r.endAngle,d=r.className;if(o<a||l===f)return null;var h=ce("recharts-sector",d),m=o-a,p=Ze(s,m,0,!0),v;return p>0&&Math.abs(l-f)<360?v=NB({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,m/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:f}):v=IP({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:f}),S.createElement("path",Qp({},ee(r,!0),{className:h,d:v,role:"img"}))};function Sa(e){"@babel/helpers - typeof";return Sa=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},Sa(e)}function eh(){return eh=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},eh.apply(this,arguments)}function ew(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 tw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(n){LB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LB(e,t,r){return t=BB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BB(e){var t=qB(e,"string");return Sa(t)=="symbol"?t:t+""}function qB(e,t){if(Sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rw={curveBasisClosed:ck,curveBasisOpen:uk,curveBasis:sk,curveBumpX:KI,curveBumpY:GI,curveLinearClosed:lk,curveLinear:ic,curveMonotoneX:fk,curveMonotoneY:dk,curveNatural:pk,curveStep:hk,curveStepAfter:mk,curveStepBefore:vk},mo=function(t){return t.x===+t.x&&t.y===+t.y},Bi=function(t){return t.x},qi=function(t){return t.y},FB=function(t,r){if(ae(t))return t;var n="curve".concat(rc(t));return(n==="curveMonotone"||n==="curveBump")&&r?rw["".concat(n).concat(r==="vertical"?"Y":"X")]:rw[n]||ic},zB=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,u=c===void 0?!1:c,l=FB(n,s),f=u?a.filter(function(p){return mo(p)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(p){return mo(p)}):o,m=f.map(function(p,v){return tw(tw({},p),{},{base:h[v]})});return s==="vertical"?d=oo().y(qi).x1(Bi).x0(function(p){return p.base.x}):d=oo().x(Bi).y1(qi).y0(function(p){return p.base.y}),d.defined(mo).curve(l),d(m)}return s==="vertical"&&K(o)?d=oo().y(qi).x1(Bi).x0(o):K(o)?d=oo().x(Bi).y1(qi).y0(o):d=TA().x(Bi).y(qi),d.defined(mo).curve(l),d(f)},Er=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?zB(t):i;return E.createElement("path",eh({},ee(t,!1),No(t),{className:ce("recharts-curve",r),d:o,ref:a}))},yo={exports:{}};var wd,nw;function WB(){if(nw)return wd;nw=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wd=i()?Object.assign:function(a,o){for(var s,c=n(a),u,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var f in s)t.call(s,f)&&(c[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(c[u[d]]=s[u[d]])}}return c},wd}var Od,iw;function Qv(){if(iw)return Od;iw=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Od=e,Od}var Sd,aw;function RP(){return aw||(aw=1,Sd=Function.call.bind(Object.prototype.hasOwnProperty)),Sd}var Ad,ow;function UB(){if(ow)return Ad;ow=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qv(),r={},n=RP();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var l in a)if(n(a,l)){var f;try{if(typeof a[l]!="function"){var d=Error((c||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[l](o,l,c,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ad=i,Ad}var _d,sw;function HB(){if(sw)return _d;sw=1;var e=pv(),t=WB(),r=Qv(),n=RP(),i=UB(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return _d=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(I){var z=I&&(u&&I[u]||I[l]);if(typeof z=="function")return z}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:g(),arrayOf:x,element:O(),elementType:b(),instanceOf:w,node:k(),objectOf:P,oneOf:A,oneOfType:T,shape:j,exact:R};function m(I,z){return I===z?I!==0||1/I===1/z:I!==I&&z!==z}function p(I,z){this.message=I,this.data=z&&typeof z=="object"?z:{},this.stack=""}p.prototype=Error.prototype;function v(I){if(process.env.NODE_ENV!=="production")var z={},U=0;function G(Z,J,V,Q,q,H,Y){if(Q=Q||d,H=H||V,Y!==r){if(c){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}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=Q+":"+V;!z[ue]&&U<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+Q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),z[ue]=!0,U++)}}return J[V]==null?Z?J[V]===null?new p("The "+q+" `"+H+"` is marked as required "+("in `"+Q+"`, but its value is `null`.")):new p("The "+q+" `"+H+"` is marked as required in "+("`"+Q+"`, but its value is `undefined`.")):null:I(J,V,Q,q,H)}var X=G.bind(null,!1);return X.isRequired=G.bind(null,!0),X}function y(I){function z(U,G,X,Z,J,V){var Q=U[G],q=M(Q);if(q!==I){var H=D(Q);return new p("Invalid "+Z+" `"+J+"` of type "+("`"+H+"` supplied to `"+X+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return v(z)}function g(){return v(o)}function x(I){function z(U,G,X,Z,J){if(typeof I!="function")return new p("Property `"+J+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var V=U[G];if(!Array.isArray(V)){var Q=M(V);return new p("Invalid "+Z+" `"+J+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected an array."))}for(var q=0;q<V.length;q++){var H=I(V,q,X,Z,J+"["+q+"]",r);if(H instanceof Error)return H}return null}return v(z)}function O(){function I(z,U,G,X,Z){var J=z[U];if(!s(J)){var V=M(J);return new p("Invalid "+X+" `"+Z+"` of type "+("`"+V+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return v(I)}function b(){function I(z,U,G,X,Z){var J=z[U];if(!e.isValidElementType(J)){var V=M(J);return new p("Invalid "+X+" `"+Z+"` of type "+("`"+V+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return v(I)}function w(I){function z(U,G,X,Z,J){if(!(U[G]instanceof I)){var V=I.name||d,Q=W(U[G]);return new p("Invalid "+Z+" `"+J+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected ")+("instance of `"+V+"`."))}return null}return v(z)}function A(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function z(U,G,X,Z,J){for(var V=U[G],Q=0;Q<I.length;Q++)if(m(V,I[Q]))return null;var q=JSON.stringify(I,function(Y,L){var ue=D(L);return ue==="symbol"?String(L):L});return new p("Invalid "+Z+" `"+J+"` of value `"+String(V)+"` "+("supplied to `"+X+"`, expected one of "+q+"."))}return v(z)}function P(I){function z(U,G,X,Z,J){if(typeof I!="function")return new p("Property `"+J+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var V=U[G],Q=M(V);if(Q!=="object")return new p("Invalid "+Z+" `"+J+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected an object."));for(var q in V)if(n(V,q)){var H=I(V,q,X,Z,J+"."+q,r);if(H instanceof Error)return H}return null}return v(z)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var z=0;z<I.length;z++){var U=I[z];if(typeof U!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(U)+" at index "+z+"."),o}function G(X,Z,J,V,Q){for(var q=[],H=0;H<I.length;H++){var Y=I[H],L=Y(X,Z,J,V,Q,r);if(L==null)return null;L.data&&n(L.data,"expectedType")&&q.push(L.data.expectedType)}var ue=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new p("Invalid "+V+" `"+Q+"` supplied to "+("`"+J+"`"+ue+"."))}return v(G)}function k(){function I(z,U,G,X,Z){return $(z[U])?null:new p("Invalid "+X+" `"+Z+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return v(I)}function C(I,z,U,G,X){return new p((I||"React class")+": "+z+" type `"+U+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function j(I){function z(U,G,X,Z,J){var V=U[G],Q=M(V);if(Q!=="object")return new p("Invalid "+Z+" `"+J+"` of type `"+Q+"` "+("supplied to `"+X+"`, expected `object`."));for(var q in I){var H=I[q];if(typeof H!="function")return C(X,Z,J,q,D(H));var Y=H(V,q,X,Z,J+"."+q,r);if(Y)return Y}return null}return v(z)}function R(I){function z(U,G,X,Z,J){var V=U[G],Q=M(V);if(Q!=="object")return new p("Invalid "+Z+" `"+J+"` of type `"+Q+"` "+("supplied to `"+X+"`, expected `object`."));var q=t({},U[G],I);for(var H in q){var Y=I[H];if(n(I,H)&&typeof Y!="function")return C(X,Z,J,H,D(Y));if(!Y)return new p("Invalid "+Z+" `"+J+"` key `"+H+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
|
|
40
|
+
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var L=Y(V,H,X,Z,J+"."+H,r);if(L)return L}return null}return v(z)}function $(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every($);if(I===null||s(I))return!0;var z=f(I);if(z){var U=z.call(I),G;if(z!==I.entries){for(;!(G=U.next()).done;)if(!$(G.value))return!1}else for(;!(G=U.next()).done;){var X=G.value;if(X&&!$(X[1]))return!1}}else return!1;return!0;default:return!1}}function N(I,z){return I==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function M(I){var z=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":N(z,I)?"symbol":z}function D(I){if(typeof I>"u"||I===null)return""+I;var z=M(I);if(z==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return z}function B(I){var z=D(I);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function W(I){return!I.constructor||!I.constructor.name?d:I.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},_d}var Pd,cw;function VB(){if(cw)return Pd;cw=1;var e=Qv();function t(){}function r(){}return r.resetWarningCache=t,Pd=function(){function n(o,s,c,u,l,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Pd}var uw;function KB(){if(uw)return yo.exports;if(uw=1,process.env.NODE_ENV!=="production"){var e=pv(),t=!0;yo.exports=HB()(e.isElement,t)}else yo.exports=VB()();return yo.exports}var GB=KB();const ye=ge(GB),{getOwnPropertyNames:YB,getOwnPropertySymbols:XB}=Object,{hasOwnProperty:ZB}=Object.prototype;function Ed(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function go(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function JB(e){return e?.[Symbol.toStringTag]}function lw(e){return YB(e).concat(XB(e))}const QB=Object.hasOwn||((e,t)=>ZB.call(e,t));function yn(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const eq="__v",tq="__o",rq="_owner",{getOwnPropertyDescriptor:fw,keys:dw}=Object;function nq(e,t){return e.byteLength===t.byteLength&&us(new Uint8Array(e),new Uint8Array(t))}function iq(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function aq(e,t){return e.byteLength===t.byteLength&&us(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function oq(e,t){return yn(e.getTime(),t.getTime())}function sq(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function cq(e,t){return e===t}function pw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,c=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let l=!1,f=0;for(;(s=u.next())&&!s.done;){if(i[f]){f++;continue}const d=o.value,h=s.value;if(r.equals(d[0],h[0],c,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1;c++}return!0}const uq=yn;function lq(e,t,r){const n=dw(e);let i=n.length;if(dw(t).length!==i)return!1;for(;i-- >0;)if(!MP(e,t,r,n[i]))return!1;return!0}function Fi(e,t,r){const n=lw(e);let i=n.length;if(lw(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!MP(e,t,r,a)||(o=fw(e,a),s=fw(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function fq(e,t){return yn(e.valueOf(),t.valueOf())}function dq(e,t){return e.source===t.source&&e.flags===t.flags}function hw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const c=t.values();let u=!1,l=0;for(;(s=c.next())&&!s.done;){if(!i[l]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[l]=!0;break}l++}if(!u)return!1}return!0}function us(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function pq(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function MP(e,t,r,n){return(n===rq||n===tq||n===eq)&&(e.$$typeof||t.$$typeof)?!0:QB(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const hq="[object ArrayBuffer]",vq="[object Arguments]",mq="[object Boolean]",yq="[object DataView]",gq="[object Date]",bq="[object Error]",xq="[object Map]",wq="[object Number]",Oq="[object Object]",Sq="[object RegExp]",Aq="[object Set]",_q="[object String]",Pq={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Eq="[object URL]",Tq=Object.prototype.toString;function Cq({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:l,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:m}){return function(v,y,g){if(v===y)return!0;if(v==null||y==null)return!1;const x=typeof v;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?s(v,y,g):x==="function"?a(v,y,g):!1;const O=v.constructor;if(O!==y.constructor)return!1;if(O===Object)return c(v,y,g);if(Array.isArray(v))return t(v,y,g);if(O===Date)return n(v,y,g);if(O===RegExp)return l(v,y,g);if(O===Map)return o(v,y,g);if(O===Set)return f(v,y,g);const b=Tq.call(v);if(b===gq)return n(v,y,g);if(b===Sq)return l(v,y,g);if(b===xq)return o(v,y,g);if(b===Aq)return f(v,y,g);if(b===Oq)return typeof v.then!="function"&&typeof y.then!="function"&&c(v,y,g);if(b===Eq)return h(v,y,g);if(b===bq)return i(v,y,g);if(b===vq)return c(v,y,g);if(Pq[b])return d(v,y,g);if(b===hq)return e(v,y,g);if(b===yq)return r(v,y,g);if(b===mq||b===wq||b===_q)return u(v,y,g);if(m){let w=m[b];if(!w){const A=JB(v);A&&(w=m[A])}if(w)return w(v,y,g)}return!1}}function jq({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:nq,areArraysEqual:r?Fi:iq,areDataViewsEqual:aq,areDatesEqual:oq,areErrorsEqual:sq,areFunctionsEqual:cq,areMapsEqual:r?Ed(pw,Fi):pw,areNumbersEqual:uq,areObjectsEqual:r?Fi:lq,arePrimitiveWrappersEqual:fq,areRegExpsEqual:dq,areSetsEqual:r?Ed(hw,Fi):hw,areTypedArraysEqual:r?Ed(us,Fi):us,areUrlsEqual:pq,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=go(n.areArraysEqual),a=go(n.areMapsEqual),o=go(n.areObjectsEqual),s=go(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function Iq(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function kq({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,c){const{cache:u=e?new WeakMap:void 0,meta:l}=r();return t(s,c,{cache:u,equals:n,meta:l,strict:i})};if(e)return function(s,c){return t(s,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,c){return t(s,c,a)}}const Rq=Lr();Lr({strict:!0});Lr({circular:!0});Lr({circular:!0,strict:!0});Lr({createInternalComparator:()=>yn});Lr({strict:!0,createInternalComparator:()=>yn});Lr({circular:!0,createInternalComparator:()=>yn});Lr({circular:!0,createInternalComparator:()=>yn,strict:!0});function Lr(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=jq(e),o=Cq(a),s=r?r(o):Iq(o);return kq({circular:t,comparator:o,createState:n,equals:s,strict:i})}function Mq(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function vw(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):Mq(i)};requestAnimationFrame(n)}function th(e){"@babel/helpers - typeof";return th=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},th(e)}function $q(e){return Bq(e)||Lq(e)||Dq(e)||Nq()}function Nq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dq(e,t){if(e){if(typeof e=="string")return mw(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 mw(e,t)}}function mw(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 Lq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bq(e){if(Array.isArray(e))return e}function qq(){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=$q(o),c=s[0],u=s.slice(1);if(typeof c=="number"){vw(i.bind(null,u),c);return}i(c),vw(i.bind(null,u));return}th(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 Aa(e){"@babel/helpers - typeof";return Aa=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},Aa(e)}function yw(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 gw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yw(Object(r),!0).forEach(function(n){$P(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $P(e,t,r){return t=Fq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fq(e){var t=zq(e,"string");return Aa(t)==="symbol"?t:String(t)}function zq(e,t){if(Aa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Aa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wq=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},Uq=function(t){return t},Hq=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Xi=function(t,r){return Object.keys(r).reduce(function(n,i){return gw(gw({},n),{},$P({},i,t(i,r[i])))},{})},bw=function(t,r,n){return t.map(function(i){return"".concat(Hq(i)," ").concat(r,"ms ").concat(n)}).join(",")},Vq=process.env.NODE_ENV!=="production",ls=function(t,r,n,i,a,o,s,c){if(Vq&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,c],l=0;console.warn(r.replace(/%s/g,function(){return u[l++]}))}};function Kq(e,t){return Xq(e)||Yq(e,t)||NP(e,t)||Gq()}function Gq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yq(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Xq(e){if(Array.isArray(e))return e}function Zq(e){return eF(e)||Qq(e)||NP(e)||Jq()}function Jq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NP(e,t){if(e){if(typeof e=="string")return rh(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 rh(e,t)}}function Qq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eF(e){if(Array.isArray(e))return rh(e)}function rh(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 fs=1e-4,DP=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},LP=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},xw=function(t,r){return function(n){var i=DP(t,r);return LP(i,n)}},tF=function(t,r){return function(n){var i=DP(t,r),a=[].concat(Zq(i.map(function(o,s){return o*s}).slice(1)),[0]);return LP(a,n)}},ww=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 u=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),l=Kq(u,4);i=l[0],a=l[1],o=l[2],s=l[3]}else ls(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}ls([i,o,a,s].every(function(v){return typeof v=="number"&&v>=0&&v<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=xw(i,o),d=xw(a,s),h=tF(i,o),m=function(y){return y>1?1:y<0?0:y},p=function(y){for(var g=y>1?1:y,x=g,O=0;O<8;++O){var b=f(x)-g,w=h(x);if(Math.abs(b-g)<fs||w<fs)return d(x);x=m(x-b/w)}return d(x)};return p.isStepper=!1,p},rF=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(l,f,d){var h=-(l-f)*n,m=d*a,p=d+(h-m)*s/1e3,v=d*s/1e3+l;return Math.abs(v-f)<fs&&Math.abs(p)<fs?[f,0]:[v,p]};return c.isStepper=!0,c.dt=s,c},nF=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 ww(i);case"spring":return rF();default:if(i.split("(")[0]==="cubic-bezier")return ww(i);ls(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(ls(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function _a(e){"@babel/helpers - typeof";return _a=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},_a(e)}function Ow(e){return oF(e)||aF(e)||BP(e)||iF()}function iF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oF(e){if(Array.isArray(e))return ih(e)}function Sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sw(Object(r),!0).forEach(function(n){nh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nh(e,t,r){return t=sF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sF(e){var t=cF(e,"string");return _a(t)==="symbol"?t:String(t)}function cF(e,t){if(_a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uF(e,t){return dF(e)||fF(e,t)||BP(e,t)||lF()}function lF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
45
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BP(e,t){if(e){if(typeof e=="string")return ih(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 ih(e,t)}}function ih(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 fF(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function dF(e){if(Array.isArray(e))return e}var ds=function(t,r,n){return t+(r-t)*n},ah=function(t){var r=t.from,n=t.to;return r!==n},pF=function e(t,r,n){var i=Xi(function(a,o){if(ah(o)){var s=t(o.from,o.to,o.velocity),c=uF(s,2),u=c[0],l=c[1];return He(He({},o),{},{from:u,velocity:l})}return o},r);return n<1?Xi(function(a,o){return ah(o)?He(He({},o),{},{velocity:ds(o.velocity,i[a].velocity,n),from:ds(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const hF=(function(e,t,r,n,i){var a=Wq(e,t),o=a.reduce(function(v,y){return He(He({},v),{},nh({},y,[e[y],t[y]]))},{}),s=a.reduce(function(v,y){return He(He({},v),{},nh({},y,{from:e[y],velocity:0,to:t[y]}))},{}),c=-1,u,l,f=function(){return null},d=function(){return Xi(function(y,g){return g.from},s)},h=function(){return!Object.values(s).filter(ah).length},m=function(y){u||(u=y);var g=y-u,x=g/r.dt;s=pF(r,s,x),i(He(He(He({},e),t),d())),u=y,h()||(c=requestAnimationFrame(f))},p=function(y){l||(l=y);var g=(y-l)/n,x=Xi(function(b,w){return ds.apply(void 0,Ow(w).concat([r(g)]))},o);if(i(He(He(He({},e),t),x)),g<1)c=requestAnimationFrame(f);else{var O=Xi(function(b,w){return ds.apply(void 0,Ow(w).concat([r(1)]))},o);i(He(He(He({},e),t),O))}};return f=r.isStepper?m:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}});function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}var vF=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function mF(e,t){if(e==null)return{};var r=yF(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 yF(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 Td(e){return wF(e)||xF(e)||bF(e)||gF()}function gF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bF(e,t){if(e){if(typeof e=="string")return oh(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 oh(e,t)}}function xF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wF(e){if(Array.isArray(e))return oh(e)}function oh(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 Aw(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 wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aw(Object(r),!0).forEach(function(n){Hi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hi(e,t,r){return t=qP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SF(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,qP(n.key),n)}}function AF(e,t,r){return t&&SF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qP(e){var t=_F(e,"string");return Kn(t)==="symbol"?t:String(t)}function _F(e,t){if(Kn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PF(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&&sh(e,t)}function sh(e,t){return sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sh(e,t)}function EF(e){var t=TF();return function(){var n=ps(e),i;if(t){var a=ps(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return ch(this,i)}}function ch(e,t){if(t&&(Kn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uh(e)}function uh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TF(){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 ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ps(e)}var lt=(function(e){PF(r,e);var t=EF(r);function r(n,i){var a;OF(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,c=o.attributeName,u=o.from,l=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(uh(a)),a.changeStyle=a.changeStyle.bind(uh(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:l}),ch(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},ch(a);a.state={style:c?Hi({},c,u):u}}else a.state={style:{}};return a}return AF(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,u=a.shouldReAnimate,l=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:c?Hi({},c,l):l};this.state&&d&&(c&&d[c]!==l||!c&&d!==l)&&this.setState(h);return}if(!(Rq(i.to,l)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=m||u?f:i.to;if(this.state&&d){var v={style:c?Hi({},c,p):p};(c&&d[c]!==p||!c&&d!==p)&&this.setState(v)}this.runAnimation(wt(wt({},this.props),{},{from:p,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,u=i.easing,l=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=hF(o,s,nF(u),c,this.changeStyle),m=function(){a.stopJSAnimation=h()};this.manager.start([d,l,m,c,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,c=i.onAnimationStart,u=o[0],l=u.style,f=u.duration,d=f===void 0?0:f,h=function(p,v,y){if(y===0)return p;var g=v.duration,x=v.easing,O=x===void 0?"ease":x,b=v.style,w=v.properties,A=v.onAnimationEnd,P=y>0?o[y-1]:v,T=w||Object.keys(b);if(typeof O=="function"||O==="spring")return[].concat(Td(p),[a.runJSAnimation.bind(a,{from:P.style,to:b,duration:g,easing:O}),g]);var k=bw(T,g,O),C=wt(wt(wt({},P.style),b),{},{transition:k});return[].concat(Td(p),[C,g,A]).filter(Uq)};return this.manager.start([c].concat(Td(o.reduce(h,[l,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=qq());var a=i.begin,o=i.duration,s=i.attributeName,c=i.to,u=i.easing,l=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?Hi({},s,c):c,v=bw(Object.keys(p),o,u);m.start([l,a,wt(wt({},p),{},{transition:v}),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=mF(i,vF),u=S.Children.count(a),l=this.state.style;if(typeof a=="function")return a(l);if(!s||u===0||o<=0)return a;var f=function(h){var m=h.props,p=m.style,v=p===void 0?{}:p,y=m.className,g=S.cloneElement(h,wt(wt({},c),{},{style:wt(wt({},v),l),className:y}));return g};return u===1?f(S.Children.only(a)):S.createElement("div",null,S.Children.map(a,function(d){return f(d)}))}}]),r})(S.PureComponent);lt.displayName="Animate";lt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};lt.propTypes={from:ye.oneOfType([ye.object,ye.string]),to:ye.oneOfType([ye.object,ye.string]),attributeName:ye.string,duration:ye.number,begin:ye.number,easing:ye.oneOfType([ye.string,ye.func]),steps:ye.arrayOf(ye.shape({duration:ye.number.isRequired,style:ye.object.isRequired,easing:ye.oneOfType([ye.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ye.func]),properties:ye.arrayOf("string"),onAnimationEnd:ye.func})),children:ye.oneOfType([ye.node,ye.func]),isActive:ye.bool,canBegin:ye.bool,onAnimationEnd:ye.func,shouldReAnimate:ye.bool,onAnimationStart:ye.func,onAnimationReStart:ye.func};function Pa(e){"@babel/helpers - typeof";return Pa=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},Pa(e)}function hs(){return hs=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},hs.apply(this,arguments)}function CF(e,t){return RF(e)||kF(e,t)||IF(e,t)||jF()}function jF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
47
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IF(e,t){if(e){if(typeof e=="string")return _w(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 _w(e,t)}}function _w(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 kF(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function RF(e){if(Array.isArray(e))return e}function Pw(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 Ew(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pw(Object(r),!0).forEach(function(n){MF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MF(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=NF(e,"string");return Pa(t)=="symbol"?t:t+""}function NF(e,t){if(Pa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tw=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,u=i>=0&&n>=0||i<0&&n<0?1:0,l;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>o?o:a[d];l="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(l+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+c*f[0],",").concat(r)),l+="L ".concat(t+n-c*f[1],",").concat(r),f[1]>0&&(l+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
|
|
48
|
+
`).concat(t+n,",").concat(r+s*f[1])),l+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(l+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
|
|
49
|
+
`).concat(t+n-c*f[2],",").concat(r+i)),l+="L ".concat(t+c*f[3],",").concat(r+i),f[3]>0&&(l+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
|
|
50
|
+
`).concat(t,",").concat(r+i-s*f[3])),l+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);l="M ".concat(t,",").concat(r+s*m,`
|
|
51
|
+
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+c*m,",").concat(r,`
|
|
52
|
+
L `).concat(t+n-c*m,",").concat(r,`
|
|
53
|
+
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*m,`
|
|
54
|
+
L `).concat(t+n,",").concat(r+i-s*m,`
|
|
55
|
+
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-c*m,",").concat(r+i,`
|
|
56
|
+
L `).concat(t+c*m,",").concat(r+i,`
|
|
57
|
+
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else l="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return l},DF=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 u=Math.min(a,a+s),l=Math.max(a,a+s),f=Math.min(o,o+c),d=Math.max(o,o+c);return n>=u&&n<=l&&i>=f&&i<=d}return!1},LF={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},em=function(t){var r=Ew(Ew({},LF),t),n=S.useRef(),i=S.useState(-1),a=CF(i,2),o=a[0],s=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var c=r.x,u=r.y,l=r.width,f=r.height,d=r.radius,h=r.className,m=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isAnimationActive,g=r.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||f!==+f||l===0||f===0)return null;var x=ce("recharts-rectangle",h);return g?S.createElement(lt,{canBegin:o>0,from:{width:l,height:f,x:c,y:u},to:{width:l,height:f,x:c,y:u},duration:p,animationEasing:m,isActive:g},function(O){var b=O.width,w=O.height,A=O.x,P=O.y;return S.createElement(lt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:y,easing:m},S.createElement("path",hs({},ee(r,!0),{className:x,d:Tw(A,P,b,w,d),ref:n})))}):S.createElement("path",hs({},ee(r,!0),{className:x,d:Tw(c,u,l,f,d)}))},BF=["points","className","baseLinePoints","connectNulls"];function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tn.apply(this,arguments)}function qF(e,t){if(e==null)return{};var r=FF(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 FF(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 Cw(e){return HF(e)||UF(e)||WF(e)||zF()}function zF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WF(e,t){if(e){if(typeof e=="string")return lh(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 lh(e,t)}}function UF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HF(e){if(Array.isArray(e))return lh(e)}function lh(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 jw=function(t){return t&&t.x===+t.x&&t.y===+t.y},VF=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){jw(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),jw(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Zi=function(t,r){var n=VF(t);r&&(n=[n.reduce(function(a,o){return[].concat(Cw(a),Cw(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},KF=function(t,r,n){var i=Zi(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Zi(r.reverse(),n).slice(1))},FP=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=qF(t,BF);if(!r||!r.length)return null;var s=ce("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",u=KF(r,i,a);return S.createElement("g",{className:s},S.createElement("path",Tn({},ee(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?S.createElement("path",Tn({},ee(o,!0),{fill:"none",d:Zi(r,a)})):null,c?S.createElement("path",Tn({},ee(o,!0),{fill:"none",d:Zi(i,a)})):null)}var l=Zi(r,a);return S.createElement("path",Tn({},ee(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",className:s,d:l}))};function fh(){return fh=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},fh.apply(this,arguments)}var Ai=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ce("recharts-dot",a);return r===+r&&n===+n&&i===+i?E.createElement("circle",fh({},ee(t,!1),No(t),{className:o,cx:r,cy:n,r:i})):null};function Ea(e){"@babel/helpers - typeof";return Ea=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},Ea(e)}var GF=["x","y","top","left","width","height","className"];function dh(){return dh=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},dh.apply(this,arguments)}function Iw(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 YF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iw(Object(r),!0).forEach(function(n){XF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XF(e,t,r){return t=ZF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZF(e){var t=JF(e,"string");return Ea(t)=="symbol"?t:t+""}function JF(e,t){if(Ea(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QF(e,t){if(e==null)return{};var r=ez(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 ez(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 tz=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},rz=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,u=c===void 0?0:c,l=t.width,f=l===void 0?0:l,d=t.height,h=d===void 0?0:d,m=t.className,p=QF(t,GF),v=YF({x:n,y:a,top:s,left:u,width:f,height:h},p);return!K(n)||!K(a)||!K(f)||!K(h)||!K(s)||!K(u)?null:S.createElement("path",dh({},ee(v,!0),{className:ce("recharts-cross",m),d:tz(n,a,f,h,s,u)}))},nz=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Ta(e){"@babel/helpers - typeof";return Ta=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},Ta(e)}function iz(e,t){if(e==null)return{};var r=az(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 az(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 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 kw(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 Ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kw(Object(r),!0).forEach(function(n){oz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oz(e,t,r){return t=sz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sz(e){var t=cz(e,"string");return Ta(t)=="symbol"?t:t+""}function cz(e,t){if(Ta(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ta(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uz=function(t,r,n,i){var a="";return i.forEach(function(o,s){var c=me(r,n,t,o);s?a+="L ".concat(c.x,",").concat(c.y):a+="M ".concat(c.x,",").concat(c.y)}),a+="Z",a},lz=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.polarAngles,s=t.radialLines;if(!o||!o.length||!s)return null;var c=Ca({stroke:"#ccc"},ee(t,!1));return S.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(u){var l=me(r,n,i,u),f=me(r,n,a,u);return S.createElement("line",ur({},c,{key:"line-".concat(u),x1:l.x,y1:l.y,x2:f.x,y2:f.y}))}))},fz=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=Ca(Ca({stroke:"#ccc"},ee(t,!1)),{},{fill:"none"});return S.createElement("circle",ur({},o,{className:ce("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},dz=function(t){var r=t.radius,n=t.index,i=Ca(Ca({stroke:"#ccc"},ee(t,!1)),{},{fill:"none"});return S.createElement("path",ur({},i,{className:ce("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:uz(r,t.cx,t.cy,t.polarAngles)}))},pz=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:S.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?S.createElement(fz,ur({key:o},t,{radius:i,index:a})):S.createElement(dz,ur({key:o},t,{radius:i,index:a}))}))},zP=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.innerRadius,s=o===void 0?0:o,c=t.outerRadius,u=c===void 0?0:c,l=t.gridType,f=l===void 0?"polygon":l,d=t.radialLines,h=d===void 0?!0:d,m=iz(t,nz);return u<=0?null:S.createElement("g",{className:"recharts-polar-grid"},S.createElement(lz,ur({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)),S.createElement(pz,ur({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)))};zP.displayName="PolarGrid";var Cd,Rw;function hz(){if(Rw)return Cd;Rw=1;var e=mc(),t=J_(),r=Ht();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Cd=n,Cd}var vz=hz();const mz=ge(vz);var jd,Mw;function yz(){if(Mw)return jd;Mw=1;var e=mc(),t=Ht(),r=Q_();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return jd=n,jd}var gz=yz();const bz=ge(gz);var xz=["cx","cy","angle","ticks","axisLine"],wz=["ticks","tick","angle","tickFormatter","stroke"];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 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)}function $w(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 Vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$w(Object(r),!0).forEach(function(n){xc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nw(e,t){if(e==null)return{};var r=Oz(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 Oz(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 Sz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dw(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,UP(n.key),n)}}function Az(e,t,r){return t&&Dw(e.prototype,t),r&&Dw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _z(e,t,r){return t=vs(t),Pz(e,WP()?Reflect.construct(t,r||[],vs(e).constructor):t.apply(e,r))}function Pz(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 Ez(e)}function Ez(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WP=function(){return!!e})()}function vs(e){return vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vs(e)}function Tz(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&&ph(e,t)}function ph(e,t){return ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ph(e,t)}function xc(e,t,r){return t=UP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UP(e){var t=Cz(e,"string");return Gn(t)=="symbol"?t:t+""}function Cz(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _i=(function(e){function t(){return Sz(this,t),_z(this,t,arguments)}return Tz(t,e),Az(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,c=a.cy;return me(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=mz(s,function(l){return l.coordinate||0}),u=bz(s,function(l){return l.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.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,u=Nw(n,xz),l=s.reduce(function(m,p){return[Math.min(m[0],p.coordinate),Math.max(m[1],p.coordinate)]},[1/0,-1/0]),f=me(i,a,l[0],o),d=me(i,a,l[1],o),h=Vr(Vr(Vr({},ee(u,!1)),{},{fill:"none"},ee(c,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return S.createElement("line",Ji({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,c=i.tickFormatter,u=i.stroke,l=Nw(i,wz),f=this.getTickTextAnchor(),d=ee(l,!1),h=ee(o,!1),m=a.map(function(p,v){var y=n.getTickValueCoord(p),g=Vr(Vr(Vr(Vr({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:u},h),{},{index:v},y),{},{payload:p});return S.createElement(fe,Ji({className:ce("recharts-polar-radius-axis-tick",TP(o)),key:"tick-".concat(p.coordinate)},Cr(n.props,p,v)),t.renderTickItem(o,g,c?c(p.value,v):p.value))});return S.createElement(fe,{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:S.createElement(fe,{className:ce("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),We.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):ae(n)?o=n(i):o=S.createElement(on,Ji({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(S.PureComponent);xc(_i,"displayName","PolarRadiusAxis");xc(_i,"axisType","radiusAxis");xc(_i,"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 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 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 Lw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lw(Object(r),!0).forEach(function(n){wc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bw(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,VP(n.key),n)}}function Iz(e,t,r){return t&&Bw(e.prototype,t),r&&Bw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kz(e,t,r){return t=ms(t),Rz(e,HP()?Reflect.construct(t,r||[],ms(e).constructor):t.apply(e,r))}function Rz(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 Mz(e)}function Mz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HP=function(){return!!e})()}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ms(e)}function $z(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&&hh(e,t)}function hh(e,t){return hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hh(e,t)}function wc(e,t,r){return t=VP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VP(e){var t=Nz(e,"string");return Yn(t)=="symbol"?t:t+""}function Nz(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dz=Math.PI/180,qw=1e-5,Pi=(function(e){function t(){return jz(this,t),kz(this,t,arguments)}return $z(t,e),Iz(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,c=i.orientation,u=i.tickSize,l=u||8,f=me(a,o,s,n.coordinate),d=me(a,o,s+(c==="inner"?-1:1)*l,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Dz),o;return a>qw?o=i==="outer"?"start":"end":a<-qw?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,u=Kr(Kr({},ee(this.props,!1)),{},{fill:"none"},ee(s,!1));if(c==="circle")return S.createElement(Ai,Xr({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var l=this.props.ticks,f=l.map(function(d){return me(i,a,o,d.coordinate)});return S.createElement(FP,Xr({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,c=i.tickFormatter,u=i.stroke,l=ee(this.props,!1),f=ee(o,!1),d=Kr(Kr({},l),{},{fill:"none"},ee(s,!1)),h=a.map(function(m,p){var v=n.getTickLineCoord(m),y=n.getTickTextAnchor(m),g=Kr(Kr(Kr({textAnchor:y},l),{},{stroke:"none",fill:u},f),{},{index:p,payload:m,x:v.x2,y:v.y2});return S.createElement(fe,Xr({className:ce("recharts-polar-angle-axis-tick",TP(o)),key:"tick-".concat(m.coordinate)},Cr(n.props,m,p)),s&&S.createElement("line",Xr({className:"recharts-polar-angle-axis-tick-line"},d,v)),o&&t.renderTickItem(o,g,c?c(m.value,p):m.value))});return S.createElement(fe,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(fe,{className:ce("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):ae(n)?o=n(i):o=S.createElement(on,Xr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(S.PureComponent);wc(Pi,"displayName","PolarAngleAxis");wc(Pi,"axisType","angleAxis");wc(Pi,"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 Id,Fw;function Lz(){if(Fw)return Id;Fw=1;var e=ZA(),t=e(Object.getPrototypeOf,Object);return Id=t,Id}var kd,zw;function Bz(){if(zw)return kd;zw=1;var e=pr(),t=Lz(),r=hr(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,c=o.call(Object);function u(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var d=s.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==c}return kd=u,kd}var qz=Bz();const Fz=ge(qz);var Rd,Ww;function zz(){if(Ww)return Rd;Ww=1;var e=pr(),t=hr(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Rd=n,Rd}var Wz=zz();const Uz=ge(Wz);function ja(e){"@babel/helpers - typeof";return ja=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},ja(e)}function ys(){return ys=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},ys.apply(this,arguments)}function Hz(e,t){return Yz(e)||Gz(e,t)||Kz(e,t)||Vz()}function Vz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
59
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kz(e,t){if(e){if(typeof e=="string")return Uw(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 Uw(e,t)}}function Uw(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 Gz(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Yz(e){if(Array.isArray(e))return e}function Hw(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 Vw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hw(Object(r),!0).forEach(function(n){Xz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xz(e,t,r){return t=Zz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zz(e){var t=Jz(e,"string");return ja(t)=="symbol"?t:t+""}function Jz(e,t){if(ja(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ja(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kw=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},Qz={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},eW=function(t){var r=Vw(Vw({},Qz),t),n=S.useRef(),i=S.useState(-1),a=Hz(i,2),o=a[0],s=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var c=r.x,u=r.y,l=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,m=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||f!==+f||d!==+d||l===0&&f===0||d===0)return null;var g=ce("recharts-trapezoid",h);return y?S.createElement(lt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:c,y:u},to:{upperWidth:l,lowerWidth:f,height:d,x:c,y:u},duration:p,animationEasing:m,isActive:y},function(x){var O=x.upperWidth,b=x.lowerWidth,w=x.height,A=x.x,P=x.y;return S.createElement(lt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:m},S.createElement("path",ys({},ee(r,!0),{className:g,d:Kw(A,P,O,b,w),ref:n})))}):S.createElement("g",null,S.createElement("path",ys({},ee(r,!0),{className:g,d:Kw(c,u,l,f,d)})))},tW=["option","shapeType","propTransformer","activeClassName","isActive"];function Ia(e){"@babel/helpers - typeof";return Ia=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},Ia(e)}function rW(e,t){if(e==null)return{};var r=nW(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 nW(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 Gw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gw(Object(r),!0).forEach(function(n){iW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iW(e,t,r){return t=aW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aW(e){var t=oW(e,"string");return Ia(t)=="symbol"?t:t+""}function oW(e,t){if(Ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sW(e,t){return gs(gs({},t),e)}function cW(e,t){return e==="symbols"}function Yw(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(em,r);case"trapezoid":return S.createElement(eW,r);case"sector":return S.createElement(kP,r);case"symbols":if(cW(t))return S.createElement(oc,r);break;default:return null}}function uW(e){return S.isValidElement(e)?e.props:e}function bs(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?sW:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,c=rW(e,tW),u;if(S.isValidElement(t))u=S.cloneElement(t,gs(gs({},c),uW(t)));else if(ae(t))u=t(c);else if(Fz(t)&&!Uz(t)){var l=i(t,c);u=S.createElement(Yw,{shapeType:r,elementProps:l})}else{var f=c;u=S.createElement(Yw,{shapeType:r,elementProps:f})}return s?S.createElement(fe,{className:o},u):u}function Oc(e,t){return t!=null&&"trapezoids"in e.props}function Sc(e,t){return t!=null&&"sectors"in e.props}function ka(e,t){return t!=null&&"points"in e.props}function lW(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 fW(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function dW(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function pW(e,t){var r;return Oc(e,t)?r=lW:Sc(e,t)?r=fW:ka(e,t)&&(r=dW),r}function hW(e,t){var r;return Oc(e,t)?r="trapezoids":Sc(e,t)?r="sectors":ka(e,t)&&(r="points"),r}function vW(e,t){if(Oc(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(Sc(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 ka(e,t)?t.payload:{}}function mW(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=hW(r,t),a=vW(r,t),o=n.filter(function(c,u){var l=cr(a,c),f=r.props[i].filter(function(m){var p=pW(r,t);return p(m,t)}),d=r.props[i].indexOf(f[f.length-1]),h=u===d;return l&&h}),s=n.indexOf(o[o.length-1]);return s}var Co;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 Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cn.apply(this,arguments)}function Xw(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?Xw(Object(r),!0).forEach(function(n){vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(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,GP(n.key),n)}}function gW(e,t,r){return t&&Zw(e.prototype,t),r&&Zw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bW(e,t,r){return t=xs(t),xW(e,KP()?Reflect.construct(t,r||[],xs(e).constructor):t.apply(e,r))}function xW(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 wW(e)}function wW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KP=function(){return!!e})()}function xs(e){return xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xs(e)}function OW(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&&vh(e,t)}function vh(e,t){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vh(e,t)}function vt(e,t,r){return t=GP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GP(e){var t=SW(e,"string");return Xn(t)=="symbol"?t:t+""}function SW(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kt=(function(e){function t(r){var n;return yW(this,t),n=bW(this,t,[r]),vt(n,"pieRef",null),vt(n,"sectorRefs",[]),vt(n,"id",Mr("recharts-pie-")),vt(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ae(i)&&i()}),vt(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ae(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return OW(t,e),gW(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,u=a.valueKey,l=ee(this.props,!1),f=ee(o,!1),d=ee(s,!1),h=o&&o.offsetRadius||20,m=n.map(function(p,v){var y=(p.startAngle+p.endAngle)/2,g=me(p.cx,p.cy,p.outerRadius+h,y),x=_e(_e(_e(_e({},l),p),{},{stroke:"none"},f),{},{index:v,textAnchor:t.getTextAnchor(g.x,p.cx)},g),O=_e(_e(_e(_e({},l),p),{},{fill:"none",stroke:p.fill},d),{},{index:v,points:[me(p.cx,p.cy,p.outerRadius,y),g]}),b=c;return oe(c)&&oe(u)?b="value":oe(c)&&(b=u),S.createElement(fe,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},s&&t.renderLabelLineItem(s,O,"line"),t.renderLabelItem(o,x,Se(p,b)))});return S.createElement(fe,{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(u,l){if(u?.startAngle===0&&u?.endAngle===0&&n.length!==1)return null;var f=i.isActiveIndex(l),d=c&&i.hasActiveIndex()?c:null,h=f?o:d,m=_e(_e({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return S.createElement(fe,Cn({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Cr(i.props,u,l),{key:"sector-".concat(u?.startAngle,"-").concat(u?.endAngle,"-").concat(u.midAngle,"-").concat(l)}),S.createElement(bs,Cn({option:h,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,u=i.animationEasing,l=i.animationId,f=this.state,d=f.prevSectors,h=f.prevIsAnimationActive;return S.createElement(lt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var p=m.t,v=[],y=a&&a[0],g=y.startAngle;return a.forEach(function(x,O){var b=d&&d[O],w=O>0?ct(x,"paddingAngle",0):0;if(b){var A=Oe(b.endAngle-b.startAngle,x.endAngle-x.startAngle),P=_e(_e({},x),{},{startAngle:g+w,endAngle:g+A(p)+w});v.push(P),g=P.endAngle}else{var T=x.endAngle,k=x.startAngle,C=Oe(0,T-k),j=C(p),R=_e(_e({},x),{},{startAngle:g+w,endAngle:g+j+w});v.push(R),g=R.endAngle}}),S.createElement(fe,null,n.renderSectorsStatically(v))})}},{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||!cr(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,u=i.cx,l=i.cy,f=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!K(u)||!K(l)||!K(f)||!K(d))return null;var p=ce("recharts-pie",s);return S.createElement(fe,{tabIndex:this.props.rootTabIndex,className:p,ref:function(y){n.pieRef=y}},this.renderSectors(),c&&this.renderLabels(o),We.renderCallByParent(this.props,null,!1),(!h||m)&>.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(ae(n))return n(i);var o=ce("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(Er,Cn({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(ae(n)&&(o=n(i),S.isValidElement(o)))return o;var s=ce("recharts-pie-label-text",typeof n!="boolean"&&!ae(n)?n.className:"");return S.createElement(on,Cn({},i,{alignmentBaseline:"middle",className:s}),o)}}])})(S.PureComponent);Co=Kt;vt(Kt,"displayName","Pie");vt(Kt,"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:!Vt.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});vt(Kt,"parseDeltaAngle",function(e,t){var r=Xe(t-e),n=Math.min(Math.abs(t-e),360);return r*n});vt(Kt,"getRealPieData",function(e){var t=e.data,r=e.children,n=ee(e,!1),i=Qe(r,$r);return t&&t.length?t.map(function(a,o){return _e(_e(_e({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return _e(_e({},n),a.props)}):[]});vt(Kt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=PP(i,a),s=n+Ze(e.cx,i,i/2),c=r+Ze(e.cy,a,a/2),u=Ze(e.innerRadius,o,0),l=Ze(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:l,maxRadius:f}});vt(Kt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?_e(_e({},t.type.defaultProps),t.props):t.props,i=Co.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,c=n.paddingAngle,u=n.dataKey,l=n.nameKey,f=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),m=Co.parseCoordinateOfPie(n,r),p=Co.parseDeltaAngle(o,s),v=Math.abs(p),y=u;oe(u)&&oe(f)?(Pt(!1,`Use "dataKey" to specify the value of pie,
|
|
60
|
+
the props "valueKey" will be deprecated in 1.1.0`),y="value"):oe(u)&&(Pt(!1,`Use "dataKey" to specify the value of pie,
|
|
61
|
+
the props "valueKey" will be deprecated in 1.1.0`),y=f);var g=i.filter(function(P){return Se(P,y,0)!==0}).length,x=(v>=360?g:g-1)*c,O=v-g*h-x,b=i.reduce(function(P,T){var k=Se(T,y,0);return P+(K(k)?k:0)},0),w;if(b>0){var A;w=i.map(function(P,T){var k=Se(P,y,0),C=Se(P,l,T),j=(K(k)?k:0)/b,R;T?R=A.endAngle+Xe(p)*c*(k!==0?1:0):R=o;var $=R+Xe(p)*((k!==0?h:0)+j*O),N=(R+$)/2,M=(m.innerRadius+m.outerRadius)/2,D=[{name:C,value:k,payload:P,dataKey:y,type:d}],B=me(m.cx,m.cy,M,N);return A=_e(_e(_e({percent:j,cornerRadius:a,name:C,tooltipPayload:D,midAngle:N,middleRadius:M,tooltipPosition:B},P),m),{},{value:Se(P,y),startAngle:R,endAngle:$,payload:P,paddingAngle:Xe(p)*c}),A})}return _e(_e({},m),{},{sectors:w,data:i})});var Md,Jw;function AW(){if(Jw)return Md;Jw=1;function e(t){return t&&t.length?t[0]:void 0}return Md=e,Md}var $d,Qw;function _W(){return Qw||(Qw=1,$d=AW()),$d}var PW=_W();const EW=ge(PW);var TW=["key"];function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function CW(e,t){if(e==null)return{};var r=jW(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 jW(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 ws(){return ws=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},ws.apply(this,arguments)}function eO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eO(Object(r),!0).forEach(function(n){Qt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tO(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,XP(n.key),n)}}function kW(e,t,r){return t&&tO(e.prototype,t),r&&tO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RW(e,t,r){return t=Os(t),MW(e,YP()?Reflect.construct(t,r||[],Os(e).constructor):t.apply(e,r))}function MW(e,t){if(t&&(Zn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $W(e)}function $W(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YP=function(){return!!e})()}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Os(e)}function NW(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&&mh(e,t)}function mh(e,t){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mh(e,t)}function Qt(e,t,r){return t=XP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XP(e){var t=DW(e,"string");return Zn(t)=="symbol"?t:t+""}function DW(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ka=(function(e){function t(){var r;IW(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=RW(this,t,[].concat(i)),Qt(r,"state",{isAnimationFinished:!1}),Qt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ae(o)&&o()}),Qt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ae(o)&&o()}),Qt(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),Qt(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return NW(t,e),kW(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=ee(this.props,!1),c=ee(a,!0),u=n.map(function(l,f){var d=Ye(Ye(Ye({key:"dot-".concat(f),r:3},s),c),{},{dataKey:o,cx:l.x,cy:l.y,index:f,payload:l});return t.renderDotItem(a,d)});return S.createElement(fe,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,s=i.isRange,c=i.baseLinePoints,u=i.connectNulls,l;return S.isValidElement(a)?l=S.cloneElement(a,Ye(Ye({},this.props),{},{points:n})):ae(a)?l=a(Ye(Ye({},this.props),{},{points:n})):l=S.createElement(FP,ws({},ee(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?c:null,connectNulls:u})),S.createElement(fe,{className:"recharts-radar-polygon"},l,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return S.createElement(lt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"radar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=f&&f.length/a.length,p=a.map(function(v,y){var g=f&&f[Math.floor(y*m)];if(g){var x=Oe(g.x,v.x),O=Oe(g.y,v.y);return Ye(Ye({},v),{},{x:x(h),y:O(h)})}var b=Oe(v.cx,v.x),w=Oe(v.cy,v.y);return Ye(Ye({},v),{},{x:b(h),y:w(h)})});return n.renderPolygonStatically(p)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,s=this.state.prevPoints;return a&&i&&i.length&&!o&&(!s||!cr(s,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,s=n.isAnimationActive;if(i||!o||!o.length)return null;var c=this.state.isAnimationFinished,u=ce("recharts-radar",a);return S.createElement(fe,{className:u},this.renderPolygon(),(!s||c)&>.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(ae(n))a=n(i);else{var o=i.key,s=CW(i,TW);a=S.createElement(Ai,ws({},s,{key:o,className:ce("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(S.PureComponent);Qt(Ka,"displayName","Radar");Qt(Ka,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Qt(Ka,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,a=e.bandSize,o=r.cx,s=r.cy,c=!1,u=[],l=r.type!=="number"?a??0:0;n.forEach(function(d,h){var m=Se(d,r.dataKey,h),p=Se(d,i),v=r.scale(m)+l,y=Array.isArray(p)?jP(p):p,g=oe(y)?void 0:t.scale(y);Array.isArray(p)&&p.length>=2&&(c=!0),u.push(Ye(Ye({},me(o,s,g,v)),{},{name:m,value:p,cx:o,cy:s,radius:g,angle:v,payload:d}))});var f=[];return c&&u.forEach(function(d){if(Array.isArray(d.value)){var h=EW(d.value),m=oe(h)?void 0:t.scale(h);f.push(Ye(Ye({},d),{},{radius:m},me(o,s,m,d.angle)))}else f.push(d)}),{points:u,isRange:c,baseLinePoints:f}});var Nd,rO;function LW(){if(rO)return Nd;rO=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,c=t(e((i-n)/(a||1)),0),u=Array(c);c--;)u[o?c:++s]=n,n+=a;return u}return Nd=r,Nd}var Dd,nO;function ZP(){if(nO)return Dd;nO=1;var e=p_(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Dd=n,Dd}var Ld,iO;function BW(){if(iO)return Ld;iO=1;var e=LW(),t=uc(),r=ZP();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Ld=n,Ld}var Bd,aO;function qW(){if(aO)return Bd;aO=1;var e=BW(),t=e();return Bd=t,Bd}var FW=qW();const Ss=ge(FW);function Ra(e){"@babel/helpers - typeof";return Ra=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},Ra(e)}function oO(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 sO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(n){JP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JP(e,t,r){return t=zW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zW(e){var t=WW(e,"string");return Ra(t)=="symbol"?t:t+""}function WW(e,t){if(Ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UW=["Webkit","Moz","O","ms"],HW=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=UW.reduce(function(a,o){return sO(sO({},a),{},JP({},o+n,r))},{});return i[t]=r,i};function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function As(){return As=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},As.apply(this,arguments)}function cO(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 qd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cO(Object(r),!0).forEach(function(n){it(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e1(n.key),n)}}function KW(e,t,r){return t&&uO(e.prototype,t),r&&uO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GW(e,t,r){return t=_s(t),YW(e,QP()?Reflect.construct(t,r||[],_s(e).constructor):t.apply(e,r))}function YW(e,t){if(t&&(Jn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XW(e)}function XW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QP=function(){return!!e})()}function _s(e){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_s(e)}function ZW(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&&yh(e,t)}function yh(e,t){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yh(e,t)}function it(e,t,r){return t=e1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e1(e){var t=JW(e,"string");return Jn(t)=="symbol"?t:t+""}function JW(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var QW=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,u=Gi().domain(Ss(0,c)).range([a,a+o-s]),l=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:l}},lO=function(t){return t.changedTouches&&!!t.changedTouches.length},Qn=(function(e){function t(r){var n;return VW(this,t),n=GW(this,t,[r]),it(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),it(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),it(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o?.({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),it(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),it(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),it(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),it(n,"handleSlideDragStart",function(i){var a=lO(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 ZW(t,e),KW(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,u=s.data,l=u.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),m=t.getIndexInRange(o,d);return{startIndex:h-h%c,endIndex:m===l?l:m-m%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,c=Se(a[n],s,n);return ae(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,u=c.x,l=c.width,f=c.travellerWidth,d=c.startIndex,h=c.endIndex,m=c.onChange,p=n.pageX-a;p>0?p=Math.min(p,u+l-f-s,u+l-f-o):p<0&&(p=Math.max(p,u-o,u-s));var v=this.getIndex({startX:o+p,endX:s+p});(v.startIndex!==d||v.endIndex!==h)&&m&&m(v),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=lO(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,u=this.state[o],l=this.props,f=l.x,d=l.width,h=l.travellerWidth,m=l.onChange,p=l.gap,v=l.data,y={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,f+d-h-u):g<0&&(g=Math.max(g,f-u)),y[o]=u+g;var x=this.getIndex(y),O=x.startIndex,b=x.endIndex,w=function(){var P=v.length-1;return o==="startX"&&(s>c?O%p===0:b%p===0)||s<c&&b===P||o==="endX"&&(s>c?b%p===0:O%p===0)||s>c&&b===P};this.setState(it(it({},o,u+g),"brushMoveStartX",n.pageX),function(){m&&w()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,c=o.startX,u=o.endX,l=this.state[i],f=s.indexOf(l);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=c||this.setState(it({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.fill,u=n.stroke;return S.createElement("rect",{stroke:u,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,u=n.children,l=n.padding,f=S.Children.only(u);return f?S.cloneElement(f,{x:i,y:a,width:o,height:s,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,c=this.props,u=c.y,l=c.travellerWidth,f=c.height,d=c.traveller,h=c.ariaLabel,m=c.data,p=c.startIndex,v=c.endIndex,y=Math.max(n,this.props.x),g=qd(qd({},ee(this.props,!1)),{},{x:y,y:u,width:l,height:f}),x=h||"Min value: ".concat((a=m[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[v])===null||o===void 0?void 0:o.name);return S.createElement(fe,{tabIndex:0,role:"slider","aria-label":x,"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(d,g))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,c=a.stroke,u=a.travellerWidth,l=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:l,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,u=n.stroke,l=this.state,f=l.startX,d=l.endX,h=5,m={pointerEvents:"none",fill:u};return S.createElement(fe,{className:"recharts-brush-texts"},S.createElement(on,As({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},m),this.getTextOfTick(i)),S.createElement(on,As({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+c+h,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,u=n.width,l=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,m=d.endX,p=d.isTextActive,v=d.isSlideMoving,y=d.isTravellerMoving,g=d.isTravellerFocused;if(!i||!i.length||!K(s)||!K(c)||!K(u)||!K(l)||u<=0||l<=0)return null;var x=ce("recharts-brush",a),O=S.Children.count(o)===1,b=HW("userSelect","none");return S.createElement(fe,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,m),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(m,"endX"),(p||v||y||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,u=Math.floor(a+s/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:s,fill:c,stroke:"none"}),S.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return S.isValidElement(n)?a=S.cloneElement(n,i):ae(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,u=n.updateId,l=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return qd({prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?QW({data:a,width:o,x:s,travellerWidth:c,startIndex:l,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 d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var c=Math.floor((o+s)/2);n[c]>i?s=c:o=c}return i>=n[s]?s:o}}])})(S.PureComponent);it(Qn,"displayName","Brush");it(Qn,"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 Fd,fO;function eU(){if(fO)return Fd;fO=1;var e=_v();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Fd=t,Fd}var zd,dO;function tU(){if(dO)return zd;dO=1;var e=UA(),t=Ht(),r=eU(),n=rt(),i=uc();function a(o,s,c){var u=n(o)?e:r;return c&&i(o,s,c)&&(s=void 0),u(o,t(s,3))}return zd=a,zd}var rU=tU();const nU=ge(rU);var Bt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Wd,pO;function iU(){if(pO)return Wd;pO=1;var e=c_();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Wd=t,Wd}var Ud,hO;function aU(){if(hO)return Ud;hO=1;var e=iU(),t=o_(),r=Ht();function n(i,a){var o={};return a=r(a,3),t(i,function(s,c,u){e(o,c,a(s,c,u))}),o}return Ud=n,Ud}var oU=aU();const sU=ge(oU);var Hd,vO;function cU(){if(vO)return Hd;vO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Hd=e,Hd}var Vd,mO;function uU(){if(mO)return Vd;mO=1;var e=_v();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Vd=t,Vd}var Kd,yO;function lU(){if(yO)return Kd;yO=1;var e=cU(),t=uU(),r=Ht(),n=rt(),i=uc();function a(o,s,c){var u=n(o)?e:t;return c&&i(o,s,c)&&(s=void 0),u(o,r(s,3))}return Kd=a,Kd}var fU=lU();const t1=ge(fU);var dU=["x","y"];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 gh(){return gh=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},gh.apply(this,arguments)}function gO(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 zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(r),!0).forEach(function(n){pU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pU(e,t,r){return t=hU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hU(e){var t=vU(e,"string");return ei(t)=="symbol"?t:t+""}function vU(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mU(e,t){if(e==null)return{};var r=yU(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 yU(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 gU(e,t){var r=e.x,n=e.y,i=mU(e,dU),a="".concat(r),o=parseInt(a,10),s="".concat(n),c=parseInt(s,10),u="".concat(t.height||i.height),l=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return zi(zi(zi(zi(zi({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:l,width:d,name:t.name,radius:t.radius})}function bO(e){return S.createElement(bs,gh({shapeType:"rectangle",propTransformer:gU,activeClassName:"recharts-active-bar"},e))}var bU=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=K(n)||pI(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?tt(!1,"minPointSize callback function received a value with type of ".concat(ei(n),". Currently only numbers or null/undefined are supported.")):tt()),r)}},xU=["value","background"],r1;function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function wU(e,t){if(e==null)return{};var r=OU(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 OU(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 Ps(){return Ps=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},Ps.apply(this,arguments)}function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){Ar(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i1(n.key),n)}}function AU(e,t,r){return t&&wO(e.prototype,t),r&&wO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _U(e,t,r){return t=Es(t),PU(e,n1()?Reflect.construct(t,r||[],Es(e).constructor):t.apply(e,r))}function PU(e,t){if(t&&(ti(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EU(e)}function EU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n1=function(){return!!e})()}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Es(e)}function TU(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&&bh(e,t)}function bh(e,t){return bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bh(e,t)}function Ar(e,t,r){return t=i1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i1(e){var t=CU(e,"string");return ti(t)=="symbol"?t:t+""}function CU(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gn=(function(e){function t(){var r;SU(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=_U(this,t,[].concat(i)),Ar(r,"state",{isAnimationFinished:!1}),Ar(r,"id",Mr("recharts-bar-")),Ar(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Ar(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return TU(t,e),AU(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,c=a.activeIndex,u=a.activeBar,l=ee(this.props,!1);return n&&n.map(function(f,d){var h=d===c,m=h?u:o,p=Me(Me(Me({},l),f),{},{isActive:h,option:m,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(fe,Ps({className:"recharts-bar-rectangle"},Cr(i.props,f,d),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(d)}),S.createElement(bO,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state.prevData;return S.createElement(lt,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var m=h.t,p=a.map(function(v,y){var g=d&&d[y];if(g){var x=Oe(g.x,v.x),O=Oe(g.y,v.y),b=Oe(g.width,v.width),w=Oe(g.height,v.height);return Me(Me({},v),{},{x:x(m),y:O(m),width:b(m),height:w(m)})}if(o==="horizontal"){var A=Oe(0,v.height),P=A(m);return Me(Me({},v),{},{y:v.y+v.height-P,height:P})}var T=Oe(0,v.width),k=T(m);return Me(Me({},v),{},{width:k})});return S.createElement(fe,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!cr(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=ee(this.props.background,!1);return a.map(function(u,l){u.value;var f=u.background,d=wU(u,xU);if(!f)return null;var h=Me(Me(Me(Me(Me({},d),{},{fill:"#eee"},f),c),Cr(n.props,u,l)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:l,className:"recharts-bar-background-rectangle"});return S.createElement(bO,Ps({key:"background-bar-".concat(l),option:n.props.background,isActive:l===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=Qe(l,Si);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(v,y){var g=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:g,errorVal:Se(v,y)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(fe,m,f.map(function(p){return S.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,c=n.yAxis,u=n.left,l=n.top,f=n.width,d=n.height,h=n.isAnimationActive,m=n.background,p=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,y=ce("recharts-bar",o),g=s&&s.allowDataOverflow,x=c&&c.allowDataOverflow,O=g||x,b=oe(p)?this.id:p;return S.createElement(fe,{className:y},g||x?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(b)},S.createElement("rect",{x:g?u:u-f/2,y:x?l:l-d/2,width:g?f:f*2,height:x?d:d*2}))):null,S.createElement(fe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(b,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,b),(!h||v)&>.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}}])})(S.PureComponent);r1=gn;Ar(gn,"displayName","Bar");Ar(gn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ar(gn,"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,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=C2(n,r);if(!h)return null;var m=t.layout,p=r.type.defaultProps,v=p!==void 0?Me(Me({},p),r.props):r.props,y=v.dataKey,g=v.children,x=v.minPointSize,O=m==="horizontal"?o:a,b=u?O.scale.domain():null,w=N2({numericAxis:O}),A=Qe(g,$r),P=f.map(function(T,k){var C,j,R,$,N,M;u?C=j2(u[l+k],b):(C=Se(T,y),Array.isArray(C)||(C=[w,C]));var D=bU(x,r1.defaultProps.minPointSize)(C[1],k);if(m==="horizontal"){var B,W=[o.scale(C[0]),o.scale(C[1])],I=W[0],z=W[1];j=q0({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:T,index:k}),R=(B=z??I)!==null&&B!==void 0?B:void 0,$=h.size;var U=I-z;if(N=Number.isNaN(U)?0:U,M={x:j,y:o.y,width:$,height:o.height},Math.abs(D)>0&&Math.abs(N)<Math.abs(D)){var G=Xe(N||D)*(Math.abs(D)-Math.abs(N));R-=G,N+=G}}else{var X=[a.scale(C[0]),a.scale(C[1])],Z=X[0],J=X[1];if(j=Z,R=q0({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:T,index:k}),$=J-Z,N=h.size,M={x:a.x,y:R,width:a.width,height:N},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var V=Xe($||D)*(Math.abs(D)-Math.abs($));$+=V}}return Me(Me(Me({},T),{},{x:j,y:R,width:$,height:N,value:u?C:C[1],payload:T,background:M},A&&A[k]&&A[k].props),{},{tooltipPayload:[AP(r,T)],tooltipPosition:{x:j+$/2,y:R+N/2}})});return Me({data:P,layout:m},d)});function Ma(e){"@babel/helpers - typeof";return Ma=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},Ma(e)}function jU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(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,a1(n.key),n)}}function IU(e,t,r){return t&&OO(e.prototype,t),r&&OO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){Ac(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ac(e,t,r){return t=a1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a1(e){var t=kU(e,"string");return Ma(t)=="symbol"?t:t+""}function kU(e,t){if(Ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _c=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.layout,u=t.children,l=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},d=!!at(u,gn);return l.reduce(function(h,m){var p=r[m],v=p.orientation,y=p.domain,g=p.padding,x=g===void 0?{}:g,O=p.mirror,b=p.reversed,w="".concat(v).concat(O?"Mirror":""),A,P,T,k,C;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var j=y[1]-y[0],R=1/0,$=p.categoricalDomain.sort(yI);if($.forEach(function(X,Z){Z>0&&(R=Math.min((X||0)-($[Z-1]||0),R))}),Number.isFinite(R)){var N=R/j,M=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(A=N*M/2),p.padding==="no-gap"){var D=Ze(t.barCategoryGap,N*M),B=N*M/2;A=B-D-(B-D)/M*D}}}i==="xAxis"?P=[n.left+(x.left||0)+(A||0),n.left+n.width-(x.right||0)-(A||0)]:i==="yAxis"?P=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(A||0),n.top+n.height-(x.bottom||0)-(A||0)]:P=p.range,b&&(P=[P[1],P[0]]);var W=xP(p,a,d),I=W.scale,z=W.realScaleType;I.domain(y).range(P),wP(I);var U=OP(I,St(St({},p),{},{realScaleType:z}));i==="xAxis"?(C=v==="top"&&!O||v==="bottom"&&O,T=n.left,k=f[w]-C*p.height):i==="yAxis"&&(C=v==="left"&&!O||v==="right"&&O,T=f[w]-C*p.width,k=n.top);var G=St(St(St({},p),U),{},{realScaleType:z,x:T,y:k,scale:I,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return G.bandSize=os(G,U),!p.hide&&i==="xAxis"?f[w]+=(C?-1:1)*G.height:p.hide||(f[w]+=(C?-1:1)*G.width),St(St({},h),{},Ac({},m,G))},{})},o1=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)}},RU=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return o1({x:r,y:n},{x:i,y:a})},s1=(function(){function e(t){jU(this,e),this.scale=t}return IU(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)}}])})();Ac(s1,"EPS",1e-4);var tm=function(t){var r=Object.keys(t).reduce(function(n,i){return St(St({},n),{},Ac({},i,s1.create(t[i])))},{});return St(St({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return sU(i,function(c,u){return r[u].apply(c,{bandAware:o,position:s})})},isInRange:function(i){return t1(i,function(a,o){return r[o].isInRange(a)})}})};function MU(e){return(e%180+180)%180}var $U=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=MU(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)},Gd,AO;function NU(){if(AO)return Gd;AO=1;var e=Ht(),t=za(),r=sc();function n(i){return function(a,o,s){var c=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(c[f],f,c)}}var l=i(a,o,s);return l>-1?c[u?a[l]:l]:void 0}}return Gd=n,Gd}var Yd,_O;function DU(){if(_O)return Yd;_O=1;var e=ZP();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Yd=t,Yd}var Xd,PO;function LU(){if(PO)return Xd;PO=1;var e=t_(),t=Ht(),r=DU(),n=Math.max;function i(a,o,s){var c=a==null?0:a.length;if(!c)return-1;var u=s==null?0:r(s);return u<0&&(u=n(c+u,0)),e(a,t(o,3),u)}return Xd=i,Xd}var Zd,EO;function BU(){if(EO)return Zd;EO=1;var e=NU(),t=LU(),r=e(t);return Zd=r,Zd}var qU=BU();const FU=ge(qU);var zU=mA();const WU=ge(zU);var UU=WU(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("")});function Ts(e){"@babel/helpers - typeof";return Ts=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},Ts(e)}var rm=S.createContext(void 0),nm=S.createContext(void 0),c1=S.createContext(void 0),u1=S.createContext({}),l1=S.createContext(void 0),f1=S.createContext(0),d1=S.createContext(0),TO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,c=t.width,u=t.height,l=UU(a);return S.createElement(rm.Provider,{value:n},S.createElement(nm.Provider,{value:i},S.createElement(u1.Provider,{value:a},S.createElement(c1.Provider,{value:l},S.createElement(l1.Provider,{value:o},S.createElement(f1.Provider,{value:u},S.createElement(d1.Provider,{value:c},s)))))))},HU=function(){return S.useContext(l1)};function p1(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var h1=function(t){var r=S.useContext(rm);r==null&&(process.env.NODE_ENV!=="production"?tt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):tt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?tt(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Ts(t),"]. ").concat(p1(r))):tt()),n},VU=function(){var t=S.useContext(rm);return Or(t)},KU=function(){var t=S.useContext(nm),r=FU(t,function(n){return t1(n.domain,Number.isFinite)});return r||Or(t)},v1=function(t){var r=S.useContext(nm);r==null&&(process.env.NODE_ENV!=="production"?tt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):tt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?tt(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Ts(t),"]. ").concat(p1(r))):tt()),n},GU=function(){var t=S.useContext(c1);return t},YU=function(){return S.useContext(u1)},im=function(){return S.useContext(d1)},am=function(){return S.useContext(f1)};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 XU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y1(n.key),n)}}function JU(e,t,r){return t&&ZU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QU(e,t,r){return t=Cs(t),e3(e,m1()?Reflect.construct(t,r||[],Cs(e).constructor):t.apply(e,r))}function e3(e,t){if(t&&(ri(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 m1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m1=function(){return!!e})()}function Cs(e){return Cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cs(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&&xh(e,t)}function xh(e,t){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xh(e,t)}function CO(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 jO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){om(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function om(e,t,r){return t=y1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y1(e){var t=n3(e,"string");return ri(t)=="symbol"?t:t+""}function n3(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)}function i3(e,t){return c3(e)||s3(e,t)||o3(e,t)||a3()}function a3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o3(e,t){if(e){if(typeof e=="string")return IO(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 IO(e,t)}}function IO(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 s3(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function c3(e){if(Array.isArray(e))return e}function wh(){return wh=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},wh.apply(this,arguments)}var u3=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):ae(t)?n=t(r):n=S.createElement("line",wh({},r,{className:"recharts-reference-line-line"})),n},l3=function(t,r,n,i,a,o,s,c,u){var l=a.x,f=a.y,d=a.width,h=a.height;if(n){var m=u.y,p=t.y.apply(m,{position:o});if(Bt(u,"discard")&&!t.y.isInRange(p))return null;var v=[{x:l+d,y:p},{x:l,y:p}];return c==="left"?v.reverse():v}if(r){var y=u.x,g=t.x.apply(y,{position:o});if(Bt(u,"discard")&&!t.x.isInRange(g))return null;var x=[{x:g,y:f+h},{x:g,y:f}];return s==="top"?x.reverse():x}if(i){var O=u.segment,b=O.map(function(w){return t.apply(w,{position:o})});return Bt(u,"discard")&&nU(b,function(w){return!t.isInRange(w)})?null:b}return null};function f3(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,u=HU(),l=h1(i),f=v1(a),d=GU();if(!u||!d)return null;Pt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=tm({x:l.scale,y:f.scale}),m=Be(t),p=Be(r),v=n&&n.length===2,y=l3(h,m,p,v,d,e.position,l.orientation,f.orientation,e);if(!y)return null;var g=i3(y,2),x=g[0],O=x.x,b=x.y,w=g[1],A=w.x,P=w.y,T=Bt(e,"hidden")?"url(#".concat(u,")"):void 0,k=jO(jO({clipPath:T},ee(e,!0)),{},{x1:O,y1:b,x2:A,y2:P});return S.createElement(fe,{className:ce("recharts-reference-line",s)},u3(o,k),We.renderCallByParent(e,RU({x1:O,y1:b,x2:A,y2:P})))}var sm=(function(e){function t(){return XU(this,t),QU(this,t,arguments)}return r3(t,e),JU(t,[{key:"render",value:function(){return S.createElement(f3,this.props)}}])})(S.Component);om(sm,"displayName","ReferenceLine");om(sm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Oh(){return Oh=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},Oh.apply(this,arguments)}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 kO(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 RO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){Pc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b1(n.key),n)}}function h3(e,t,r){return t&&p3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v3(e,t,r){return t=js(t),m3(e,g1()?Reflect.construct(t,r||[],js(e).constructor):t.apply(e,r))}function m3(e,t){if(t&&(ni(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y3(e)}function y3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g1=function(){return!!e})()}function js(e){return js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},js(e)}function g3(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&&Sh(e,t)}function Sh(e,t){return Sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sh(e,t)}function Pc(e,t,r){return t=b1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b1(e){var t=b3(e,"string");return ni(t)=="symbol"?t:t+""}function b3(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var x3=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=tm({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Bt(t,"discard")&&!o.isInRange(s)?null:s},Ec=(function(e){function t(){return d3(this,t),v3(this,t,arguments)}return g3(t,e),h3(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,c=n.clipPathId,u=Be(i),l=Be(a);if(Pt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!l)return null;var f=x3(this.props);if(!f)return null;var d=f.x,h=f.y,m=this.props,p=m.shape,v=m.className,y=Bt(this.props,"hidden")?"url(#".concat(c,")"):void 0,g=RO(RO({clipPath:y},ee(this.props,!0)),{},{cx:d,cy:h});return S.createElement(fe,{className:ce("recharts-reference-dot",v)},t.renderDot(p,g),We.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(S.Component);Pc(Ec,"displayName","ReferenceDot");Pc(Ec,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Pc(Ec,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):ae(e)?r=e(t):r=S.createElement(Ai,Oh({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Ah(){return Ah=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},Ah.apply(this,arguments)}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 MO(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 $O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(r),!0).forEach(function(n){Tc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w3(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,w1(n.key),n)}}function S3(e,t,r){return t&&O3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function A3(e,t,r){return t=Is(t),_3(e,x1()?Reflect.construct(t,r||[],Is(e).constructor):t.apply(e,r))}function _3(e,t){if(t&&(ii(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P3(e)}function P3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x1=function(){return!!e})()}function Is(e){return Is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Is(e)}function E3(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&&_h(e,t)}function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_h(e,t)}function Tc(e,t,r){return t=w1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w1(e){var t=T3(e,"string");return ii(t)=="symbol"?t:t+""}function T3(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var C3=function(t,r,n,i,a){var o=a.x1,s=a.x2,c=a.y1,u=a.y2,l=a.xAxis,f=a.yAxis;if(!l||!f)return null;var d=tm({x:l.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(c,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Bt(a,"discard")&&(!d.isInRange(h)||!d.isInRange(m))?null:o1(h,m)},Cc=(function(e){function t(){return w3(this,t),A3(this,t,arguments)}return E3(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,u=n.alwaysShow,l=n.clipPathId;Pt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Be(i),d=Be(a),h=Be(o),m=Be(s),p=this.props.shape;if(!f&&!d&&!h&&!m&&!p)return null;var v=C3(f,d,h,m,this.props);if(!v&&!p)return null;var y=Bt(this.props,"hidden")?"url(#".concat(l,")"):void 0;return S.createElement(fe,{className:ce("recharts-reference-area",c)},t.renderRect(p,$O($O({clipPath:y},ee(this.props,!0)),v)),We.renderCallByParent(this.props,v))}}])})(S.Component);Tc(Cc,"displayName","ReferenceArea");Tc(Cc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Tc(Cc,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):ae(e)?r=e(t):r=S.createElement(em,Ah({},t,{className:"recharts-reference-area-rect"})),r});function O1(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 j3(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return $U(n,r)}function I3(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 ks(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 k3(e,t){return O1(e,t+1)}function R3(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,c=0,u=1,l=o,f=function(){var m=n?.[c];if(m===void 0)return{v:O1(n,u)};var p=c,v,y=function(){return v===void 0&&(v=r(m,p)),v},g=m.coordinate,x=c===0||ks(e,g,y,l,s);x||(c=0,l=o,u+=1),x&&(l=g+e*(y()/2+i),c+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function $a(e){"@babel/helpers - typeof";return $a=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},$a(e)}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){M3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M3(e,t,r){return t=$3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $3(e){var t=N3(e,"string");return $a(t)=="symbol"?t:t+""}function N3(e,t){if($a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D3(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,c=t.end,u=function(d){var h=a[d],m,p=function(){return m===void 0&&(m=r(h,d)),m};if(d===o-1){var v=e*(h.coordinate+e*p()/2-c);a[d]=h=Ve(Ve({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else a[d]=h=Ve(Ve({},h),{},{tickCoord:h.coordinate});var y=ks(e,h.tickCoord,p,s,c);y&&(c=h.tickCoord-e*(p()/2+i),a[d]=Ve(Ve({},h),{},{isShow:!0}))},l=o-1;l>=0;l--)u(l);return a}function L3(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,c=t.start,u=t.end;if(a){var l=n[s-1],f=r(l,s-1),d=e*(l.coordinate+e*f/2-u);o[s-1]=l=Ve(Ve({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate});var h=ks(e,l.tickCoord,function(){return f},c,u);h&&(u=l.tickCoord-e*(f/2+i),o[s-1]=Ve(Ve({},l),{},{isShow:!0}))}for(var m=a?s-1:s,p=function(g){var x=o[g],O,b=function(){return O===void 0&&(O=r(x,g)),O};if(g===0){var w=e*(x.coordinate-e*b()/2-c);o[g]=x=Ve(Ve({},x),{},{tickCoord:w<0?x.coordinate-w*e:x.coordinate})}else o[g]=x=Ve(Ve({},x),{},{tickCoord:x.coordinate});var A=ks(e,x.tickCoord,b,c,u);A&&(c=x.tickCoord+e*(b()/2+i),o[g]=Ve(Ve({},x),{},{isShow:!0}))},v=0;v<m;v++)p(v);return o}function cm(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,l=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(K(c)||Vt.isSsr)return k3(i,typeof c=="number"&&K(c)?c:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",m=l&&h==="width"?Ki(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(x,O){var b=ae(u)?u(x.value,O):x.value;return h==="width"?j3(Ki(b,{fontSize:t,letterSpacing:r}),m,f):Ki(b,{fontSize:t,letterSpacing:r})[h]},v=i.length>=2?Xe(i[1].coordinate-i[0].coordinate):1,y=I3(a,v,h);return c==="equidistantPreserveStart"?R3(v,y,p,i,o):(c==="preserveStart"||c==="preserveStartEnd"?d=L3(v,y,p,i,o,c==="preserveStartEnd"):d=D3(v,y,p,i,o),d.filter(function(g){return g.isShow}))}var B3=["viewBox"],q3=["viewBox"],F3=["ticks"];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 jn(){return jn=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},jn.apply(this,arguments)}function DO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){um(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jd(e,t){if(e==null)return{};var r=z3(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 z3(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 W3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LO(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,A1(n.key),n)}}function U3(e,t,r){return t&&LO(e.prototype,t),r&&LO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function H3(e,t,r){return t=Rs(t),V3(e,S1()?Reflect.construct(t,r||[],Rs(e).constructor):t.apply(e,r))}function V3(e,t){if(t&&(ai(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K3(e)}function K3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S1=function(){return!!e})()}function Rs(e){return Rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rs(e)}function G3(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&&Ph(e,t)}function Ph(e,t){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ph(e,t)}function um(e,t,r){return t=A1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A1(e){var t=Y3(e,"string");return ai(t)=="symbol"?t:t+""}function Y3(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ei=(function(e){function t(r){var n;return W3(this,t),n=H3(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return G3(t,e),U3(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Jd(n,B3),s=this.props,c=s.viewBox,u=Jd(s,q3);return!kn(a,c)||!kn(o,u)||!kn(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,u=i.orientation,l=i.tickSize,f=i.mirror,d=i.tickMargin,h,m,p,v,y,g,x=f?-1:1,O=n.tickSize||l,b=K(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=m=n.coordinate,v=o+ +!f*c,p=v-x*O,g=p-x*d,y=b;break;case"left":p=v=n.coordinate,m=a+ +!f*s,h=m-x*O,y=h-x*d,g=b;break;case"right":p=v=n.coordinate,m=a+ +f*s,h=m+x*O,y=h+x*d,g=b;break;default:h=m=n.coordinate,v=o+ +f*c,p=v+x*O,g=p+x*d,y=b;break}return{line:{x1:h,y1:p,x2:m,y2:v},tick:{x:y,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,u=n.mirror,l=n.axisLine,f=De(De(De({},ee(this.props,!1)),ee(l,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var d=+(c==="top"&&!u||c==="bottom"&&u);f=De(De({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(c==="left"&&!u||c==="right"&&u);f=De(De({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return S.createElement("line",jn({},f,{className:ce("recharts-cartesian-axis-line",ct(l,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,c=s.tickLine,u=s.stroke,l=s.tick,f=s.tickFormatter,d=s.unit,h=cm(De(De({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=ee(this.props,!1),y=ee(l,!1),g=De(De({},v),{},{fill:"none"},ee(c,!1)),x=h.map(function(O,b){var w=o.getTickLineCoord(O),A=w.line,P=w.tick,T=De(De(De(De({textAnchor:m,verticalAnchor:p},v),{},{stroke:"none",fill:u},y),P),{},{index:b,payload:O,visibleTicksCount:h.length,tickFormatter:f});return S.createElement(fe,jn({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Cr(o.props,O,b)),c&&S.createElement("line",jn({},g,A,{className:ce("recharts-cartesian-axis-tick-line",ct(c,"className"))})),l&&t.renderTickItem(l,T,"".concat(ae(f)?f(O.value,b):O.value).concat(d||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,c=i.ticksGenerator,u=i.className,l=i.hide;if(l)return null;var f=this.props,d=f.ticks,h=Jd(f,F3),m=d;return ae(c)&&(m=d&&d.length>0?c(this.props):c(h)),o<=0||s<=0||!m||!m.length?null:S.createElement(fe,{className:ce("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),We.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=ce(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,De(De({},i),{},{className:s})):ae(n)?o=n(De(De({},i),{},{className:s})):o=S.createElement(on,jn({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(S.Component);um(Ei,"displayName","CartesianAxis");um(Ei,"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 X3=["x1","y1","x2","y2","key"],Z3=["offset"];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 BO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(r),!0).forEach(function(n){J3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J3(e,t,r){return t=Q3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q3(e){var t=eH(e,"string");return cn(t)=="symbol"?t:t+""}function eH(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(){return en=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},en.apply(this,arguments)}function qO(e,t){if(e==null)return{};var r=tH(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 tH(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 rH=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 S.createElement("rect",{x:i,y:a,ry:c,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function _1(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(ae(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=qO(t,X3),u=ee(c,!1);u.offset;var l=qO(u,Z3);r=S.createElement("line",en({},l,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function nH(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 u=Ge(Ge({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return _1(i,u)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function iH(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 u=Ge(Ge({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return _1(i,u)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function aH(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,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var l=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],p=m?i+o-d:l[h+1]-d;if(p<=0)return null;var v=h%t.length;return S.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function oH(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,u=e.verticalPoints;if(!r||!n||!n.length)return null;var l=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],p=m?a+s-d:l[h+1]-d;if(p<=0)return null;var v=h%n.length;return S.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:c,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var sH=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return bP(cm(Ge(Ge(Ge({},Ei.defaultProps),n),{},{ticks:rr(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},cH=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return bP(cm(Ge(Ge(Ge({},Ei.defaultProps),n),{},{ticks:rr(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},On={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ga(e){var t,r,n,i,a,o,s=im(),c=am(),u=YU(),l=Ge(Ge({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:On.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:On.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:On.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:On.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:On.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:On.verticalFill,x:K(e.x)?e.x:u.left,y:K(e.y)?e.y:u.top,width:K(e.width)?e.width:u.width,height:K(e.height)?e.height:u.height}),f=l.x,d=l.y,h=l.width,m=l.height,p=l.syncWithTicks,v=l.horizontalValues,y=l.verticalValues,g=VU(),x=KU();if(!K(h)||h<=0||!K(m)||m<=0||!K(f)||f!==+f||!K(d)||d!==+d)return null;var O=l.verticalCoordinatesGenerator||sH,b=l.horizontalCoordinatesGenerator||cH,w=l.horizontalPoints,A=l.verticalPoints;if((!w||!w.length)&&ae(b)){var P=v&&v.length,T=b({yAxis:x?Ge(Ge({},x),{},{ticks:P?v:x.ticks}):void 0,width:s,height:c,offset:u},P?!0:p);Pt(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(cn(T),"]")),Array.isArray(T)&&(w=T)}if((!A||!A.length)&&ae(O)){var k=y&&y.length,C=O({xAxis:g?Ge(Ge({},g),{},{ticks:k?y:g.ticks}):void 0,width:s,height:c,offset:u},k?!0:p);Pt(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(cn(C),"]")),Array.isArray(C)&&(A=C)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(rH,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),S.createElement(nH,en({},l,{offset:u,horizontalPoints:w,xAxis:g,yAxis:x})),S.createElement(iH,en({},l,{offset:u,verticalPoints:A,xAxis:g,yAxis:x})),S.createElement(aH,en({},l,{horizontalPoints:w})),S.createElement(oH,en({},l,{verticalPoints:A})))}Ga.displayName="CartesianGrid";var uH=["type","layout","connectNulls","ref"],lH=["key"];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 FO(e,t){if(e==null)return{};var r=fH(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 fH(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 Qi(){return Qi=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},Qi.apply(this,arguments)}function zO(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?zO(Object(r),!0).forEach(function(n){At(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sn(e){return vH(e)||hH(e)||pH(e)||dH()}function dH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pH(e,t){if(e){if(typeof e=="string")return Eh(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 Eh(e,t)}}function hH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vH(e){if(Array.isArray(e))return Eh(e)}function Eh(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 mH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E1(n.key),n)}}function yH(e,t,r){return t&&WO(e.prototype,t),r&&WO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gH(e,t,r){return t=Ms(t),bH(e,P1()?Reflect.construct(t,r||[],Ms(e).constructor):t.apply(e,r))}function bH(e,t){if(t&&(oi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xH(e)}function xH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P1=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ms(e)}function wH(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&&Th(e,t)}function Th(e,t){return Th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Th(e,t)}function At(e,t,r){return t=E1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E1(e){var t=OH(e,"string");return oi(t)=="symbol"?t:t+""}function OH(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ya=(function(e){function t(){var r;mH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=gH(this,t,[].concat(i)),At(r,"state",{isAnimationFinished:!0,totalLength:0}),At(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),At(r,"getStrokeDasharray",function(o,s,c){var u=c.reduce(function(y,g){return y+g});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var l=Math.floor(o/u),f=o%u,d=s-o,h=[],m=0,p=0;m<c.length;p+=c[m],++m)if(p+c[m]>f){h=[].concat(Sn(c.slice(0,m)),[f-p]);break}var v=h.length%2===0?[0,d]:[d];return[].concat(Sn(t.repeat(c,l)),Sn(h),v).map(function(y){return"".concat(y,"px")}).join(", ")}),At(r,"id",Mr("recharts-line-")),At(r,"pathRef",function(o){r.mainCurve=o}),At(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),At(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return wH(t,e),yH(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=Qe(l,Si);if(!f)return null;var d=function(p,v){return{x:p.x,y:p.y,value:p.value,errorVal:Se(p.payload,v)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(fe,h,f.map(function(m){return S.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,l=s.dataKey,f=ee(this.props,!1),d=ee(c,!0),h=u.map(function(p,v){var y=nt(nt(nt({key:"dot-".concat(v),r:3},f),d),{},{index:v,cx:p.x,cy:p.y,value:p.value,dataKey:l,payload:p.payload,points:u});return t.renderDotItem(c,y)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(fe,Qi({className:"recharts-line-dots",key:"dots"},m),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,c=s.type,u=s.layout,l=s.connectNulls;s.ref;var f=FO(s,uH),d=nt(nt(nt({},ee(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:u,connectNulls:l});return S.createElement(Er,Qi({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.strokeDasharray,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=o.animateNewValues,p=o.width,v=o.height,y=this.state,g=y.prevPoints,x=y.totalLength;return S.createElement(lt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var b=O.t;if(g){var w=g.length/s.length,A=s.map(function(j,R){var $=Math.floor(R*w);if(g[$]){var N=g[$],M=Oe(N.x,j.x),D=Oe(N.y,j.y);return nt(nt({},j),{},{x:M(b),y:D(b)})}if(m){var B=Oe(p*2,j.x),W=Oe(v/2,j.y);return nt(nt({},j),{},{x:B(b),y:W(b)})}return nt(nt({},j),{},{x:j.x,y:j.y})});return a.renderCurveStatically(A,n,i)}var P=Oe(0,x),T=P(b),k;if(c){var C="".concat(c).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});k=a.getStrokeDasharray(T,x,C)}else k=a.generateSimpleStrokeDasharray(x,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:k})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,c=this.state,u=c.prevPoints,l=c.totalLength;return s&&o&&o.length&&(!u&&l>0||!cr(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.xAxis,l=i.yAxis,f=i.top,d=i.left,h=i.width,m=i.height,p=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,g=s.length===1,x=ce("recharts-line",c),O=u&&u.allowDataOverflow,b=l&&l.allowDataOverflow,w=O||b,A=oe(v)?this.id:v,P=(n=ee(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,k=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,R=wA(o)?o:{},$=R.clipDot,N=$===void 0?!0:$,M=k*2+j;return S.createElement(fe,{className:x},O||b?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(A)},S.createElement("rect",{x:O?d:d-h/2,y:b?f:f-m/2,width:O?h:h*2,height:b?m:m*2})),!N&&S.createElement("clipPath",{id:"clipPath-dots-".concat(A)},S.createElement("rect",{x:d-M/2,y:f-M/2,width:h+M,height:m+M}))):null,!g&&this.renderCurve(w,A),this.renderErrorBar(w,A),(g||o)&&this.renderDots(w,N,A),(!p||y)&>.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Sn(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Sn(o),Sn(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(ae(n))a=n(i);else{var o=i.key,s=FO(i,lH),c=ce("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(Ai,Qi({key:o},s,{className:c}))}return a}}])})(S.PureComponent);At(Ya,"displayName","Line");At(Ya,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Vt.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});At(Ya,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout,f=c.map(function(d,h){var m=Se(d,o);return l==="horizontal"?{x:Vn({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:oe(m)?null:n.scale(m),value:m,payload:d}:{x:oe(m)?null:r.scale(m),y:Vn({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:m,payload:d}});return nt({points:f,layout:l},u)});var SH=["layout","type","stroke","connectNulls","isRange","ref"],AH=["key"],T1;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 C1(e,t){if(e==null)return{};var r=_H(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _H(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tn.apply(this,arguments)}function UO(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 br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(n){Nt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I1(n.key),n)}}function EH(e,t,r){return t&&HO(e.prototype,t),r&&HO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TH(e,t,r){return t=$s(t),CH(e,j1()?Reflect.construct(t,r||[],$s(e).constructor):t.apply(e,r))}function CH(e,t){if(t&&(si(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jH(e)}function jH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j1=function(){return!!e})()}function $s(e){return $s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$s(e)}function IH(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&&Ch(e,t)}function Ch(e,t){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ch(e,t)}function Nt(e,t,r){return t=I1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I1(e){var t=kH(e,"string");return si(t)=="symbol"?t:t+""}function kH(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Br=(function(e){function t(){var r;PH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=TH(this,t,[].concat(i)),Nt(r,"state",{isAnimationFinished:!0}),Nt(r,"id",Mr("recharts-area-")),Nt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ae(o)&&o()}),Nt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ae(o)&&o()}),r}return IH(t,e),EH(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var c=this.props,u=c.dot,l=c.points,f=c.dataKey,d=ee(this.props,!1),h=ee(u,!0),m=l.map(function(v,y){var g=br(br(br({key:"dot-".concat(y),r:3},d),h),{},{index:y,cx:v.x,cy:v.y,dataKey:f,value:v.value,payload:v.payload,points:l});return t.renderDotItem(u,g)}),p={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(fe,tn({className:"recharts-area-dots"},p),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].x,u=o[o.length-1].x,l=n*Math.abs(c-u),f=Sr(o.map(function(d){return d.y||0}));return K(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Sr(a.map(function(d){return d.y||0})),f)),K(f)?S.createElement("rect",{x:c<u?c:c-l,y:0,width:l,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].y,u=o[o.length-1].y,l=n*Math.abs(c-u),f=Sr(o.map(function(d){return d.x||0}));return K(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Sr(a.map(function(d){return d.x||0})),f)),K(f)?S.createElement("rect",{x:0,y:c<u?c:c-l,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,c=s.layout,u=s.type,l=s.stroke,f=s.connectNulls,d=s.isRange;s.ref;var h=C1(s,SH);return S.createElement(fe,{clipPath:a?"url(#clipPath-".concat(o,")"):null},S.createElement(Er,tn({},ee(h,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),l!=="none"&&S.createElement(Er,tn({},ee(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:n})),l!=="none"&&d&&S.createElement(Er,tn({},ee(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.baseLine,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=this.state,p=m.prevPoints,v=m.prevBaseLine;return S.createElement(lt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var g=y.t;if(p){var x=p.length/s.length,O=s.map(function(P,T){var k=Math.floor(T*x);if(p[k]){var C=p[k],j=Oe(C.x,P.x),R=Oe(C.y,P.y);return br(br({},P),{},{x:j(g),y:R(g)})}return P}),b;if(K(c)&&typeof c=="number"){var w=Oe(v,c);b=w(g)}else if(oe(c)||gi(c)){var A=Oe(v,0);b=A(g)}else b=c.map(function(P,T){var k=Math.floor(T*x);if(v[k]){var C=v[k],j=Oe(C.x,P.x),R=Oe(C.y,P.y);return br(br({},P),{},{x:j(g),y:R(g)})}return P});return a.renderAreaStatically(O,b,n,i)}return S.createElement(fe,null,S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(g))),S.createElement(fe,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,c=a.isAnimationActive,u=this.state,l=u.prevPoints,f=u.prevBaseLine,d=u.totalLength;return c&&o&&o.length&&(!l&&d>0||!cr(l,o)||!cr(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.top,l=i.left,f=i.xAxis,d=i.yAxis,h=i.width,m=i.height,p=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,g=s.length===1,x=ce("recharts-area",c),O=f&&f.allowDataOverflow,b=d&&d.allowDataOverflow,w=O||b,A=oe(v)?this.id:v,P=(n=ee(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,k=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,R=wA(o)?o:{},$=R.clipDot,N=$===void 0?!0:$,M=k*2+j;return S.createElement(fe,{className:x},O||b?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(A)},S.createElement("rect",{x:O?l:l-h/2,y:b?u:u-m/2,width:O?h:h*2,height:b?m:m*2})),!N&&S.createElement("clipPath",{id:"clipPath-dots-".concat(A)},S.createElement("rect",{x:l-M/2,y:u-M/2,width:h+M,height:m+M}))):null,g?null:this.renderArea(w,A),(o||g)&&this.renderDots(w,N,A),(!p||y)&>.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(S.PureComponent);T1=Br;Nt(Br,"displayName","Area");Nt(Br,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Nt(Br,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(K(s)&&typeof s=="number")return s;var c=i==="horizontal"?n:r,u=c.scale.domain();if(c.type==="number"){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Nt(Br,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,c=e.dataKey,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=t.layout,m=u&&u.length,p=T1.getBaseValue(t,r,n,i),v=h==="horizontal",y=!1,g=f.map(function(O,b){var w;m?w=u[l+b]:(w=Se(O,c),Array.isArray(w)?y=!0:w=[p,w]);var A=w[1]==null||m&&Se(O,c)==null;return v?{x:Vn({axis:n,ticks:a,bandSize:s,entry:O,index:b}),y:A?null:i.scale(w[1]),value:w,payload:O}:{x:A?null:n.scale(w[1]),y:Vn({axis:i,ticks:o,bandSize:s,entry:O,index:b}),value:w,payload:O}}),x;return m||y?x=g.map(function(O){var b=Array.isArray(O.value)?O.value[0]:null;return v?{x:O.x,y:b!=null&&O.y!=null?i.scale(b):null}:{x:b!=null?n.scale(b):null,y:O.y}}):x=v?i.scale(p):n.scale(p),br({points:g,baseLine:x,layout:h,isRange:y},d)});Nt(Br,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(ae(e))r=e(t);else{var n=ce("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=C1(t,AH);r=S.createElement(Ai,tn({},a,{key:i,className:n}))}return r});function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function RH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MH(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,M1(n.key),n)}}function $H(e,t,r){return t&&MH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NH(e,t,r){return t=Ns(t),DH(e,k1()?Reflect.construct(t,r||[],Ns(e).constructor):t.apply(e,r))}function DH(e,t){if(t&&(ci(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LH(e)}function LH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k1=function(){return!!e})()}function Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ns(e)}function BH(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&&jh(e,t)}function jh(e,t){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jh(e,t)}function R1(e,t,r){return t=M1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M1(e){var t=qH(e,"string");return ci(t)=="symbol"?t:t+""}function qH(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xa=(function(e){function t(){return RH(this,t),NH(this,t,arguments)}return BH(t,e),$H(t,[{key:"render",value:function(){return null}}])})(E.Component);R1(Xa,"displayName","ZAxis");R1(Xa,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var FH=["option","isActive"];function ea(){return ea=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},ea.apply(this,arguments)}function zH(e,t){if(e==null)return{};var r=WH(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 WH(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 UH(e){var t=e.option,r=e.isActive,n=zH(e,FH);return typeof t=="string"?E.createElement(bs,ea({option:E.createElement(oc,ea({type:t},n)),isActive:r,shapeType:"symbols"},n)):E.createElement(bs,ea({option:t,isActive:r,shapeType:"symbols"},n))}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 ta(){return ta=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},ta.apply(this,arguments)}function VO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(r),!0).forEach(function(n){_r(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N1(n.key),n)}}function VH(e,t,r){return t&&KO(e.prototype,t),r&&KO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function KH(e,t,r){return t=Ds(t),GH(e,$1()?Reflect.construct(t,r||[],Ds(e).constructor):t.apply(e,r))}function GH(e,t){if(t&&(ui(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YH(e)}function YH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($1=function(){return!!e})()}function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ds(e)}function XH(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&&Ih(e,t)}function Ih(e,t){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ih(e,t)}function _r(e,t,r){return t=N1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N1(e){var t=ZH(e,"string");return ui(t)=="symbol"?t:t+""}function ZH(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 Za=(function(e){function t(){var r;HH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=KH(this,t,[].concat(i)),_r(r,"state",{isAnimationFinished:!1}),_r(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),_r(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),_r(r,"id",Mr("recharts-scatter-")),r}return XH(t,e),VH(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,c=a.activeIndex,u=ee(this.props,!1);return n.map(function(l,f){var d=c===f,h=d?s:o,m=ht(ht({},u),l);return S.createElement(fe,ta({className:"recharts-scatter-symbol",key:"symbol-".concat(l?.cx,"-").concat(l?.cy,"-").concat(l?.size,"-").concat(f)},Cr(i.props,l,f),{role:"img"}),S.createElement(UH,ta({option:h,isActive:d,key:"symbol-".concat(f)},m)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return S.createElement(lt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=a.map(function(p,v){var y=f&&f[v];if(y){var g=Oe(y.cx,p.cx),x=Oe(y.cy,p.cy),O=Oe(y.size,p.size);return ht(ht({},p),{},{cx:g(h),cy:x(h),size:O(h)})}var b=Oe(0,p.size);return ht(ht({},p),{},{size:b(h)})});return S.createElement(fe,null,n.renderSymbolsStatically(m))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!cr(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,c=i.children,u=Qe(c,Si);return u?u.map(function(l,f){var d=l.props,h=d.direction,m=d.dataKey;return S.cloneElement(l,{key:"".concat(h,"-").concat(m,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:h==="x"?"vertical":"horizontal",dataPointFormatter:function(v,y){return{x:v.cx,y:v.cy,value:h==="x"?+v.node.x:+v.node.y,errorVal:Se(v,y)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,c=ee(this.props,!1),u=ee(a,!1),l,f;if(o==="joint")l=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=mI(i),h=d.xmin,m=d.xmax,p=d.a,v=d.b,y=function(O){return p*O+v};l=[{x:h,y:y(h)},{x:m,y:y(m)}]}var g=ht(ht(ht({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:l});return S.isValidElement(a)?f=S.cloneElement(a,g):ae(a)?f=a(g):f=S.createElement(Er,ta({},g,{type:s})),S.createElement(fe,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,c=n.xAxis,u=n.yAxis,l=n.left,f=n.top,d=n.width,h=n.height,m=n.id,p=n.isAnimationActive;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,y=ce("recharts-scatter",s),g=c&&c.allowDataOverflow,x=u&&u.allowDataOverflow,O=g||x,b=oe(m)?this.id:m;return S.createElement(fe,{className:y,clipPath:O?"url(#clipPath-".concat(b,")"):null},g||x?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(b)},S.createElement("rect",{x:g?l:l-d/2,y:x?f:f-h/2,width:g?d:d*2,height:x?h:h*2}))):null,o&&this.renderLine(),this.renderErrorBar(),S.createElement(fe,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!p||v)&>.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(S.PureComponent);_r(Za,"displayName","Scatter");_r(Za,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});_r(Za,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,l=Qe(i.props.children,$r),f=oe(t.dataKey)?i.props.dataKey:t.dataKey,d=oe(r.dataKey)?i.props.dataKey:r.dataKey,h=n&&n.dataKey,m=n?n.range:Xa.defaultProps.range,p=m&&m[0],v=t.scale.bandwidth?t.scale.bandwidth():0,y=r.scale.bandwidth?r.scale.bandwidth():0,g=a.map(function(x,O){var b=Se(x,f),w=Se(x,d),A=!oe(h)&&Se(x,h)||"-",P=[{name:oe(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:b,payload:x,dataKey:f,type:u},{name:oe(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:x,dataKey:d,type:u}];A!=="-"&&P.push({name:n.name||n.dataKey,unit:n.unit||"",value:A,payload:x,dataKey:h,type:u});var T=Vn({axis:t,ticks:o,bandSize:v,entry:x,index:O,dataKey:f}),k=Vn({axis:r,ticks:s,bandSize:y,entry:x,index:O,dataKey:d}),C=A!=="-"?n.scale(A):p,j=Math.sqrt(Math.max(C,0)/Math.PI);return ht(ht({},x),{},{cx:T,cy:k,x:T-j,y:k-j,xAxis:t,yAxis:r,zAxis:n,width:2*j,height:2*j,size:C,node:{x:b,y:w,z:A},tooltipPayload:P,tooltipPosition:{x:T,y:k},payload:x},l&&l[O]&&l[O].props)});return ht({points:g},c)});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 JH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B1(n.key),n)}}function eV(e,t,r){return t&&QH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tV(e,t,r){return t=Ls(t),rV(e,D1()?Reflect.construct(t,r||[],Ls(e).constructor):t.apply(e,r))}function rV(e,t){if(t&&(li(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nV(e)}function nV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D1=function(){return!!e})()}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}function iV(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&&kh(e,t)}function kh(e,t){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kh(e,t)}function L1(e,t,r){return t=B1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B1(e){var t=aV(e,"string");return li(t)=="symbol"?t:t+""}function aV(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Rh(){return Rh=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},Rh.apply(this,arguments)}function oV(e){var t=e.xAxisId,r=im(),n=am(),i=h1(t);return i==null?null:E.createElement(Ei,Rh({},i,{className:ce("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return rr(o,!0)}}))}var Et=(function(e){function t(){return JH(this,t),tV(this,t,arguments)}return iV(t,e),eV(t,[{key:"render",value:function(){return E.createElement(oV,this.props)}}])})(E.Component);L1(Et,"displayName","XAxis");L1(Et,"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 fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function sV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cV(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,z1(n.key),n)}}function uV(e,t,r){return t&&cV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lV(e,t,r){return t=Bs(t),fV(e,q1()?Reflect.construct(t,r||[],Bs(e).constructor):t.apply(e,r))}function fV(e,t){if(t&&(fi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dV(e)}function dV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q1=function(){return!!e})()}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bs(e)}function pV(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&&Mh(e,t)}function Mh(e,t){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mh(e,t)}function F1(e,t,r){return t=z1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z1(e){var t=hV(e,"string");return fi(t)=="symbol"?t:t+""}function hV(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $h(){return $h=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},$h.apply(this,arguments)}var vV=function(t){var r=t.yAxisId,n=im(),i=am(),a=v1(r);return a==null?null:E.createElement(Ei,$h({},a,{className:ce("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return rr(s,!0)}}))},Tt=(function(e){function t(){return sV(this,t),lV(this,t,arguments)}return pV(t,e),uV(t,[{key:"render",value:function(){return E.createElement(vV,this.props)}}])})(E.Component);F1(Tt,"displayName","YAxis");F1(Tt,"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 GO(e){return bV(e)||gV(e)||yV(e)||mV()}function mV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
64
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yV(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 gV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bV(e){if(Array.isArray(e))return Nh(e)}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}var Dh=function(t,r,n,i,a){var o=Qe(t,sm),s=Qe(t,Ec),c=[].concat(GO(o),GO(s)),u=Qe(t,Cc),l="".concat(i,"Id"),f=i[0],d=r;if(c.length&&(d=c.reduce(function(p,v){if(v.props[l]===n&&Bt(v.props,"extendDomain")&&K(v.props[f])){var y=v.props[f];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},d)),u.length){var h="".concat(f,"1"),m="".concat(f,"2");d=u.reduce(function(p,v){if(v.props[l]===n&&Bt(v.props,"extendDomain")&&K(v.props[h])&&K(v.props[m])){var y=v.props[h],g=v.props[m];return[Math.min(p[0],y,g),Math.max(p[1],y,g)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,v){return K(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},d)),d},Qd={exports:{}},YO;function xV(){return YO||(YO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,u,l){this.fn=c,this.context=u,this.once=l||!1}function a(c,u,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var h=new i(l,f||c,d),m=r?r+u:u;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],h]:c._events[m].push(h):(c._events[m]=h,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],l,f;if(this._eventsCount===0)return u;for(f in l=this._events)t.call(l,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},s.prototype.listeners=function(u){var l=r?r+u:u,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,m=new Array(h);d<h;d++)m[d]=f[d].fn;return m},s.prototype.listenerCount=function(u){var l=r?r+u:u,f=this._events[l];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,l,f,d,h,m){var p=r?r+u:u;if(!this._events[p])return!1;var v=this._events[p],y=arguments.length,g,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,l),!0;case 3:return v.fn.call(v.context,l,f),!0;case 4:return v.fn.call(v.context,l,f,d),!0;case 5:return v.fn.call(v.context,l,f,d,h),!0;case 6:return v.fn.call(v.context,l,f,d,h,m),!0}for(x=1,g=new Array(y-1);x<y;x++)g[x-1]=arguments[x];v.fn.apply(v.context,g)}else{var O=v.length,b;for(x=0;x<O;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),y){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,l);break;case 3:v[x].fn.call(v[x].context,l,f);break;case 4:v[x].fn.call(v[x].context,l,f,d);break;default:if(!g)for(b=1,g=new Array(y-1);b<y;b++)g[b-1]=arguments[b];v[x].fn.apply(v[x].context,g)}}return!0},s.prototype.on=function(u,l,f){return a(this,u,l,f,!1)},s.prototype.once=function(u,l,f){return a(this,u,l,f,!0)},s.prototype.removeListener=function(u,l,f,d){var h=r?r+u:u;if(!this._events[h])return this;if(!l)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===l&&(!d||m.once)&&(!f||m.context===f)&&o(this,h);else{for(var p=0,v=[],y=m.length;p<y;p++)(m[p].fn!==l||d&&!m[p].once||f&&m[p].context!==f)&&v.push(m[p]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var l;return u?(l=r?r+u:u,this._events[l]&&o(this,l)):(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})(Qd)),Qd.exports}var wV=xV();const OV=ge(wV);var ep=new OV,tp="recharts.syncMouseEvents";function Na(e){"@babel/helpers - typeof";return Na=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},Na(e)}function SV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W1(n.key),n)}}function _V(e,t,r){return t&&AV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rp(e,t,r){return t=W1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W1(e){var t=PV(e,"string");return Na(t)=="symbol"?t:t+""}function PV(e,t){if(Na(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Na(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var EV=(function(){function e(){SV(this,e),rp(this,"activeIndex",0),rp(this,"coordinateList",[]),rp(this,"layout","horizontal")}return _V(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,u=c===void 0?null:c,l=r.offset,f=l===void 0?null:l,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,l=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+c+u,d=o+this.offset.top+s/2+l;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function TV(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&K(n)&&K(i))return!0}return!1}function CV(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 U1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=me(t,r,n,i),s=me(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function jV(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,u=t.innerRadius,l=t.outerRadius,f=t.angle,d=me(s,c,u,f),h=me(s,c,l,f);n=d.x,i=d.y,a=h.x,o=h.y}else return U1(t);return[{x:n,y:i},{x:a,y:o}]}function Da(e){"@babel/helpers - typeof";return Da=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},Da(e)}function XO(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 bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XO(Object(r),!0).forEach(function(n){IV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IV(e,t,r){return t=kV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kV(e){var t=RV(e,"string");return Da(t)=="symbol"?t:t+""}function RV(e,t){if(Da(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Da(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MV(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,l=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,p=Er;if(d==="ScatterChart")m=o,p=rz;else if(d==="BarChart")m=CV(f,o,c,l),p=em;else if(f==="radial"){var v=U1(o),y=v.cx,g=v.cy,x=v.radius,O=v.startAngle,b=v.endAngle;m={cx:y,cy:g,startAngle:O,endAngle:b,innerRadius:x,outerRadius:x},p=kP}else m={points:jV(f,o,c)},p=Er;var w=bo(bo(bo(bo({stroke:"#ccc",pointerEvents:"none"},c),m),ee(h,!1)),{},{payload:s,payloadIndex:u,className:ce("recharts-tooltip-cursor",h.className)});return S.isValidElement(h)?S.cloneElement(h,w):S.createElement(p,w)}var $V=["item"],NV=["children","className","width","height","style","compact","title","desc"];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 In(){return In=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},In.apply(this,arguments)}function ZO(e,t){return BV(e)||LV(e,t)||V1(e,t)||DV()}function DV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
65
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LV(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,u=!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(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function BV(e){if(Array.isArray(e))return e}function JO(e,t){if(e==null)return{};var r=qV(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 qV(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 FV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K1(n.key),n)}}function WV(e,t,r){return t&&zV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UV(e,t,r){return t=qs(t),HV(e,H1()?Reflect.construct(t,r||[],qs(e).constructor):t.apply(e,r))}function HV(e,t){if(t&&(di(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VV(e)}function VV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H1=function(){return!!e})()}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(e)}function KV(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&&Lh(e,t)}function Lh(e,t){return Lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lh(e,t)}function pi(e){return XV(e)||YV(e)||V1(e)||GV()}function GV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
66
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V1(e,t){if(e){if(typeof e=="string")return Bh(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 Bh(e,t)}}function YV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XV(e){if(Array.isArray(e))return Bh(e)}function Bh(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 QO(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 F(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QO(Object(r),!0).forEach(function(n){se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function se(e,t,r){return t=K1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K1(e){var t=ZV(e,"string");return di(t)=="symbol"?t:t+""}function ZV(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JV={xAxis:["bottom","top"],yAxis:["left","right"]},QV={width:"100%",height:"100%"},G1={x:0,y:0};function xo(e){return e}var eK=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},tK=function(t,r,n,i){var a=r.find(function(l){return l&&l.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 F(F(F({},i),me(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var c=a.coordinate,u=i.angle;return F(F(F({},i),me(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return G1},jc=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(pi(s),pi(u)):s},[]);return o.length>0?o:t&&t.length&&K(i)&&K(a)?t.slice(i,a+1):[]};function Y1(e){return e==="number"?[0,"auto"]:void 0}var qh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=jc(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(c,u){var l,f=(l=u.props.data)!==null&&l!==void 0?l:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=$o(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(pi(c),[AP(u,d)]):c},[])},eS=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=eK(a,n),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=S2(o,s,u,c);if(l>=0&&u){var f=u[l]&&u[l].value,d=qh(t,r,l,f),h=tK(n,s,l,a);return{activeTooltipIndex:l,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},rK=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=t.stackOffset,h=gP(l,a);return n.reduce(function(m,p){var v,y=p.type.defaultProps!==void 0?F(F({},p.type.defaultProps),p.props):p.props,g=y.type,x=y.dataKey,O=y.allowDataOverflow,b=y.allowDuplicatedCategory,w=y.scale,A=y.ticks,P=y.includeHidden,T=y[o];if(m[T])return m;var k=jc(t.data,{graphicalItems:i.filter(function(U){var G,X=o in U.props?U.props[o]:(G=U.type.defaultProps)===null||G===void 0?void 0:G[o];return X===T}),dataStartIndex:c,dataEndIndex:u}),C=k.length,j,R,$;TV(y.domain,O,g)&&(j=Xp(y.domain,null,O),h&&(g==="number"||w!=="auto")&&($=Yi(k,x,"category")));var N=Y1(g);if(!j||j.length===0){var M,D=(M=y.domain)!==null&&M!==void 0?M:N;if(x){if(j=Yi(k,x,g),g==="category"&&h){var B=vI(j);b&&B?(R=j,j=Ss(0,C)):b||(j=W0(D,j,p).reduce(function(U,G){return U.indexOf(G)>=0?U:[].concat(pi(U),[G])},[]))}else if(g==="category")b?j=j.filter(function(U){return U!==""&&!oe(U)}):j=W0(D,j,p).reduce(function(U,G){return U.indexOf(G)>=0||G===""||oe(G)?U:[].concat(pi(U),[G])},[]);else if(g==="number"){var W=T2(k,i.filter(function(U){var G,X,Z=o in U.props?U.props[o]:(G=U.type.defaultProps)===null||G===void 0?void 0:G[o],J="hide"in U.props?U.props.hide:(X=U.type.defaultProps)===null||X===void 0?void 0:X.hide;return Z===T&&(P||!J)}),x,a,l);W&&(j=W)}h&&(g==="number"||w!=="auto")&&($=Yi(k,x,"category"))}else h?j=Ss(0,C):s&&s[T]&&s[T].hasStack&&g==="number"?j=d==="expand"?[0,1]:SP(s[T].stackGroups,c,u):j=yP(k,i.filter(function(U){var G=o in U.props?U.props[o]:U.type.defaultProps[o],X="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return G===T&&(P||!X)}),g,l,!0);if(g==="number")j=Dh(f,j,T,a,A),D&&(j=Xp(D,j,O));else if(g==="category"&&D){var I=D,z=j.every(function(U){return I.indexOf(U)>=0});z&&(j=I)}}return F(F({},m),{},se({},T,F(F({},y),{},{axisType:a,domain:j,categoricalDomain:$,duplicateDomain:R,originalDomain:(v=y.domain)!==null&&v!==void 0?v:N,isCategorical:h,layout:l})))},{})},nK=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=jc(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),h=d.length,m=gP(l,a),p=-1;return n.reduce(function(v,y){var g=y.type.defaultProps!==void 0?F(F({},y.type.defaultProps),y.props):y.props,x=g[o],O=Y1("number");if(!v[x]){p++;var b;return m?b=Ss(0,h):s&&s[x]&&s[x].hasStack?(b=SP(s[x].stackGroups,c,u),b=Dh(f,b,x,a)):(b=Xp(O,yP(d,n.filter(function(w){var A,P,T=o in w.props?w.props[o]:(A=w.type.defaultProps)===null||A===void 0?void 0:A[o],k="hide"in w.props?w.props.hide:(P=w.type.defaultProps)===null||P===void 0?void 0:P.hide;return T===x&&!k}),"number",l),i.defaultProps.allowDataOverflow),b=Dh(f,b,x,a)),F(F({},v),{},se({},x,F(F({axisType:a},i.defaultProps),{},{hide:!0,orientation:ct(JV,"".concat(a,".").concat(p%2),null),domain:b,originalDomain:O,isCategorical:m,layout:l})))}return v},{})},iK=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,u=r.dataEndIndex,l=t.children,f="".concat(i,"Id"),d=Qe(l,a),h={};return d&&d.length?h=rK(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=nK(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),h},aK=function(t){var r=Or(t),n=rr(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Pv(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:os(r,n)}},tS=function(t){var r=t.children,n=t.defaultShowTooltip,i=at(r,Qn),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}},oK=function(t){return!t||!t.length?!1:t.some(function(r){var n=nr(r&&r.type);return n&&n.indexOf("Bar")>=0})},rS=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"}},sK=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,u=n.width,l=n.height,f=n.children,d=n.margin||{},h=at(f,Qn),m=at(f,yt),p=Object.keys(c).reduce(function(b,w){var A=c[w],P=A.orientation;return!A.mirror&&!A.hide?F(F({},b),{},se({},P,b[P]+A.width)):b},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(b,w){var A=o[w],P=A.orientation;return!A.mirror&&!A.hide?F(F({},b),{},se({},P,ct(b,"".concat(P))+A.height)):b},{top:d.top||0,bottom:d.bottom||0}),y=F(F({},v),p),g=y.bottom;h&&(y.bottom+=h.props.height||Qn.defaultProps.height),m&&r&&(y=P2(y,i,n,r));var x=u-y.left-y.right,O=l-y.top-y.bottom;return F(F({brushBottom:g},y),{},{width:Math.max(x,0),height:Math.max(O,0)})},cK=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Ti=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,u=t.legendContent,l=t.formatAxisMap,f=t.defaultProps,d=function(y,g){var x=g.graphicalItems,O=g.stackGroups,b=g.offset,w=g.updateId,A=g.dataStartIndex,P=g.dataEndIndex,T=y.barSize,k=y.layout,C=y.barGap,j=y.barCategoryGap,R=y.maxBarSize,$=rS(k),N=$.numericAxisName,M=$.cateAxisName,D=oK(x),B=[];return x.forEach(function(W,I){var z=jc(y.data,{graphicalItems:[W],dataStartIndex:A,dataEndIndex:P}),U=W.type.defaultProps!==void 0?F(F({},W.type.defaultProps),W.props):W.props,G=U.dataKey,X=U.maxBarSize,Z=U["".concat(N,"Id")],J=U["".concat(M,"Id")],V={},Q=c.reduce(function(Wr,Yt){var Uc,Hc,Vc=g["".concat(Yt.axisType,"Map")],qm=U["".concat(Yt.axisType,"Id")];Vc&&Vc[qm]||Yt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?tt(!1,"Specifying a(n) ".concat(Yt.axisType,"Id requires a corresponding ").concat(Yt.axisType,"Id on the targeted graphical component ").concat((Uc=W==null||(Hc=W.type)===null||Hc===void 0?void 0:Hc.displayName)!==null&&Uc!==void 0?Uc:"")):tt());var Fm=Vc[qm];return F(F({},Wr),{},se(se({},Yt.axisType,Fm),"".concat(Yt.axisType,"Ticks"),rr(Fm)))},V),q=Q[M],H=Q["".concat(M,"Ticks")],Y=O&&O[Z]&&O[Z].hasStack&&D2(W,O[Z].stackGroups),L=nr(W.type).indexOf("Bar")>=0,ue=os(q,H),le=[],je=D&&A2({barSize:T,stackGroups:O,totalSize:cK(Q,M)});if(L){var Ie,Fe,mr=oe(X)?R:X,bn=(Ie=(Fe=os(q,H,!0))!==null&&Fe!==void 0?Fe:mr)!==null&&Ie!==void 0?Ie:0;le=_2({barGap:C,barCategoryGap:j,bandSize:bn!==ue?bn:ue,sizeList:je[J],maxBarSize:mr}),bn!==ue&&(le=le.map(function(Wr){return F(F({},Wr),{},{position:F(F({},Wr.position),{},{offset:Wr.position.offset-bn/2})})}))}var to=W&&W.type&&W.type.getComposedData;to&&B.push({props:F(F({},to(F(F({},Q),{},{displayedData:z,props:y,dataKey:G,item:W,bandSize:ue,barPosition:le,offset:b,stackedData:Y,layout:k,dataStartIndex:A,dataEndIndex:P}))),{},se(se(se({key:W.key||"item-".concat(I)},N,Q[N]),M,Q[M]),"animationId",w)),childIndex:TI(W,y.children),item:W})}),B},h=function(y,g){var x=y.props,O=y.dataStartIndex,b=y.dataEndIndex,w=y.updateId;if(!ig({props:x}))return null;var A=x.children,P=x.layout,T=x.stackOffset,k=x.data,C=x.reverseStackOrder,j=rS(P),R=j.numericAxisName,$=j.cateAxisName,N=Qe(A,n),M=$2(k,N,"".concat(R,"Id"),"".concat($,"Id"),T,C),D=c.reduce(function(U,G){var X="".concat(G.axisType,"Map");return F(F({},U),{},se({},X,iK(x,F(F({},G),{},{graphicalItems:N,stackGroups:G.axisType===R&&M,dataStartIndex:O,dataEndIndex:b}))))},{}),B=sK(F(F({},D),{},{props:x,graphicalItems:N}),g?.legendBBox);Object.keys(D).forEach(function(U){D[U]=l(x,D[U],B,U.replace("Map",""),r)});var W=D["".concat($,"Map")],I=aK(W),z=d(x,F(F({},D),{},{dataStartIndex:O,dataEndIndex:b,updateId:w,graphicalItems:N,stackGroups:M,offset:B}));return F(F({formattedGraphicalItems:z,graphicalItems:N,offset:B,stackGroups:M},I),D)},m=(function(v){function y(g){var x,O,b;return FV(this,y),b=UV(this,y,[g]),se(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),se(b,"accessibilityManager",new EV),se(b,"handleLegendBBoxUpdate",function(w){if(w){var A=b.state,P=A.dataStartIndex,T=A.dataEndIndex,k=A.updateId;b.setState(F({legendBBox:w},h({props:b.props,dataStartIndex:P,dataEndIndex:T,updateId:k},F(F({},b.state),{},{legendBBox:w}))))}}),se(b,"handleReceiveSyncEvent",function(w,A,P){if(b.props.syncId===w){if(P===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(A)}}),se(b,"handleBrushChange",function(w){var A=w.startIndex,P=w.endIndex;if(A!==b.state.dataStartIndex||P!==b.state.dataEndIndex){var T=b.state.updateId;b.setState(function(){return F({dataStartIndex:A,dataEndIndex:P},h({props:b.props,dataStartIndex:A,dataEndIndex:P,updateId:T},b.state))}),b.triggerSyncEvent({dataStartIndex:A,dataEndIndex:P})}}),se(b,"handleMouseEnter",function(w){var A=b.getMouseInfo(w);if(A){var P=F(F({},A),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var T=b.props.onMouseEnter;ae(T)&&T(P,w)}}),se(b,"triggeredAfterMouseMove",function(w){var A=b.getMouseInfo(w),P=A?F(F({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(P),b.triggerSyncEvent(P);var T=b.props.onMouseMove;ae(T)&&T(P,w)}),se(b,"handleItemMouseEnter",function(w){b.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),se(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),se(b,"handleMouseMove",function(w){w.persist(),b.throttleTriggeredAfterMouseMove(w)}),se(b,"handleMouseLeave",function(w){b.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};b.setState(A),b.triggerSyncEvent(A);var P=b.props.onMouseLeave;ae(P)&&P(A,w)}),se(b,"handleOuterEvent",function(w){var A=EI(w),P=ct(b.props,"".concat(A));if(A&&ae(P)){var T,k;/.*touch.*/i.test(A)?k=b.getMouseInfo(w.changedTouches[0]):k=b.getMouseInfo(w),P((T=k)!==null&&T!==void 0?T:{},w)}}),se(b,"handleClick",function(w){var A=b.getMouseInfo(w);if(A){var P=F(F({},A),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var T=b.props.onClick;ae(T)&&T(P,w)}}),se(b,"handleMouseDown",function(w){var A=b.props.onMouseDown;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"handleMouseUp",function(w){var A=b.props.onMouseUp;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),se(b,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseDown(w.changedTouches[0])}),se(b,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseUp(w.changedTouches[0])}),se(b,"handleDoubleClick",function(w){var A=b.props.onDoubleClick;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"handleContextMenu",function(w){var A=b.props.onContextMenu;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"triggerSyncEvent",function(w){b.props.syncId!==void 0&&ep.emit(tp,b.props.syncId,w,b.eventEmitterSymbol)}),se(b,"applySyncEvent",function(w){var A=b.props,P=A.layout,T=A.syncMethod,k=b.state.updateId,C=w.dataStartIndex,j=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)b.setState(F({dataStartIndex:C,dataEndIndex:j},h({props:b.props,dataStartIndex:C,dataEndIndex:j,updateId:k},b.state)));else if(w.activeTooltipIndex!==void 0){var R=w.chartX,$=w.chartY,N=w.activeTooltipIndex,M=b.state,D=M.offset,B=M.tooltipTicks;if(!D)return;if(typeof T=="function")N=T(B,w);else if(T==="value"){N=-1;for(var W=0;W<B.length;W++)if(B[W].value===w.activeLabel){N=W;break}}var I=F(F({},D),{},{x:D.left,y:D.top}),z=Math.min(R,I.x+I.width),U=Math.min($,I.y+I.height),G=B[N]&&B[N].value,X=qh(b.state,b.props.data,N),Z=B[N]?{x:P==="horizontal"?B[N].coordinate:z,y:P==="horizontal"?U:B[N].coordinate}:G1;b.setState(F(F({},w),{},{activeLabel:G,activeCoordinate:Z,activePayload:X,activeTooltipIndex:N}))}else b.setState(w)}),se(b,"renderCursor",function(w){var A,P=b.state,T=P.isTooltipActive,k=P.activeCoordinate,C=P.activePayload,j=P.offset,R=P.activeTooltipIndex,$=P.tooltipAxisBandSize,N=b.getTooltipEventType(),M=(A=w.props.active)!==null&&A!==void 0?A:T,D=b.props.layout,B=w.key||"_recharts-cursor";return S.createElement(MV,{key:B,activeCoordinate:k,activePayload:C,activeTooltipIndex:R,chartName:r,element:w,isActive:M,layout:D,offset:j,tooltipAxisBandSize:$,tooltipEventType:N})}),se(b,"renderPolarAxis",function(w,A,P){var T=ct(w,"type.axisType"),k=ct(b.state,"".concat(T,"Map")),C=w.type.defaultProps,j=C!==void 0?F(F({},C),w.props):w.props,R=k&&k[j["".concat(T,"Id")]];return S.cloneElement(w,F(F({},R),{},{className:ce(T,R.className),key:w.key||"".concat(A,"-").concat(P),ticks:rr(R,!0)}))}),se(b,"renderPolarGrid",function(w){var A=w.props,P=A.radialLines,T=A.polarAngles,k=A.polarRadius,C=b.state,j=C.radiusAxisMap,R=C.angleAxisMap,$=Or(j),N=Or(R),M=N.cx,D=N.cy,B=N.innerRadius,W=N.outerRadius;return S.cloneElement(w,{polarAngles:Array.isArray(T)?T:rr(N,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(k)?k:rr($,!0).map(function(I){return I.coordinate}),cx:M,cy:D,innerRadius:B,outerRadius:W,key:w.key||"polar-grid",radialLines:P})}),se(b,"renderLegend",function(){var w=b.state.formattedGraphicalItems,A=b.props,P=A.children,T=A.width,k=A.height,C=b.props.margin||{},j=T-(C.left||0)-(C.right||0),R=vP({children:P,formattedGraphicalItems:w,legendWidth:j,legendContent:u});if(!R)return null;var $=R.item,N=JO(R,$V);return S.cloneElement($,F(F({},N),{},{chartWidth:T,chartHeight:k,margin:C,onBBoxUpdate:b.handleLegendBBoxUpdate}))}),se(b,"renderTooltip",function(){var w,A=b.props,P=A.children,T=A.accessibilityLayer,k=at(P,Ke);if(!k)return null;var C=b.state,j=C.isTooltipActive,R=C.activeCoordinate,$=C.activePayload,N=C.activeLabel,M=C.offset,D=(w=k.props.active)!==null&&w!==void 0?w:j;return S.cloneElement(k,{viewBox:F(F({},M),{},{x:M.left,y:M.top}),active:D,label:N,payload:D?$:[],coordinate:R,accessibilityLayer:T})}),se(b,"renderBrush",function(w){var A=b.props,P=A.margin,T=A.data,k=b.state,C=k.offset,j=k.dataStartIndex,R=k.dataEndIndex,$=k.updateId;return S.cloneElement(w,{key:w.key||"_recharts-brush",onChange:ho(b.handleBrushChange,w.props.onChange),data:T,x:K(w.props.x)?w.props.x:C.left,y:K(w.props.y)?w.props.y:C.top+C.height+C.brushBottom-(P.bottom||0),width:K(w.props.width)?w.props.width:C.width,startIndex:j,endIndex:R,updateId:"brush-".concat($)})}),se(b,"renderReferenceElement",function(w,A,P){if(!w)return null;var T=b,k=T.clipPathId,C=b.state,j=C.xAxisMap,R=C.yAxisMap,$=C.offset,N=w.type.defaultProps||{},M=w.props,D=M.xAxisId,B=D===void 0?N.xAxisId:D,W=M.yAxisId,I=W===void 0?N.yAxisId:W;return S.cloneElement(w,{key:w.key||"".concat(A,"-").concat(P),xAxis:j[B],yAxis:R[I],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:k})}),se(b,"renderActivePoints",function(w){var A=w.item,P=w.activePoint,T=w.basePoint,k=w.childIndex,C=w.isRange,j=[],R=A.props.key,$=A.item.type.defaultProps!==void 0?F(F({},A.item.type.defaultProps),A.item.props):A.item.props,N=$.activeDot,M=$.dataKey,D=F(F({index:k,dataKey:M,cx:P.x,cy:P.y,r:4,fill:Jv(A.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},ee(N,!1)),No(N));return j.push(y.renderActiveDot(N,D,"".concat(R,"-activePoint-").concat(k))),T?j.push(y.renderActiveDot(N,F(F({},D),{},{cx:T.x,cy:T.y}),"".concat(R,"-basePoint-").concat(k))):C&&j.push(null),j}),se(b,"renderGraphicChild",function(w,A,P){var T=b.filterFormatItem(w,A,P);if(!T)return null;var k=b.getTooltipEventType(),C=b.state,j=C.isTooltipActive,R=C.tooltipAxis,$=C.activeTooltipIndex,N=C.activeLabel,M=b.props.children,D=at(M,Ke),B=T.props,W=B.points,I=B.isRange,z=B.baseLine,U=T.item.type.defaultProps!==void 0?F(F({},T.item.type.defaultProps),T.item.props):T.item.props,G=U.activeDot,X=U.hide,Z=U.activeBar,J=U.activeShape,V=!!(!X&&j&&D&&(G||Z||J)),Q={};k!=="axis"&&D&&D.props.trigger==="click"?Q={onClick:ho(b.handleItemMouseEnter,w.props.onClick)}:k!=="axis"&&(Q={onMouseLeave:ho(b.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:ho(b.handleItemMouseEnter,w.props.onMouseEnter)});var q=S.cloneElement(w,F(F({},T.props),Q));function H(Yt){return typeof R.dataKey=="function"?R.dataKey(Yt.payload):null}if(V)if($>=0){var Y,L;if(R.dataKey&&!R.allowDuplicatedCategory){var ue=typeof R.dataKey=="function"?H:"payload.".concat(R.dataKey.toString());Y=$o(W,ue,N),L=I&&z&&$o(z,ue,N)}else Y=W?.[$],L=I&&z&&z[$];if(J||Z){var le=w.props.activeIndex!==void 0?w.props.activeIndex:$;return[S.cloneElement(w,F(F(F({},T.props),Q),{},{activeIndex:le})),null,null]}if(!oe(Y))return[q].concat(pi(b.renderActivePoints({item:T,activePoint:Y,basePoint:L,childIndex:$,isRange:I})))}else{var je,Ie=(je=b.getItemByXY(b.state.activeCoordinate))!==null&&je!==void 0?je:{graphicalItem:q},Fe=Ie.graphicalItem,mr=Fe.item,bn=mr===void 0?w:mr,to=Fe.childIndex,Wr=F(F(F({},T.props),Q),{},{activeIndex:to});return[S.cloneElement(bn,Wr),null,null]}return I?[q,null,null]:[q,null]}),se(b,"renderCustomized",function(w,A,P){return S.cloneElement(w,F(F({key:"recharts-customized-".concat(P)},b.props),b.state))}),se(b,"renderMap",{CartesianGrid:{handler:xo,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:xo},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:xo},YAxis:{handler:xo},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((x=g.id)!==null&&x!==void 0?x:Mr("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=h_(b.triggeredAfterMouseMove,(O=g.throttleDelay)!==null&&O!==void 0?O:1e3/60),b.state={},b}return KV(y,v),WV(y,[{key:"componentDidMount",value:function(){var x,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,O=x.children,b=x.data,w=x.height,A=x.layout,P=at(O,Ke);if(P){var T=P.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var k=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,C=qh(this.state,b,T,k),j=this.state.tooltipTicks[T].coordinate,R=(this.state.offset.top+w)/2,$=A==="horizontal",N=$?{x:j,y:R}:{y:j,x:R},M=this.state.formattedGraphicalItems.find(function(B){var W=B.item;return W.type.name==="Scatter"});M&&(N=F(F({},N),M.props.points[T].tooltipPosition),C=M.props.points[T].tooltipPayload);var D={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:k,activePayload:C,activeCoordinate:N};this.setState(D),this.renderCursor(P),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var b,w;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(x){gp([at(x.children,Ke)],[at(this.props.children,Ke)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=at(this.props.children,Ke);if(x&&typeof x.props.shared=="boolean"){var O=x.props.shared?"axis":"item";return s.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var O=this.container,b=O.getBoundingClientRect(),w=v$(b),A={chartX:Math.round(x.pageX-w.left),chartY:Math.round(x.pageY-w.top)},P=b.width/O.offsetWidth||1,T=this.inRange(A.chartX,A.chartY,P);if(!T)return null;var k=this.state,C=k.xAxisMap,j=k.yAxisMap,R=this.getTooltipEventType(),$=eS(this.state,this.props.data,this.props.layout,T);if(R!=="axis"&&C&&j){var N=Or(C).scale,M=Or(j).scale,D=N&&N.invert?N.invert(A.chartX):null,B=M&&M.invert?M.invert(A.chartY):null;return F(F({},A),{},{xValue:D,yValue:B},$)}return $?F(F({},A),$):null}},{key:"inRange",value:function(x,O){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,A=x/b,P=O/b;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,k=A>=T.left&&A<=T.left+T.width&&P>=T.top&&P<=T.top+T.height;return k?{x:A,y:P}:null}var C=this.state,j=C.angleAxisMap,R=C.radiusAxisMap;if(j&&R){var $=Or(j);return V0({x:A,y:P},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,O=this.getTooltipEventType(),b=at(x,Ke),w={};b&&O==="axis"&&(b.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=No(this.props,this.handleOuterEvent);return F(F({},A),w)}},{key:"addListener",value:function(){ep.on(tp,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ep.removeListener(tp,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,O,b){for(var w=this.state.formattedGraphicalItems,A=0,P=w.length;A<P;A++){var T=w[A];if(T.item===x||T.props.key===x.key||O===nr(T.item.type)&&b===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,O=this.state.offset,b=O.left,w=O.top,A=O.height,P=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:x},S.createElement("rect",{x:b,y:w,height:A,width:P})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(O,b){var w=ZO(b,2),A=w[0],P=w[1];return F(F({},O),{},se({},A,P.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(O,b){var w=ZO(b,2),A=w[0],P=w[1];return F(F({},O),{},se({},A,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(x){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(x){var O=this.state,b=O.formattedGraphicalItems,w=O.activeItem;if(b&&b.length)for(var A=0,P=b.length;A<P;A++){var T=b[A],k=T.props,C=T.item,j=C.type.defaultProps!==void 0?F(F({},C.type.defaultProps),C.props):C.props,R=nr(C.type);if(R==="Bar"){var $=(k.data||[]).find(function(B){return DF(x,B)});if($)return{graphicalItem:T,payload:$}}else if(R==="RadialBar"){var N=(k.data||[]).find(function(B){return V0(x,B)});if(N)return{graphicalItem:T,payload:N}}else if(Oc(T,w)||Sc(T,w)||ka(T,w)){var M=mW({graphicalItem:T,activeTooltipItem:w,itemData:j.data}),D=j.activeIndex===void 0?M:j.activeIndex;return{graphicalItem:F(F({},T),{},{childIndex:D}),payload:ka(T,w)?j.data[M]:T.props.data[M]}}}return null}},{key:"render",value:function(){var x=this;if(!ig(this))return null;var O=this.props,b=O.children,w=O.className,A=O.width,P=O.height,T=O.style,k=O.compact,C=O.title,j=O.desc,R=JO(O,NV),$=ee(R,!1);if(k)return S.createElement(TO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(xp,In({},$,{width:A,height:P,title:C,desc:j}),this.renderClipPath(),og(b,this.renderMap)));if(this.props.accessibilityLayer){var N,M;$.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,$.role=(M=this.props.role)!==null&&M!==void 0?M:"application",$.onKeyDown=function(B){x.accessibilityManager.keyboardEvent(B)},$.onFocus=function(){x.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return S.createElement(TO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",In({className:ce("recharts-wrapper",w),style:F({position:"relative",cursor:"default",width:A,height:P},T)},D,{ref:function(W){x.container=W}}),S.createElement(xp,In({},$,{width:A,height:P,title:C,desc:j,style:QV}),this.renderClipPath(),og(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(S.Component);se(m,"displayName",r),se(m,"defaultProps",F({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),se(m,"getDerivedStateFromProps",function(v,y){var g=v.dataKey,x=v.data,O=v.children,b=v.width,w=v.height,A=v.layout,P=v.stackOffset,T=v.margin,k=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var j=tS(v);return F(F(F({},j),{},{updateId:0},h(F(F({props:v},j),{},{updateId:0}),y)),{},{prevDataKey:g,prevData:x,prevWidth:b,prevHeight:w,prevLayout:A,prevStackOffset:P,prevMargin:T,prevChildren:O})}if(g!==y.prevDataKey||x!==y.prevData||b!==y.prevWidth||w!==y.prevHeight||A!==y.prevLayout||P!==y.prevStackOffset||!kn(T,y.prevMargin)){var R=tS(v),$={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},N=F(F({},eS(y,x,A)),{},{updateId:y.updateId+1}),M=F(F(F({},R),$),N);return F(F(F({},M),h(F({props:v},M),y)),{},{prevDataKey:g,prevData:x,prevWidth:b,prevHeight:w,prevLayout:A,prevStackOffset:P,prevMargin:T,prevChildren:O})}if(!gp(O,y.prevChildren)){var D,B,W,I,z=at(O,Qn),U=z&&(D=(B=z.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:k,G=z&&(W=(I=z.props)===null||I===void 0?void 0:I.endIndex)!==null&&W!==void 0?W:C,X=U!==k||G!==C,Z=!oe(x),J=Z&&!X?y.updateId:y.updateId+1;return F(F({updateId:J},h(F(F({props:v},y),{},{updateId:J,dataStartIndex:U,dataEndIndex:G}),y)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:G})}return null}),se(m,"renderActiveDot",function(v,y,g){var x;return S.isValidElement(v)?x=S.cloneElement(v,y):ae(v)?x=v(y):x=S.createElement(Ai,y),S.createElement(fe,{className:"recharts-active-dot",key:g},x)});var p=S.forwardRef(function(y,g){return S.createElement(m,In({},y,{ref:g}))});return p.displayName=m.displayName,p},uK=Ti({chartName:"LineChart",GraphicalChild:Ya,axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt}],formatAxisMap:_c}),lK=Ti({chartName:"BarChart",GraphicalChild:gn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt}],formatAxisMap:_c}),X1=Ti({chartName:"PieChart",GraphicalChild:Kt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Pi},{axisType:"radiusAxis",AxisComp:_i}],formatAxisMap:EP,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),fK=Ti({chartName:"RadarChart",GraphicalChild:Ka,axisComponents:[{axisType:"angleAxis",AxisComp:Pi},{axisType:"radiusAxis",AxisComp:_i}],formatAxisMap:EP,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),dK=Ti({chartName:"ScatterChart",GraphicalChild:Za,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt},{axisType:"zAxis",AxisComp:Xa}],formatAxisMap:_c}),pK=Ti({chartName:"AreaChart",GraphicalChild:Br,axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt}],formatAxisMap:_c});const hK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.value;return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:typeof r=="number"?r.toLocaleString():r})},nS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],vK=({title:e,data:t,layout:r="vertical",showGrid:n=!0,showLegend:i=!1,className:a})=>{const o=r==="horizontal",s=o?Math.max(80,Math.min(200,Math.max(...t.map(c=>c.label.length))*7+16)):void 0;return _.jsxs("div",{className:ie("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(hn,{width:"100%",height:"100%",children:_.jsxs(lK,{data:t,layout:o?"vertical":"horizontal",margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),o?_.jsxs(_.Fragment,{children:[_.jsx(Et,{type:"number",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{dataKey:"label",type:"category",width:s,tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}):_.jsxs(_.Fragment,{children:[_.jsx(Et,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}),_.jsx(Ke,{content:_.jsx(hK,{})}),i&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})}),_.jsx(gn,{dataKey:"value",radius:[4,4,0,0],isAnimationActive:!1,children:t.map((c,u)=>_.jsx($r,{fill:c.color||nS[u%nS.length]},`cell-${u}`))})]})})})]})},mK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),iS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],yK=({title:e,data:t,series:r,showGrid:n=!0,showLegend:i=!0,showDots:a=!0,curved:o=!0,className:s})=>{const c=S.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(l=>l!=="label"),[t,r]);return _.jsxs("div",{className:ie("flex flex-col gap-2",s),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(hn,{width:"100%",height:"100%",children:_.jsxs(uK,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Et,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ke,{content:_.jsx(mK,{})}),i&&c.length>1&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:u=>_.jsx("span",{style:{color:"var(--foreground)"},children:u})}),c.map((u,l)=>_.jsx(Ya,{type:o?"monotone":"linear",dataKey:u,stroke:iS[l%iS.length],strokeWidth:2,dot:a,activeDot:{r:6},isAnimationActive:!1},u))]})})})]})},gK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),wo=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],bK=({title:e,data:t,series:r,stacked:n=!1,showGrid:i=!0,showLegend:a=!0,className:o})=>{const s=S.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(u=>u!=="label"),[t,r]);return _.jsxs("div",{className:ie("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(hn,{width:"100%",height:"100%",children:_.jsxs(pK,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Et,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ke,{content:_.jsx(gK,{})}),a&&s.length>1&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})}),s.map((c,u)=>_.jsx(Br,{type:"monotone",dataKey:c,stackId:n?"stack":void 0,stroke:wo[u%wo.length],fill:wo[u%wo.length],fillOpacity:.3,isAnimationActive:!1},c))]})})})]})},xK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},aS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],wK=({title:e,data:t,showLabels:r=!0,showLegend:n=!0,className:i})=>{const a=t.map(o=>({name:o.label,value:o.value,color:o.color}));return _.jsxs("div",{className:ie("flex flex-col gap-2",i),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[320px] w-full",children:_.jsx(hn,{width:"100%",height:"100%",children:_.jsxs(X1,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Kt,{data:a,cx:"50%",cy:"45%",innerRadius:0,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:o,percent:s,cx:c,cy:u,midAngle:l,outerRadius:f})=>{const d=Math.PI/180,h=(f??80)+25,m=(c??0)+h*Math.cos(-((l??0)*d)),p=(u??0)+h*Math.sin(-((l??0)*d));return _.jsx("text",{x:m,y:p,fill:"var(--foreground)",textAnchor:m>(c??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${o??""} (${((s??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:a.map((o,s)=>_.jsx($r,{fill:o.color||aS[s%aS.length]},`cell-${s}`))}),_.jsx(Ke,{content:_.jsx(xK,{})}),n&&_.jsx(yt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:o=>_.jsx("span",{style:{color:"var(--foreground)"},children:o})})]})})})]})},OK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},oS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],SK=({title:e,data:t,showLabels:r=!1,showLegend:n=!0,innerLabel:i,innerValue:a,className:o})=>{const s=t.map(c=>({name:c.label,value:c.value,color:c.color}));return _.jsxs("div",{className:ie("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsxs("div",{className:"relative h-[320px] w-full",children:[_.jsx(hn,{width:"100%",height:"100%",children:_.jsxs(X1,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Kt,{data:s,cx:"50%",cy:"45%",innerRadius:50,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:c,percent:u,cx:l,cy:f,midAngle:d,outerRadius:h})=>{const m=Math.PI/180,p=(h??80)+25,v=(l??0)+p*Math.cos(-((d??0)*m)),y=(f??0)+p*Math.sin(-((d??0)*m));return _.jsx("text",{x:v,y,fill:"var(--foreground)",textAnchor:v>(l??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${c??""} (${((u??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:s.map((c,u)=>_.jsx($r,{fill:c.color||oS[u%oS.length]},`cell-${u}`))}),_.jsx(Ke,{content:_.jsx(OK,{})}),n&&_.jsx(yt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})})]})}),(i!==void 0||a!==void 0)&&_.jsxs("div",{className:"pointer-events-none absolute inset-x-0 top-[45%] flex -translate-y-1/2 flex-col items-center",children:[a!==void 0&&_.jsx("span",{className:"text-2xl font-bold text-foreground",children:a}),i&&_.jsx("span",{className:"text-xs text-muted-foreground",children:i})]})]})]})},AK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.payload;return _.jsxs("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:[r?.label&&_.jsx("div",{className:"font-medium",children:r.label}),_.jsxs("div",{children:["x: ",r?.x?.toLocaleString()]}),_.jsxs("div",{children:["y: ",r?.y?.toLocaleString()]})]})},sS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],_K=({title:e,data:t,xLabel:r,yLabel:n,showGrid:i=!0,className:a})=>{const o=t.some(s=>s.size!==void 0);return _.jsxs("div",{className:ie("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(hn,{width:"100%",height:"100%",children:_.jsxs(dK,{margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Et,{type:"number",dataKey:"x",name:r||"x",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:r?{value:r,position:"bottom",offset:-5,fill:"var(--foreground)"}:void 0}),_.jsx(Tt,{type:"number",dataKey:"y",name:n||"y",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:n?{value:n,angle:-90,position:"left",fill:"var(--foreground)"}:void 0}),o&&_.jsx(Xa,{type:"number",dataKey:"size",range:[50,400]}),_.jsx(Ke,{content:_.jsx(AK,{})}),_.jsx(Za,{data:t,fill:sS[0],isAnimationActive:!1,children:t.map((s,c)=>_.jsx($r,{fill:s.color||sS[0]},`cell-${c}`))})]})})})]})},PK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},cS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],EK=({title:e,data:t,showLegend:r=!1,className:n})=>{const i=t.map(a=>({subject:a.label,value:a.value}));return _.jsxs("div",{className:ie("flex flex-col gap-2",n),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(hn,{width:"100%",height:"100%",children:_.jsxs(fK,{data:i,cx:"50%",cy:"50%",outerRadius:"80%",children:[_.jsx(zP,{stroke:"var(--border)"}),_.jsx(Pi,{dataKey:"subject",tick:{fill:"var(--foreground)",fontSize:12}}),_.jsx(_i,{tick:{fill:"var(--foreground)",fontSize:10},axisLine:{stroke:"var(--border)"}}),_.jsx(Ke,{content:_.jsx(PK,{})}),r&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:a=>_.jsx("span",{style:{color:"var(--foreground)"},children:a})}),_.jsx(Ka,{name:"Value",dataKey:"value",stroke:cS[0],fill:cS[0],fillOpacity:.3,isAnimationActive:!1})]})})})]})},uS=["Rendering chart...","Visualizing data...","Building chart...","Processing data..."];function TK(){return uS[Math.floor(Math.random()*uS.length)]}const CK={BarChart:vK,LineChart:yK,AreaChart:bK,PieChart:wK,DonutChart:SK,ScatterChart:_K,RadarChart:EK};function jK(e){const t=CK[e.type];return t?_.jsx(t,{...e.props??{}}):_.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[_.jsx(av,{className:"size-4"}),_.jsxs("span",{children:["Unknown chart type: ",e.type]})]})}const IK=({code:e})=>{const t=nv(),r=S.useMemo(()=>{const i=e.trim();if(!i)return null;try{const a=JSON.parse(i);return lA(a)?a:null}catch{return null}},[e]),n=S.useMemo(()=>TK(),[]);return r?_.jsx(Mo,{children:_.jsx("div",{className:ie("w-full bg-card",t("p-lg")),children:jK(r)})}):_.jsx(Pj,{text:n})},Z1={id:"chart",language:"chart",prompt:`WHEN TO USE CHARTS:
|
|
67
|
+
Create charts to visualize numerical data when it helps users understand patterns, trends, or comparisons. Use the 'chart' code block format.
|
|
68
|
+
|
|
69
|
+
CRITICAL JSON REQUIREMENTS:
|
|
70
|
+
- The code block MUST contain ONLY valid, parseable JSON
|
|
71
|
+
- NO comments (no // or /* */ anywhere)
|
|
72
|
+
- NO trailing commas
|
|
73
|
+
- Use double quotes for all strings and keys
|
|
74
|
+
- The JSON must start with { and end with }
|
|
75
|
+
|
|
76
|
+
AVAILABLE CHART TYPES:
|
|
77
|
+
|
|
78
|
+
BarChart - Compare categorical data
|
|
79
|
+
props: {
|
|
80
|
+
title?: string,
|
|
81
|
+
data: [{ label: string, value: number, color?: string }],
|
|
82
|
+
layout?: "vertical" | "horizontal",
|
|
83
|
+
showGrid?: boolean,
|
|
84
|
+
showLegend?: boolean
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
LineChart - Show trends over time
|
|
88
|
+
props: {
|
|
89
|
+
title?: string,
|
|
90
|
+
data: [{ label: string, [series]: number }],
|
|
91
|
+
series?: string[],
|
|
92
|
+
showGrid?: boolean,
|
|
93
|
+
showLegend?: boolean,
|
|
94
|
+
showDots?: boolean,
|
|
95
|
+
curved?: boolean
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
AreaChart - Show volume over time
|
|
99
|
+
props: {
|
|
100
|
+
title?: string,
|
|
101
|
+
data: [{ label: string, [series]: number }],
|
|
102
|
+
series?: string[],
|
|
103
|
+
stacked?: boolean,
|
|
104
|
+
showGrid?: boolean,
|
|
105
|
+
showLegend?: boolean
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
PieChart - Show proportions (2-6 categories)
|
|
109
|
+
props: {
|
|
110
|
+
title?: string,
|
|
111
|
+
data: [{ label: string, value: number, color?: string }],
|
|
112
|
+
showLabels?: boolean,
|
|
113
|
+
showLegend?: boolean
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
DonutChart - Proportions with center metric
|
|
117
|
+
props: {
|
|
118
|
+
title?: string,
|
|
119
|
+
data: [{ label: string, value: number, color?: string }],
|
|
120
|
+
showLabels?: boolean,
|
|
121
|
+
showLegend?: boolean,
|
|
122
|
+
innerLabel?: string,
|
|
123
|
+
innerValue?: string | number
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
ScatterChart - Show correlation
|
|
127
|
+
props: {
|
|
128
|
+
title?: string,
|
|
129
|
+
data: [{ x: number, y: number, label?: string, size?: number, color?: string }],
|
|
130
|
+
xLabel?: string,
|
|
131
|
+
yLabel?: string,
|
|
132
|
+
showGrid?: boolean
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
RadarChart - Compare multiple attributes (3-8 dimensions)
|
|
136
|
+
props: {
|
|
137
|
+
title?: string,
|
|
138
|
+
data: [{ label: string, value: number }],
|
|
139
|
+
showLegend?: boolean
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
STRUCTURE:
|
|
143
|
+
{
|
|
144
|
+
"type": "ChartType",
|
|
145
|
+
"props": { ... }
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
EXAMPLE - BAR CHART:
|
|
149
|
+
{
|
|
150
|
+
"type": "BarChart",
|
|
151
|
+
"props": {
|
|
152
|
+
"title": "Sales by Region",
|
|
153
|
+
"data": [
|
|
154
|
+
{ "label": "North", "value": 120000 },
|
|
155
|
+
{ "label": "South", "value": 98000 },
|
|
156
|
+
{ "label": "East", "value": 145000 },
|
|
157
|
+
{ "label": "West", "value": 87000 }
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
EXAMPLE - LINE CHART (multiple series):
|
|
163
|
+
{
|
|
164
|
+
"type": "LineChart",
|
|
165
|
+
"props": {
|
|
166
|
+
"title": "Monthly Revenue",
|
|
167
|
+
"data": [
|
|
168
|
+
{ "label": "Jan", "revenue": 45000, "costs": 32000 },
|
|
169
|
+
{ "label": "Feb", "revenue": 52000, "costs": 35000 },
|
|
170
|
+
{ "label": "Mar", "revenue": 61000, "costs": 38000 }
|
|
171
|
+
],
|
|
172
|
+
"series": ["revenue", "costs"]
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
EXAMPLE - PIE CHART:
|
|
177
|
+
{
|
|
178
|
+
"type": "PieChart",
|
|
179
|
+
"props": {
|
|
180
|
+
"title": "Market Share",
|
|
181
|
+
"data": [
|
|
182
|
+
{ "label": "Product A", "value": 45 },
|
|
183
|
+
{ "label": "Product B", "value": 30 },
|
|
184
|
+
{ "label": "Product C", "value": 25 }
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
EXAMPLE - DONUT CHART:
|
|
190
|
+
{
|
|
191
|
+
"type": "DonutChart",
|
|
192
|
+
"props": {
|
|
193
|
+
"title": "Budget Allocation",
|
|
194
|
+
"data": [
|
|
195
|
+
{ "label": "Marketing", "value": 35 },
|
|
196
|
+
{ "label": "Engineering", "value": 45 },
|
|
197
|
+
{ "label": "Operations", "value": 20 }
|
|
198
|
+
],
|
|
199
|
+
"innerValue": "$1.2M",
|
|
200
|
+
"innerLabel": "Total Budget"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
CHART SELECTION GUIDE:
|
|
205
|
+
- Comparing categories → BarChart
|
|
206
|
+
- Trends over time → LineChart
|
|
207
|
+
- Volume/magnitude over time → AreaChart
|
|
208
|
+
- Part-to-whole (2-6 items) → PieChart or DonutChart
|
|
209
|
+
- Correlation between variables → ScatterChart
|
|
210
|
+
- Multi-dimensional comparison → RadarChart
|
|
211
|
+
|
|
212
|
+
CONTENT GUIDELINES:
|
|
213
|
+
- Outside the code block, describe trends and insights found in the data
|
|
214
|
+
- Do not describe visual properties or technical implementation details
|
|
215
|
+
- Focus on what the data means, not how it's displayed`,Component:IK,Header:void 0};function lS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lm(...e){return t=>{let r=!1;const n=e.map(i=>{const a=lS(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():lS(e[i],null)}}}}function Ce(...e){return E.useCallback(lm(...e),e)}function hi(e){const t=kK(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),c=s.find(MK);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var J1=hi("Slot");function kK(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=NK(i),s=$K(a,i.props);return i.type!==E.Fragment&&(s.ref=n?lm(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Q1=Symbol("radix.slottable");function RK(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Q1,t}function MK(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Q1}function $K(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function NK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var DK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=DK.reduce((e,t)=>{const r=hi(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function LK(e,t){e&&Ys.flushSync(()=>e.dispatchEvent(t))}var eE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),BK="VisuallyHidden",tE=E.forwardRef((e,t)=>_.jsx(de.span,{...e,ref:t,style:{...eE,...e.style}}));tE.displayName=BK;var qK=tE;function FK(e,t){const r=E.createContext(t),n=a=>{const{children:o,...s}=a,c=E.useMemo(()=>s,Object.values(s));return _.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function i(a){const o=E.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function kt(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),c=r.length;r=[...r,o];const u=f=>{const{scope:d,children:h,...m}=f,p=d?.[e]?.[c]||s,v=E.useMemo(()=>m,Object.values(m));return _.jsx(p.Provider,{value:v,children:h})};u.displayName=a+"Provider";function l(f,d){const h=d?.[e]?.[c]||s,m=E.useContext(h);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,l]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const c=s?.[e]||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return i.scopeName=e,[n,zK(i,...t)]}function zK(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function fm(e){const t=e+"CollectionProvider",[r,n]=kt(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:y}=p,g=S.useRef(null),x=S.useRef(new Map).current;return _.jsx(i,{scope:v,itemMap:x,collectionRef:g,children:y})};o.displayName=t;const s=e+"CollectionSlot",c=hi(s),u=S.forwardRef((p,v)=>{const{scope:y,children:g}=p,x=a(s,y),O=Ce(v,x.collectionRef);return _.jsx(c,{ref:O,children:g})});u.displayName=s;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=hi(l),h=S.forwardRef((p,v)=>{const{scope:y,children:g,...x}=p,O=S.useRef(null),b=Ce(v,O),w=a(l,y);return S.useEffect(()=>(w.itemMap.set(O,{ref:O,...x}),()=>void w.itemMap.delete(O))),_.jsx(d,{[f]:"",ref:b,children:g})});h.displayName=l;function m(p){const v=a(e+"CollectionConsumer",p);return S.useCallback(()=>{const g=v.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((w,A)=>x.indexOf(w.ref.current)-x.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},m,n]}function he(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),r===!1||!i.defaultPrevented)return t?.(i)}}var Re=globalThis?.document?E.useLayoutEffect:()=>{},WK=E[" useInsertionEffect ".trim().toString()]||Re;function lr({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=UK({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:i;{const l=E.useRef(e!==void 0);E.useEffect(()=>{const f=l.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const u=E.useCallback(l=>{if(s){const f=HK(l)?l(e):l;f!==e&&o.current?.(f)}else a(l)},[s,e,a,o]);return[c,u]}function UK({defaultProp:e,onChange:t}){const[r,n]=E.useState(e),i=E.useRef(r),a=E.useRef(t);return WK(()=>{a.current=t},[t]),E.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}function HK(e){return typeof e=="function"}function VK(e,t){return E.useReducer((r,n)=>t[r][n]??r,e)}var Ja=e=>{const{present:t,children:r}=e,n=KK(t),i=typeof r=="function"?r({present:n.isPresent}):E.Children.only(r),a=Ce(n.ref,GK(i));return typeof r=="function"||n.isPresent?E.cloneElement(i,{ref:a}):null};Ja.displayName="Presence";function KK(e){const[t,r]=E.useState(),n=E.useRef(null),i=E.useRef(e),a=E.useRef("none"),o=e?"mounted":"unmounted",[s,c]=VK(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=Oo(n.current);a.current=s==="mounted"?u:"none"},[s]),Re(()=>{const u=n.current,l=i.current;if(l!==e){const d=a.current,h=Oo(u);e?c("MOUNT"):h==="none"||u?.display==="none"?c("UNMOUNT"):c(l&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Re(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,f=h=>{const p=Oo(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&p&&(c("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},d=h=>{h.target===t&&(a.current=Oo(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{l.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Oo(e){return e?.animationName||"none"}function GK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var YK=E[" useId ".trim().toString()]||(()=>{}),XK=0;function qr(e){const[t,r]=E.useState(YK());return Re(()=>{r(n=>n??String(XK++))},[e]),t?`radix-${t}`:""}var Ic="Collapsible",[ZK,rE]=kt(Ic),[JK,dm]=ZK(Ic),nE=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,u]=lr({prop:n,defaultProp:i??!1,onChange:o,caller:Ic});return _.jsx(JK,{scope:r,disabled:a,contentId:qr(),open:c,onOpenToggle:E.useCallback(()=>u(l=>!l),[u]),children:_.jsx(de.div,{"data-state":mm(c),"data-disabled":a?"":void 0,...s,ref:t})})});nE.displayName=Ic;var iE="CollapsibleTrigger",pm=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=dm(iE,r);return _.jsx(de.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":mm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:he(e.onClick,i.onOpenToggle)})});pm.displayName=iE;var hm="CollapsibleContent",vm=E.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=dm(hm,e.__scopeCollapsible);return _.jsx(Ja,{present:r||i.open,children:({present:a})=>_.jsx(QK,{...n,ref:t,present:a})})});vm.displayName=hm;var QK=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...a}=e,o=dm(hm,r),[s,c]=E.useState(n),u=E.useRef(null),l=Ce(t,u),f=E.useRef(0),d=f.current,h=E.useRef(0),m=h.current,p=o.open||s,v=E.useRef(p),y=E.useRef(void 0);return E.useEffect(()=>{const g=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(g)},[]),Re(()=>{const g=u.current;if(g){y.current=y.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();f.current=x.height,h.current=x.width,v.current||(g.style.transitionDuration=y.current.transitionDuration,g.style.animationName=y.current.animationName),c(n)}},[o.open,n]),_.jsx(de.div,{"data-state":mm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...a,ref:l,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:p&&i})});function mm(e){return e?"open":"closed"}var aE=nE,e5=pm,t5=vm,r5=E.createContext(void 0);function kc(e){const t=E.useContext(r5);return e||t||"ltr"}var Rt="Accordion",n5=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ym,i5,a5]=fm(Rt),[Rc]=kt(Rt,[a5,rE]),gm=rE(),oE=S.forwardRef((e,t)=>{const{type:r,...n}=e,i=n,a=n;return _.jsx(ym.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?_.jsx(u5,{...a,ref:t}):_.jsx(c5,{...i,ref:t})})});oE.displayName=Rt;var[sE,o5]=Rc(Rt),[cE,s5]=Rc(Rt,{collapsible:!1}),c5=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=lr({prop:r,defaultProp:n??"",onChange:i,caller:Rt});return _.jsx(sE,{scope:e.__scopeAccordion,value:S.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:S.useCallback(()=>a&&c(""),[a,c]),children:_.jsx(cE,{scope:e.__scopeAccordion,collapsible:a,children:_.jsx(uE,{...o,ref:t})})})}),u5=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=e,[o,s]=lr({prop:r,defaultProp:n??[],onChange:i,caller:Rt}),c=S.useCallback(l=>s((f=[])=>[...f,l]),[s]),u=S.useCallback(l=>s((f=[])=>f.filter(d=>d!==l)),[s]);return _.jsx(sE,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:_.jsx(cE,{scope:e.__scopeAccordion,collapsible:!0,children:_.jsx(uE,{...a,ref:t})})})}),[l5,Mc]=Rc(Rt),uE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:i,orientation:a="vertical",...o}=e,s=S.useRef(null),c=Ce(s,t),u=i5(r),f=kc(i)==="ltr",d=he(e.onKeyDown,h=>{if(!n5.includes(h.key))return;const m=h.target,p=u().filter(P=>!P.ref.current?.disabled),v=p.findIndex(P=>P.ref.current===m),y=p.length;if(v===-1)return;h.preventDefault();let g=v;const x=0,O=y-1,b=()=>{g=v+1,g>O&&(g=x)},w=()=>{g=v-1,g<x&&(g=O)};switch(h.key){case"Home":g=x;break;case"End":g=O;break;case"ArrowRight":a==="horizontal"&&(f?b():w());break;case"ArrowDown":a==="vertical"&&b();break;case"ArrowLeft":a==="horizontal"&&(f?w():b());break;case"ArrowUp":a==="vertical"&&w();break}const A=g%y;p[A].ref.current?.focus()});return _.jsx(l5,{scope:r,disabled:n,direction:i,orientation:a,children:_.jsx(ym.Slot,{scope:r,children:_.jsx(de.div,{...o,"data-orientation":a,ref:c,onKeyDown:n?void 0:d})})})}),Fs="AccordionItem",[f5,bm]=Rc(Fs),lE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...i}=e,a=Mc(Fs,r),o=o5(Fs,r),s=gm(r),c=qr(),u=n&&o.value.includes(n)||!1,l=a.disabled||e.disabled;return _.jsx(f5,{scope:r,open:u,disabled:l,triggerId:c,children:_.jsx(aE,{"data-orientation":a.orientation,"data-state":mE(u),...s,...i,ref:t,disabled:l,open:u,onOpenChange:f=>{f?o.onItemOpen(n):o.onItemClose(n)}})})});lE.displayName=Fs;var fE="AccordionHeader",dE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Mc(Rt,r),a=bm(fE,r);return _.jsx(de.h3,{"data-orientation":i.orientation,"data-state":mE(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});dE.displayName=fE;var Fh="AccordionTrigger",pE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Mc(Rt,r),a=bm(Fh,r),o=s5(Fh,r),s=gm(r);return _.jsx(ym.ItemSlot,{scope:r,children:_.jsx(e5,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...n,ref:t})})});pE.displayName=Fh;var hE="AccordionContent",vE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Mc(Rt,r),a=bm(hE,r),o=gm(r);return _.jsx(t5,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});vE.displayName=hE;function mE(e){return e?"open":"closed"}var d5=oE,p5=lE,h5=dE,v5=pE,m5=vE;function zt(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...r)=>t.current?.(...r),[])}function y5(e,t=globalThis?.document){const r=zt(e);E.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var g5="DismissableLayer",zh="dismissableLayer.update",b5="dismissableLayer.pointerDownOutside",x5="dismissableLayer.focusOutside",fS,yE=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xm=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,u=E.useContext(yE),[l,f]=E.useState(null),d=l?.ownerDocument??globalThis?.document,[,h]=E.useState({}),m=Ce(t,A=>f(A)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),g=l?p.indexOf(l):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,O=g>=y,b=S5(A=>{const P=A.target,T=[...u.branches].some(k=>k.contains(P));!O||T||(i?.(A),o?.(A),A.defaultPrevented||s?.())},d),w=A5(A=>{const P=A.target;[...u.branches].some(k=>k.contains(P))||(a?.(A),o?.(A),A.defaultPrevented||s?.())},d);return y5(A=>{g===u.layers.size-1&&(n?.(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},d),E.useEffect(()=>{if(l)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fS=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),dS(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=fS)}},[l,d,r,u]),E.useEffect(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),dS())},[l,u]),E.useEffect(()=>{const A=()=>h({});return document.addEventListener(zh,A),()=>document.removeEventListener(zh,A)},[]),_.jsx(de.div,{...c,ref:m,style:{pointerEvents:x?O?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,w.onFocusCapture),onBlurCapture:he(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,b.onPointerDownCapture)})});xm.displayName=g5;var w5="DismissableLayerBranch",O5=E.forwardRef((e,t)=>{const r=E.useContext(yE),n=E.useRef(null),i=Ce(t,n);return E.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),_.jsx(de.div,{...e,ref:i})});O5.displayName=w5;function S5(e,t=globalThis?.document){const r=zt(e),n=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){gE(b5,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function A5(e,t=globalThis?.document){const r=zt(e),n=E.useRef(!1);return E.useEffect(()=>{const i=a=>{a.target&&!n.current&&gE(x5,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function dS(){const e=new CustomEvent(zh);document.dispatchEvent(e)}function gE(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?LK(i,a):i.dispatchEvent(a)}var np="focusScope.autoFocusOnMount",ip="focusScope.autoFocusOnUnmount",pS={bubbles:!1,cancelable:!0},_5="FocusScope",wm=E.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=E.useState(null),u=zt(i),l=zt(a),f=E.useRef(null),d=Ce(t,p=>c(p)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(n){let p=function(x){if(h.paused||!s)return;const O=x.target;s.contains(O)?f.current=O:xr(f.current,{select:!0})},v=function(x){if(h.paused||!s)return;const O=x.relatedTarget;O!==null&&(s.contains(O)||xr(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const b of x)b.removedNodes.length>0&&xr(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const g=new MutationObserver(y);return s&&g.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),g.disconnect()}}},[n,s,h.paused]),E.useEffect(()=>{if(s){vS.add(h);const p=document.activeElement;if(!s.contains(p)){const y=new CustomEvent(np,pS);s.addEventListener(np,u),s.dispatchEvent(y),y.defaultPrevented||(P5(I5(bE(s)),{select:!0}),document.activeElement===p&&xr(s))}return()=>{s.removeEventListener(np,u),setTimeout(()=>{const y=new CustomEvent(ip,pS);s.addEventListener(ip,l),s.dispatchEvent(y),y.defaultPrevented||xr(p??document.body,{select:!0}),s.removeEventListener(ip,l),vS.remove(h)},0)}}},[s,u,l,h]);const m=E.useCallback(p=>{if(!r&&!n||h.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const g=p.currentTarget,[x,O]=E5(g);x&&O?!p.shiftKey&&y===O?(p.preventDefault(),r&&xr(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),r&&xr(O,{select:!0})):y===g&&p.preventDefault()}},[r,n,h.paused]);return _.jsx(de.div,{tabIndex:-1,...o,ref:d,onKeyDown:m})});wm.displayName=_5;function P5(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(xr(n,{select:t}),document.activeElement!==r)return}function E5(e){const t=bE(e),r=hS(t,e),n=hS(t.reverse(),e);return[r,n]}function bE(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function hS(e,t){for(const r of e)if(!T5(r,{upTo:t}))return r}function T5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function C5(e){return e instanceof HTMLInputElement&&"select"in e}function xr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&C5(e)&&t&&e.select()}}var vS=j5();function j5(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=mS(e,t),e.unshift(t)},remove(t){e=mS(e,t),e[0]?.resume()}}}function mS(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function I5(e){return e.filter(t=>t.tagName!=="A")}var k5="Portal",Om=E.forwardRef((e,t)=>{const{container:r,...n}=e,[i,a]=E.useState(!1);Re(()=>a(!0),[]);const o=r||i&&globalThis?.document?.body;return o?HS.createPortal(_.jsx(de.div,{...n,ref:t}),o):null});Om.displayName=k5;var ap=0;function xE(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yS()),document.body.insertAdjacentElement("beforeend",e[1]??yS()),ap++,()=>{ap===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ap--}},[])}function yS(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Mt=function(){return Mt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Mt.apply(this,arguments)};function wE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function R5(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var jo="right-scroll-bar-position",Io="width-before-scroll-bar",M5="with-scroll-bars-hidden",$5="--removed-body-scroll-bar-size";function op(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function N5(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var D5=typeof window<"u"?E.useLayoutEffect:E.useEffect,gS=new WeakMap;function L5(e,t){var r=N5(null,function(n){return e.forEach(function(i){return op(i,n)})});return D5(function(){var n=gS.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;i.forEach(function(s){a.has(s)||op(s,null)}),a.forEach(function(s){i.has(s)||op(s,o)})}gS.set(r,e)},[e]),r}function B5(e){return e}function q5(e,t){t===void 0&&(t=B5);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var c=function(){var l=o;o=[],l.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(l){o.push(l),u()},filter:function(l){return o=o.filter(l),r}}}};return i}function F5(e){e===void 0&&(e={});var t=q5(null);return t.options=Mt({async:!0,ssr:!1},e),t}var OE=function(e){var t=e.sideCar,r=wE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return E.createElement(n,Mt({},r))};OE.isSideCarExport=!0;function z5(e,t){return e.useMedium(t),OE}var SE=F5(),sp=function(){},$c=E.forwardRef(function(e,t){var r=E.useRef(null),n=E.useState({onScrollCapture:sp,onWheelCapture:sp,onTouchMoveCapture:sp}),i=n[0],a=n[1],o=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,l=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,m=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,x=e.gapMode,O=wE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=d,w=L5([r,t]),A=Mt(Mt({},O),i);return E.createElement(E.Fragment,null,l&&E.createElement(b,{sideCar:SE,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:x}),o?E.cloneElement(E.Children.only(s),Mt(Mt({},A),{ref:w})):E.createElement(g,Mt({},A,{className:c,ref:w}),s))});$c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$c.classNames={fullWidth:Io,zeroRight:jo};var W5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function U5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=W5();return t&&e.setAttribute("nonce",t),e}function H5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function V5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var K5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=U5())&&(H5(t,r),V5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},G5=function(){var e=K5();return function(t,r){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},AE=function(){var e=G5(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},Y5={left:0,top:0,right:0,gap:0},cp=function(e){return parseInt(e||"",10)||0},X5=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[cp(r),cp(n),cp(i)]},Z5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Y5;var t=X5(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},J5=AE(),$n="data-scroll-locked",Q5=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
216
|
+
.`.concat(M5,` {
|
|
217
|
+
overflow: hidden `).concat(n,`;
|
|
218
|
+
padding-right: `).concat(s,"px ").concat(n,`;
|
|
219
|
+
}
|
|
220
|
+
body[`).concat($n,`] {
|
|
221
|
+
overflow: hidden `).concat(n,`;
|
|
222
|
+
overscroll-behavior: contain;
|
|
223
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
224
|
+
padding-left: `.concat(i,`px;
|
|
225
|
+
padding-top: `).concat(a,`px;
|
|
226
|
+
padding-right: `).concat(o,`px;
|
|
227
|
+
margin-left:0;
|
|
228
|
+
margin-top:0;
|
|
229
|
+
margin-right: `).concat(s,"px ").concat(n,`;
|
|
230
|
+
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.`).concat(jo,` {
|
|
234
|
+
right: `).concat(s,"px ").concat(n,`;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.`).concat(Io,` {
|
|
238
|
+
margin-right: `).concat(s,"px ").concat(n,`;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.`).concat(jo," .").concat(jo,` {
|
|
242
|
+
right: 0 `).concat(n,`;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.`).concat(Io," .").concat(Io,` {
|
|
246
|
+
margin-right: 0 `).concat(n,`;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
body[`).concat($n,`] {
|
|
250
|
+
`).concat($5,": ").concat(s,`px;
|
|
251
|
+
}
|
|
252
|
+
`)},bS=function(){var e=parseInt(document.body.getAttribute($n)||"0",10);return isFinite(e)?e:0},eG=function(){E.useEffect(function(){return document.body.setAttribute($n,(bS()+1).toString()),function(){var e=bS()-1;e<=0?document.body.removeAttribute($n):document.body.setAttribute($n,e.toString())}},[])},tG=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;eG();var a=E.useMemo(function(){return Z5(i)},[i]);return E.createElement(J5,{styles:Q5(a,!t,i,r?"":"!important")})},Wh=!1;if(typeof window<"u")try{var So=Object.defineProperty({},"passive",{get:function(){return Wh=!0,!0}});window.addEventListener("test",So,So),window.removeEventListener("test",So,So)}catch{Wh=!1}var An=Wh?{passive:!1}:!1,rG=function(e){return e.tagName==="TEXTAREA"},_E=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!rG(e)&&r[t]==="visible")},nG=function(e){return _E(e,"overflowY")},iG=function(e){return _E(e,"overflowX")},xS=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=PE(e,n);if(i){var a=EE(e,n),o=a[1],s=a[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},aG=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},oG=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},PE=function(e,t){return e==="v"?nG(t):iG(t)},EE=function(e,t){return e==="v"?aG(t):oG(t)},sG=function(e,t){return e==="h"&&t==="rtl"?-1:1},cG=function(e,t,r,n,i){var a=sG(e,window.getComputedStyle(t).direction),o=a*n,s=r.target,c=t.contains(s),u=!1,l=o>0,f=0,d=0;do{if(!s)break;var h=EE(e,s),m=h[0],p=h[1],v=h[2],y=p-v-a*m;(m||y)&&PE(e,s)&&(f+=y,d+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(l&&Math.abs(f)<1||!l&&Math.abs(d)<1)&&(u=!0),u},Ao=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wS=function(e){return[e.deltaX,e.deltaY]},OS=function(e){return e&&"current"in e?e.current:e},uG=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lG=function(e){return`
|
|
253
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
254
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
255
|
+
`)},fG=0,_n=[];function dG(e){var t=E.useRef([]),r=E.useRef([0,0]),n=E.useRef(),i=E.useState(fG++)[0],a=E.useState(AE)[0],o=E.useRef(e);E.useEffect(function(){o.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=R5([e.lockRef.current],(e.shards||[]).map(OS),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=E.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=Ao(p),g=r.current,x="deltaX"in p?p.deltaX:g[0]-y[0],O="deltaY"in p?p.deltaY:g[1]-y[1],b,w=p.target,A=Math.abs(x)>Math.abs(O)?"h":"v";if("touches"in p&&A==="h"&&w.type==="range")return!1;var P=xS(A,w);if(!P)return!0;if(P?b=A:(b=A==="v"?"h":"v",P=xS(A,w)),!P)return!1;if(!n.current&&"changedTouches"in p&&(x||O)&&(n.current=b),!b)return!0;var T=n.current||b;return cG(T,v,p,T==="h"?x:O)},[]),c=E.useCallback(function(p){var v=p;if(!(!_n.length||_n[_n.length-1]!==a)){var y="deltaY"in v?wS(v):Ao(v),g=t.current.filter(function(b){return b.name===v.type&&(b.target===v.target||v.target===b.shadowParent)&&uG(b.delta,y)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}if(!g){var x=(o.current.shards||[]).map(OS).filter(Boolean).filter(function(b){return b.contains(v.target)}),O=x.length>0?s(v,x[0]):!o.current.noIsolation;O&&v.cancelable&&v.preventDefault()}}},[]),u=E.useCallback(function(p,v,y,g){var x={name:p,delta:v,target:y,should:g,shadowParent:pG(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(O){return O!==x})},1)},[]),l=E.useCallback(function(p){r.current=Ao(p),n.current=void 0},[]),f=E.useCallback(function(p){u(p.type,wS(p),p.target,s(p,e.lockRef.current))},[]),d=E.useCallback(function(p){u(p.type,Ao(p),p.target,s(p,e.lockRef.current))},[]);E.useEffect(function(){return _n.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,An),document.addEventListener("touchmove",c,An),document.addEventListener("touchstart",l,An),function(){_n=_n.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,An),document.removeEventListener("touchmove",c,An),document.removeEventListener("touchstart",l,An)}},[]);var h=e.removeScrollBar,m=e.inert;return E.createElement(E.Fragment,null,m?E.createElement(a,{styles:lG(i)}):null,h?E.createElement(tG,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function pG(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const hG=z5(SE,dG);var Sm=E.forwardRef(function(e,t){return E.createElement($c,Mt({},e,{ref:t,sideCar:hG}))});Sm.classNames=$c.classNames;var vG=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pn=new WeakMap,_o=new WeakMap,Po={},up=0,TE=function(e){return e&&(e.host||TE(e.parentNode))},mG=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=TE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},yG=function(e,t,r,n){var i=mG(t,Array.isArray(e)?e:[e]);Po[r]||(Po[r]=new WeakMap);var a=Po[r],o=[],s=new Set,c=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var l=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))l(d);else try{var h=d.getAttribute(n),m=h!==null&&h!=="false",p=(Pn.get(d)||0)+1,v=(a.get(d)||0)+1;Pn.set(d,p),a.set(d,v),o.push(d),p===1&&m&&_o.set(d,!0),v===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return l(t),s.clear(),up++,function(){o.forEach(function(f){var d=Pn.get(f)-1,h=a.get(f)-1;Pn.set(f,d),a.set(f,h),d||(_o.has(f)||f.removeAttribute(n),_o.delete(f)),h||f.removeAttribute(r)}),up--,up||(Pn=new WeakMap,Pn=new WeakMap,_o=new WeakMap,Po={})}},CE=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=vG(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),yG(n,i,r,"aria-hidden")):function(){return null}},Eo={exports:{}},lp={};var SS;function gG(){if(SS)return lp;SS=1;var e=S;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(f,d){var h=d(),m=n({inst:{value:h,getSnapshot:d}}),p=m[0].inst,v=m[1];return a(function(){p.value=h,p.getSnapshot=d,c(p)&&v({inst:p})},[f,h,d]),i(function(){return c(p)&&v({inst:p}),f(function(){c(p)&&v({inst:p})})},[f]),o(h),h}function c(f){var d=f.getSnapshot;f=f.value;try{var h=d();return!r(f,h)}catch{return!0}}function u(f,d){return d()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return lp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,lp}var fp={};var AS;function bG(){return AS||(AS=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){l||i.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=m();if(!f){var v=m();a(p,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=o({inst:{value:p,getSnapshot:m}});var y=v[0].inst,g=v[1];return c(function(){y.value=p,y.getSnapshot=m,r(y)&&g({inst:y})},[h,p,m]),s(function(){return r(y)&&g({inst:y}),h(function(){r(y)&&g({inst:y})})},[h]),u(p),p}function r(h){var m=h.getSnapshot;h=h.value;try{var p=m();return!a(h,p)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=S,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,c=i.useLayoutEffect,u=i.useDebugValue,l=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;fp.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),fp}var _S;function xG(){return _S||(_S=1,process.env.NODE_ENV==="production"?Eo.exports=gG():Eo.exports=bG()),Eo.exports}var wG=xG();function jE(){return wG.useSyncExternalStore(OG,()=>!0,()=>!1)}function OG(){return()=>{}}var Am="Avatar",[SG]=kt(Am),[AG,IE]=SG(Am),kE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[i,a]=E.useState("idle");return _.jsx(AG,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:_.jsx(de.span,{...n,ref:t})})});kE.displayName=Am;var RE="AvatarImage",ME=E.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...a}=e,o=IE(RE,r),s=_G(n,a),c=zt(u=>{i(u),o.onImageLoadingStatusChange(u)});return Re(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?_.jsx(de.img,{...a,ref:t,src:n}):null});ME.displayName=RE;var $E="AvatarFallback",NE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...i}=e,a=IE($E,r),[o,s]=E.useState(n===void 0);return E.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(c)}},[n]),o&&a.imageLoadingStatus!=="loaded"?_.jsx(de.span,{...i,ref:t}):null});NE.displayName=$E;function PS(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function _G(e,{referrerPolicy:t,crossOrigin:r}){const n=jE(),i=E.useRef(null),a=n?(i.current||(i.current=new window.Image),i.current):null,[o,s]=E.useState(()=>PS(a,e));return Re(()=>{s(PS(a,e))},[a,e]),Re(()=>{const c=f=>()=>{s(f)};if(!a)return;const u=c("loaded"),l=c("error");return a.addEventListener("load",u),a.addEventListener("error",l),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",l)}},[a,r,t]),o}var PG=kE,EG=ME,TG=NE;function DE(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function LE(e){const[t,r]=E.useState(void 0);return Re(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Nc="Checkbox",[CG]=kt(Nc),[jG,_m]=CG(Nc);function IG(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:u,value:l="on",internal_do_not_use_render:f}=e,[d,h]=lr({prop:r,defaultProp:i??!1,onChange:c,caller:Nc}),[m,p]=E.useState(null),[v,y]=E.useState(null),g=E.useRef(!1),x=m?!!o||!!m.closest("form"):!0,O={checked:d,disabled:a,setChecked:h,control:m,setControl:p,name:s,form:o,value:l,hasConsumerStoppedPropagationRef:g,required:u,defaultChecked:Tr(i)?!1:i,isFormControl:x,bubbleInput:v,setBubbleInput:y};return _.jsx(jG,{scope:t,...O,children:kG(f)?f(O):n})}var BE="CheckboxTrigger",qE=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:a,value:o,disabled:s,checked:c,required:u,setControl:l,setChecked:f,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:m}=_m(BE,e),p=Ce(i,l),v=E.useRef(c);return E.useEffect(()=>{const y=a?.form;if(y){const g=()=>f(v.current);return y.addEventListener("reset",g),()=>y.removeEventListener("reset",g)}},[a,f]),_.jsx(de.button,{type:"button",role:"checkbox","aria-checked":Tr(c)?"mixed":c,"aria-required":u,"data-state":VE(c),"data-disabled":s?"":void 0,disabled:s,value:o,...n,ref:p,onKeyDown:he(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:he(r,y=>{f(g=>Tr(g)?!0:!g),m&&h&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})})});qE.displayName=BE;var FE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:u,form:l,...f}=e;return _.jsx(IG,{__scopeCheckbox:r,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:u,name:n,form:l,value:c,internal_do_not_use_render:({isFormControl:d})=>_.jsxs(_.Fragment,{children:[_.jsx(qE,{...f,ref:t,__scopeCheckbox:r}),d&&_.jsx(HE,{__scopeCheckbox:r})]})})});FE.displayName=Nc;var zE="CheckboxIndicator",WE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,a=_m(zE,r);return _.jsx(Ja,{present:n||Tr(a.checked)||a.checked===!0,children:_.jsx(de.span,{"data-state":VE(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});WE.displayName=zE;var UE="CheckboxBubbleInput",HE=E.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:u,value:l,form:f,bubbleInput:d,setBubbleInput:h}=_m(UE,e),m=Ce(r,h),p=DE(a),v=LE(n);E.useEffect(()=>{const g=d;if(!g)return;const x=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(x,"checked").set,w=!i.current;if(p!==a&&b){const A=new Event("click",{bubbles:w});g.indeterminate=Tr(a),b.call(g,Tr(a)?!1:a),g.dispatchEvent(A)}},[d,p,a,i]);const y=E.useRef(Tr(a)?!1:a);return _.jsx(de.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:s,disabled:c,name:u,value:l,form:f,...t,tabIndex:-1,ref:m,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});HE.displayName=UE;function kG(e){return typeof e=="function"}function Tr(e){return e==="indeterminate"}function VE(e){return Tr(e)?"indeterminate":e?"checked":"unchecked"}const RG=["top","right","bottom","left"],jr=Math.min,ot=Math.max,zs=Math.round,To=Math.floor,qt=e=>({x:e,y:e}),MG={left:"right",right:"left",bottom:"top",top:"bottom"},$G={start:"end",end:"start"};function Uh(e,t,r){return ot(e,jr(t,r))}function fr(e,t){return typeof e=="function"?e(t):e}function dr(e){return e.split("-")[0]}function Ci(e){return e.split("-")[1]}function Pm(e){return e==="x"?"y":"x"}function Em(e){return e==="y"?"height":"width"}const NG=new Set(["top","bottom"]);function Dt(e){return NG.has(dr(e))?"y":"x"}function Tm(e){return Pm(Dt(e))}function DG(e,t,r){r===void 0&&(r=!1);const n=Ci(e),i=Tm(e),a=Em(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Ws(o)),[o,Ws(o)]}function LG(e){const t=Ws(e);return[Hh(e),t,Hh(t)]}function Hh(e){return e.replace(/start|end/g,t=>$G[t])}const ES=["left","right"],TS=["right","left"],BG=["top","bottom"],qG=["bottom","top"];function FG(e,t,r){switch(e){case"top":case"bottom":return r?t?TS:ES:t?ES:TS;case"left":case"right":return t?BG:qG;default:return[]}}function zG(e,t,r,n){const i=Ci(e);let a=FG(dr(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Hh)))),a}function Ws(e){return e.replace(/left|right|bottom|top/g,t=>MG[t])}function WG(e){return{top:0,right:0,bottom:0,left:0,...e}}function KE(e){return typeof e!="number"?WG(e):{top:e,right:e,bottom:e,left:e}}function Us(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function CS(e,t,r){let{reference:n,floating:i}=e;const a=Dt(t),o=Tm(t),s=Em(o),c=dr(t),u=a==="y",l=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(c){case"top":h={x:l,y:n.y-i.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Ci(t)){case"start":h[o]-=d*(r&&u?-1:1);break;case"end":h[o]+=d*(r&&u?-1:1);break}return h}const UG=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:f}=CS(u,n,c),d=n,h={},m=0;for(let p=0;p<s.length;p++){const{name:v,fn:y}=s[p],{x:g,y:x,data:O,reset:b}=await y({x:l,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});l=g??l,f=x??f,h={...h,[v]:{...h[v],...O}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(u=b.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:l,y:f}=CS(u,d,c)),p=-1)}return{x:l,y:f,placement:d,strategy:i,middlewareData:h}};async function La(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=fr(t,e),m=KE(h),v=s[d?f==="floating"?"reference":"floating":f],y=Us(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),g=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),O=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},b=Us(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:x,strategy:c}):g);return{top:(y.top-b.top+m.top)/O.y,bottom:(b.bottom-y.bottom+m.bottom)/O.y,left:(y.left-b.left+m.left)/O.x,right:(b.right-y.right+m.right)/O.x}}const HG=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=fr(e,t)||{};if(u==null)return{};const f=KE(l),d={x:r,y:n},h=Tm(i),m=Em(h),p=await o.getDimensions(u),v=h==="y",y=v?"top":"left",g=v?"bottom":"right",x=v?"clientHeight":"clientWidth",O=a.reference[m]+a.reference[h]-d[h]-a.floating[m],b=d[h]-a.reference[h],w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let A=w?w[x]:0;(!A||!await(o.isElement==null?void 0:o.isElement(w)))&&(A=s.floating[x]||a.floating[m]);const P=O/2-b/2,T=A/2-p[m]/2-1,k=jr(f[y],T),C=jr(f[g],T),j=k,R=A-p[m]-C,$=A/2-p[m]/2+P,N=Uh(j,$,R),M=!c.arrow&&Ci(i)!=null&&$!==N&&a.reference[m]/2-($<j?k:C)-p[m]/2<0,D=M?$<j?$-j:$-R:0;return{[h]:d[h]+D,data:{[h]:N,centerOffset:$-N-D,...M&&{alignmentOffset:D}},reset:M}}}),VG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...v}=fr(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=dr(i),g=Dt(s),x=dr(s)===s,O=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=d||(x||!p?[Ws(s)]:LG(s)),w=m!=="none";!d&&w&&b.push(...zG(s,p,m,O));const A=[s,...b],P=await La(t,v),T=[];let k=((n=a.flip)==null?void 0:n.overflows)||[];if(l&&T.push(P[y]),f){const $=DG(i,o,O);T.push(P[$[0]],P[$[1]])}if(k=[...k,{placement:i,overflows:T}],!T.every($=>$<=0)){var C,j;const $=(((C=a.flip)==null?void 0:C.index)||0)+1,N=A[$];if(N&&(!(f==="alignment"?g!==Dt(N):!1)||k.every(B=>Dt(B.placement)===g?B.overflows[0]>0:!0)))return{data:{index:$,overflows:k},reset:{placement:N}};let M=(j=k.filter(D=>D.overflows[0]<=0).sort((D,B)=>D.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!M)switch(h){case"bestFit":{var R;const D=(R=k.filter(B=>{if(w){const W=Dt(B.placement);return W===g||W==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,I)=>W+I,0)]).sort((B,W)=>B[1]-W[1])[0])==null?void 0:R[0];D&&(M=D);break}case"initialPlacement":M=s;break}if(i!==M)return{reset:{placement:M}}}return{}}}};function jS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function IS(e){return RG.some(t=>e[t]>=0)}const KG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=fr(e,t);switch(n){case"referenceHidden":{const a=await La(t,{...i,elementContext:"reference"}),o=jS(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:IS(o)}}}case"escaped":{const a=await La(t,{...i,altBoundary:!0}),o=jS(a,r.floating);return{data:{escapedOffsets:o,escaped:IS(o)}}}default:return{}}}}},GE=new Set(["left","top"]);async function GG(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=dr(r),s=Ci(r),c=Dt(r)==="y",u=GE.has(o)?-1:1,l=a&&c?-1:1,f=fr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*l,y:d*u}:{x:d*u,y:h*l}}const YG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:s}=t,c=await GG(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},XG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:y,y:g}=v;return{x:y,y:g}}},...c}=fr(e,t),u={x:r,y:n},l=await La(t,c),f=Dt(dr(i)),d=Pm(f);let h=u[d],m=u[f];if(a){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",g=h+l[v],x=h-l[y];h=Uh(g,h,x)}if(o){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",g=m+l[v],x=m-l[y];m=Uh(g,m,x)}const p=s.fn({...t,[d]:h,[f]:m});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[d]:a,[f]:o}}}}}},ZG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=fr(e,t),l={x:r,y:n},f=Dt(i),d=Pm(f);let h=l[d],m=l[f];const p=fr(s,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=d==="y"?"height":"width",O=a.reference[d]-a.floating[x]+v.mainAxis,b=a.reference[d]+a.reference[x]-v.mainAxis;h<O?h=O:h>b&&(h=b)}if(u){var y,g;const x=d==="y"?"width":"height",O=GE.has(dr(i)),b=a.reference[f]-a.floating[x]+(O&&((y=o.offset)==null?void 0:y[f])||0)+(O?0:v.crossAxis),w=a.reference[f]+a.reference[x]+(O?0:((g=o.offset)==null?void 0:g[f])||0)-(O?v.crossAxis:0);m<b?m=b:m>w&&(m=w)}return{[d]:h,[f]:m}}}},JG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...u}=fr(e,t),l=await La(t,u),f=dr(i),d=Ci(i),h=Dt(i)==="y",{width:m,height:p}=a.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=f,v=d==="end"?"top":"bottom");const g=p-l.top-l.bottom,x=m-l.left-l.right,O=jr(p-l[v],g),b=jr(m-l[y],x),w=!t.middlewareData.shift;let A=O,P=b;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=g),w&&!d){const k=ot(l.left,0),C=ot(l.right,0),j=ot(l.top,0),R=ot(l.bottom,0);h?P=m-2*(k!==0||C!==0?k+C:ot(l.left,l.right)):A=p-2*(j!==0||R!==0?j+R:ot(l.top,l.bottom))}await c({...t,availableWidth:P,availableHeight:A});const T=await o.getDimensions(s.floating);return m!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Dc(){return typeof window<"u"}function ji(e){return YE(e)?(e.nodeName||"").toLowerCase():"#document"}function ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gt(e){var t;return(t=(YE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function YE(e){return Dc()?e instanceof Node||e instanceof ut(e).Node:!1}function Ct(e){return Dc()?e instanceof Element||e instanceof ut(e).Element:!1}function Wt(e){return Dc()?e instanceof HTMLElement||e instanceof ut(e).HTMLElement:!1}function kS(e){return!Dc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ut(e).ShadowRoot}const QG=new Set(["inline","contents"]);function Qa(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!QG.has(i)}const e8=new Set(["table","td","th"]);function t8(e){return e8.has(ji(e))}const r8=[":popover-open",":modal"];function Lc(e){return r8.some(t=>{try{return e.matches(t)}catch{return!1}})}const n8=["transform","translate","scale","rotate","perspective"],i8=["transform","translate","scale","rotate","perspective","filter"],a8=["paint","layout","strict","content"];function Cm(e){const t=jm(),r=Ct(e)?jt(e):e;return n8.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||i8.some(n=>(r.willChange||"").includes(n))||a8.some(n=>(r.contain||"").includes(n))}function o8(e){let t=Ir(e);for(;Wt(t)&&!vi(t);){if(Cm(t))return t;if(Lc(t))return null;t=Ir(t)}return null}function jm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const s8=new Set(["html","body","#document"]);function vi(e){return s8.has(ji(e))}function jt(e){return ut(e).getComputedStyle(e)}function Bc(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ir(e){if(ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kS(e)&&e.host||Gt(e);return kS(t)?t.host:t}function XE(e){const t=Ir(e);return vi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wt(t)&&Qa(t)?t:XE(t)}function Ba(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=XE(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=ut(i);if(a){const s=Vh(o);return t.concat(o,o.visualViewport||[],Qa(i)?i:[],s&&r?Ba(s):[])}return t.concat(i,Ba(i,[],r))}function Vh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ZE(e){const t=jt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Wt(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=zs(r)!==a||zs(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function Im(e){return Ct(e)?e:e.contextElement}function Nn(e){const t=Im(e);if(!Wt(t))return qt(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=ZE(t);let o=(a?zs(r.width):r.width)/n,s=(a?zs(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const c8=qt(0);function JE(e){const t=ut(e);return!jm()||!t.visualViewport?c8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function u8(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ut(e)?!1:t}function un(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=Im(e);let o=qt(1);t&&(n?Ct(n)&&(o=Nn(n)):o=Nn(e));const s=u8(a,r,n)?JE(a):qt(0);let c=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,l=i.width/o.x,f=i.height/o.y;if(a){const d=ut(a),h=n&&Ct(n)?ut(n):n;let m=d,p=Vh(m);for(;p&&n&&h!==m;){const v=Nn(p),y=p.getBoundingClientRect(),g=jt(p),x=y.left+(p.clientLeft+parseFloat(g.paddingLeft))*v.x,O=y.top+(p.clientTop+parseFloat(g.paddingTop))*v.y;c*=v.x,u*=v.y,l*=v.x,f*=v.y,c+=x,u+=O,m=ut(p),p=Vh(m)}}return Us({width:l,height:f,x:c,y:u})}function km(e,t){const r=Bc(e).scrollLeft;return t?t.left+r:un(Gt(e)).left+r}function QE(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:km(e,n)),a=n.top+t.scrollTop;return{x:i,y:a}}function l8(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=Gt(n),s=t?Lc(t.floating):!1;if(n===o||s&&a)return r;let c={scrollLeft:0,scrollTop:0},u=qt(1);const l=qt(0),f=Wt(n);if((f||!f&&!a)&&((ji(n)!=="body"||Qa(o))&&(c=Bc(n)),Wt(n))){const h=un(n);u=Nn(n),l.x=h.x+n.clientLeft,l.y=h.y+n.clientTop}const d=o&&!f&&!a?QE(o,c,!0):qt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+d.x,y:r.y*u.y-c.scrollTop*u.y+l.y+d.y}}function f8(e){return Array.from(e.getClientRects())}function d8(e){const t=Gt(e),r=Bc(e),n=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ot(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+km(e);const s=-r.scrollTop;return jt(n).direction==="rtl"&&(o+=ot(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}function p8(e,t){const r=ut(e),n=Gt(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;const u=jm();(!u||u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}const h8=new Set(["absolute","fixed"]);function v8(e,t){const r=un(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Wt(e)?Nn(e):qt(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,u=n*a.y;return{width:o,height:s,x:c,y:u}}function RS(e,t,r){let n;if(t==="viewport")n=p8(e,r);else if(t==="document")n=d8(Gt(e));else if(Ct(t))n=v8(t,r);else{const i=JE(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Us(n)}function eT(e,t){const r=Ir(e);return r===t||!Ct(r)||vi(r)?!1:jt(r).position==="fixed"||eT(r,t)}function m8(e,t){const r=t.get(e);if(r)return r;let n=Ba(e,[],!1).filter(s=>Ct(s)&&ji(s)!=="body"),i=null;const a=jt(e).position==="fixed";let o=a?Ir(e):e;for(;Ct(o)&&!vi(o);){const s=jt(o),c=Cm(o);!c&&s.position==="fixed"&&(i=null),(a?!c&&!i:!c&&s.position==="static"&&!!i&&h8.has(i.position)||Qa(o)&&!c&&eT(e,o))?n=n.filter(l=>l!==o):i=s,o=Ir(o)}return t.set(e,n),n}function y8(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Lc(t)?[]:m8(t,this._c):[].concat(r),n],s=o[0],c=o.reduce((u,l)=>{const f=RS(t,l,i);return u.top=ot(f.top,u.top),u.right=jr(f.right,u.right),u.bottom=jr(f.bottom,u.bottom),u.left=ot(f.left,u.left),u},RS(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function g8(e){const{width:t,height:r}=ZE(e);return{width:t,height:r}}function b8(e,t,r){const n=Wt(t),i=Gt(t),a=r==="fixed",o=un(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=qt(0);function u(){c.x=km(i)}if(n||!n&&!a)if((ji(t)!=="body"||Qa(i))&&(s=Bc(t)),n){const h=un(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();a&&!n&&i&&u();const l=i&&!n&&!a?QE(i,s):qt(0),f=o.left+s.scrollLeft-c.x-l.x,d=o.top+s.scrollTop-c.y-l.y;return{x:f,y:d,width:o.width,height:o.height}}function dp(e){return jt(e).position==="static"}function MS(e,t){if(!Wt(e)||jt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Gt(e)===r&&(r=r.ownerDocument.body),r}function tT(e,t){const r=ut(e);if(Lc(e))return r;if(!Wt(e)){let i=Ir(e);for(;i&&!vi(i);){if(Ct(i)&&!dp(i))return i;i=Ir(i)}return r}let n=MS(e,t);for(;n&&t8(n)&&dp(n);)n=MS(n,t);return n&&vi(n)&&dp(n)&&!Cm(n)?r:n||o8(e)||r}const x8=async function(e){const t=this.getOffsetParent||tT,r=this.getDimensions,n=await r(e.floating);return{reference:b8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function w8(e){return jt(e).direction==="rtl"}const O8={convertOffsetParentRelativeRectToViewportRelativeRect:l8,getDocumentElement:Gt,getClippingRect:y8,getOffsetParent:tT,getElementRects:x8,getClientRects:f8,getDimensions:g8,getScale:Nn,isElement:Ct,isRTL:w8};function rT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function S8(e,t){let r=null,n;const i=Gt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:l,top:f,width:d,height:h}=u;if(s||t(),!d||!h)return;const m=To(f),p=To(i.clientWidth-(l+d)),v=To(i.clientHeight-(f+h)),y=To(l),x={rootMargin:-m+"px "+-p+"px "+-v+"px "+-y+"px",threshold:ot(0,jr(1,c))||1};let O=!0;function b(w){const A=w[0].intersectionRatio;if(A!==c){if(!O)return o();A?o(!1,A):n=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!rT(u,e.getBoundingClientRect())&&o(),O=!1}try{r=new IntersectionObserver(b,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(b,x)}r.observe(e)}return o(!0),a}function A8(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Im(e),l=i||a?[...u?Ba(u):[],...Ba(t)]:[];l.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const f=u&&s?S8(u,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let m,p=c?un(e):null;c&&v();function v(){const y=un(e);p&&!rT(p,y)&&r(),p=y,m=requestAnimationFrame(v)}return r(),()=>{var y;l.forEach(g=>{i&&g.removeEventListener("scroll",r),a&&g.removeEventListener("resize",r)}),f?.(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const _8=YG,P8=XG,E8=VG,T8=JG,C8=KG,$S=HG,j8=ZG,I8=(e,t,r)=>{const n=new Map,i={platform:O8,...r},a={...i.platform,_c:n};return UG(e,t,{...i,platform:a})};var k8=typeof document<"u",R8=function(){},ko=k8?S.useLayoutEffect:R8;function Hs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Hs(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!Hs(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function nT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function NS(e,t){const r=nT(e);return Math.round(t*r)/r}function pp(e){const t=E.useRef(e);return ko(()=>{t.current=e}),t}function M8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,f]=E.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(n);Hs(d,n)||h(n);const[m,p]=E.useState(null),[v,y]=E.useState(null),g=E.useCallback(B=>{B!==w.current&&(w.current=B,p(B))},[]),x=E.useCallback(B=>{B!==A.current&&(A.current=B,y(B))},[]),O=a||m,b=o||v,w=E.useRef(null),A=E.useRef(null),P=E.useRef(l),T=c!=null,k=pp(c),C=pp(i),j=pp(u),R=E.useCallback(()=>{if(!w.current||!A.current)return;const B={placement:t,strategy:r,middleware:d};C.current&&(B.platform=C.current),I8(w.current,A.current,B).then(W=>{const I={...W,isPositioned:j.current!==!1};$.current&&!Hs(P.current,I)&&(P.current=I,Ys.flushSync(()=>{f(I)}))})},[d,t,r,C,j]);ko(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(B=>({...B,isPositioned:!1})))},[u]);const $=E.useRef(!1);ko(()=>($.current=!0,()=>{$.current=!1}),[]),ko(()=>{if(O&&(w.current=O),b&&(A.current=b),O&&b){if(k.current)return k.current(O,b,R);R()}},[O,b,R,k,T]);const N=E.useMemo(()=>({reference:w,floating:A,setReference:g,setFloating:x}),[g,x]),M=E.useMemo(()=>({reference:O,floating:b}),[O,b]),D=E.useMemo(()=>{const B={position:r,left:0,top:0};if(!M.floating)return B;const W=NS(M.floating,l.x),I=NS(M.floating,l.y);return s?{...B,transform:"translate("+W+"px, "+I+"px)",...nT(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:W,top:I}},[r,s,M.floating,l.x,l.y]);return E.useMemo(()=>({...l,update:R,refs:N,elements:M,floatingStyles:D}),[l,R,N,M,D])}const $8=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?$S({element:n.current,padding:i}).fn(r):{}:n?$S({element:n,padding:i}).fn(r):{}}}},N8=(e,t)=>({..._8(e),options:[e,t]}),D8=(e,t)=>({...P8(e),options:[e,t]}),L8=(e,t)=>({...j8(e),options:[e,t]}),B8=(e,t)=>({...E8(e),options:[e,t]}),q8=(e,t)=>({...T8(e),options:[e,t]}),F8=(e,t)=>({...C8(e),options:[e,t]}),z8=(e,t)=>({...$8(e),options:[e,t]});var W8="Arrow",iT=E.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return _.jsx(de.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_.jsx("polygon",{points:"0,0 30,0 15,10"})})});iT.displayName=W8;var U8=iT,Rm="Popper",[aT,Mm]=kt(Rm),[H8,oT]=aT(Rm),sT=e=>{const{__scopePopper:t,children:r}=e,[n,i]=E.useState(null);return _.jsx(H8,{scope:t,anchor:n,onAnchorChange:i,children:r})};sT.displayName=Rm;var cT="PopperAnchor",uT=E.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=oT(cT,r),o=E.useRef(null),s=Ce(t,o),c=E.useRef(null);return E.useEffect(()=>{const u=c.current;c.current=n?.current||o.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:_.jsx(de.div,{...i,ref:s})});uT.displayName=cT;var $m="PopperContent",[V8,K8]=aT($m),lT=E.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:m,...p}=e,v=oT($m,r),[y,g]=E.useState(null),x=Ce(t,V=>g(V)),[O,b]=E.useState(null),w=LE(O),A=w?.width??0,P=w?.height??0,T=n+(a!=="center"?"-"+a:""),k=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},C=Array.isArray(u)?u:[u],j=C.length>0,R={padding:k,boundary:C.filter(Y8),altBoundary:j},{refs:$,floatingStyles:N,placement:M,isPositioned:D,middlewareData:B}=M8({strategy:"fixed",placement:T,whileElementsMounted:(...V)=>A8(...V,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[N8({mainAxis:i+P,alignmentAxis:o}),c&&D8({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?L8():void 0,...R}),c&&B8({...R}),q8({...R,apply:({elements:V,rects:Q,availableWidth:q,availableHeight:H})=>{const{width:Y,height:L}=Q.reference,ue=V.floating.style;ue.setProperty("--radix-popper-available-width",`${q}px`),ue.setProperty("--radix-popper-available-height",`${H}px`),ue.setProperty("--radix-popper-anchor-width",`${Y}px`),ue.setProperty("--radix-popper-anchor-height",`${L}px`)}}),O&&z8({element:O,padding:s}),X8({arrowWidth:A,arrowHeight:P}),d&&F8({strategy:"referenceHidden",...R})]}),[W,I]=pT(M),z=zt(m);Re(()=>{D&&z?.()},[D,z]);const U=B.arrow?.x,G=B.arrow?.y,X=B.arrow?.centerOffset!==0,[Z,J]=E.useState();return Re(()=>{y&&J(window.getComputedStyle(y).zIndex)},[y]),_.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:_.jsx(V8,{scope:r,placedSide:W,onArrowChange:b,arrowX:U,arrowY:G,shouldHideArrow:X,children:_.jsx(de.div,{"data-side":W,"data-align":I,...p,ref:x,style:{...p.style,animation:D?void 0:"none"}})})})});lT.displayName=$m;var fT="PopperArrow",G8={top:"bottom",right:"left",bottom:"top",left:"right"},dT=E.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=K8(fT,n),o=G8[a.placedSide];return _.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_.jsx(U8,{...i,ref:r,style:{...i.style,display:"block"}})})});dT.displayName=fT;function Y8(e){return e!==null}var X8=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,l]=pT(r),f={start:"0%",center:"50%",end:"100%"}[l],d=(i.arrow?.x??0)+s/2,h=(i.arrow?.y??0)+c/2;let m="",p="";return u==="bottom"?(m=o?f:`${d}px`,p=`${-c}px`):u==="top"?(m=o?f:`${d}px`,p=`${n.floating.height+c}px`):u==="right"?(m=`${-c}px`,p=o?f:`${h}px`):u==="left"&&(m=`${n.floating.width+c}px`,p=o?f:`${h}px`),{data:{x:m,y:p}}}});function pT(e){const[t,r="center"]=e.split("-");return[t,r]}var hT=sT,vT=uT,mT=lT,yT=dT,hp="rovingFocusGroup.onEntryFocus",Z8={bubbles:!1,cancelable:!0},eo="RovingFocusGroup",[Kh,gT,J8]=fm(eo),[Q8,bT]=kt(eo,[J8]),[e6,t6]=Q8(eo),xT=E.forwardRef((e,t)=>_.jsx(Kh.Provider,{scope:e.__scopeRovingFocusGroup,children:_.jsx(Kh.Slot,{scope:e.__scopeRovingFocusGroup,children:_.jsx(r6,{...e,ref:t})})}));xT.displayName=eo;var r6=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:l=!1,...f}=e,d=E.useRef(null),h=Ce(t,d),m=kc(a),[p,v]=lr({prop:o,defaultProp:s??null,onChange:c,caller:eo}),[y,g]=E.useState(!1),x=zt(u),O=gT(r),b=E.useRef(!1),[w,A]=E.useState(0);return E.useEffect(()=>{const P=d.current;if(P)return P.addEventListener(hp,x),()=>P.removeEventListener(hp,x)},[x]),_.jsx(e6,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:p,onItemFocus:E.useCallback(P=>v(P),[v]),onItemShiftTab:E.useCallback(()=>g(!0),[]),onFocusableItemAdd:E.useCallback(()=>A(P=>P+1),[]),onFocusableItemRemove:E.useCallback(()=>A(P=>P-1),[]),children:_.jsx(de.div,{tabIndex:y||w===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{b.current=!0}),onFocus:he(e.onFocus,P=>{const T=!b.current;if(P.target===P.currentTarget&&T&&!y){const k=new CustomEvent(hp,Z8);if(P.currentTarget.dispatchEvent(k),!k.defaultPrevented){const C=O().filter(M=>M.focusable),j=C.find(M=>M.active),R=C.find(M=>M.id===p),N=[j,R,...C].filter(Boolean).map(M=>M.ref.current);ST(N,l)}}b.current=!1}),onBlur:he(e.onBlur,()=>g(!1))})})}),wT="RovingFocusGroupItem",OT=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=qr(),u=a||c,l=t6(wT,r),f=l.currentTabStopId===u,d=gT(r),{onFocusableItemAdd:h,onFocusableItemRemove:m,currentTabStopId:p}=l;return E.useEffect(()=>{if(n)return h(),()=>m()},[n,h,m]),_.jsx(Kh.ItemSlot,{scope:r,id:u,focusable:n,active:i,children:_.jsx(de.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,v=>{n?l.onItemFocus(u):v.preventDefault()}),onFocus:he(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:he(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){l.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=a6(v,l.orientation,l.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=d().filter(O=>O.focusable).map(O=>O.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const O=x.indexOf(v.currentTarget);x=l.loop?o6(x,O+1):x.slice(O+1)}setTimeout(()=>ST(x))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:p!=null}):o})})});OT.displayName=wT;var n6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function i6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function a6(e,t,r){const n=i6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return n6[n]}function ST(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function o6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var s6=xT,c6=OT,u6="Label",AT=E.forwardRef((e,t)=>_.jsx(de.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));AT.displayName=u6;var l6=AT;function DS(e,[t,r]){return Math.min(r,Math.max(t,e))}var Nm="Progress",Dm=100,[f6]=kt(Nm),[d6,p6]=f6(Nm),_T=E.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:a=h6,...o}=e;(i||i===0)&&!LS(i)&&console.error(v6(`${i}`,"Progress"));const s=LS(i)?i:Dm;n!==null&&!BS(n,s)&&console.error(m6(`${n}`,"Progress"));const c=BS(n,s)?n:null,u=Vs(c)?a(c,s):void 0;return _.jsx(d6,{scope:r,value:c,max:s,children:_.jsx(de.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Vs(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":TT(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});_T.displayName=Nm;var PT="ProgressIndicator",ET=E.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,i=p6(PT,r);return _.jsx(de.div,{"data-state":TT(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:t})});ET.displayName=PT;function h6(e,t){return`${Math.round(e/t*100)}%`}function TT(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Vs(e){return typeof e=="number"}function LS(e){return Vs(e)&&!isNaN(e)&&e>0}function BS(e,t){return Vs(e)&&!isNaN(e)&&e<=t&&e>=0}function v6(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Dm}\`.`}function m6(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
256
|
+
- a positive number
|
|
257
|
+
- less than the value passed to \`max\` (or ${Dm} if no \`max\` prop is set)
|
|
258
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
259
|
+
|
|
260
|
+
Defaulting to \`null\`.`}var y6=_T,g6=ET,b6=[" ","Enter","ArrowUp","ArrowDown"],x6=[" ","Enter"],ln="Select",[qc,Fc,w6]=fm(ln),[Ii]=kt(ln,[w6,Mm]),zc=Mm(),[O6,Fr]=Ii(ln),[S6,A6]=Ii(ln),CT=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:u,name:l,autoComplete:f,disabled:d,required:h,form:m}=e,p=zc(t),[v,y]=E.useState(null),[g,x]=E.useState(null),[O,b]=E.useState(!1),w=kc(u),[A,P]=lr({prop:n,defaultProp:i??!1,onChange:a,caller:ln}),[T,k]=lr({prop:o,defaultProp:s,onChange:c,caller:ln}),C=E.useRef(null),j=v?m||!!v.closest("form"):!0,[R,$]=E.useState(new Set),N=Array.from(R).map(M=>M.props.value).join(";");return _.jsx(hT,{...p,children:_.jsxs(O6,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:g,onValueNodeChange:x,valueNodeHasChildren:O,onValueNodeHasChildrenChange:b,contentId:qr(),value:T,onValueChange:k,open:A,onOpenChange:P,dir:w,triggerPointerDownPosRef:C,disabled:d,children:[_.jsx(qc.Provider,{scope:t,children:_.jsx(S6,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(M=>{$(D=>new Set(D).add(M))},[]),onNativeOptionRemove:E.useCallback(M=>{$(D=>{const B=new Set(D);return B.delete(M),B})},[]),children:r})}),j?_.jsxs(ZT,{"aria-hidden":!0,required:h,tabIndex:-1,name:l,autoComplete:f,value:T,onChange:M=>k(M.target.value),disabled:d,form:m,children:[T===void 0?_.jsx("option",{value:""}):null,Array.from(R)]},N):null]})})};CT.displayName=ln;var jT="SelectTrigger",IT=E.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=zc(r),o=Fr(jT,r),s=o.disabled||n,c=Ce(t,o.onTriggerChange),u=Fc(r),l=E.useRef("touch"),[f,d,h]=QT(p=>{const v=u().filter(x=>!x.disabled),y=v.find(x=>x.value===o.value),g=eC(v,p,y);g!==void 0&&o.onValueChange(g.value)}),m=p=>{s||(o.onOpenChange(!0),h()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return _.jsx(vT,{asChild:!0,...a,children:_.jsx(de.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":JT(o.value)?"":void 0,...i,ref:c,onClick:he(i.onClick,p=>{p.currentTarget.focus(),l.current!=="mouse"&&m(p)}),onPointerDown:he(i.onPointerDown,p=>{l.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(m(p),p.preventDefault())}),onKeyDown:he(i.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&d(p.key),!(v&&p.key===" ")&&b6.includes(p.key)&&(m(),p.preventDefault())})})})});IT.displayName=jT;var kT="SelectValue",RT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...s}=e,c=Fr(kT,r),{onValueNodeHasChildrenChange:u}=c,l=a!==void 0,f=Ce(t,c.onValueNodeChange);return Re(()=>{u(l)},[u,l]),_.jsx(de.span,{...s,ref:f,style:{pointerEvents:"none"},children:JT(c.value)?_.jsx(_.Fragment,{children:o}):a})});RT.displayName=kT;var _6="SelectIcon",MT=E.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return _.jsx(de.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});MT.displayName=_6;var P6="SelectPortal",$T=e=>_.jsx(Om,{asChild:!0,...e});$T.displayName=P6;var fn="SelectContent",NT=E.forwardRef((e,t)=>{const r=Fr(fn,e.__scopeSelect),[n,i]=E.useState();if(Re(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?Ys.createPortal(_.jsx(DT,{scope:e.__scopeSelect,children:_.jsx(qc.Slot,{scope:e.__scopeSelect,children:_.jsx("div",{children:e.children})})}),a):null}return _.jsx(LT,{...e,ref:t})});NT.displayName=fn;var Ot=10,[DT,zr]=Ii(fn),E6="SelectContentImpl",T6=hi("SelectContent.RemoveScroll"),LT=E.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:v,...y}=e,g=Fr(fn,r),[x,O]=E.useState(null),[b,w]=E.useState(null),A=Ce(t,V=>O(V)),[P,T]=E.useState(null),[k,C]=E.useState(null),j=Fc(r),[R,$]=E.useState(!1),N=E.useRef(!1);E.useEffect(()=>{if(x)return CE(x)},[x]),xE();const M=E.useCallback(V=>{const[Q,...q]=j().map(L=>L.ref.current),[H]=q.slice(-1),Y=document.activeElement;for(const L of V)if(L===Y||(L?.scrollIntoView({block:"nearest"}),L===Q&&b&&(b.scrollTop=0),L===H&&b&&(b.scrollTop=b.scrollHeight),L?.focus(),document.activeElement!==Y))return},[j,b]),D=E.useCallback(()=>M([P,x]),[M,P,x]);E.useEffect(()=>{R&&D()},[R,D]);const{onOpenChange:B,triggerPointerDownPosRef:W}=g;E.useEffect(()=>{if(x){let V={x:0,y:0};const Q=H=>{V={x:Math.abs(Math.round(H.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(W.current?.y??0))}},q=H=>{V.x<=10&&V.y<=10?H.preventDefault():x.contains(H.target)||B(!1),document.removeEventListener("pointermove",Q),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",Q),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",q,{capture:!0})}}},[x,B,W]),E.useEffect(()=>{const V=()=>B(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[B]);const[I,z]=QT(V=>{const Q=j().filter(Y=>!Y.disabled),q=Q.find(Y=>Y.ref.current===document.activeElement),H=eC(Q,V,q);H&&setTimeout(()=>H.ref.current.focus())}),U=E.useCallback((V,Q,q)=>{const H=!N.current&&!q;(g.value!==void 0&&g.value===Q||H)&&(T(V),H&&(N.current=!0))},[g.value]),G=E.useCallback(()=>x?.focus(),[x]),X=E.useCallback((V,Q,q)=>{const H=!N.current&&!q;(g.value!==void 0&&g.value===Q||H)&&C(V)},[g.value]),Z=n==="popper"?Gh:BT,J=Z===Gh?{side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:v}:{};return _.jsx(DT,{scope:r,content:x,viewport:b,onViewportChange:w,itemRefCallback:U,selectedItem:P,onItemLeave:G,itemTextRefCallback:X,focusSelectedItem:D,selectedItemText:k,position:n,isPositioned:R,searchRef:I,children:_.jsx(Sm,{as:T6,allowPinchZoom:!0,children:_.jsx(wm,{asChild:!0,trapped:g.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:he(i,V=>{g.trigger?.focus({preventScroll:!0}),V.preventDefault()}),children:_.jsx(xm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:_.jsx(Z,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:V=>V.preventDefault(),...y,...J,onPlaced:()=>$(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:he(y.onKeyDown,V=>{const Q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!Q&&V.key.length===1&&z(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let H=j().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(V.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const Y=V.target,L=H.indexOf(Y);H=H.slice(L+1)}setTimeout(()=>M(H)),V.preventDefault()}})})})})})})});LT.displayName=E6;var C6="SelectItemAlignedPosition",BT=E.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=Fr(fn,r),o=zr(fn,r),[s,c]=E.useState(null),[u,l]=E.useState(null),f=Ce(t,A=>l(A)),d=Fc(r),h=E.useRef(!1),m=E.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:g}=o,x=E.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&p&&v&&y){const A=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),T=a.valueNode.getBoundingClientRect(),k=y.getBoundingClientRect();if(a.dir!=="rtl"){const Y=k.left-P.left,L=T.left-Y,ue=A.left-L,le=A.width+ue,je=Math.max(le,P.width),Ie=window.innerWidth-Ot,Fe=DS(L,[Ot,Math.max(Ot,Ie-je)]);s.style.minWidth=le+"px",s.style.left=Fe+"px"}else{const Y=P.right-k.right,L=window.innerWidth-T.right-Y,ue=window.innerWidth-A.right-L,le=A.width+ue,je=Math.max(le,P.width),Ie=window.innerWidth-Ot,Fe=DS(L,[Ot,Math.max(Ot,Ie-je)]);s.style.minWidth=le+"px",s.style.right=Fe+"px"}const C=d(),j=window.innerHeight-Ot*2,R=p.scrollHeight,$=window.getComputedStyle(u),N=parseInt($.borderTopWidth,10),M=parseInt($.paddingTop,10),D=parseInt($.borderBottomWidth,10),B=parseInt($.paddingBottom,10),W=N+M+R+B+D,I=Math.min(v.offsetHeight*5,W),z=window.getComputedStyle(p),U=parseInt(z.paddingTop,10),G=parseInt(z.paddingBottom,10),X=A.top+A.height/2-Ot,Z=j-X,J=v.offsetHeight/2,V=v.offsetTop+J,Q=N+M+V,q=W-Q;if(Q<=X){const Y=C.length>0&&v===C[C.length-1].ref.current;s.style.bottom="0px";const L=u.clientHeight-p.offsetTop-p.offsetHeight,ue=Math.max(Z,J+(Y?G:0)+L+D),le=Q+ue;s.style.height=le+"px"}else{const Y=C.length>0&&v===C[0].ref.current;s.style.top="0px";const ue=Math.max(X,N+p.offsetTop+(Y?U:0)+J)+q;s.style.height=ue+"px",p.scrollTop=Q-X+p.offsetTop}s.style.margin=`${Ot}px 0`,s.style.minHeight=I+"px",s.style.maxHeight=j+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[d,a.trigger,a.valueNode,s,u,p,v,y,a.dir,n]);Re(()=>x(),[x]);const[O,b]=E.useState();Re(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const w=E.useCallback(A=>{A&&m.current===!0&&(x(),g?.(),m.current=!1)},[x,g]);return _.jsx(I6,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:w,children:_.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:_.jsx(de.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});BT.displayName=C6;var j6="SelectPopperPosition",Gh=E.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Ot,...a}=e,o=zc(r);return _.jsx(mT,{...o,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Gh.displayName=j6;var[I6,Lm]=Ii(fn,{}),Yh="SelectViewport",qT=E.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=zr(Yh,r),o=Lm(Yh,r),s=Ce(t,a.onViewportChange),c=E.useRef(0);return _.jsxs(_.Fragment,{children:[_.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),_.jsx(qc.Slot,{scope:r,children:_.jsx(de.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:he(i.onScroll,u=>{const l=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d?.current&&f){const h=Math.abs(c.current-l.scrollTop);if(h>0){const m=window.innerHeight-Ot*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),y=Math.max(p,v);if(y<m){const g=y+h,x=Math.min(m,g),O=g-x;f.style.height=x+"px",f.style.bottom==="0px"&&(l.scrollTop=O>0?O:0,f.style.justifyContent="flex-end")}}}c.current=l.scrollTop})})})]})});qT.displayName=Yh;var FT="SelectGroup",[k6,R6]=Ii(FT),M6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=qr();return _.jsx(k6,{scope:r,id:i,children:_.jsx(de.div,{role:"group","aria-labelledby":i,...n,ref:t})})});M6.displayName=FT;var zT="SelectLabel",$6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=R6(zT,r);return _.jsx(de.div,{id:i.id,...n,ref:t})});$6.displayName=zT;var Ks="SelectItem",[N6,WT]=Ii(Ks),UT=E.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...o}=e,s=Fr(Ks,r),c=zr(Ks,r),u=s.value===n,[l,f]=E.useState(a??""),[d,h]=E.useState(!1),m=Ce(t,g=>c.itemRefCallback?.(g,n,i)),p=qr(),v=E.useRef("touch"),y=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return _.jsx(N6,{scope:r,value:n,disabled:i,textId:p,isSelected:u,onItemTextChange:E.useCallback(g=>{f(x=>x||(g?.textContent??"").trim())},[]),children:_.jsx(qc.ItemSlot,{scope:r,value:n,disabled:i,textValue:l,children:_.jsx(de.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:he(o.onFocus,()=>h(!0)),onBlur:he(o.onBlur,()=>h(!1)),onClick:he(o.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:he(o.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:he(o.onPointerDown,g=>{v.current=g.pointerType}),onPointerMove:he(o.onPointerMove,g=>{v.current=g.pointerType,i?c.onItemLeave?.():v.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(o.onPointerLeave,g=>{g.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:he(o.onKeyDown,g=>{c.searchRef?.current!==""&&g.key===" "||(x6.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})})})})});UT.displayName=Ks;var Vi="SelectItemText",HT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,o=Fr(Vi,r),s=zr(Vi,r),c=WT(Vi,r),u=A6(Vi,r),[l,f]=E.useState(null),d=Ce(t,y=>f(y),c.onItemTextChange,y=>s.itemTextRefCallback?.(y,c.value,c.disabled)),h=l?.textContent,m=E.useMemo(()=>_.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return Re(()=>(p(m),()=>v(m)),[p,v,m]),_.jsxs(_.Fragment,{children:[_.jsx(de.span,{id:c.textId,...a,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Ys.createPortal(a.children,o.valueNode):null]})});HT.displayName=Vi;var VT="SelectItemIndicator",KT=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return WT(VT,r).isSelected?_.jsx(de.span,{"aria-hidden":!0,...n,ref:t}):null});KT.displayName=VT;var Xh="SelectScrollUpButton",GT=E.forwardRef((e,t)=>{const r=zr(Xh,e.__scopeSelect),n=Lm(Xh,e.__scopeSelect),[i,a]=E.useState(!1),o=Ce(t,n.onScrollButtonChange);return Re(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(XT,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});GT.displayName=Xh;var Zh="SelectScrollDownButton",YT=E.forwardRef((e,t)=>{const r=zr(Zh,e.__scopeSelect),n=Lm(Zh,e.__scopeSelect),[i,a]=E.useState(!1),o=Ce(t,n.onScrollButtonChange);return Re(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,l=Math.ceil(c.scrollTop)<u;a(l)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(XT,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});YT.displayName=Zh;var XT=E.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=zr("SelectScrollButton",r),o=E.useRef(null),s=Fc(r),c=E.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return E.useEffect(()=>()=>c(),[c]),Re(()=>{s().find(l=>l.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),_.jsx(de.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:he(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:he(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:he(i.onPointerLeave,()=>{c()})})}),D6="SelectSeparator",L6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return _.jsx(de.div,{"aria-hidden":!0,...n,ref:t})});L6.displayName=D6;var Jh="SelectArrow",B6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=zc(r),a=Fr(Jh,r),o=zr(Jh,r);return a.open&&o.position==="popper"?_.jsx(yT,{...i,...n,ref:t}):null});B6.displayName=Jh;var q6="SelectBubbleInput",ZT=E.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=E.useRef(null),a=Ce(n,i),o=DE(t);return E.useEffect(()=>{const s=i.current;if(!s)return;const c=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&l){const f=new Event("change",{bubbles:!0});l.call(s,t),s.dispatchEvent(f)}},[o,t]),_.jsx(de.select,{...r,style:{...eE,...r.style},ref:a,defaultValue:t})});ZT.displayName=q6;function JT(e){return e===""||e===void 0}function QT(e){const t=zt(e),r=E.useRef(""),n=E.useRef(0),i=E.useCallback(o=>{const s=r.current+o;t(s),(function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=E.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function eC(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let o=F6(e,Math.max(a,0));i.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==r?c:void 0}function F6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var z6=CT,W6=IT,U6=RT,H6=MT,V6=$T,K6=NT,G6=qT,Y6=UT,X6=HT,Z6=KT,J6=GT,Q6=YT,e4="Separator",qS="horizontal",t4=["horizontal","vertical"],tC=E.forwardRef((e,t)=>{const{decorative:r,orientation:n=qS,...i}=e,a=r4(n)?n:qS,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return _.jsx(de.div,{"data-orientation":a,...s,...i,ref:t})});tC.displayName=e4;function r4(e){return t4.includes(e)}var n4=tC,Wc="Tabs",[i4]=kt(Wc,[bT]),rC=bT(),[a4,Bm]=i4(Wc),nC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:c="automatic",...u}=e,l=kc(s),[f,d]=lr({prop:n,onChange:i,defaultProp:a??"",caller:Wc});return _.jsx(a4,{scope:r,baseId:qr(),value:f,onValueChange:d,orientation:o,dir:l,activationMode:c,children:_.jsx(de.div,{dir:l,"data-orientation":o,...u,ref:t})})});nC.displayName=Wc;var iC="TabsList",aC=E.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,a=Bm(iC,r),o=rC(r);return _.jsx(s6,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:n,children:_.jsx(de.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});aC.displayName=iC;var oC="TabsTrigger",sC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...a}=e,o=Bm(oC,r),s=rC(r),c=lC(o.baseId,n),u=fC(o.baseId,n),l=n===o.value;return _.jsx(c6,{asChild:!0,...s,focusable:!i,active:l,children:_.jsx(de.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":u,"data-state":l?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:t,onMouseDown:he(e.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:he(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:he(e.onFocus,()=>{const f=o.activationMode!=="manual";!l&&!i&&f&&o.onValueChange(n)})})})});sC.displayName=oC;var cC="TabsContent",uC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:i,children:a,...o}=e,s=Bm(cC,r),c=lC(s.baseId,n),u=fC(s.baseId,n),l=n===s.value,f=E.useRef(l);return E.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),_.jsx(Ja,{present:i||l,children:({present:d})=>_.jsx(de.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&a})})});uC.displayName=cC;function lC(e,t){return`${e}-trigger-${t}`}function fC(e,t){return`${e}-content-${t}`}var o4=nC,s4=aC,c4=sC,u4=uC;function l4({...e}){return _.jsx(d5,{"data-slot":"accordion",...e})}function f4({className:e,...t}){return _.jsx(p5,{"data-slot":"accordion-item",className:ie("border-b last:border-b-0",e),...t})}function d4({className:e,children:t,...r}){return _.jsx(h5,{className:"flex",children:_.jsxs(v5,{"data-slot":"accordion-trigger",className:ie("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,_.jsx(Xs,{className:"pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"})]})})}function p4({className:e,children:t,...r}){return _.jsx(m5,{"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:_.jsx("div",{className:ie("pt-0 pb-4",e),children:t})})}const FS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zS=ce,ki=(e,t)=>r=>{var n;if(t?.variants==null)return zS(e,r?.class,r?.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(u=>{const l=r?.[u],f=a?.[u];if(l===null)return null;const d=FS(l)||FS(f);return i[u][d]}),s=r&&Object.entries(r).reduce((u,l)=>{let[f,d]=l;return d===void 0||(u[f]=d),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,l)=>{let{class:f,className:d,...h}=l;return Object.entries(h).every(m=>{let[p,v]=m;return Array.isArray(v)?v.includes({...a,...s}[p]):{...a,...s}[p]===v})?[...u,f,d]:u},[]);return zS(e,o,c,r?.class,r?.className)},h4=ki("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function v4({className:e,variant:t,...r}){return _.jsx("div",{"data-slot":"alert",role:"alert",className:ie(h4({variant:t}),e),...r})}function m4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-title",className:ie("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}function y4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-description",className:ie("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",e),...t})}function g4({className:e,size:t="default",...r}){return _.jsx(PG,{"data-slot":"avatar","data-size":t,className:ie("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",e),...r})}function b4({className:e,...t}){return _.jsx(EG,{"data-slot":"avatar-image",className:ie("aspect-square size-full",e),...t})}function x4({className:e,...t}){return _.jsx(TG,{"data-slot":"avatar-fallback",className:ie("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}const w4=ki("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",success:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-100",error:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function O4({className:e,variant:t="default",asChild:r=!1,content:n,children:i,...a}){const o=r?J1:"span";return _.jsx(o,{"data-slot":"badge","data-variant":t,className:ie(w4({variant:t}),e),...a,children:n??i})}const S4=ki("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function dC({className:e,variant:t="default",size:r="default",asChild:n=!1,...i}){const a=n?J1:"button";return _.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:ie(S4({variant:t,size:r,className:e})),...i})}function A4({className:e,...t}){return _.jsx(FE,{"data-slot":"checkbox",className:ie("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e),...t,children:_.jsx(WE,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:_.jsx(iv,{className:"size-3.5"})})})}var _4=Symbol.for("react.lazy"),Gs=E[" use ".trim().toString()];function P4(e){return typeof e=="object"&&e!==null&&"then"in e}function pC(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_4&&"_payload"in e&&P4(e._payload)}function hC(e){const t=T4(e),r=E.forwardRef((n,i)=>{let{children:a,...o}=n;pC(a)&&typeof Gs=="function"&&(a=Gs(a._payload));const s=E.Children.toArray(a),c=s.find(I4);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var E4=hC("Slot");function T4(e){const t=E.forwardRef((r,n)=>{let{children:i,...a}=r;if(pC(i)&&typeof Gs=="function"&&(i=Gs(i._payload)),E.isValidElement(i)){const o=R4(i),s=k4(a,i.props);return i.type!==E.Fragment&&(s.ref=n?lm(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vC=Symbol("radix.slottable");function C4(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=vC,t}var j4=C4("Slottable");function I4(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vC}function k4(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function R4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const M4=ki("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),mC=E.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const o=n?E4:"button";return _.jsx(o,{"data-slot":"button",className:ie(M4({variant:t,size:r,className:e})),ref:a,...i})});mC.displayName="Button";function $4({className:e,type:t,...r}){return _.jsx("input",{type:t,"data-slot":"input",className:ie("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}function yC({className:e,...t}){return _.jsx(l6,{"data-slot":"label",className:ie("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function N4({className:e,value:t,label:r,max:n=100,...i}){const a=t!=null&&n>0?Math.min(100,Math.max(0,t/n*100)):0;return _.jsxs("div",{className:ie("w-full space-y-2",e),children:[r&&_.jsxs("div",{className:"flex justify-between text-sm",children:[_.jsx("span",{children:r}),_.jsxs("span",{className:"text-muted-foreground",children:[a.toFixed(0),"%"]})]}),_.jsx(y6,{"data-slot":"progress",className:"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",value:t,max:n,...i,children:_.jsx(g6,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-a}%)`}})})]})}function D4({...e}){return _.jsx(z6,{"data-slot":"select",...e})}function L4({...e}){return _.jsx(U6,{"data-slot":"select-value",...e})}function B4({className:e,size:t="default",children:r,...n}){return _.jsxs(W6,{"data-slot":"select-trigger","data-size":t,className:ie("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...n,children:[r,_.jsx(H6,{asChild:!0,children:_.jsx(Xs,{className:"size-4 opacity-50"})})]})}function q4({className:e,children:t,position:r="item-aligned",align:n="center",...i}){return _.jsx(V6,{children:_.jsxs(K6,{"data-slot":"select-content",className:ie("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,align:n,...i,children:[_.jsx(z4,{}),_.jsx(G6,{className:ie("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),_.jsx(W4,{})]})})}function F4({className:e,children:t,...r}){return _.jsxs(Y6,{"data-slot":"select-item",className:ie("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[_.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:_.jsx(Z6,{children:_.jsx(iv,{className:"size-4"})})}),_.jsx(X6,{children:t})]})}function z4({className:e,...t}){return _.jsx(J6,{"data-slot":"select-scroll-up-button",className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(dA,{className:"size-4"})})}function W4({className:e,...t}){return _.jsx(Q6,{"data-slot":"select-scroll-down-button",className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(Xs,{className:"size-4"})})}function WS({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return _.jsx(n4,{"data-slot":"separator",decorative:r,orientation:t,className:ie("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function U4({className:e,...t}){return _.jsx("div",{"data-slot":"skeleton",className:ie("animate-pulse rounded-md bg-accent",e),...t})}function H4({className:e,...t}){return _.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:_.jsx("table",{"data-slot":"table",className:ie("w-full caption-bottom text-sm",e),...t})})}function V4({className:e,...t}){return _.jsx("thead",{"data-slot":"table-header",className:ie("[&_tr]:border-b",e),...t})}function K4({className:e,...t}){return _.jsx("tbody",{"data-slot":"table-body",className:ie("[&_tr:last-child]:border-0",e),...t})}function US({className:e,...t}){return _.jsx("tr",{"data-slot":"table-row",className:ie("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function G4({className:e,...t}){return _.jsx("th",{"data-slot":"table-head",className:ie("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function Y4({className:e,...t}){return _.jsx("td",{"data-slot":"table-cell",className:ie("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function X4({className:e,orientation:t="horizontal",...r}){return _.jsx(o4,{"data-slot":"tabs","data-orientation":t,orientation:t,className:ie("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...r})}const Z4=ki("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function J4({className:e,variant:t="default",...r}){return _.jsx(s4,{"data-slot":"tabs-list","data-variant":t,className:ie(Z4({variant:t}),e),...r})}function Q4({className:e,...t}){return _.jsx(c4,{"data-slot":"tabs-trigger",className:ie("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function eY({className:e,...t}){return _.jsx(u4,{"data-slot":"tabs-content",className:ie("flex-1 outline-none",e),...t})}function tY({type:e="single",children:t}){const r=l4;return _.jsx(r,{type:e,collapsible:e==="single",children:t})}function rY({value:e,title:t,children:r}){return _.jsxs(f4,{value:e,children:[_.jsx(d4,{children:t}),_.jsx(p4,{children:r})]})}const gC=S.createContext(null);function nY({children:e,tools:t}){const r=S.useCallback(async(i,a)=>{if(!t)return{success:!1,error:"Tools not available"};const o=t[i];if(!o)return{success:!1,error:`Tool "${i}" not found`};if(!o.execute)return{success:!1,error:`Tool "${i}" has no execute function`};try{const s=`action-${Date.now()}-${Math.random().toString(36).slice(2)}`;return{success:!0,result:await o.execute(a,{toolCallId:s,messages:[]})}}catch(s){return{success:!1,error:s instanceof Error?s.message:"Unknown error"}}},[t]),n=S.useCallback(i=>!!t?.[i]?.execute,[t]);return _.jsx(gC.Provider,{value:{executeTool:r,isToolAvailable:n},children:e})}function iY(){const e=S.useContext(gC);return e||{executeTool:async()=>({success:!1,error:"ToolExecutionProvider not found"}),isToolAvailable:()=>!1}}function aY({label:e,action:t,args:r,variant:n="default",size:i="default",className:a,disabled:o,...s}){const{executeTool:c,isToolAvailable:u}=iY(),[l,f]=E.useState(!1),d=u(t),[h,m]=E.useState(null),p=E.useCallback(async()=>{if(!(!d||l)){f(!0),m(null);try{const v=await c(t,r??{});!v.success&&v.error&&m(v.error)}catch(v){m(v instanceof Error?v.message:"Unknown error")}finally{f(!1)}}},[t,r,c,l,d]);return _.jsxs("div",{className:"inline-flex flex-col gap-1",children:[_.jsx(dC,{variant:h?"destructive":n,size:i,className:ie(a),onClick:p,disabled:o||l||!d,...s,children:l?"Loading...":e}),h&&_.jsx("span",{className:"text-xs text-destructive",children:h})]})}function oY({title:e,description:t,variant:r="default"}){return _.jsxs(v4,{variant:r,children:[_.jsx(m4,{children:e}),t&&_.jsx(y4,{children:t})]})}function sY({src:e,alt:t,fallback:r}){return _.jsxs(g4,{children:[e&&_.jsx(b4,{src:e,alt:t}),_.jsx(x4,{children:r})]})}function cY({label:e,variant:t="default",size:r="default",disabled:n=!1}){return _.jsx(dC,{variant:t,size:r,disabled:n,children:e})}function uY({title:e,className:t,children:r,...n}){return _.jsxs("div",{"data-slot":"card-wrapper",className:ie("flex flex-col gap-6 bg-card p-6 text-card-foreground",t),...n,children:[e&&_.jsx("div",{className:"text-lg leading-none font-semibold text-foreground",children:e}),_.jsx("div",{className:"flex flex-col gap-6",children:r})]})}function lY({label:e,valuePath:t,defaultChecked:r}){const n=E.useId();return _.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx(A4,{id:n,name:t,defaultChecked:r,"data-value-path":t}),e&&_.jsx(yC,{htmlFor:n,className:"cursor-pointer",children:e})]})}function fY({headers:e,rows:t,className:r,...n}){return _.jsx("div",{className:ie(r),...n,children:_.jsxs(H4,{children:[e&&e.length>0&&_.jsx(V4,{children:_.jsx(US,{children:e.map((i,a)=>_.jsx(G4,{children:i},a))})}),_.jsx(K4,{children:t.map((i,a)=>_.jsx(US,{children:i.map((o,s)=>_.jsx(Y4,{children:o},s))},a))})]})})}const dY={sm:"gap-2",md:"gap-4",lg:"gap-6"};function pY({columns:e=2,gap:t="md",className:r,...n}){return _.jsx("div",{"data-slot":"grid",className:ie("grid",dY[t],r),style:{gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`},...n})}function hY({label:e,placeholder:t,type:r="text",valuePath:n}){const i=E.useId();return _.jsxs("div",{className:"flex flex-col gap-1.5",children:[e&&_.jsx(yC,{htmlFor:i,children:e}),_.jsx($4,{id:i,type:r,placeholder:t,name:n,"data-value-path":n})]})}function vY({items:e,ordered:t=!1,className:r}){const n=ie("space-y-1 pl-4 text-foreground",t?"list-decimal":"list-disc",r);return t?_.jsx("ol",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))}):_.jsx("ul",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))})}function mY(e,t){if(typeof e=="string")return e;switch(t){case"currency":return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e);case"percent":return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1}).format(e);case"number":default:return new Intl.NumberFormat("en-US").format(e)}}function yY({label:e,value:t,format:r,className:n,...i}){return _.jsxs("div",{"data-slot":"metric",className:ie("flex flex-col",n),...i,children:[_.jsx("span",{className:"text-sm text-muted-foreground",children:e}),_.jsx("span",{className:"text-2xl font-semibold text-foreground",children:mY(t,r)})]})}function gY({placeholder:e,valuePath:t,options:r}){return _.jsxs(D4,{name:t,children:[_.jsx(B4,{"data-value-path":t,children:_.jsx(L4,{placeholder:e})}),_.jsx(q4,{children:r.map(n=>_.jsx(F4,{value:n.value,children:n.label},n.value))})]})}function bY({width:e,height:t,className:r}){return _.jsx(U4,{className:ie(r),style:{width:e??"100%",height:t??"1rem"}})}const xY={sm:"gap-2",md:"gap-4",lg:"gap-6"},wY={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},OY={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"};function SY({direction:e="vertical",gap:t="md",align:r,justify:n,className:i,...a}){return _.jsx("div",{"data-slot":"stack",className:ie("flex",e==="horizontal"?"flex-row":"flex-col",xY[t],r&&wY[r],n&&OY[n],i),...a})}function AY({defaultValue:e,tabs:t,children:r}){const n=e??t[0]?.value;return _.jsxs(X4,{defaultValue:n,children:[_.jsx(J4,{children:t.map(i=>_.jsx(Q4,{value:i.value,children:i.label},i.value))}),r]})}function _Y({value:e,children:t}){return _.jsx(eY,{value:e,children:t})}const PY={heading:"text-foreground text-lg font-semibold",body:"text-foreground text-sm",caption:"text-muted-foreground text-xs",code:"text-foreground font-mono text-sm bg-muted px-1 rounded"};function EY({content:e,variant:t="body",className:r,children:n,...i}){return _.jsx("span",{"data-slot":"text",className:ie(PY[t],r),...i,children:e??n})}const TY={Card:uY,Grid:pY,Stack:SY,Text:EY,Metric:yY,Badge:O4,Table:fY,List:vY,Progress:N4,Avatar:sY,Skeleton:bY,Alert:oY,Divider:WS,Separator:WS,Accordion:tY,AccordionItem:rY,Tabs:AY,TabContent:_Y,Button:cY,ActionButton:aY,Input:hY,Checkbox:lY,Select:gY};function bC(e,t){const r=TY[e.type];if(!r)return _.jsxs("div",{className:"text-xs text-muted-foreground",children:["Unknown component: ",e.type]},t);const n=Array.isArray(e.children)?e.children.map((i,a)=>bC(i,a)):void 0;return _.jsx(r,{...e.props??{},children:n},t)}const CY=({content:e,className:t})=>{const r=nv(),n=S.useMemo(()=>lA(e)?e:null,[e]);return n?_.jsx("div",{className:ie("w-full",t),children:bC(n)}):_.jsxs("div",{className:ie("flex items-center gap-2 text-sm text-muted-foreground",r("p-md"),t),children:[_.jsx(av,{className:"size-4"}),_.jsx("span",{children:"Invalid generative UI structure"})]})},Qh=["Arranging pixels with care...","Brewing something beautiful...","Crafting your masterpiece...","Painting with data...","Weaving digital magic...","Assembling the good stuff...","Polishing the details...","Putting the finishing touches...","Simmering the results...","Letting the data marinate...","Adding a pinch of style...","Fresh out of the oven soon...","Whisking up your view...","Growing your garden of data...","Watching the seeds sprout...","Letting things bloom...","Nature is taking its course...","Consulting the stars...","Channeling cosmic energy...","Summoning the results...","Waving the magic wand...","Sprinkling some stardust...","Aligning the planets...","Tightening the bolts...","Connecting the dots...","Stacking the blocks...","Laying the foundation...","Raising the scaffolding...","Herding the pixels...","Teaching data to dance...","Convincing bits to cooperate...","Giving electrons a pep talk...","Wrangling the numbers...","Coaxing the results out...","Almost there, pinky promise...","Good things take a moment...","Worth the wait...","Patience, grasshopper...","Hold tight...","Doing the thing...","Folding space and time...","Untangling the threads...","Finding the signal...","Distilling the essence...","Turning chaos into order...","Making sense of it all...","This is going to be good...","You're gonna love this...","Something nice is coming...","Just a heartbeat away..."];function jY(){return Math.floor(Math.random()*Qh.length)}const IY=()=>{const[e,t]=S.useState(jY),[r,n]=S.useState(!0);return S.useEffect(()=>{let i;const a=setInterval(()=>{n(!1),i=setTimeout(()=>{t(o=>(o+1)%Qh.length),n(!0)},200)},2e3);return()=>{clearInterval(a),i&&clearTimeout(i)}},[]),_.jsx("span",{className:ie("shimmer text-sm text-muted-foreground transition-opacity duration-200",r?"opacity-100":"opacity-0"),children:Qh[e]})},kY=({code:e})=>{const t=S.useMemo(()=>{const r=e.trim();if(!r)return null;try{const n=JSON.parse(r);return!n||typeof n!="object"||!("type"in n)?null:n}catch{return null}},[e]);return t?_.jsx(Mo,{children:_.jsx("div",{className:"p-4",children:_.jsx(CY,{content:t})})}):_.jsx(Mo,{children:_.jsx("div",{className:"flex min-h-[400px] items-center justify-center bg-background",children:_.jsx(IY,{})})})},xC={id:"generative-ui",language:"ui",prompt:`Render structured data as visual UI using \`\`\`ui code blocks with valid JSON.
|
|
261
|
+
|
|
262
|
+
Components:
|
|
263
|
+
- Card{title?} - container with border
|
|
264
|
+
- Grid{columns?} - multi-column layout
|
|
265
|
+
- Stack{direction?} - vertical/horizontal flex
|
|
266
|
+
- Metric{label,value,format?} - formatted number display (currency/percent/number)
|
|
267
|
+
- Table{headers[],rows[][]} - data table
|
|
268
|
+
- Text{content,variant?} - heading/body/caption/code
|
|
269
|
+
- Badge{content,variant?} - default/success/warning/error
|
|
270
|
+
- Progress{value,max?,label?} - progress bar
|
|
271
|
+
- List{items[],ordered?} - bullet/numbered list
|
|
272
|
+
- Divider - horizontal separator
|
|
273
|
+
- ActionButton{label,action,args?} - triggers tool call
|
|
274
|
+
|
|
275
|
+
Format: {"type":"Name","props":{...},"children":[...]}
|
|
276
|
+
|
|
277
|
+
Example: {"type":"Card","props":{"title":"Stats"},"children":[{"type":"Metric","props":{"label":"Revenue","value":50000,"format":"currency"}}]}
|
|
278
|
+
|
|
279
|
+
Use for dashboards, tables, metrics from tool results. Skip for simple text or errors.`,Component:kY,Header:void 0};function RY(e){const t=[...e];return t.except=(...r)=>{const n=new Set(r);return t.filter(i=>!n.has(i.id??i.language))},t}const MY=RY([Z1,xC]);exports.Anchor=vT;exports.Arrow=yT;exports.Button=mC;exports.ChatIdContext=cA;exports.Check=iv;exports.ChevronDown=Xs;exports.ChevronUp=dA;exports.CircleAlert=av;exports.CollapsibleContent=vm;exports.CollapsibleTrigger=pm;exports.Content=mT;exports.DismissableLayer=xm;exports.ElementsContext=uA;exports.FocusScope=wm;exports.Portal=Om;exports.Presence=Ja;exports.Primitive=de;exports.ReactRemoveScroll=Sm;exports.Root=qK;exports.Root$1=aE;exports.Root2=hT;exports.Slottable=j4;exports.ToolApprovalContext=pj;exports.ToolExecutionProvider=nY;exports.assert=fj;exports.assertNever=lj;exports.chart=Z1;exports.cn=ie;exports.composeEventHandlers=he;exports.createContext2=FK;exports.createContextScope=kt;exports.createLucideIcon=qa;exports.createPopperScope=Mm;exports.createSlot=hi;exports.createSlot$1=hC;exports.createSlottable=RK;exports.cva=ki;exports.generativeUI=xC;exports.hideOthers=CE;exports.recommended=MY;exports.useCallbackRef=zt;exports.useChatId=dj;exports.useComposedRefs=Ce;exports.useControllableState=lr;exports.useDensity=nv;exports.useElements=rv;exports.useFocusGuards=xE;exports.useId=qr;exports.useIsHydrated=jE;exports.useLayoutEffect2=Re;exports.useRadius=pA;
|
|
280
|
+
//# sourceMappingURL=index-d983oB4d.cjs.map
|