({classGroupId:e,validator:t}),Ne=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),se="-",He=[],Pa="arbitrary..",Aa=e=>{let t=Ba(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return ya(u);let c=u.split(se),p=c[0]===""&&c.length>1?1:0;return Xe(c,p,t)},getConflictingClassGroupIds:(u,c)=>{if(c){let p=o[u],f=a[u];return p?f?ka(f,p):p:f||He}return a[u]||He}}},Xe=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let l=e[t],r=a.nextPart.get(l);if(r){let f=Xe(e,t+1,r);if(f)return f}let u=a.validators;if(u===null)return;let c=t===0?e.join(se):e.slice(t).join(se),p=u.length;for(let f=0;fe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Pa+o:void 0})(),Ba=e=>{let{theme:t,classGroups:a}=e;return Ma(a,t)},Ma=(e,t)=>{let a=Ne();for(let o in e){let l=e[o];ge(l,a,o,t)}return a},ge=(e,t,a,o)=>{let l=e.length;for(let r=0;r{if(typeof e=="string"){Da(e,t,a);return}if(typeof e=="function"){Ra(e,t,a,o);return}va(e,t,a,o)},Da=(e,t,a)=>{let o=e===""?t:Ke(t,e);o.classGroupId=a},Ra=(e,t,a,o)=>{if(Ta(e)){ge(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(ba(a,e))},va=(e,t,a,o)=>{let l=Object.entries(e),r=l.length;for(let u=0;u{let a=e,o=t.split(se),l=o.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,qa=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),l=(r,u)=>{a[r]=u,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(r){let u=a[r];if(u!==void 0)return u;if((u=o[r])!==void 0)return l(r,u),u},set(r,u){r in a?a[r]=u:l(r,u)}}},Ie="!",Ge=":",Ua=[],ze=(e,t,a,o,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:l}),Oa=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=l=>{let r=[],u=0,c=0,p=0,f,L=l.length;for(let w=0;wp?f-p:void 0;return ze(r,h,g,M)};if(t){let l=t+Ge,r=o;o=u=>u.startsWith(l)?r(u.slice(l.length)):ze(Ua,!1,u,void 0,!0)}if(a){let l=o;o=r=>a({className:r,parseClassName:l})}return o},Ha=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],l=[];for(let r=0;r0&&(l.sort(),o.push(...l),l=[]),o.push(u)):l.push(u)}return l.length>0&&(l.sort(),o.push(...l)),o}},Ga=e=>({cache:qa(e.cacheSize),parseClassName:Oa(e),sortModifiers:Ha(e),postfixLookupClassGroupIds:za(e),...Aa(e)}),za=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:r,postfixLookupClassGroupIds:u}=t,c=[],p=e.trim().split(Va),f="";for(let L=p.length-1;L>=0;L-=1){let x=p[L],{isExternal:g,modifiers:h,hasImportantModifier:M,baseClassName:w,maybePostfixModifierPosition:k}=a(x);if(g){f=x+(f.length>0?" "+f:f);continue}let O=!!k,y;if(O){let R=w.substring(0,k);y=o(R);let i=y&&u[y]?o(w):void 0;i&&i!==y&&(y=i,O=!1)}else y=o(w);if(!y){if(!O){f=x+(f.length>0?" "+f:f);continue}if(y=o(w),!y){f=x+(f.length>0?" "+f:f);continue}O=!1}let K=h.length===0?"":h.length===1?h[0]:r(h).join(":"),E=M?K+Ie:K,W=E+y;if(c.indexOf(W)>-1)continue;c.push(W);let N=l(y,O);for(let R=0;R0?" "+f:f)}return f},Wa=(...e)=>{let t=0,a,o,l="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,l,r,u=p=>{let f=t.reduce((L,x)=>x(L),e());return a=Ga(f),o=a.cache.get,l=a.cache.set,r=c,c(p)},c=p=>{let f=o(p);if(f)return f;let L=Ea(p,a);return l(p,L),L};return r=u,(...p)=>r(Wa(...p))},Xa=[],I=e=>{let t=a=>a[e]||Xa;return t.isThemeGetter=!0,t},Je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ka=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Za=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ja=/\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$/,_a=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ja=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,q=e=>Ka.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),D=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&m(e.slice(0,-1)),v=e=>Za.test(e),Qe=()=>!0,$a=e=>Ja.test(e)&&!_a.test(e),Ce=()=>!1,Ya=e=>Qa.test(e),et=e=>ja.test(e),at=e=>!d(e)&&!s(e),tt=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ot=e=>U(e,Ye,Ce),d=e=>Je.test(e),G=e=>U(e,ea,$a),Ve=e=>U(e,nt,m),lt=e=>U(e,ta,Qe),rt=e=>U(e,aa,Ce),Ee=e=>U(e,je,Ce),ut=e=>U(e,$e,et),ue=e=>U(e,oa,Ya),s=e=>_e.test(e),_=e=>z(e,ea),dt=e=>z(e,aa),We=e=>z(e,je),st=e=>z(e,Ye),ft=e=>z(e,$e),de=e=>z(e,oa,!0),it=e=>z(e,ta,!0),U=(e,t,a)=>{let o=Je.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},z=(e,t,a=!1)=>{let o=_e.exec(e);return o?o[1]?t(o[1]):a:!1},je=e=>e==="position"||e==="percentage",$e=e=>e==="image"||e==="url",Ye=e=>e==="length"||e==="size"||e==="bg-size",ea=e=>e==="length",nt=e=>e==="number",aa=e=>e==="family-name",ta=e=>e==="number"||e==="weight",oa=e=>e==="shadow";var ct=()=>{let e=I("color"),t=I("font"),a=I("text"),o=I("font-weight"),l=I("tracking"),r=I("leading"),u=I("breakpoint"),c=I("container"),p=I("spacing"),f=I("radius"),L=I("shadow"),x=I("inset-shadow"),g=I("text-shadow"),h=I("drop-shadow"),M=I("blur"),w=I("perspective"),k=I("aspect"),O=I("ease"),y=I("animate"),K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...E(),s,d],N=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],i=()=>[s,d,p],B=()=>[q,"full","auto",...i()],ke=()=>[D,"none","subgrid",s,d],be=()=>["auto",{span:["full",D,s,d]},D,s,d],$=()=>[D,"auto",s,d],Pe=()=>["auto","min","max","fr",s,d],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...i()],H=()=>[q,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],ce=()=>[q,"screen","full","dvw","lvw","svw","min","max","fit",...i()],pe=()=>[q,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],n=()=>[e,s,d],Ae=()=>[...E(),We,Ee,{position:[s,d]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Be=()=>["auto","cover","contain",st,ot,{size:[s,d]}],me=()=>[xe,_,G],b=()=>["","none","full",f,s,d],P=()=>["",m,_,G],Y=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[m,xe,We,Ee],Fe=()=>["","none",M,s,d],ee=()=>["none",m,s,d],ae=()=>["none",m,s,d],Le=()=>[m,s,d],te=()=>[q,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[v],breakpoint:[v],color:[Qe],container:[v],"drop-shadow":[v],ease:["in","out","in-out"],font:[at],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[v],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[v],shadow:[v],spacing:["px",m],text:[v],"text-shadow":[v],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",q,d,s,k]}],container:["container"],"container-type":[{"@container":["","normal","size",s,d]}],"container-named":[tt],columns:[{columns:[m,d,s,c]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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:W()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",s,d]}],basis:[{basis:[q,"full","auto",c,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,q,"auto","initial","none",d]}],grow:[{grow:["",m,s,d]}],shrink:[{shrink:["",m,s,d]}],order:[{order:[D,"first","last","none",s,d]}],"grid-cols":[{"grid-cols":ke()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":ke()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Pe()}],"auto-rows":[{"auto-rows":Pe()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",a,_,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,it,lt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,d]}],"font-family":[{font:[dt,rt,t]}],"font-features":[{"font-features":[d]}],"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:[l,s,d]}],"line-clamp":[{"line-clamp":[m,"none",s,Ve]}],leading:[{leading:[r,...i()]}],"list-image":[{"list-image":["none",s,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:n()}],"text-color":[{text:n()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",s,G]}],"text-decoration-color":[{decoration:n()}],"underline-offset":[{"underline-offset":[m,"auto",s,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[D,s,d]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,d]}],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",s,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:Be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,s,d],radial:["",s,d],conic:[D,s,d]},ft,ut]}],"bg-color":[{bg:n()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:n()}],"gradient-via":[{via:n()}],"gradient-to":[{to:n()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:n()}],"border-color-x":[{"border-x":n()}],"border-color-y":[{"border-y":n()}],"border-color-s":[{"border-s":n()}],"border-color-e":[{"border-e":n()}],"border-color-bs":[{"border-bs":n()}],"border-color-be":[{"border-be":n()}],"border-color-t":[{"border-t":n()}],"border-color-r":[{"border-r":n()}],"border-color-b":[{"border-b":n()}],"border-color-l":[{"border-l":n()}],"divide-color":[{divide:n()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,s,d]}],"outline-w":[{outline:["",m,_,G]}],"outline-color":[{outline:n()}],shadow:[{shadow:["","none",L,de,ue]}],"shadow-color":[{shadow:n()}],"inset-shadow":[{"inset-shadow":["none",x,de,ue]}],"inset-shadow-color":[{"inset-shadow":n()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:n()}],"ring-offset-w":[{"ring-offset":[m,G]}],"ring-offset-color":[{"ring-offset":n()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":n()}],"text-shadow":[{"text-shadow":["none",g,de,ue]}],"text-shadow-color":[{"text-shadow":n()}],opacity:[{opacity:[m,s,d]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"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":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":n()}],"mask-image-linear-to-color":[{"mask-linear-to":n()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":n()}],"mask-image-t-to-color":[{"mask-t-to":n()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":n()}],"mask-image-r-to-color":[{"mask-r-to":n()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":n()}],"mask-image-b-to-color":[{"mask-b-to":n()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":n()}],"mask-image-l-to-color":[{"mask-l-to":n()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":n()}],"mask-image-x-to-color":[{"mask-x-to":n()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":n()}],"mask-image-y-to-color":[{"mask-y-to":n()}],"mask-image-radial":[{"mask-radial":[s,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":n()}],"mask-image-radial-to-color":[{"mask-radial-to":n()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":n()}],"mask-image-conic-to-color":[{"mask-conic-to":n()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:Be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,d]}],filter:[{filter:["","none",s,d]}],blur:[{blur:Fe()}],brightness:[{brightness:[m,s,d]}],contrast:[{contrast:[m,s,d]}],"drop-shadow":[{"drop-shadow":["","none",h,de,ue]}],"drop-shadow-color":[{"drop-shadow":n()}],grayscale:[{grayscale:["",m,s,d]}],"hue-rotate":[{"hue-rotate":[m,s,d]}],invert:[{invert:["",m,s,d]}],saturate:[{saturate:[m,s,d]}],sepia:[{sepia:["",m,s,d]}],"backdrop-filter":[{"backdrop-filter":["","none",s,d]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[m,s,d]}],"backdrop-contrast":[{"backdrop-contrast":[m,s,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,s,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,s,d]}],"backdrop-invert":[{"backdrop-invert":["",m,s,d]}],"backdrop-opacity":[{"backdrop-opacity":[m,s,d]}],"backdrop-saturate":[{"backdrop-saturate":[m,s,d]}],"backdrop-sepia":[{"backdrop-sepia":["",m,s,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",s,d]}],ease:[{ease:["linear","initial",O,s,d]}],delay:[{delay:[m,s,d]}],animate:[{animate:["none",y,s,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,s,d]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[s,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],zoom:[{zoom:[D,s,d]}],accent:[{accent:n()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:n()}],"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",s,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":n()}],"scrollbar-track-color":[{"scrollbar-track":n()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"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",s,d]}],fill:[{fill:["none",...n()]}],"stroke-w":[{stroke:[m,_,G,Ve]}],stroke:[{stroke:["none",...n()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var la=Na(ct);function A(...e){return la(re(e))}var ie={};Ca(ie,{Root:()=>mt,Slot:()=>mt,Slottable:()=>Lt,createSlot:()=>fa,createSlottable:()=>na});import*as S from"react";import*as ua from"react";function ra(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pt(...e){return t=>{let a=!1,o=e.map(l=>{let r=ra(l,t);return!a&&typeof r=="function"&&(a=!0),r});if(a)return()=>{for(let l=0;l{let{children:l,...r}=a,u=null,c=!1,p=[];sa(l)&&typeof fe=="function"&&(l=fe(l._payload)),S.Children.forEach(l,g=>{if(Ct(g)){c=!0;let h=g,M="child"in h.props?h.props.child:h.props.children;sa(M)&&typeof fe=="function"&&(M=fe(M._payload)),u=xt(h,M),p.push(u?.props?.children)}else p.push(g)}),u?u=S.cloneElement(u,void 0,p):!c&&S.Children.count(l)===1&&S.isValidElement(l)&&(u=l);let f=u?gt(u):void 0,L=da(o,f);if(!u){if(l||l===0)throw new Error(c?kt(e):wt(e));return l}let x=It(r,u.props??{});return u.type!==S.Fragment&&(x.ref=o?L:f),S.cloneElement(u,x)});return t.displayName=`${e}.Slot`,t}var mt=fa("Slot"),ia=Symbol.for("radix.slottable");function na(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=ia,t}var Lt=na("Slottable"),xt=(e,t)=>{if("child"in e.props){let a=e.props.child;return S.isValidElement(a)?S.cloneElement(a,void 0,e.props.children(a.props.children)):null}return S.isValidElement(t)?t:null};function It(e,t){let a={...t};for(let o in t){let l=e[o],r=t[o];/^on[A-Z]/.test(o)?l&&r?a[o]=(...c)=>{let p=r(...c);return l(...c),p}:l&&(a[o]=l):o==="style"?a[o]={...l,...r}:o==="className"&&(a[o]=[l,r].filter(Boolean).join(" "))}return{...e,...a}}function gt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function Ct(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ia}var ht=Symbol.for("react.lazy");function sa(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ht&&"_payload"in e&&St(e._payload)}function St(e){return typeof e=="object"&&e!==null&&"then"in e}var wt=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,kt=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,fe=S[" use ".trim().toString()];import{jsx as Pt}from"react/jsx-runtime";var bt=J("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{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:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 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 gap-1.5 rounded-md 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 ca({className:e,variant:t="default",size:a="default",asChild:o=!1,...l}){let r=o?ie.Root:"button";return Pt(r,{"data-slot":"button","data-variant":t,"data-size":a,className:A(bt({variant:t,size:a,className:e})),...l})}import{jsx as At}from"react/jsx-runtime";function pa({className:e,type:t,...a}){return At("input",{type:t,"data-slot":"input",className:A("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),...a})}import{jsx as yt}from"react/jsx-runtime";function ma({className:e,...t}){return yt("textarea",{"data-slot":"textarea",className:A("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground 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 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e),...t})}import{jsx as Q}from"react/jsx-runtime";function he({className:e,...t}){return Q("div",{"data-slot":"input-group",role:"group",className:A("group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50","has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}var Bt=J("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3","block-end":"order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3"}},defaultVariants:{align:"inline-start"}});function Se({className:e,align:t="inline-start",...a}){return Q("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:A(Bt({align:t}),e),onClick:o=>{o.target.closest("button")||o.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}var Mt=J("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function La({className:e,type:t="button",variant:a="ghost",size:o="xs",...l}){return Q(ca,{type:t,"data-size":o,variant:a,className:A(Mt({size:o}),e),...l})}function xa({className:e,...t}){return Q(pa,{"data-slot":"input-group-control",className:A("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function Ia({className:e,...t}){return Q(ma,{"data-slot":"input-group-control",className:A("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}import{jsx as Ft}from"react/jsx-runtime";function we({className:e,...t}){return Ft(T,{role:"status","aria-label":"Loading",className:A("size-4 animate-spin",e),...t})}import{jsx as V,jsxs as j}from"react/jsx-runtime";function Dt(){return j("div",{className:"flex w-full max-w-md flex-col gap-4",children:[j(he,{children:[V(xa,{placeholder:"Send a message...",disabled:!0}),V(Se,{align:"inline-end",children:V(we,{})})]}),j(he,{children:[V(Ia,{placeholder:"Send a message...",disabled:!0}),j(Se,{align:"block-end",children:[V(we,{})," Validating...",j(La,{className:"ml-auto",variant:"default",children:[V(Z,{}),V("span",{className:"sr-only",children:"Send"})]})]})]})]})}export{Dt as default};
-/*! Bundled license information:
-
-lucide-react/dist/esm/shared/src/utils.js:
- (**
- * @license lucide-react v0.456.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- *)
-
-lucide-react/dist/esm/defaultAttributes.js:
- (**
- * @license lucide-react v0.456.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- *)
-
-lucide-react/dist/esm/Icon.js:
- (**
- * @license lucide-react v0.456.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- *)
-
-lucide-react/dist/esm/createLucideIcon.js:
- (**
- * @license lucide-react v0.456.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- *)
-
-lucide-react/dist/esm/icons/arrow-up.js:
- (**
- * @license lucide-react v0.456.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- *)
-
-lucide-react/dist/esm/icons/loader-circle.js:
- (**
- * @license lucide-react v0.456.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- *)
-
-lucide-react/dist/esm/lucide-react.js:
- (**
- * @license lucide-react v0.456.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- *)
-*/
+version https://git-lfs.github.com/spec/v1
+oid sha256:152e15516635b1f8ce937fe10fbd7b55a0b369fd554c15b8ee6d721f683dde00
+size 40226
diff --git a/b/00d2212e26a720b895d884b125c12686911c8f05f012d9d435c793f5d30eec2e b/b/00d2212e26a720b895d884b125c12686911c8f05f012d9d435c793f5d30eec2e
index ad8979a11b38a05ac154eb9891a388b992b256b1..679edf18412dc767753df777092a7fca512262c0 100644
--- a/b/00d2212e26a720b895d884b125c12686911c8f05f012d9d435c793f5d30eec2e
+++ b/b/00d2212e26a720b895d884b125c12686911c8f05f012d9d435c793f5d30eec2e
@@ -1,55 +1,3 @@
-"use client";var nA=Object.create;var Mc=Object.defineProperty;var oA=Object.getOwnPropertyDescriptor;var iA=Object.getOwnPropertyNames;var aA=Object.getPrototypeOf,sA=Object.prototype.hasOwnProperty;var ca=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lA=(e,t)=>{for(var r in t)Mc(e,r,{get:t[r],enumerable:!0})},cA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iA(t))!sA.call(e,o)&&o!==r&&Mc(e,o,{get:()=>t[o],enumerable:!(n=oA(t,o))||n.enumerable});return e};var ua=(e,t,r)=>(r=e!=null?nA(aA(e)):{},cA(t||!e||!e.__esModule?Mc(r,"default",{value:e,enumerable:!0}):r,e));var df=ca((uy,_s)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},n=!0,o="[DecimalError] ",i=o+"Invalid argument: ",a=o+"Exponent out of range: ",s=Math.floor,l=Math.pow,c=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,u,f=1e7,d=7,p=9007199254740991,h=s(p/d),m={};m.absoluteValue=m.abs=function(){var y=new this.constructor(this);return y.s&&(y.s=1),y},m.comparedTo=m.cmp=function(y){var b,E,w,x,S=this;if(y=new S.constructor(y),S.s!==y.s)return S.s||-y.s;if(S.e!==y.e)return S.e>y.e^S.s<0?1:-1;for(w=S.d.length,x=y.d.length,b=0,E=wy.d[b]^S.s<0?1:-1;return w===x?0:w>x^S.s<0?1:-1},m.decimalPlaces=m.dp=function(){var y=this,b=y.d.length-1,E=(b-y.e)*d;if(b=y.d[b],b)for(;b%10==0;b/=10)E--;return E<0?0:E},m.dividedBy=m.div=function(y){return A(this,new this.constructor(y))},m.dividedToIntegerBy=m.idiv=function(y){var b=this,E=b.constructor;return j(A(b,new E(y),0,1),E.precision)},m.equals=m.eq=function(y){return!this.cmp(y)},m.exponent=function(){return O(this)},m.greaterThan=m.gt=function(y){return this.cmp(y)>0},m.greaterThanOrEqualTo=m.gte=function(y){return this.cmp(y)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return this.s===0},m.lessThan=m.lt=function(y){return this.cmp(y)<0},m.lessThanOrEqualTo=m.lte=function(y){return this.cmp(y)<1},m.logarithm=m.log=function(y){var b,E=this,w=E.constructor,x=w.precision,S=x+5;if(y===void 0)y=new w(10);else if(y=new w(y),y.s<1||y.eq(u))throw Error(o+"NaN");if(E.s<1)throw Error(o+(E.s?"NaN":"-Infinity"));return E.eq(u)?new w(0):(n=!1,b=A(k(E,S),k(y,S),S),n=!0,j(b,x))},m.minus=m.sub=function(y){var b=this;return y=new b.constructor(y),b.s==y.s?U(b,y):g(b,(y.s=-y.s,y))},m.modulo=m.mod=function(y){var b,E=this,w=E.constructor,x=w.precision;if(y=new w(y),!y.s)throw Error(o+"NaN");return E.s?(n=!1,b=A(E,y,0,1).times(y),n=!0,E.minus(b)):j(new w(E),x)},m.naturalExponential=m.exp=function(){return C(this)},m.naturalLogarithm=m.ln=function(){return k(this)},m.negated=m.neg=function(){var y=new this.constructor(this);return y.s=-y.s||0,y},m.plus=m.add=function(y){var b=this;return y=new b.constructor(y),b.s==y.s?g(b,y):U(b,(y.s=-y.s,y))},m.precision=m.sd=function(y){var b,E,w,x=this;if(y!==void 0&&y!==!!y&&y!==1&&y!==0)throw Error(i+y);if(b=O(x)+1,w=x.d.length-1,E=w*d+1,w=x.d[w],w){for(;w%10==0;w/=10)E--;for(w=x.d[0];w>=10;w/=10)E++}return y&&b>E?b:E},m.squareRoot=m.sqrt=function(){var y,b,E,w,x,S,M,R=this,L=R.constructor;if(R.s<1){if(!R.s)return new L(0);throw Error(o+"NaN")}for(y=O(R),n=!1,x=Math.sqrt(+R),x==0||x==1/0?(b=P(R.d),(b.length+y)%2==0&&(b+="0"),x=Math.sqrt(b),y=s((y+1)/2)-(y<0||y%2),x==1/0?b="5e"+y:(b=x.toExponential(),b=b.slice(0,b.indexOf("e")+1)+y),w=new L(b)):w=new L(x.toString()),E=L.precision,x=M=E+3;;)if(S=w,w=S.plus(A(R,S,M+2)).times(.5),P(S.d).slice(0,M)===(b=P(w.d)).slice(0,M)){if(b=b.slice(M-3,M+1),x==M&&b=="4999"){if(j(S,E+1,0),S.times(S).eq(R)){w=S;break}}else if(b!="9999")break;M+=4}return n=!0,j(w,E)},m.times=m.mul=function(y){var b,E,w,x,S,M,R,L,W,F=this,$=F.constructor,ie=F.d,D=(y=new $(y)).d;if(!F.s||!y.s)return new $(0);for(y.s*=F.s,E=F.e+y.e,L=ie.length,W=D.length,L=0;){for(b=0,x=L+w;x>w;)R=S[x]+D[w]*ie[x-w-1]+b,S[x--]=R%f|0,b=R/f|0;S[x]=(S[x]+b)%f|0}for(;!S[--M];)S.pop();return b?++E:S.shift(),y.d=S,y.e=E,n?j(y,$.precision):y},m.toDecimalPlaces=m.todp=function(y,b){var E=this,w=E.constructor;return E=new w(E),y===void 0?E:(v(y,0,t),b===void 0?b=w.rounding:v(b,0,8),j(E,y+O(E)+1,b))},m.toExponential=function(y,b){var E,w=this,x=w.constructor;return y===void 0?E=z(w,!0):(v(y,0,t),b===void 0?b=x.rounding:v(b,0,8),w=j(new x(w),y+1,b),E=z(w,!0,y+1)),E},m.toFixed=function(y,b){var E,w,x=this,S=x.constructor;return y===void 0?z(x):(v(y,0,t),b===void 0?b=S.rounding:v(b,0,8),w=j(new S(x),y+O(x)+1,b),E=z(w.abs(),!1,y+O(w)+1),x.isneg()&&!x.isZero()?"-"+E:E)},m.toInteger=m.toint=function(){var y=this,b=y.constructor;return j(new b(y),O(y)+1,b.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(y){var b,E,w,x,S,M,R=this,L=R.constructor,W=12,F=+(y=new L(y));if(!y.s)return new L(u);if(R=new L(R),!R.s){if(y.s<1)throw Error(o+"Infinity");return R}if(R.eq(u))return R;if(w=L.precision,y.eq(u))return j(R,w);if(b=y.e,E=y.d.length-1,M=b>=E,S=R.s,M){if((E=F<0?-F:F)<=p){for(x=new L(u),b=Math.ceil(w/d+4),n=!1;E%2&&(x=x.times(R),Z(x.d,b)),E=s(E/2),E!==0;)R=R.times(R),Z(R.d,b);return n=!0,y.s<0?new L(u).div(x):j(x,w)}}else if(S<0)throw Error(o+"NaN");return S=S<0&&y.d[Math.max(b,E)]&1?-1:1,R.s=1,n=!1,x=y.times(k(R,w+W)),n=!0,x=C(x),x.s=S,x},m.toPrecision=function(y,b){var E,w,x=this,S=x.constructor;return y===void 0?(E=O(x),w=z(x,E<=S.toExpNeg||E>=S.toExpPos)):(v(y,1,t),b===void 0?b=S.rounding:v(b,0,8),x=j(new S(x),y,b),E=O(x),w=z(x,y<=E||E<=S.toExpNeg,y)),w},m.toSignificantDigits=m.tosd=function(y,b){var E=this,w=E.constructor;return y===void 0?(y=w.precision,b=w.rounding):(v(y,1,t),b===void 0?b=w.rounding:v(b,0,8)),j(new w(E),y,b)},m.toString=m.valueOf=m.val=m.toJSON=function(){var y=this,b=O(y),E=y.constructor;return z(y,b<=E.toExpNeg||b>=E.toExpPos)};function g(y,b){var E,w,x,S,M,R,L,W,F=y.constructor,$=F.precision;if(!y.s||!b.s)return b.s||(b=new F(y)),n?j(b,$):b;if(L=y.d,W=b.d,M=y.e,x=b.e,L=L.slice(),S=M-x,S){for(S<0?(w=L,S=-S,R=W.length):(w=W,x=M,R=L.length),M=Math.ceil($/d),R=M>R?M+1:R+1,S>R&&(S=R,w.length=1),w.reverse();S--;)w.push(0);w.reverse()}for(R=L.length,S=W.length,R-S<0&&(S=R,w=W,W=L,L=w),E=0;S;)E=(L[--S]=L[S]+W[S]+E)/f|0,L[S]%=f;for(E&&(L.unshift(E),++x),R=L.length;L[--R]==0;)L.pop();return b.d=L,b.e=x,n?j(b,$):b}function v(y,b,E){if(y!==~~y||yE)throw Error(i+y)}function P(y){var b,E,w,x=y.length-1,S="",M=y[0];if(x>0){for(S+=M,b=1;bM?1:-1;else for(R=L=0;Rx[R]?1:-1;break}return L}function E(w,x,S){for(var M=0;S--;)w[S]-=M,M=w[S]1;)w.shift()}return function(w,x,S,M){var R,L,W,F,$,ie,D,V,K,N,we,te,$e,We,Pt,Bn,jt,sa,la=w.constructor,rA=w.s==x.s?1:-1,Kt=w.d,Re=x.d;if(!w.s)return new la(w);if(!x.s)throw Error(o+"Division by zero");for(L=w.e-x.e,jt=Re.length,Pt=Kt.length,D=new la(rA),V=D.d=[],W=0;Re[W]==(Kt[W]||0);)++W;if(Re[W]>(Kt[W]||0)&&--L,S==null?te=S=la.precision:M?te=S+(O(w)-O(x))+1:te=S,te<0)return new la(0);if(te=te/d+2|0,W=0,jt==1)for(F=0,Re=Re[0],te++;(W1&&(Re=y(Re,F),Kt=y(Kt,F),jt=Re.length,Pt=Kt.length),We=jt,K=Kt.slice(0,jt),N=K.length;N=f/2&&++Bn;do F=0,R=b(Re,K,jt,N),R<0?(we=K[0],jt!=N&&(we=we*f+(K[1]||0)),F=we/Bn|0,F>1?(F>=f&&(F=f-1),$=y(Re,F),ie=$.length,N=K.length,R=b($,K,ie,N),R==1&&(F--,E($,jt16)throw Error(a+O(y));if(!y.s)return new F(u);for(b==null?(n=!1,R=$):R=b,M=new F(.03125);y.abs().gte(.1);)y=y.times(M),W+=5;for(w=Math.log(l(2,W))/Math.LN10*2+5|0,R+=w,E=x=S=new F(u),F.precision=R;;){if(x=j(x.times(y),R),E=E.times(++L),M=S.plus(A(x,E,R)),P(M.d).slice(0,R)===P(S.d).slice(0,R)){for(;W--;)S=j(S.times(S),R);return F.precision=$,b==null?(n=!0,j(S,$)):S}S=M}}function O(y){for(var b=y.e*d,E=y.d[0];E>=10;E/=10)b++;return b}function _(y,b,E){if(b>y.LN10.sd())throw n=!0,E&&(y.precision=E),Error(o+"LN10 precision limit exceeded");return j(new y(y.LN10),b)}function T(y){for(var b="";y--;)b+="0";return b}function k(y,b){var E,w,x,S,M,R,L,W,F,$=1,ie=10,D=y,V=D.d,K=D.constructor,N=K.precision;if(D.s<1)throw Error(o+(D.s?"NaN":"-Infinity"));if(D.eq(u))return new K(0);if(b==null?(n=!1,W=N):W=b,D.eq(10))return b==null&&(n=!0),_(K,W);if(W+=ie,K.precision=W,E=P(V),w=E.charAt(0),S=O(D),Math.abs(S)<15e14){for(;w<7&&w!=1||w==1&&E.charAt(1)>3;)D=D.times(y),E=P(D.d),w=E.charAt(0),$++;S=O(D),w>1?(D=new K("0."+E),S++):D=new K(w+"."+E.slice(1))}else return L=_(K,W+2,N).times(S+""),D=k(new K(w+"."+E.slice(1)),W-ie).plus(L),K.precision=N,b==null?(n=!0,j(D,N)):D;for(R=M=D=A(D.minus(u),D.plus(u),W),F=j(D.times(D),W),x=3;;){if(M=j(M.times(F),W),L=R.plus(A(M,new K(x),W)),P(L.d).slice(0,W)===P(R.d).slice(0,W))return R=R.times(2),S!==0&&(R=R.plus(_(K,W+2,N).times(S+""))),R=A(R,new K($),W),K.precision=N,b==null?(n=!0,j(R,N)):R;R=L,x+=2}}function B(y,b){var E,w,x;for((E=b.indexOf("."))>-1&&(b=b.replace(".","")),(w=b.search(/e/i))>0?(E<0&&(E=w),E+=+b.slice(w+1),b=b.substring(0,w)):E<0&&(E=b.length),w=0;b.charCodeAt(w)===48;)++w;for(x=b.length;b.charCodeAt(x-1)===48;)--x;if(b=b.slice(w,x),b){if(x-=w,E=E-w-1,y.e=s(E/d),y.d=[],w=(E+1)%d,E<0&&(w+=d),wh||y.e<-h))throw Error(a+E)}else y.s=0,y.e=0,y.d=[0];return y}function j(y,b,E){var w,x,S,M,R,L,W,F,$=y.d;for(M=1,S=$[0];S>=10;S/=10)M++;if(w=b-M,w<0)w+=d,x=b,W=$[F=0];else{if(F=Math.ceil((w+1)/d),S=$.length,F>=S)return y;for(W=S=$[F],M=1;S>=10;S/=10)M++;w%=d,x=w-d+M}if(E!==void 0&&(S=l(10,M-x-1),R=W/S%10|0,L=b<0||$[F+1]!==void 0||W%S,L=E<4?(R||L)&&(E==0||E==(y.s<0?3:2)):R>5||R==5&&(E==4||L||E==6&&(w>0?x>0?W/l(10,M-x):0:$[F-1])%10&1||E==(y.s<0?8:7))),b<1||!$[0])return L?(S=O(y),$.length=1,b=b-S-1,$[0]=l(10,(d-b%d)%d),y.e=s(-b/d)||0):($.length=1,$[0]=y.e=y.s=0),y;if(w==0?($.length=F,S=1,F--):($.length=F+1,S=l(10,d-w),$[F]=x>0?(W/l(10,M-x)%l(10,x)|0)*S:0),L)for(;;)if(F==0){($[0]+=S)==f&&($[0]=1,++y.e);break}else{if($[F]+=S,$[F]!=f)break;$[F--]=0,S=1}for(w=$.length;$[--w]===0;)$.pop();if(n&&(y.e>h||y.e<-h))throw Error(a+O(y));return y}function U(y,b){var E,w,x,S,M,R,L,W,F,$,ie=y.constructor,D=ie.precision;if(!y.s||!b.s)return b.s?b.s=-b.s:b=new ie(y),n?j(b,D):b;if(L=y.d,$=b.d,w=b.e,W=y.e,L=L.slice(),M=W-w,M){for(F=M<0,F?(E=L,M=-M,R=$.length):(E=$,w=W,R=L.length),x=Math.max(Math.ceil(D/d),R)+2,M>x&&(M=x,E.length=1),E.reverse(),x=M;x--;)E.push(0);E.reverse()}else{for(x=L.length,R=$.length,F=x0;--x)L[R++]=0;for(x=$.length;x>M;){if(L[--x]<$[x]){for(S=x;S&&L[--S]===0;)L[S]=f-1;--L[S],L[x]+=f}L[x]-=$[x]}for(;L[--R]===0;)L.pop();for(;L[0]===0;L.shift())--w;return L[0]?(b.d=L,b.e=w,n?j(b,D):b):new ie(0)}function z(y,b,E){var w,x=O(y),S=P(y.d),M=S.length;return b?(E&&(w=E-M)>0?S=S.charAt(0)+"."+S.slice(1)+T(w):M>1&&(S=S.charAt(0)+"."+S.slice(1)),S=S+(x<0?"e":"e+")+x):x<0?(S="0."+T(-x-1)+S,E&&(w=E-M)>0&&(S+=T(w))):x>=M?(S+=T(x+1-M),E&&(w=E-x-1)>0&&(S=S+"."+T(w))):((w=x+1)0&&(x+1===M&&(S+="."),S+=T(w))),y.s<0?"-"+S:S}function Z(y,b){if(y.length>b)return y.length=b,!0}function X(y){var b,E,w;function x(S){var M=this;if(!(M instanceof x))return new x(S);if(M.constructor=x,S instanceof x){M.s=S.s,M.e=S.e,M.d=(S=S.d)?S.slice():S;return}if(typeof S=="number"){if(S*0!==0)throw Error(i+S);if(S>0)M.s=1;else if(S<0)S=-S,M.s=-1;else{M.s=0,M.e=0,M.d=[0];return}if(S===~~S&&S<1e7){M.e=0,M.d=[S];return}return B(M,S.toString())}else if(typeof S!="string")throw Error(i+S);if(S.charCodeAt(0)===45?(S=S.slice(1),M.s=-1):M.s=1,c.test(S))B(M,S);else throw Error(i+S)}if(x.prototype=m,x.ROUND_UP=0,x.ROUND_DOWN=1,x.ROUND_CEIL=2,x.ROUND_FLOOR=3,x.ROUND_HALF_UP=4,x.ROUND_HALF_DOWN=5,x.ROUND_HALF_EVEN=6,x.ROUND_HALF_CEIL=7,x.ROUND_HALF_FLOOR=8,x.clone=X,x.config=x.set=Q,y===void 0&&(y={}),y)for(w=["precision","rounding","toExpNeg","toExpPos","LN10"],b=0;b=x[b+1]&&w<=x[b+2])this[E]=w;else throw Error(i+E+": "+w);if((w=y[E="LN10"])!==void 0)if(w==Math.LN10)this[E]=new this(w);else throw Error(i+E+": "+w);return this}r=X(r),r.default=r.Decimal=r,u=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof _s<"u"&&_s.exports?_s.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(uy)});var i0=ca((h8,ep)=>{"use strict";var IM=Object.prototype.hasOwnProperty,at="~";function Ui(){}Object.create&&(Ui.prototype=Object.create(null),new Ui().__proto__||(at=!1));function TM(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o0(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var i=new TM(r,n||e,o),a=at?at+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function Yl(e,t){--e._eventsCount===0?e._events=new Ui:delete e._events[t]}function Qe(){this._events=new Ui,this._eventsCount=0}Qe.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)IM.call(r,n)&&t.push(at?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Qe.prototype.listeners=function(t){var r=at?at+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o{"use strict";var lp=Symbol.for("react.transitional.element"),cp=Symbol.for("react.portal"),nc=Symbol.for("react.fragment"),oc=Symbol.for("react.strict_mode"),ic=Symbol.for("react.profiler"),ac=Symbol.for("react.consumer"),sc=Symbol.for("react.context"),lc=Symbol.for("react.forward_ref"),cc=Symbol.for("react.suspense"),uc=Symbol.for("react.suspense_list"),fc=Symbol.for("react.memo"),dc=Symbol.for("react.lazy"),tD=Symbol.for("react.view_transition"),rD=Symbol.for("react.client.reference");function Dt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lp:switch(e=e.type,e){case nc:case ic:case oc:case cc:case uc:case tD:return e;default:switch(e=e&&e.$$typeof,e){case sc:case lc:case dc:case fc:return e;case ac:return e;default:return t}}case cp:return t}}}he.ContextConsumer=ac;he.ContextProvider=sc;he.Element=lp;he.ForwardRef=lc;he.Fragment=nc;he.Lazy=dc;he.Memo=fc;he.Portal=cp;he.Profiler=ic;he.StrictMode=oc;he.Suspense=cc;he.SuspenseList=uc;he.isContextConsumer=function(e){return Dt(e)===ac};he.isContextProvider=function(e){return Dt(e)===sc};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lp};he.isForwardRef=function(e){return Dt(e)===lc};he.isFragment=function(e){return Dt(e)===nc};he.isLazy=function(e){return Dt(e)===dc};he.isMemo=function(e){return Dt(e)===fc};he.isPortal=function(e){return Dt(e)===cp};he.isProfiler=function(e){return Dt(e)===ic};he.isStrictMode=function(e){return Dt(e)===oc};he.isSuspense=function(e){return Dt(e)===cc};he.isSuspenseList=function(e){return Dt(e)===uc};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nc||e===ic||e===oc||e===cc||e===uc||typeof e=="object"&&e!==null&&(e.$$typeof===dc||e.$$typeof===fc||e.$$typeof===sc||e.$$typeof===ac||e.$$typeof===lc||e.$$typeof===rD||e.getModuleId!==void 0)};he.typeOf=Dt});var uw=ca((e9,cw)=>{"use strict";cw.exports=lw()});import*as fa from"react";import{forwardRef as gA}from"react";function Zp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=hA(e,mA),f=i||{width:n,height:o,x:0,y:0},d=J("recharts-surface",a);return fa.createElement("svg",Nc({},Pe(u),{className:d,width:n,height:o,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),fa.createElement("title",null,l),fa.createElement("desc",null,c),r)});import*as da from"react";var yA=["children","className"];function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:n}=e,o=xA(e,yA),i=J("recharts-layer",n);return da.createElement("g",Lc({className:i},Pe(o),{ref:t}),r)});import{createContext as wA,useContext as V2}from"react";var Qp=wA(null);import*as gm from"react";function ue(e){return function(){return e}}var zc=Math.cos;var $o=Math.sin,Ve=Math.sqrt;var Xr=Math.PI,K2=Xr/2,Wn=2*Xr;var Bc=Math.PI,Fc=2*Bc,Zr=1e-6,SA=Fc-Zr;function Jp(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Jp;let r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;oZr)if(!(Math.abs(f*l-c*u)>Zr)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-a,h=o-s,m=l*l+c*c,g=p*p+h*h,v=Math.sqrt(m),P=Math.sqrt(d),A=i*Math.tan((Bc-Math.acos((m+d-g)/(2*v*P)))/2),C=A/P,O=A/v;Math.abs(C-1)>Zr&&this._append`L${t+C*u},${r+C*f}`,this._append`A${i},${i},0,0,${+(f*p>u*h)},${this._x1=t+O*l},${this._y1=r+O*c}`}}arc(t,r,n,o,i,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),c=t+s,u=r+l,f=1^a,d=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Zr||Math.abs(this._y1-u)>Zr)&&this._append`L${c},${u}`,n&&(d<0&&(d=d%Fc+Fc),d>SA?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:d>Zr&&this._append`A${n},${n},0,${+(d>=Bc)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}};function em(){return new Qr}em.prototype=Qr.prototype;function Vn(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Qr(t)}var J2=Array.prototype.slice;function Un(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function tm(e){this._context=e}tm.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 Er(e){return new tm(e)}function pa(e){return e[0]}function ma(e){return e[1]}function Ko(e,t){var r=ue(!0),n=null,o=Er,i=null,a=Vn(s);e=typeof e=="function"?e:e===void 0?pa:ue(e),t=typeof t=="function"?t:t===void 0?ma:ue(t);function s(l){var c,u=(l=Un(l)).length,f,d=!1,p;for(n==null&&(i=o(p=a())),c=0;c<=u;++c)!(c=p;--h)s.point(A[h],C[h]);s.lineEnd(),s.areaEnd()}v&&(A[d]=+e(g,d,f),C[d]=+t(g,d,f),s.point(n?+n(g,d,f):A[d],r?+r(g,d,f):C[d]))}if(P)return s=null,P+""||null}function u(){return Ko().defined(o).curve(a).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:ue(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ue(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ue(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:ue(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ue(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ue(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(o=typeof f=="function"?f:ue(!!f),c):o},c.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),c):a},c.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),c):i},c}var ha=class{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 Wc(e){return new ha(e,!0)}function Vc(e){return new ha(e,!1)}var Kn={draw(e,t){let r=Ve(t/Xr);e.moveTo(r,0),e.arc(0,0,r,0,Wn)}};var Uc={draw(e,t){let r=Ve(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()}};var rm=Ve(1/3),AA=rm*2,$c={draw(e,t){let r=Ve(t/AA),n=r*rm;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}};var Kc={draw(e,t){let r=Ve(t),n=-r/2;e.rect(n,n,r,r)}};var OA=.8908130915292852,nm=$o(Xr/10)/$o(7*Xr/10),EA=$o(Wn/10)*nm,CA=-zc(Wn/10)*nm,qc={draw(e,t){let r=Ve(t*OA),n=EA*r,o=CA*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){let a=Wn*i/5,s=zc(a),l=$o(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}};var Yc=Ve(3),Gc={draw(e,t){let r=-Ve(t/(Yc*3));e.moveTo(0,r*2),e.lineTo(-Yc*r,-r),e.lineTo(Yc*r,-r),e.closePath()}};var Ot=-.5,Et=Ve(3)/2,Hc=1/Ve(12),_A=(Hc/2+1)*3,Xc={draw(e,t){let r=Ve(t/_A),n=r/2,o=r*Hc,i=n,a=r*Hc+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Ot*n-Et*o,Et*n+Ot*o),e.lineTo(Ot*i-Et*a,Et*i+Ot*a),e.lineTo(Ot*s-Et*l,Et*s+Ot*l),e.lineTo(Ot*n+Et*o,Ot*o-Et*n),e.lineTo(Ot*i+Et*a,Ot*a-Et*i),e.lineTo(Ot*s+Et*l,Ot*l-Et*s),e.closePath()}};function va(e,t){let r=null,n=Vn(o);e=typeof e=="function"?e:ue(e||Kn),t=typeof t=="function"?t:ue(t===void 0?64:+t);function o(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:ue(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:ue(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function qn(){}function Yn(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 om(e){this._context=e}om.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:Yn(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:Yn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Zc(e){return new om(e)}function im(e){this._context=e}im.prototype={areaStart:qn,areaEnd:qn,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:Yn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qc(e){return new im(e)}function am(e){this._context=e}am.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:Yn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jc(e){return new am(e)}function sm(e){this._context=e}sm.prototype={areaStart:qn,areaEnd:qn,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 eu(e){return new sm(e)}function lm(e){return e<0?-1:1}function cm(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(lm(i)+lm(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function um(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function tu(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function ga(e){this._context=e}ga.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:tu(this,this._t0,um(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,tu(this,um(this,r=cm(this,e,t)),r);break;default:tu(this,this._t0,r=cm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function fm(e){this._context=new dm(e)}(fm.prototype=Object.create(ga.prototype)).point=function(e,t){ga.prototype.point.call(this,t,e)};function dm(e){this._context=e}dm.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,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function ru(e){return new ga(e)}function nu(e){return new fm(e)}function mm(e){this._context=e}mm.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=pm(e),o=pm(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=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 iu(e){return new ya(e,.5)}function au(e){return new ya(e,0)}function su(e){return new ya(e,1)}function ft(e,t){if((a=e.length)>1)for(var r=1,n,o,i=e[t[0]],a,s=i.length;r=0;)r[t]=t;return r}function kA(e,t){return e[t]}function IA(e){let t=[];return t.key=e,t}function lu(){var e=ue([]),t=Gn,r=ft,n=kA;function o(i){var a=Array.from(e.apply(this,arguments),IA),s,l=a.length,c=-1,u;for(let f of i)for(s=0,++c;s0){for(var r,n,o=0,i=e[0].length,a;o0){for(var r=0,n=e[t[0]],o,i=n.length;r0)||!((i=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,i,a;n1&&arguments[1]!==void 0?arguments[1]:RA,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function ve(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var s=r[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+qt(s)+i:o+i},"")}var ke=e=>e===0?0:e>0?1:-1,He=e=>typeof e=="number"&&e!=+e,ar=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,q=e=>(typeof e=="number"||e instanceof Number)&&!He(e),tt=e=>q(e)||typeof e=="string",DA=0,sr=e=>{var t=++DA;return"".concat(e||"").concat(t)},Ke=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&typeof t!="string")return n;var i;if(ar(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return He(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},pu=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;nn&&(typeof t=="function"?t(n):Ge(n,t))===r)}var de=e=>e===null||typeof e>"u",lr=e=>de(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function dt(e){return e!=null}function pt(){}var NA=["type","size","sizeType"];function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(lr(e));return ym[t]||Kn},UA=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*WA;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},$A=(e,t)=>{ym["symbol".concat(lr(e))]=t},vu=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=BA(e,NA),i=vm(vm({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var d=VA(a),p=va().type(d).size(UA(r,n,a)),h=p();if(h!==null)return h},{className:l,cx:c,cy:u}=i,f=Pe(i);return q(c)&&q(u)&&q(r)?gm.createElement("path",hu({},f,{className:J("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};vu.registerSymbol=$A;import{isValidElement as KA}from"react";var wa=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,xm=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(KA(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{Uo(o)&&typeof r[o]=="function"&&(n[o]=t||(i=>r[o](r,i)))}),n},qA=(e,t,r)=>n=>(e(t,r,n),null),qo=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(o=>{var i=e[o];Uo(o)&&typeof i=="function"&&(n||(n={}),n[o]=qA(i,t,r))}),n};function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function YA(e){for(var t=1;t(a[s]===void 0&&n[s]!==void 0&&(a[s]=n[s]),a),r);return i}function wm(e,t){let r=new Map;for(let n=0;nObject.prototype.propertyIsEnumerable.call(e,t))}function Zn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Em="[object RegExp]",Pa="[object String]",Aa="[object Number]",Oa="[object Boolean]",Ea="[object Arguments]",Cm="[object Symbol]",_m="[object Date]",km="[object Map]",Im="[object Set]",Tm="[object Array]";var Mm="[object ArrayBuffer]",Rm="[object Object]";var Dm="[object DataView]",Nm="[object Uint8Array]",jm="[object Uint8ClampedArray]",Lm="[object Uint16Array]",zm="[object Uint32Array]";var Bm="[object Int8Array]",Fm="[object Int16Array]",Wm="[object Int32Array]";var Vm="[object Float32Array]",Um="[object Float64Array]";var gu=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function $m(e){return typeof gu.Buffer<"u"&&gu.Buffer.isBuffer(e)}function Km(e,t){return Cr(e,void 0,e,new Map,t)}function Cr(e,t,r,n=new Map,o=void 0){let i=o?.(e,t,r,n);if(i!==void 0)return i;if(Yo(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let a=new Array(e.length);n.set(e,a);for(let s=0;s{}):yu(e,t,function n(o,i,a,s,l,c){let u=r(o,i,a,s,l,c);return u!==void 0?!!u:yu(o,i,n,c)},new Map)}function yu(e,t,r,n){if(t===e)return!0;switch(typeof t){case"object":return QA(e,t,r,n);case"function":return Object.keys(t).length>0?yu(e,{...t},r,n):Go(e,t);default:return Ca(e)?typeof t=="string"?t==="":!0:Go(e,t)}}function QA(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Ym(e,t,r,n);if(t instanceof Map)return JA(e,t,r,n);if(t instanceof Set)return eO(e,t,r,n);let o=Object.keys(t);if(e==null||Yo(e))return o.length===0;if(o.length===0)return!0;if(n?.has(t))return n.get(t)===e;n?.set(t,e);try{for(let i=0;i{})}function Gm(e){return e=qm(e),t=>_a(t,e)}function Hm(e,t){return Km(e,(r,n,o,i)=>{let a=t?.(r,n,o,i);if(a!==void 0)return a;if(typeof e=="object"){if(Zn(e)==="[object Object]"&&typeof e.constructor!="function"){let s={};return i.set(e,s),Ct(s,e,o,i),s}switch(Object.prototype.toString.call(e)){case Aa:case Pa:case Oa:{let s=new e.constructor(e?.valueOf());return Ct(s,e),s}case Ea:{let s={};return Ct(s,e),s.length=e.length,s[Symbol.iterator]=e[Symbol.iterator],s}default:return}}})}function Xm(e){return Hm(e)}var tO=/^(?:0|[1-9]\d*)$/;function ka(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e=0}function Ia(e){return e!=null&&typeof e!="function"&&th(e.length)}function rh(e){return typeof e=="object"&&e!==null}function nh(e){return rh(e)&&Ia(e)}function Ta(e,t=Sa){return nh(e)?wm(Array.from(e),Sm(eh(t),1)):[]}function oh(e,t,r){return t===!0?Ta(e,r):typeof t=="function"?Ta(e,t):e}import*as bu from"react";var{useRef:rO,useEffect:nO,useMemo:oO,useDebugValue:iO}=bu;function wu(e,t,r,n,o){let i=rO(null),a;i.current===null?(a={hasValue:!1,value:null},i.current=a):a=i.current;let[s,l]=oO(()=>{let u=!1,f,d,p=v=>{if(!u){u=!0,f=v;let O=n(v);if(o!==void 0&&a.hasValue){let _=a.value;if(o(_,O))return d=_,_}return d=O,O}let P=f,A=d;if(Object.is(P,v))return A;let C=n(v);return o!==void 0&&o(A,C)?(f=v,A):(f=v,d=C,C)},h=r===void 0?null:r;return[()=>p(t()),h===null?void 0:()=>p(h())]},[t,r,n,o]),c=bu.useSyncExternalStore(e,s,l);return nO(()=>{a.hasValue=!0,a.value=c},[c]),iO(c),c}import{useContext as ih,useMemo as sO}from"react";import{createContext as aO}from"react";var Ho=aO(null);var lO=e=>e,oe=()=>{var e=ih(Ho);return e?e.store.dispatch:lO},Ma=()=>{},cO=()=>Ma,uO=(e,t)=>e===t;function H(e){var t=ih(Ho),r=sO(()=>t?n=>{if(n!=null)return e(n)}:Ma,[t,e]);return wu(t?t.subscription.addNestedSub:cO,t?t.store.getState:Ma,t?t.store.getState:Ma,r,uO)}function fO(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function dO(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function pO(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var ah=e=>Array.isArray(e)?e:[e];function mO(e){let t=Array.isArray(e[0])?e[0]:e;return pO(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function hO(e,t){let r=[],{length:n}=e;for(let o=0;o{r=Ra(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function xO(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),fO(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);let u={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:p=lh,argsMemoizeOptions:h=[],devModeChecks:m={}}=u,g=ah(d),v=ah(h),P=mO(o),A=f(function(){return i++,c.apply(null,arguments)},...g),C=!0,O=p(function(){a++;let T=hO(P,arguments);return s=A.apply(null,T),s},...v);return Object.assign(O,{resultFunc:c,memoizedResultFunc:A,dependencies:P,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var I=xO(lh),bO=Object.assign((e,t=I)=>{dO(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>bO});function ch(e,t=1){let r=[],n=Math.floor(t),o=(i,a)=>{for(let s=0;s{if(e!==t){let n=uh(e),o=uh(t);if(n===o&&n===0){if(et)return r==="desc"?-1:1}return r==="desc"?o-n:n-o}return 0};function Da(e){return typeof e=="symbol"||e instanceof Symbol}var wO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SO=/^\w*$/;function dh(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Da(e)?!0:typeof e=="string"&&(SO.test(e)||!wO.test(e))||t!=null&&Object.hasOwn(t,e)}function ph(e,t,r,n){if(e==null)return[];r=n?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(s=>String(s));let o=(s,l)=>{let c=s;for(let u=0;ul==null||s==null?l:typeof s=="object"&&"key"in s?Object.hasOwn(l,s.key)?l[s.key]:o(l,s.path):typeof s=="function"?s(l):Array.isArray(s)?o(l,s):typeof l=="object"?l[s]:l,a=t.map(s=>(Array.isArray(s)&&s.length===1&&(s=s[0]),s==null||typeof s=="function"||Array.isArray(s)||dh(s)?s:{key:s,path:Xn(s)}));return e.map(s=>({original:s,criteria:a.map(l=>i(l,s))})).slice().sort((s,l)=>{for(let c=0;cs.original)}function cr(e,...t){let r=t.length;return r>1&&Xo(e,t[0],t[1])?t=[]:r>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),ph(e,ch(t),["asc"])}var Su=e=>e.legend.settings,mh=e=>e.legend.size,PO=e=>e.legend.payload,lV=I([PO,Su],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?cr(n,r):n});import{useCallback as AO,useState as OO}from"react";var Na=1;function hh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=OO({height:0,left:0,top:0,width:0}),n=AO(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>Na||Math.abs(a.left-t.left)>Na||Math.abs(a.top-t.top)>Na||Math.abs(a.width-t.width)>Na)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}import{useEffect as sC}from"react";function qe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var EO=typeof Symbol=="function"&&Symbol.observable||"@@observable",vh=EO,Pu=()=>Math.random().toString(36).substring(7).split("").join("."),CO={INIT:`@@redux/INIT${Pu()}`,REPLACE:`@@redux/REPLACE${Pu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Pu()}`},ja=CO;function La(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Au(e,t,r){if(typeof e!="function")throw new Error(qe(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(qe(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(qe(1));return r(Au)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((g,v)=>{a.set(v,g)}))}function u(){if(l)throw new Error(qe(3));return o}function f(g){if(typeof g!="function")throw new Error(qe(4));if(l)throw new Error(qe(5));let v=!0;c();let P=s++;return a.set(P,g),function(){if(v){if(l)throw new Error(qe(6));v=!1,c(),a.delete(P),i=null}}}function d(g){if(!La(g))throw new Error(qe(7));if(typeof g.type>"u")throw new Error(qe(8));if(typeof g.type!="string")throw new Error(qe(17));if(l)throw new Error(qe(9));try{l=!0,o=n(o,g)}finally{l=!1}return(i=a).forEach(P=>{P()}),g}function p(g){if(typeof g!="function")throw new Error(qe(10));n=g,d({type:ja.REPLACE})}function h(){let g=f;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(qe(11));function P(){let C=v;C.next&&C.next(u())}return P(),{unsubscribe:g(P)}},[vh](){return this}}}return d({type:ja.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:p,[vh]:h}}function _O(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:ja.INIT})>"u")throw new Error(qe(12));if(typeof r(void 0,{type:ja.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qe(13))})}function za(e){let t=Object.keys(e),r={};for(let a=0;a"u"){let g=l&&l.type;throw new Error(qe(14))}u[d]=m,c=c||m!==h}return c=c||n.length!==Object.keys(s).length,c?u:s}}function Zo(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function gh(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw new Error(qe(15))},a={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=Zo(...s)(o.dispatch),{...o,dispatch:i}}}function Ou(e){return La(e)&&"type"in e&&typeof e.type=="string"}var Ch=Symbol.for("immer-nothing"),yh=Symbol.for("immer-draftable"),rt=Symbol.for("immer-state");function Lt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mt=Object,Jn=mt.getPrototypeOf,Va="constructor",Ga="prototype",_u="configurable",Ua="enumerable",Fa="writable",Qo="value",Yt=e=>!!e&&!!e[rt];function _t(e){return e?_h(e)||Xa(e)||!!e[yh]||!!e[Va]?.[yh]||Za(e)||Qa(e):!1}var kO=mt[Ga][Va].toString(),xh=new WeakMap;function _h(e){if(!e||!ju(e))return!1;let t=Jn(e);if(t===null||t===mt[Ga])return!0;let r=mt.hasOwnProperty.call(t,Va)&&t[Va];if(r===Object)return!0;if(!Qn(r))return!1;let n=xh.get(r);return n===void 0&&(n=Function.toString.call(r),xh.set(r,n)),n===kO}function Ha(e,t,r=!0){ti(e)===0?(r?Reflect.ownKeys(e):mt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function ti(e){let t=e[rt];return t?t.type_:Xa(e)?1:Za(e)?2:Qa(e)?3:0}var bh=(e,t,r=ti(e))=>r===2?e.has(t):mt[Ga].hasOwnProperty.call(e,t),ku=(e,t,r=ti(e))=>r===2?e.get(t):e[t],$a=(e,t,r,n=ti(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function IO(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Xa=Array.isArray,Za=e=>e instanceof Map,Qa=e=>e instanceof Set,ju=e=>typeof e=="object",Qn=e=>typeof e=="function",Eu=e=>typeof e=="boolean";function TO(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ur=e=>e.copy_||e.base_;var Lu=e=>e.modified_?e.copy_:e.base_;function Iu(e,t){if(Za(e))return new Map(e);if(Qa(e))return new Set(e);if(Xa(e))return Array[Ga].slice.call(e);let r=_h(e);if(t===!0||t==="class_only"&&!r){let n=mt.getOwnPropertyDescriptors(e);delete n[rt];let o=Reflect.ownKeys(n);for(let i=0;i1&&mt.defineProperties(e,{set:Ba,add:Ba,clear:Ba,delete:Ba}),mt.freeze(e),t&&Ha(e,(r,n)=>{zu(n,!0)},!1)),e}function MO(){Lt(2)}var Ba={[Qo]:MO};function Ja(e){return e===null||!ju(e)?!0:mt.isFrozen(e)}var Ka="MapSet",Tu="Patches",wh="ArrayMethods",kh={};function Jr(e){let t=kh[e];return t||Lt(0,e),t}var Sh=e=>!!kh[e];var Jo,Ih=()=>Jo,RO=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Sh(Ka)?Jr(Ka):void 0,arrayMethodsPlugin_:Sh(wh)?Jr(wh):void 0});function Ph(e,t){t&&(e.patchPlugin_=Jr(Tu),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Mu(e){Ru(e),e.drafts_.forEach(DO),e.drafts_=null}function Ru(e){e===Jo&&(Jo=e.parent_)}var Ah=e=>Jo=RO(Jo,e);function DO(e){let t=e[rt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Oh(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[rt].modified_&&(Mu(t),Lt(4)),_t(e)&&(e=Eh(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[rt].base_,e,t)}else e=Eh(t,r);return NO(t,e,!0),Mu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ch?e:void 0}function Eh(e,t){if(Ja(t))return t;let r=t[rt];if(!r)return qa(t,e.handledSet_,e);if(!es(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Rh(r,e)}return r.copy_}function NO(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zu(t,r)}function Th(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var es=(e,t)=>e.scope_===t,jO=[];function Mh(e,t,r,n){let o=ur(e),i=e.type_;if(n!==void 0&&ku(o,n,i)===t){$a(o,n,r,i);return}if(!e.draftLocations_){let s=e.draftLocations_=new Map;Ha(o,(l,c)=>{if(Yt(c)){let u=s.get(c)||[];u.push(l),s.set(c,u)}})}let a=e.draftLocations_.get(t)??jO;for(let s of a)$a(o,s,r,i)}function LO(e,t,r){e.callbacks_.push(function(o){let i=t;if(!i||!es(i,o))return;o.mapSetPlugin_?.fixSetContents(i);let a=Lu(i);Mh(e,i.draft_??i,a,r),Rh(i,o)})}function Rh(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let o=n.getPath(e);o&&n.generatePatches_(e,o,t)}Th(e)}}function zO(e,t,r){let{scope_:n}=e;if(Yt(r)){let o=r[rt];es(o,n)&&o.callbacks_.push(function(){Wa(e);let a=Lu(o);Mh(e,r,a,t)})}else _t(r)&&e.callbacks_.push(function(){let i=ur(e);e.type_===3?i.has(r)&&qa(r,n.handledSet_,n):ku(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&qa(ku(e.copy_,t,e.type_),n.handledSet_,n)})}function qa(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Yt(e)||t.has(e)||!_t(e)||Ja(e)||(t.add(e),Ha(e,(n,o)=>{if(Yt(o)){let i=o[rt];if(es(i,r)){let a=Lu(i);$a(e,n,a,e.type_),Th(i)}}else _t(o)&&qa(o,t,r)})),e}function BO(e,t){let r=Xa(e),n={type_:r?1:0,scope_:t?t.scope_:Ih(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=n,i=Ya;r&&(o=[n],i=ei);let{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var Ya={get(e,t){if(t===rt)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=ur(e);if(!bh(o,t,e.type_))return FO(e,o,t);let i=o[t];if(e.finalized_||!_t(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&TO(t))return i;if(i===Cu(e.base_,t)){Wa(e);let a=e.type_===1?+t:t,s=Nu(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in ur(e)},ownKeys(e){return Reflect.ownKeys(ur(e))},set(e,t,r){let n=Dh(ur(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let o=Cu(ur(e),t),i=o?.[rt];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(IO(r,o)&&(r!==void 0||bh(e.base_,t,e.type_)))return!0;Wa(e),Du(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),zO(e,t,r)),!0},deleteProperty(e,t){return Wa(e),Cu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Du(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ur(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Fa]:!0,[_u]:e.type_!==1||t!=="length",[Ua]:n[Ua],[Qo]:r[t]}},defineProperty(){Lt(11)},getPrototypeOf(e){return Jn(e.base_)},setPrototypeOf(){Lt(12)}},ei={};for(let e in Ya){let t=Ya[e];ei[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ei.deleteProperty=function(e,t){return ei.set.call(this,e,t,void 0)};ei.set=function(e,t,r){return Ya.set.call(this,e[0],t,r,e[0])};function Cu(e,t){let r=e[rt];return(r?ur(r):e)[t]}function FO(e,t,r){let n=Dh(t,r);return n?Qo in n?n[Qo]:n.get?.call(e.draft_):void 0}function Dh(e,t){if(!(t in e))return;let r=Jn(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Jn(r)}}function Du(e){e.modified_||(e.modified_=!0,e.parent_&&Du(e.parent_))}function Wa(e){e.copy_||(e.assigned_=new Map,e.copy_=Iu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var WO=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Qn(t)&&!Qn(r)){let i=r;r=t;let a=this;return function(l=i,...c){return a.produce(l,u=>r.call(this,u,...c))}}Qn(r)||Lt(6),n!==void 0&&!Qn(n)&&Lt(7);let o;if(_t(t)){let i=Ah(this),a=Nu(i,t,void 0),s=!0;try{o=r(a),s=!1}finally{s?Mu(i):Ru(i)}return Ph(i,n),Oh(o,i)}else if(!t||!ju(t)){if(o=r(t),o===void 0&&(o=t),o===Ch&&(o=void 0),this.autoFreeze_&&zu(o,!0),n){let i=[],a=[];Jr(Tu).generateReplacementPatches_(t,o,{patches_:i,inversePatches_:a}),n(i,a)}return o}else Lt(1,t)},this.produceWithPatches=(t,r)=>{if(Qn(t))return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,o;return[this.produce(t,r,(a,s)=>{n=a,o=s}),n,o]},Eu(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Eu(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Eu(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){_t(e)||Lt(8),Yt(e)&&(e=Ye(e));let t=Ah(this),r=Nu(t,e,void 0);return r[rt].isManual_=!0,Ru(t),r}finishDraft(e,t){let r=e&&e[rt];(!r||!r.isManual_)&&Lt(9);let{scope_:n}=r;return Ph(n,t),Oh(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let n=Jr(Tu).applyPatches_;return Yt(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Nu(e,t,r,n){let[o,i]=Za(t)?Jr(Ka).proxyMap_(t,r):Qa(t)?Jr(Ka).proxySet_(t,r):BO(t,r);return(r?.scope_??Ih()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?LO(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),o}function Ye(e){return Yt(e)||Lt(10,e),Nh(e)}function Nh(e){if(!_t(e)||Ja(e))return e;let t=e[rt],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Iu(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Iu(e,!0);return Ha(r,(o,i)=>{$a(r,o,Nh(i))},n),t&&(t.finalized_=!1),r}var VO=new WO,Bu=VO.produce;function jh(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var Lh=jh(),zh=jh;var UO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zo:Zo.apply(null,arguments)},xV=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},$O=e=>e&&typeof e.match=="function";function Ne(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(ht(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Ou(n)&&n.type===e,r}var qh=class ri extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ri.prototype)}static get[Symbol.species](){return ri}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ri(...t[0].concat(this)):new ri(...t.concat(this))}};function Bh(e){return _t(e)?Bu(e,()=>{}):e}function ts(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function KO(e){return typeof e=="boolean"}var qO=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{},a=new qh;return r&&(KO(r)?a.push(Lh):a.push(zh(r.extraArgument))),a},Yh="RTK_autoBatch",fe=()=>e=>({payload:e,meta:{[Yh]:!0}}),Fh=e=>t=>{setTimeout(t,e)},YO=(e,t)=>r=>{let n=!1,o=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(o),a=setTimeout(o,t)},Uu=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,a=!1,s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?YO(window.requestAnimationFrame,100):Fh(10):e.type==="callback"?e.queueNotification:Fh(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let f=()=>o&&u(),d=n.subscribe(f);return s.add(u),()=>{d(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Yh],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},GO=e=>function(r){let{autoBatch:n=!0}=r??{},o=new qh(e);return n&&o.push(Uu(typeof n=="object"?n:void 0)),o};function Gh(e){let t=qO(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{},l;if(typeof r=="function")l=r;else if(La(r))l=za(r);else throw new Error(ht(1));let c;typeof n=="function"?c=n(t):c=t();let u=Zo;o&&(u=UO({trace:!1,...typeof o=="object"&&o}));let f=gh(...c),d=GO(f),p=typeof s=="function"?s(d):d(),h=u(...p);return Au(l,a,h)}function Hh(e){let t={},r=[],n,o={addCase(i,a){let s=typeof i=="string"?i:i.type;if(!s)throw new Error(ht(28));if(s in t)throw new Error(ht(29));return t[s]=a,o},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function HO(e){return typeof e=="function"}function XO(e,t){let[r,n,o]=Hh(t),i;if(HO(e))i=()=>Bh(e());else{let s=Bh(e);i=()=>s}function a(s=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,f)=>{if(f)if(Yt(u)){let p=f(u,l);return p===void 0?u:p}else{if(_t(u))return Bu(u,d=>f(d,l));{let d=f(u,l);if(d===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return u},s)}return a.getInitialState=i,a}var ZO=(e,t)=>$O(e)?e.match(t):e(t);function QO(...e){return t=>e.some(r=>ZO(r,t))}var JO="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xh=(e=21)=>{let t="",r=e;for(;r--;)t+=JO[Math.random()*64|0];return t},eE=["name","message","stack","code"],Fu=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Wh=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},tE=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of eE)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Vh="External signal was aborted",rE=(()=>{function e(t,r,n){let o=Ne(t+"/fulfilled",(l,c,u,f)=>({payload:l,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),i=Ne(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),a=Ne(t+"/rejected",(l,c,u,f,d)=>({payload:f,error:(n&&n.serializeError||tE)(l||"Rejected"),meta:{...d||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function s(l,{signal:c}={}){return(u,f,d)=>{let p=n?.idGenerator?n.idGenerator(l):Xh(),h=new AbortController,m,g;function v(A){g=A,h.abort()}c&&(c.aborted?v(Vh):c.addEventListener("abort",()=>v(Vh),{once:!0}));let P=async function(){let A;try{let O=n?.condition?.(l,{getState:f,extra:d});if(oE(O)&&(O=await O),O===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let _=new Promise((T,k)=>{m=()=>{k({name:"AbortError",message:g||"Aborted"})},h.signal.addEventListener("abort",m,{once:!0})});u(i(p,l,n?.getPendingMeta?.({requestId:p,arg:l},{getState:f,extra:d}))),A=await Promise.race([_,Promise.resolve(r(l,{dispatch:u,getState:f,extra:d,requestId:p,signal:h.signal,abort:v,rejectWithValue:(T,k)=>new Fu(T,k),fulfillWithValue:(T,k)=>new Wh(T,k)})).then(T=>{if(T instanceof Fu)throw T;return T instanceof Wh?o(T.payload,p,l,T.meta):o(T,p,l)})])}catch(O){A=O instanceof Fu?a(null,p,l,O.payload,O.meta):a(O,p,l)}finally{m&&h.signal.removeEventListener("abort",m)}return n&&!n.dispatchConditionRejection&&a.match(A)&&A.meta.condition||u(A),A}();return Object.assign(P,{abort:v,requestId:p,arg:l,unwrap(){return P.then(nE)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:o,settled:QO(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function nE(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function oE(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Zh=Symbol.for("rtk-slice-createasyncthunk"),wV={[Zh]:rE};function iE(e,t){return`${e}/${t}`}function aE({creators:e}={}){let t=e?.asyncThunk?.[Zh];return function(n){let{name:o,reducerPath:i=o}=n;if(!o)throw new Error(ht(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(lE()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(A,C){let O=typeof A=="string"?A:A.type;if(!O)throw new Error(ht(12));if(O in l.sliceCaseReducersByType)throw new Error(ht(13));return l.sliceCaseReducersByType[O]=C,c},addMatcher(A,C){return l.sliceMatchers.push({matcher:A,reducer:C}),c},exposeAction(A,C){return l.actionCreators[A]=C,c},exposeCaseReducer(A,C){return l.sliceCaseReducersByName[A]=C,c}};s.forEach(A=>{let C=a[A],O={reducerName:A,type:iE(o,A),createNotation:typeof n.reducers=="function"};uE(C)?dE(O,C,c,t):cE(O,C,c)});function u(){let[A={},C=[],O=void 0]=typeof n.extraReducers=="function"?Hh(n.extraReducers):[n.extraReducers],_={...A,...l.sliceCaseReducersByType};return XO(n.initialState,T=>{for(let k in _)T.addCase(k,_[k]);for(let k of l.sliceMatchers)T.addMatcher(k.matcher,k.reducer);for(let k of C)T.addMatcher(k.matcher,k.reducer);O&&T.addDefaultCase(O)})}let f=A=>A,d=new Map,p=new WeakMap,h;function m(A,C){return h||(h=u()),h(A,C)}function g(){return h||(h=u()),h.getInitialState()}function v(A,C=!1){function O(T){let k=T[A];return typeof k>"u"&&C&&(k=ts(p,O,g)),k}function _(T=f){let k=ts(d,C,()=>new WeakMap);return ts(k,T,()=>{let B={};for(let[j,U]of Object.entries(n.selectors??{}))B[j]=sE(U,T,()=>ts(p,T,g),C);return B})}return{reducerPath:A,getSelectors:_,get selectors(){return _(O)},selectSlice:O}}let P={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:g,...v(i),injectInto(A,{reducerPath:C,...O}={}){let _=C??i;return A.inject({reducerPath:_,reducer:m},O),{...P,...v(_,!0)}}};return P}}function sE(e,t,r,n){function o(i,...a){let s=t(i);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return o.unwrapped=e,o}var le=aE();function lE(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function cE({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!fE(n))throw new Error(ht(17));i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Ne(e,a):Ne(e))}function uE(e){return e._reducerDefinitionType==="asyncThunk"}function fE(e){return e._reducerDefinitionType==="reducerWithPrepare"}function dE({type:e,reducerName:t},r,n,o){if(!o)throw new Error(ht(18));let{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,f=o(e,i,u);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:a||rs,pending:s||rs,rejected:l||rs,settled:c||rs})}function rs(){}var pE="task",Qh="listener",Jh="completed",$u="cancelled",mE=`task-${$u}`,hE=`task-${Jh}`,Wu=`${Qh}-${$u}`,vE=`${Qh}-${Jh}`,is=class{constructor(e){this.code=e,this.message=`${pE} ${$u} (reason: ${e})`}code;name="TaskAbortError";message},Ku=(e,t)=>{if(typeof e!="function")throw new TypeError(ht(32))},ns=()=>{},ev=(e,t=ns)=>(e.catch(t),e),tv=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),en=e=>{if(e.aborted)throw new is(e.reason)};function rv(e,t){let r=ns;return new Promise((n,o)=>{let i=()=>o(new is(e.reason));if(e.aborted){i();return}r=tv(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=ns})}var gE=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof is?"cancelled":"rejected",error:r}}finally{t?.()}},os=e=>t=>ev(rv(e,t).then(r=>(en(e),r))),nv=e=>{let t=os(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:eo}=Object,Uh={},as="listenerMiddleware",yE=(e,t)=>{let r=n=>tv(e,()=>n.abort(e.reason));return(n,o)=>{Ku(n,"taskExecutor");let i=new AbortController;r(i);let a=gE(async()=>{en(e),en(i.signal);let s=await n({pause:os(i.signal),delay:nv(i.signal),signal:i.signal});return en(i.signal),s},()=>i.abort(hE));return o?.autoJoin&&t.push(a.catch(ns)),{result:os(e)(a),cancel(){i.abort(mE)}}}},xE=(e,t)=>{let r=async(n,o)=>{en(t);let i=()=>{},s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{let l=await rv(t,Promise.race(s));return en(t),l}finally{i()}};return(n,o)=>ev(r(n,o))},ov=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=Ne(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(ht(21));return Ku(i,"options.listener"),{predicate:o,type:t,effect:i}},iv=eo(e=>{let{type:t,predicate:r,effect:n}=ov(e);return{id:Xh(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(ht(22))}}},{withTypes:()=>iv}),$h=(e,t)=>{let{type:r,effect:n,predicate:o}=ov(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Vu=e=>{e.pending.forEach(t=>{t.abort(Wu)})},bE=(e,t)=>()=>{for(let r of t.keys())Vu(r);e.clear()},Kh=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},av=eo(Ne(`${as}/add`),{withTypes:()=>av}),wE=Ne(`${as}/removeAll`),sv=eo(Ne(`${as}/remove`),{withTypes:()=>sv}),SE=(...e)=>{console.error(`${as}/error`,...e)},fr=(e={})=>{let t=new Map,r=new Map,n=p=>{let h=r.get(p)??0;r.set(p,h+1)},o=p=>{let h=r.get(p)??1;h===1?r.delete(p):r.set(p,h-1)},{extra:i,onError:a=SE}=e;Ku(a,"onError");let s=p=>(p.unsubscribe=()=>t.delete(p.id),t.set(p.id,p),h=>{p.unsubscribe(),h?.cancelActive&&Vu(p)}),l=p=>{let h=$h(t,p)??iv(p);return s(h)};eo(l,{withTypes:()=>l});let c=p=>{let h=$h(t,p);return h&&(h.unsubscribe(),p.cancelActive&&Vu(h)),!!h};eo(c,{withTypes:()=>c});let u=async(p,h,m,g)=>{let v=new AbortController,P=xE(l,v.signal),A=[];try{p.pending.add(v),n(p),await Promise.resolve(p.effect(h,eo({},m,{getOriginalState:g,condition:(C,O)=>P(C,O).then(Boolean),take:P,delay:nv(v.signal),pause:os(v.signal),extra:i,signal:v.signal,fork:yE(v.signal,A),unsubscribe:p.unsubscribe,subscribe:()=>{t.set(p.id,p)},cancelActiveListeners:()=>{p.pending.forEach((C,O,_)=>{C!==v&&(C.abort(Wu),_.delete(C))})},cancel:()=>{v.abort(Wu),p.pending.delete(v)},throwIfCancelled:()=>{en(v.signal)}})))}catch(C){C instanceof is||Kh(a,C,{raisedBy:"effect"})}finally{await Promise.all(A),v.abort(vE),o(p),p.pending.delete(v)}},f=bE(t,r);return{middleware:p=>h=>m=>{if(!Ou(m))return h(m);if(av.match(m))return l(m.payload);if(wE.match(m)){f();return}if(sv.match(m))return c(m.payload);let g=p.getState(),v=()=>{if(g===Uh)throw new Error(ht(23));return g},P;try{if(P=h(m),t.size>0){let A=p.getState(),C=Array.from(t.values());for(let O of C){let _=!1;try{_=O.predicate(m,A,g)}catch(T){_=!1,Kh(a,T,{raisedBy:"predicate"})}_&&u(O,m,p,v)}}}finally{g=Uh}return P},startListening:l,stopListening:c,clearListeners:f}};function ht(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var PE={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},lv=le({name:"chartLayout",initialState:PE,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,o,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:qu,setLayout:cv,setChartSize:uv,setScale:fv}=lv.actions,dv=lv.reducer;function ss(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ee(e){return Number.isFinite(e)}function zt(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function pv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function to(e){for(var t=1;t{if(t&&r){var{width:n,height:o}=r,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&q(e[i]))return to(to({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&q(e[a]))return to(to({},e),{},{[a]:e[a]+(o||0)})}return e},Bt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis";var hv=(e,t)=>{if(!t||t.length!==2||!q(t[0])||!q(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!q(e[0])||e[0]n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o=0?(c[0]=i,i+=d,c[1]=i):(c[0]=a,a+=d,c[1]=a)}}}},_E=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},kE={sign:CE,expand:cu,none:ft,silhouette:uu,wiggle:fu,positive:_E},vv=(e,t,r)=>{var n,o=(n=kE[r])!==null&&n!==void 0?n:ft,i=lu().keys(t).value((s,l)=>Number(Se(s,l,0))).order(Gn).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var f=Se(e[u],t[l],0);Array.isArray(f)&&f.length===2&&q(f[0])&&q(f[1])&&(c[0]=f[0],c[1]=f[1])})}),a};function gv(e){return e==null?void 0:String(e)}var Yu=e=>{var{axis:t,ticks:r,offset:n,bandSize:o,entry:i,index:a}=e;if(t.type==="category")return r[a]?r[a].coordinate+n:null;var s=Se(i,t.dataKey,t.scale.domain()[a]);if(de(s))return null;var l=t.scale.map(s);return q(l)?l-o/2+n:null},yv=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},IE=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},TE=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],xv=(e,t,r)=>{if(e!=null)return TE(Object.keys(e).reduce((n,o)=>{var i=e[o];if(!i)return n;var{stackedData:a}=i,s=a.reduce((l,c)=>{var u=ss(c,t,r),f=IE(u);return!ee(f[0])||!ee(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},Gu=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hu=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ro=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=cr(t,u=>u.coordinate),i=1/0,a=1,s=o.length;a{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},wv=(e,t)=>t==="centric"?e.angle:e.radius;var Xe=e=>e.layout.width,Ze=e=>e.layout.height,Sv=e=>e.layout.scale,ls=e=>e.layout.margin;var no=I(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),oo=I(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var Pv="data-recharts-item-index",Av="data-recharts-item-id",tn=60;function Ov(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cs(e){for(var t=1;te.brush.height;function jE(e){var t=oo(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:tn;return r+o}return r},0)}function LE(e){var t=oo(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:tn;return r+o}return r},0)}function zE(e){var t=no(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function BE(e){var t=no(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var pe=I([Xe,Ze,ls,NE,jE,LE,zE,BE,Su,mh],(e,t,r,n,o,i,a,s,l,c)=>{var u={left:(r.left||0)+o,right:(r.right||0)+i},f={top:(r.top||0)+a,bottom:(r.bottom||0)+s},d=cs(cs({},f),u),p=d.bottom;d.bottom+=n,d=mv(d,l,c);var h=e-d.left-d.right,m=t-d.top-d.bottom;return cs(cs({brushBottom:p},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),Ev=I(pe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),us=I(Xe,Ze,(e,t)=>({x:0,y:0,width:e,height:t}));import*as FE from"react";import{createContext as WE,useContext as VE}from"react";var UE=WE(null),Oe=()=>VE(UE)!=null;var io=e=>e.brush,rn=I([io,pe,ls],(e,t,r)=>({height:e.height,x:q(e.x)?e.x:t.left,y:q(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:q(e.width)?e.width:t.width}));import*as nn from"react";import{createContext as QE,forwardRef as Dv,useCallback as JE,useContext as eC,useEffect as tC,useImperativeHandle as rC,useMemo as nC,useRef as Rv,useState as oC}from"react";function Cv(e,t,{signal:r,edges:n}={}){let o,i=null,a=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),l=()=>{i!==null&&(e.apply(o,i),o=void 0,i=null)},c=()=>{s&&l(),p()},u=null,f=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,c()},t)},d=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{d(),o=void 0,i=null},h=()=>{l()},m=function(...g){if(r?.aborted)return;o=this,i=g;let v=u==null;f(),a&&v&&l()};return m.schedule=f,m.cancel=p,m.flush=h,r?.addEventListener("abort",p,{once:!0}),m}function _v(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:n=!1,trailing:o=!0,maxWait:i}=r,a=Array(2);n&&(a[0]="leading"),o&&(a[1]="trailing");let s,l=null,c=Cv(function(...d){s=e.apply(this,d),l=null},t,{edges:a}),u=function(...d){return i!=null&&(l===null&&(l=Date.now()),Date.now()-l>=i)?(s=e.apply(this,d),l=Date.now(),c.cancel(),c.schedule(),s):(c.apply(this,d),s)},f=()=>(c.flush(),s);return u.cancel=c.cancel,u.flush=f,u}function Qu(e,t=0,r={}){let{leading:n=!0,trailing:o=!0}=r;return _v(e,t,{leading:n,maxWait:t,trailing:o})}var $E=!0,Ju=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;io[a++]))}};var Ft={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ef=(e,t,r)=>{var{width:n=Ft.width,height:o=Ft.height,aspect:i,maxHeight:a}=r,s=ar(n)?e:Number(n),l=ar(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},KE={width:0,height:0,overflow:"visible"},qE={width:0,overflowX:"visible"},YE={height:0,overflowY:"visible"},GE={},kv=e=>{var{width:t,height:r}=e,n=ar(t),o=ar(r);return n&&o?KE:n?qE:o?YE:GE};function Iv(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=Ft.width,i=Ft.height):o===void 0?o=n&&n>0?void 0:Ft.width:i===void 0&&(i=n&&n>0?void 0:Ft.height),{width:o,height:i}}function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:n}),[r,n]);return iC(o)?nn.createElement(Nv.Provider,{value:o},t):null}var ni=()=>eC(Nv),aC=Dv((e,t)=>{var{aspect:r,initialDimension:n=Ft.initialDimension,width:o,height:i,minWidth:a=Ft.minWidth,minHeight:s,maxHeight:l,children:c,debounce:u=Ft.debounce,id:f,className:d,onResize:p,style:h={}}=e,m=Rv(null),g=Rv();g.current=p,rC(t,()=>m.current);var[v,P]=oC({containerWidth:n.width,containerHeight:n.height}),A=JE((k,B)=>{P(j=>{var U=Math.round(k),z=Math.round(B);return j.containerWidth===U&&j.containerHeight===z?j:{containerWidth:U,containerHeight:z}})},[]);tC(()=>{if(m.current==null||typeof ResizeObserver>"u")return pt;var k=z=>{var Z,X=z[0];if(X!=null){var{width:Q,height:y}=X.contentRect;A(Q,y),(Z=g.current)===null||Z===void 0||Z.call(g,Q,y)}};u>0&&(k=Qu(k,u,{trailing:!0,leading:!1}));var B=new ResizeObserver(k),{width:j,height:U}=m.current.getBoundingClientRect();return A(j,U),B.observe(m.current),()=>{B.disconnect()}},[A,u]);var{containerWidth:C,containerHeight:O}=v;Ju(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:_,calculatedHeight:T}=ef(C,O,{width:o,height:i,aspect:r,maxHeight:l});return Ju(_!=null&&_>0||T!=null&&T>0,`The width(%s) and height(%s) of chart should be greater than 0,
- please check the style of container, or the props width(%s) and height(%s),
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
- height and width.`,_,T,o,i,a,s,r),nn.createElement("div",{id:f?"".concat(f):void 0,className:J("recharts-responsive-container",d),style:Mv(Mv({},h),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},nn.createElement("div",{style:kv({width:o,height:i})},nn.createElement(jv,{width:_,height:T},c)))}),rf=Dv((e,t)=>{var r=ni();if(zt(r.width)&&zt(r.height))return e.children;var{width:n,height:o}=Iv({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=ef(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?nn.createElement(jv,{width:i,height:a},e.children):nn.createElement(aC,tf({},e,{width:n,height:o,ref:t}))});function oi(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var on=()=>{var e,t=Oe(),r=H(Ev),n=H(rn),o=(e=H(io))===null||e===void 0?void 0:e.padding;return!t||!n||!o?r:{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}},lC={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Lv=()=>{var e;return(e=H(pe))!==null&&e!==void 0?e:lC},zv=()=>H(Xe),Bv=()=>H(Ze);var ae=e=>e.layout.layoutType,Gt=()=>H(ae),Fv=()=>{var e=Gt();if(e==="horizontal"||e==="vertical")return e},nf=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t};var Wv=()=>{var e=Gt();return e!==void 0},an=e=>{var t=oe(),r=Oe(),{width:n,height:o}=e,i=ni(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),sC(()=>{!r&&zt(a)&&zt(s)&&t(uv({width:a,height:s}))},[t,r,a,s]),null};var cC={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Vv=le({name:"legend",initialState:cC,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:fe()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ye(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:fe()},removeLegendPayload:{reducer(e,t){var r=Ye(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:fe()}}}),{setLegendSize:TU,setLegendSettings:MU,addLegendPayload:Uv,replaceLegendPayload:$v,removeLegendPayload:Kv}=Vv.actions,qv=Vv.reducer;import*as Ee from"react";var uC=Symbol.for("react.forward_ref");var fC=Symbol.for("react.memo");var dC=uC,pC=fC;function mC(e){e()}function hC(){let e=null,t=null;return{clear(){e=null,t=null},notify(){mC(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Yv={notify(){},get:()=>[]};function vC(e,t){let r,n=Yv,o=0,i=!1;function a(m){u();let g=n.subscribe(m),v=!1;return()=>{v||(v=!0,g(),f())}}function s(){n.notify()}function l(){h.onStateChange&&h.onStateChange()}function c(){return i}function u(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=hC())}function f(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Yv)}function d(){i||(i=!0,u())}function p(){i&&(i=!1,f())}let h={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>n};return h}var gC=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yC=gC(),xC=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bC=xC(),wC=()=>yC||bC?Ee.useLayoutEffect:Ee.useEffect,SC=wC();function Gv(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Hv(e,t){if(Gv(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o{let l=vC(o);return{store:o,subscription:l,getServerState:n?()=>n:void 0}},[o,n]),a=Ee.useMemo(()=>o.getState(),[o]);return SC(()=>{let{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]),Ee.createElement((r||_C).Provider,{value:i},t)}var Xv=kC;var IC=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function TC(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function _r(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(IC.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Hv(e[n],t[n]))return!1}else if(!TC(e[n],t[n]))return!1;return!0}import*as Rt from"react";import{useEffect as qM}from"react";import{createPortal as YM}from"react-dom";import*as Wt from"react";function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=ao.separator,contentStyle:r,itemStyle:n,labelStyle:o=ao.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:f,accessibilityLayer:d=ao.accessibilityLayer}=e,p=()=>{if(i&&i.length){var O={padding:0,margin:0},_=jC(i,s),T=_.map((k,B)=>{if(k.type==="none")return null;var j=k.formatter||a||NC,{value:U,name:z}=k,Z=U,X=z;if(j){var Q=j(U,z,k,B,i);if(Array.isArray(Q))[Z,X]=Q;else if(Q!=null)Z=Q;else return null}var y=ii(ii({},ao.itemStyle),{},{color:k.color||ao.itemStyle.color},n);return Wt.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(B),style:y},tt(X)?Wt.createElement("span",{className:"recharts-tooltip-item-name"},X):null,tt(X)?Wt.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,Wt.createElement("span",{className:"recharts-tooltip-item-value"},Z),Wt.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return Wt.createElement("ul",{className:"recharts-tooltip-item-list",style:O},T)}return null},h=ii(ii({},ao.contentStyle),r),m=ii({margin:0},o),g=!de(u),v=g?u:"",P=J("recharts-default-tooltip",l),A=J("recharts-tooltip-label",c);g&&f&&i!==void 0&&i!==null&&(v=f(u,i));var C=d?{role:"status","aria-live":"assertive"}:{};return Wt.createElement("div",of({className:P,style:h},C),Wt.createElement("p",{className:A,style:m},Wt.isValidElement(v)?v:"".concat(v)),p())};import*as kr from"react";var ai="recharts-tooltip-wrapper",LC={visibility:"hidden"};function zC(e){var{coordinate:t,translateX:r,translateY:n}=e;return J(ai,{["".concat(ai,"-right")]:q(r)&&t&&q(t.x)&&r>=t.x,["".concat(ai,"-left")]:q(r)&&t&&q(t.x)&&r=t.y,["".concat(ai,"-top")]:q(n)&&t&&q(t.y)&&n0?o:0),f=r[n]+o;if(t[n])return a[n]?u:f;var d=l[n];if(d==null)return 0;if(a[n]){var p=u,h=d;return pg?Math.max(u,d):Math.max(f,d)}function BC(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function eg(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:o,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,u,f,d;return s.height>0&&s.width>0&&r?(f=Jv({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),d=Jv({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=BC({translateX:f,translateY:d,useTranslate3d:l})):u=LC,{cssProperties:u,cssClasses:zC({translateX:f,translateY:d,coordinate:r})}}import{useEffect as WC,useState as VC}from"react";var FC=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),kt={devToolsEnabled:!0,isSsr:FC()};function fs(){var[e,t]=VC(()=>kt.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return WC(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(r.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}},[]),e}function tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function so(e){for(var t=1;t({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));kr.useEffect(()=>{var h=m=>{if(m.key==="Escape"){var g,v,P,A;c({dismissed:!0,dismissedAtCoordinate:{x:(g=(v=e.coordinate)===null||v===void 0?void 0:v.x)!==null&&g!==void 0?g:0,y:(P=(A=e.coordinate)===null||A===void 0?void 0:A.y)!==null&&P!==void 0?P:0}})}};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),l.dismissed&&(((n=(o=e.coordinate)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)!==l.dismissedAtCoordinate.x||((i=(a=e.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)!==l.dismissedAtCoordinate.y)&&c(so(so({},l),{},{dismissed:!1}));var{cssClasses:u,cssProperties:f}=eg({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:so(so({transition:qC({prefersReducedMotion:s,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),p=so(so({},d),{},{visibility:!l.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return kr.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:u,style:p,ref:e.innerRef},e.children)}var rg=kr.memo(YC);var ds=()=>{var e;return(e=H(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as ql from"react";import{cloneElement as PM,createElement as AM,isValidElement as OM}from"react";import*as lg from"react";function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;tee(e.x)&&ee(e.y),ag=e=>e.base!=null&&ps(e.base)&&ps(e),si=e=>e.x,li=e=>e.y,ZC=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(lr(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=ig["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return ig[r]||Er},sg={connectNulls:!1,type:"linear"},QC=e=>{var{type:t=sg.type,points:r=[],baseLine:n,layout:o,connectNulls:i=sg.connectNulls}=e,a=ZC(t,o),s=i?r.filter(ps):r;if(Array.isArray(n)){var l,c=r.map((h,m)=>og(og({},h),{},{base:n[m]}));o==="vertical"?l=$n().y(li).x1(si).x0(h=>h.base.x):l=$n().x(si).y1(li).y0(h=>h.base.y);var u=l.defined(ag).curve(a),f=i?c.filter(ag):c;return u(f)}var d;o==="vertical"&&q(n)?d=$n().y(li).x1(si).x0(n):q(n)?d=$n().x(si).y1(li).y0(n):d=Ko().x(si).y(li);var p=d.defined(ps).curve(a);return p(s)},ms=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=Gt();if((!r||!r.length)&&!n)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?QC(a):n;return lg.createElement("path",af({},At(e),xm(e),{className:J("recharts-curve",t),d:s===null?void 0:s,ref:o}))};import*as ug from"react";var JC=["x","y","top","left","width","height","className"];function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),fg=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=o1(e,JC),c=e1({x:t,y:r,top:n,left:o,width:i,height:a},l);return!q(t)||!q(r)||!q(i)||!q(a)||!q(n)||!q(o)?null:ug.createElement("path",sf({},Pe(c),{className:J("recharts-cross",s),d:a1(t,r,i,a,n,o)}))};function dg(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}import*as xs from"react";import{useEffect as D1,useMemo as N1,useRef as ci,useState as j1}from"react";import{useEffect as Cg,useRef as O1,useState as E1}from"react";function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function mg(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),hs=(e,t,r)=>e.map(n=>"".concat(u1(n)," ").concat(t,"ms ").concat(r)).join(","),hg=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),lo=(e,t)=>Object.keys(t).reduce((r,n)=>mg(mg({},r),{},{[n]:e(n,t[n])}),{});function vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;te+(t-e)*r,lf=e=>{var{from:t,to:r}=e;return t!==r},gg=(e,t,r)=>{var n=lo((o,i)=>{if(lf(i)){var[a,s]=e(i.from,i.to,i.velocity);return je(je({},i),{},{from:a,velocity:s})}return i},t);return r<1?lo((o,i)=>lf(i)&&n[o]!=null?je(je({},i),{},{velocity:vs(i.velocity,n[o].velocity,r),from:vs(i.from,n[o].from,r)}):i,t):gg(e,n,r-1)};function m1(e,t,r,n,o,i){var a,s=n.reduce((d,p)=>je(je({},d),{},{[p]:{from:e[p],velocity:0,to:t[p]}}),{}),l=()=>lo((d,p)=>p.from,s),c=()=>!Object.values(s).filter(lf).length,u=null,f=d=>{a||(a=d);var p=d-a,h=p/r.dt;s=gg(r,s,h),o(je(je(je({},e),t),l())),a=d,c()||(u=i.setTimeout(f))};return()=>(u=i.setTimeout(f),()=>{var d;(d=u)===null||d===void 0||d()})}function h1(e,t,r,n,o,i,a){var s=null,l=o.reduce((f,d)=>{var p=e[d],h=t[d];return p==null||h==null?f:je(je({},f),{},{[d]:[p,h]})},{}),c,u=f=>{c||(c=f);var d=(f-c)/n,p=lo((m,g)=>vs(...g,r(d)),l);if(i(je(je(je({},e),t),p)),d<1)s=a.setTimeout(u);else{var h=lo((m,g)=>vs(...g,r(1)),l);i(je(je(je({},e),t),h))}};return()=>(s=a.setTimeout(u),()=>{var f;(f=s)===null||f===void 0||f()})}var yg=(e,t,r,n,o,i)=>{var a=hg(e,t);return r==null?()=>(o(je(je({},e),t)),()=>{}):r.isStepper===!0?m1(e,t,r,a,o,i):h1(e,t,r,n,a,o,i)};var gs=1e-4,wg=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Sg=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),xg=(e,t)=>r=>{var n=wg(e,t);return Sg(n,r)},v1=(e,t)=>r=>{var n=wg(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return Sg(o,r)},g1=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var o=n.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},y1=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var o=xg(e,r),i=xg(t,n),a=v1(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,f=u,d=0;d<8;++d){var p=o(f)-u,h=a(f);if(Math.abs(p-u)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*r,u=l*n,f=l+(c-u)*o/1e3,d=l*o/1e3+a;return Math.abs(d-s){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return bg(e);case"spring":return b1();default:if(e.split("(")[0]==="cubic-bezier")return bg(e)}return typeof e=="function"?e:null};import{createContext as w1,useContext as S1,useMemo as P1}from"react";function Ag(e){var t,r=()=>null,n=!1,o=null,i=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,o&&(o(),o=null),i(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}var ys=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),o=null,i=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}};function Og(){return Ag(new ys)}var A1=w1(Og);function Eg(e,t){var r=S1(A1);return P1(()=>t??r(e),[e,t,r])}var C1={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},_g={t:0},cf={t:1};function co(e){var t=Ae(e,C1),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=fs(),f=r==="auto"?!kt.isSsr&&!u:r,d=Eg(t.animationId,t.animationManager),[p,h]=E1(f?_g:cf),m=O1(null);return Cg(()=>{f||h(cf)},[f]),Cg(()=>{if(!f||!n)return pt;var g=yg(_g,cf,Pg(i),o,h,d.getTimeoutController()),v=()=>{m.current=g()};return d.start([l,a,v,o,s]),()=>{d.stop(),m.current&&m.current(),s()}},[f,n,o,i,a,l,s,d]),c(p.t)}import{useRef as kg}from"react";function uo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=kg(sr(t)),n=kg(e);return n.current!==e&&(r.current=sr(t),n.current=e),r.current}var _1=["radius"],k1=["radius"],Ig,Tg,Mg,Rg,Dg,Ng,jg,Lg,zg,Bg;function Fg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Wg(e){for(var t=1;t{var i=qt(r),a=qt(n),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,c=i>=0?1:-1,u=a>=0&&i>=0||a<0&&i<0?1:0,f;if(s>0&&Array.isArray(o)){for(var d=[0,0,0,0],p=0,h=4;ps?s:g}f=ve(Ig||(Ig=Ht(["M",",",""])),e,t+l*d[0]),d[0]>0&&(f+=ve(Tg||(Tg=Ht(["A ",",",",0,0,",",",",",""])),d[0],d[0],u,e+c*d[0],t)),f+=ve(Mg||(Mg=Ht(["L ",",",""])),e+r-c*d[1],t),d[1]>0&&(f+=ve(Rg||(Rg=Ht(["A ",",",",0,0,",`,
- `,",",""])),d[1],d[1],u,e+r,t+l*d[1])),f+=ve(Dg||(Dg=Ht(["L ",",",""])),e+r,t+n-l*d[2]),d[2]>0&&(f+=ve(Ng||(Ng=Ht(["A ",",",",0,0,",`,
- `,",",""])),d[2],d[2],u,e+r-c*d[2],t+n)),f+=ve(jg||(jg=Ht(["L ",",",""])),e+c*d[3],t+n),d[3]>0&&(f+=ve(Lg||(Lg=Ht(["A ",",",",0,0,",`,
- `,",",""])),d[3],d[3],u,e,t+n-l*d[3])),f+="Z"}else if(s>0&&o===+o&&o>0){var v=Math.min(s,o);f=ve(zg||(zg=Ht(["M ",",",`
- A `,",",",0,0,",",",",",`
- L `,",",`
- A `,",",",0,0,",",",",",`
- L `,",",`
- A `,",",",0,0,",",",",",`
- L `,",",`
- A `,",",",0,0,",",",","," Z"])),e,t+l*v,v,v,u,e+c*v,t,e+r-c*v,t,v,v,u,e+r,t+l*v,e+r,t+n-l*v,v,v,u,e+r-c*v,t+n,e+c*v,t+n,v,v,u,e,t+n-l*v)}else f=ve(Bg||(Bg=Ht(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},$g={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ws=e=>{var t=Ae(e,$g),r=ci(null),[n,o]=j1(-1);D1(()=>{if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:f,animationDuration:d,animationBegin:p,isAnimationActive:h,isUpdateAnimationActive:m}=t,g=ci(s),v=ci(l),P=ci(i),A=ci(a),C=N1(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),O=uo(C,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var _=J("recharts-rectangle",u);if(!m){var T=Pe(t),{radius:k}=T,B=Vg(T,_1);return xs.createElement("path",bs({},B,{x:qt(i),y:qt(a),width:qt(s),height:qt(l),radius:typeof c=="number"?c:void 0,className:_,d:Ug(i,a,s,l,c)}))}var j=g.current,U=v.current,z=P.current,Z=A.current,X="0px ".concat(n===-1?1:n,"px"),Q="".concat(n,"px ").concat(n,"px"),y=hs(["strokeDasharray"],d,typeof f=="string"?f:$g.animationEasing);return xs.createElement(co,{animationId:O,key:O,canBegin:n>0,duration:d,easing:f,isActive:m,begin:p},b=>{var E=De(j,s,b),w=De(U,l,b),x=De(z,i,b),S=De(Z,a,b);r.current&&(g.current=E,v.current=w,P.current=x,A.current=S);var M;h?b>0?M={transition:y,strokeDasharray:Q}:M={strokeDasharray:X}:M={strokeDasharray:Q};var R=Pe(t),{radius:L}=R,W=Vg(R,k1);return xs.createElement("path",bs({},W,{radius:typeof c=="number"?c:void 0,className:_,d:Ug(x,S,E,w,c),ref:r,style:Wg(Wg({},M),t.style)}))})};function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function qg(e){for(var t=1;te*180/Math.PI,Ce=(e,t,r,n)=>({x:e+Math.cos(-ui*n)*r,y:t+Math.sin(-ui*n)*r}),Yg=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},W1=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},V1=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=W1({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var s=(r-o)/a,l=Math.acos(s);return n>i&&(l=2*Math.PI-l),{radius:a,angle:F1(l),angleInRadian:l}},U1=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-i*360,endAngle:r-i*360}},$1=(e,t)=>{var{startAngle:r,endAngle:n}=t,o=Math.floor(r/360),i=Math.floor(n/360),a=Math.min(o,i);return e+a*360},Gg=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:o,angle:i}=V1({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(os||o===0)return null;var{startAngle:l,endAngle:c}=U1(t),u=i,f;if(l<=c){for(;u>c;)u-=360;for(;u=l&&u<=c}else{for(;u>l;)u-=360;for(;u=c&&u<=l}return f?qg(qg({},t),{},{radius:o,angle:$1(u,t)}):null};function Ss(e){var{cx:t,cy:r,radius:n,startAngle:o,endAngle:i}=e,a=Ce(t,r,n,o),s=Ce(t,r,n,i);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}import*as ry from"react";var Hg,Xg,Zg,Qg,Jg,ey,ty;function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=ke(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Ps=e=>{var{cx:t,cy:r,radius:n,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+n,u=Math.asin(s/c)/ui,f=l?o:o+i*u,d=Ce(t,r,c,f),p=Ce(t,r,n,f),h=l?o-i*u:o,m=Ce(t,r,c*Math.cos(u*ui),h);return{center:d,circleTangency:p,lineTangency:m,theta:u}},ny=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=K1(i,a),l=i+s,c=Ce(t,r,o,i),u=Ce(t,r,o,l),f=ve(Hg||(Hg=sn(["M ",",",`
- A `,",",`,0,
- `,",",`,
- `,",",`
- `])),c.x,c.y,o,o,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(n>0){var d=Ce(t,r,n,i),p=Ce(t,r,n,l);f+=ve(Xg||(Xg=sn(["L ",",",`
- A `,",",`,0,
- `,",",`,
- `,","," Z"])),p.x,p.y,n,n,+(Math.abs(s)>180),+(i<=l),d.x,d.y)}else f+=ve(Zg||(Zg=sn(["L ",","," Z"])),t,r);return f},q1=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=ke(c-l),{circleTangency:f,lineTangency:d,theta:p}=Ps({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:h,lineTangency:m,theta:g}=Ps({cx:t,cy:r,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),v=s?Math.abs(l-c):Math.abs(l-c)-p-g;if(v<0)return a?ve(Qg||(Qg=sn(["M ",",",`
- a`,",",",0,0,1,",`,0
- a`,",",",0,0,1,",`,0
- `])),d.x,d.y,i,i,i*2,i,i,-i*2):ny({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var P=ve(Jg||(Jg=sn(["M ",",",`
- A`,",",",0,0,",",",",",`
- A`,",",",0,",",",",",",",`
- A`,",",",0,0,",",",",",`
- `])),d.x,d.y,i,i,+(u<0),f.x,f.y,o,o,+(v>180),+(u<0),h.x,h.y,i,i,+(u<0),m.x,m.y);if(n>0){var{circleTangency:A,lineTangency:C,theta:O}=Ps({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:_,lineTangency:T,theta:k}=Ps({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),B=s?Math.abs(l-c):Math.abs(l-c)-O-k;if(B<0&&i===0)return"".concat(P,"L").concat(t,",").concat(r,"Z");P+=ve(ey||(ey=sn(["L",",",`
- A`,",",",0,0,",",",",",`
- A`,",",",0,",",",",",",",`
- A`,",",",0,0,",",",",","Z"])),T.x,T.y,i,i,+(u<0),_.x,_.y,n,n,+(B>180),+(u>0),A.x,A.y,i,i,+(u<0),C.x,C.y)}else P+=ve(ty||(ty=sn(["L",",","Z"])),t,r);return P},Y1={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},As=e=>{var t=Ae(e,Y1),{cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:f}=t;if(i0&&Math.abs(c-u)<360?m=q1({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(h,p/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=ny({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),ry.createElement("path",uf({},Pe(t),{className:d,d:m}))};function oy(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(wa(t)){if(e==="centric"){var{cx:n,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=Ce(n,o,i,s),c=Ce(n,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return Ss(t)}}function iy(e){return Da(e)?NaN:Number(e)}function Os(e){return e?(e=iy(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function Es(e,t,r){r&&typeof r!="number"&&Xo(e,t,r)&&(t=r=void 0),e=Os(e),t===void 0?(t=e,e=0):t=Os(t),r=r===void 0?ee.chartData,ay=I([It],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ff=(e,t,r,n)=>n?ay(e):It(e),sy=(e,t,r)=>r?ay(e):It(e);function vt(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ee(t)&&ee(r))return!0}return!1}function ly(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Cs(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(ee(r))o=r;else if(typeof r=="function")return;if(ee(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(vt(a))return a}}function cy(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(vt(n))return ly(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(q(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&Gu.test(o)){var l=Gu.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(q(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&Hu.test(i)){var u=Hu.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var f=+u[1];s=t[1]+f}}else s=t?.[1];var d=[a,s];if(vt(d))return t==null?d:ly(d,t,r)}}}var se=ua(df());var pf=ua(df());function mf(e){var t;return e===0?t=1:t=Math.floor(new pf.default(e).abs().log(10).toNumber())+1,t}function hf(e,t,r){for(var n=new pf.default(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var fy=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},vf=(e,t,r)=>{if(e.lte(0))return new se.default(0);var n=mf(e.toNumber()),o=new se.default(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new se.default(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new se.default(l.toNumber()):new se.default(Math.ceil(l.toNumber()))},dy=(e,t,r)=>{var n;if(e.lte(0))return new se.default(0);var o=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new se.default(i).abs().log(10).toNumber()),s=new se.default(10).pow(a),l=e.div(s).toNumber(),c=o.findIndex(p=>p>=l-1e-10);if(c===-1&&(s=s.mul(10),c=0),c+=r,c>=o.length){var u=Math.floor(c/o.length);c%=o.length,s=s.mul(new se.default(10).pow(u))}var f=(n=o[c])!==null&&n!==void 0?n:1,d=new se.default(f).mul(s);return t?d:new se.default(Math.ceil(d.toNumber()))},G1=(e,t,r)=>{var n=new se.default(1),o=new se.default(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new se.default(10).pow(mf(e)-1),o=new se.default(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new se.default(Math.floor(e)))}else e===0?o=new se.default(Math.floor((t-1)/2)):r||(o=new se.default(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:vf;if(!Number.isFinite((r-t)/(n-1)))return{step:new se.default(0),tickMin:new se.default(0),tickMax:new se.default(0)};var s=a(new se.default(r).sub(t).div(n-1),o,i),l;t<=0&&r>=0?l=new se.default(0):(l=new se.default(t).add(r).div(2),l=l.sub(new se.default(l).mod(s)));var c=Math.ceil(l.sub(t).div(s).toNumber()),u=Math.ceil(new se.default(r).sub(l).div(s).toNumber()),f=c+u+1;return f>n?py(t,r,n,o,i+1,a):(f0?u+(n-f):u,c=r>0?c:c+(n-f)),{step:s,tickMin:l.sub(new se.default(c).mul(s)),tickMax:l.add(new se.default(u).mul(s))})};var ks=function(t){var[r,n]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",s=Math.max(o,2),[l,c]=fy([r,n]);if(l===-1/0||c===1/0){var u=c===1/0?[l,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),c];return r>n?u.reverse():u}if(l===c)return G1(l,o,i);var f=a==="snap125"?dy:vf,{step:d,tickMin:p,tickMax:h}=py(l,c,s,i,0,f),m=hf(p,h.add(new se.default(.1).mul(d)),d);return r>n?m.reverse():m},Is=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[s,l]=fy([n,o]);if(s===-1/0||l===1/0)return[n,o];if(s===l)return[s];var c=a==="snap125"?dy:vf,u=Math.max(r,2),f=c(new se.default(l).sub(s).div(u-1),i,0),d=[...hf(new se.default(s),new se.default(l),f),l];return i===!1&&(d=d.map(p=>Math.round(p))),n>o?d.reverse():d};var gf=e=>e.rootProps.maxBarSize,my=e=>e.rootProps.barGap,Ts=e=>e.rootProps.barCategoryGap,hy=e=>e.rootProps.barSize,fo=e=>e.rootProps.stackOffset,Ms=e=>e.rootProps.reverseStackOrder,po=e=>e.options.chartName,Rs=e=>e.rootProps.syncId,yf=e=>e.rootProps.syncMethod,Ds=e=>e.options.eventEmitter;var ge={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var Ir={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:ge.axis};var Vt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:ge.axis};var ln=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function fi(e,t,r){if(r!=="auto")return r;if(e!=null)return Bt(e,t)?"category":"number"}function vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ns(e){for(var t=1;t