@gram-ai/elements 1.28.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/components/MessageContent.d.ts +20 -0
  2. package/dist/components/MessageContent.parser.d.ts +12 -0
  3. package/dist/components/MessageContent.test.d.ts +1 -0
  4. package/dist/elements.cjs +1 -1
  5. package/dist/elements.css +1 -1
  6. package/dist/elements.js +14 -13
  7. package/dist/{index-C4bFBGfl.cjs → index-COzPF-WM.cjs} +45 -45
  8. package/dist/index-COzPF-WM.cjs.map +1 -0
  9. package/dist/{index-D93pV0_o.js → index-CRhpKl-G.js} +5218 -5201
  10. package/dist/index-CRhpKl-G.js.map +1 -0
  11. package/dist/{index-CtZz13Cf.js → index-QUz5guSg.js} +11835 -11604
  12. package/dist/index-QUz5guSg.js.map +1 -0
  13. package/dist/index-fVcTljYT.cjs +194 -0
  14. package/dist/index-fVcTljYT.cjs.map +1 -0
  15. package/dist/index.d.ts +2 -0
  16. package/dist/lib/contextCompaction.d.ts +58 -0
  17. package/dist/lib/contextCompaction.test.d.ts +1 -0
  18. package/dist/lib/errorTracking.config.d.ts +2 -0
  19. package/dist/lib/tools.byte-cap.test.d.ts +1 -0
  20. package/dist/lib/tools.d.ts +19 -0
  21. package/dist/lib/tools.test.d.ts +1 -0
  22. package/dist/plugins/index.d.ts +4 -1
  23. package/dist/plugins/index.test.d.ts +1 -0
  24. package/dist/plugins.cjs +1 -1
  25. package/dist/plugins.js +1 -1
  26. package/dist/{profiler-Ccma0l1p.js → profiler-DifNjGGB.js} +2 -2
  27. package/dist/{profiler-Ccma0l1p.js.map → profiler-DifNjGGB.js.map} +1 -1
  28. package/dist/{profiler-CjNa3A1d.cjs → profiler-KLtVMM14.cjs} +2 -2
  29. package/dist/{profiler-CjNa3A1d.cjs.map → profiler-KLtVMM14.cjs.map} +1 -1
  30. package/dist/{startRecording-DAURU74n.js → startRecording-C6xu9UA9.js} +2 -2
  31. package/dist/{startRecording-DAURU74n.js.map → startRecording-C6xu9UA9.js.map} +1 -1
  32. package/dist/{startRecording-jSovclaq.cjs → startRecording-YENzw_0G.cjs} +2 -2
  33. package/dist/{startRecording-jSovclaq.cjs.map → startRecording-YENzw_0G.cjs.map} +1 -1
  34. package/dist/types/index.d.ts +49 -0
  35. package/dist/types/plugins.d.ts +5 -0
  36. package/package.json +2 -2
  37. package/src/components/MessageContent.parser.ts +39 -0
  38. package/src/components/MessageContent.test.ts +110 -0
  39. package/src/components/MessageContent.tsx +82 -0
  40. package/src/contexts/ElementsProvider.tsx +57 -7
  41. package/src/index.ts +2 -0
  42. package/src/lib/contextCompaction.test.ts +201 -0
  43. package/src/lib/contextCompaction.ts +211 -0
  44. package/src/lib/errorTracking.config.ts +2 -0
  45. package/src/lib/errorTracking.ts +1 -1
  46. package/src/lib/tools.byte-cap.test.ts +132 -0
  47. package/src/lib/tools.test.ts +259 -0
  48. package/src/lib/tools.ts +122 -0
  49. package/src/plugins/chart/index.ts +1 -0
  50. package/src/plugins/chart/ui/bar-chart.tsx +9 -1
  51. package/src/plugins/generative-ui/index.ts +1 -0
  52. package/src/plugins/index.test.ts +62 -0
  53. package/src/plugins/index.ts +14 -1
  54. package/src/types/index.ts +55 -0
  55. package/src/types/plugins.ts +6 -0
  56. package/dist/index-BmTGnEaV.cjs +0 -190
  57. package/dist/index-BmTGnEaV.cjs.map +0 -1
  58. package/dist/index-C4bFBGfl.cjs.map +0 -1
  59. package/dist/index-CtZz13Cf.js.map +0 -1
  60. package/dist/index-D93pV0_o.js.map +0 -1
@@ -1,50 +1,50 @@
1
- "use strict";const _=require("react/jsx-runtime"),S=require("react"),WS=require("react-dom");function US(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const E=US(S),Ys=US(WS);var ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=HS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ce(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=HS(e))&&(n&&(n+=" "),n+=t);return n}const yC=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},gC=(e,t)=>({classGroupId:e,validator:t}),VS=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ro="-",Fm=[],bC="arbitrary..",xC=e=>{const t=OC(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return wC(o);const s=o.split(Ro),c=s[0]===""&&s.length>1?1:0;return KS(s,c,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const c=n[o],u=r[o];return c?u?yC(u,c):c:u||Fm}return r[o]||Fm}}},KS=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=KS(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(Ro):e.slice(t).join(Ro),c=o.length;for(let u=0;u<c;u++){const l=o[u];if(l.validator(s))return l.classGroupId}},wC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?bC+n:void 0})(),OC=e=>{const{theme:t,classGroups:r}=e;return SC(r,t)},SC=(e,t)=>{const r=VS();for(const n in e){const i=e[n];ev(i,r,n,t)}return r},ev=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];AC(o,t,r,n)}},AC=(e,t,r,n)=>{if(typeof e=="string"){_C(e,t,r);return}if(typeof e=="function"){PC(e,t,r,n);return}EC(e,t,r,n)},_C=(e,t,r)=>{const n=e===""?t:GS(t,e);n.classGroupId=r},PC=(e,t,r,n)=>{if(TC(e)){ev(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(gC(r,e))},EC=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,c]=i[o];ev(c,GS(t,s),r,n)}},GS=(e,t)=>{let r=e;const n=t.split(Ro),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=VS(),r.nextPart.set(o,s)),r=s}return r},TC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,CC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},vp="!",zm=":",jC=[],Wm=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),IC=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,c=0,u;const l=i.length;for(let p=0;p<l;p++){const v=i[p];if(o===0&&s===0){if(v===zm){a.push(i.slice(c,p)),c=p+1;continue}if(v==="/"){u=p;continue}}v==="["?o++:v==="]"?o--:v==="("?s++:v===")"&&s--}const f=a.length===0?i:i.slice(c);let d=f,h=!1;f.endsWith(vp)?(d=f.slice(0,-1),h=!0):f.startsWith(vp)&&(d=f.slice(1),h=!0);const m=u&&u>c?u-c:void 0;return Wm(a,h,d,m)};if(t){const i=t+zm,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):Wm(jC,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},kC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",c=t.has(o);s||c?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},RC=e=>({cache:CC(e.cacheSize),parseClassName:IC(e),sortModifiers:kC(e),...xC(e)}),MC=/\s+/,$C=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(MC);let c="";for(let u=s.length-1;u>=0;u-=1){const l=s[u],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:p}=r(l);if(f){c=l+(c.length>0?" "+c:c);continue}let v=!!p,y=n(v?m.substring(0,p):m);if(!y){if(!v){c=l+(c.length>0?" "+c:c);continue}if(y=n(m),!y){c=l+(c.length>0?" "+c:c);continue}v=!1}const g=d.length===0?"":d.length===1?d[0]:a(d).join(":"),x=h?g+vp:g,O=x+y;if(o.indexOf(O)>-1)continue;o.push(O);const b=i(y,v);for(let w=0;w<b.length;++w){const A=b[w];o.push(x+A)}c=l+(c.length>0?" "+c:c)}return c},NC=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=YS(r))&&(i&&(i+=" "),i+=n);return i},YS=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=YS(e[n]))&&(r&&(r+=" "),r+=t);return r},DC=(e,...t)=>{let r,n,i,a;const o=c=>{const u=t.reduce((l,f)=>f(l),e());return r=RC(u),n=r.cache.get,i=r.cache.set,a=s,s(c)},s=c=>{const u=n(c);if(u)return u;const l=$C(c,r);return i(c,l),l};return a=o,(...c)=>a(NC(...c))},LC=[],Ne=e=>{const t=r=>r[e]||LC;return t.isThemeGetter=!0,t},XS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ZS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BC=/^\d+\/\d+$/,qC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FC=/\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$/,zC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,WC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,UC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yn=e=>BC.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),yr=e=>!!e&&Number.isInteger(Number(e)),Kc=e=>e.endsWith("%")&&pe(e.slice(0,-1)),Xt=e=>qC.test(e),HC=()=>!0,VC=e=>FC.test(e)&&!zC.test(e),JS=()=>!1,KC=e=>WC.test(e),GC=e=>UC.test(e),YC=e=>!ee(e)&&!te(e),XC=e=>hi(e,tA,JS),ee=e=>XS.test(e),zr=e=>hi(e,rA,VC),Gc=e=>hi(e,tj,pe),Um=e=>hi(e,QS,JS),ZC=e=>hi(e,eA,GC),no=e=>hi(e,nA,KC),te=e=>ZS.test(e),Ri=e=>vi(e,rA),JC=e=>vi(e,rj),Hm=e=>vi(e,QS),QC=e=>vi(e,tA),ej=e=>vi(e,eA),io=e=>vi(e,nA,!0),hi=(e,t,r)=>{const n=XS.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},vi=(e,t,r=!1)=>{const n=ZS.exec(e);return n?n[1]?t(n[1]):r:!1},QS=e=>e==="position"||e==="percentage",eA=e=>e==="image"||e==="url",tA=e=>e==="length"||e==="size"||e==="bg-size",rA=e=>e==="length",tj=e=>e==="number",rj=e=>e==="family-name",nA=e=>e==="shadow",nj=()=>{const e=Ne("color"),t=Ne("font"),r=Ne("text"),n=Ne("font-weight"),i=Ne("tracking"),a=Ne("leading"),o=Ne("breakpoint"),s=Ne("container"),c=Ne("spacing"),u=Ne("radius"),l=Ne("shadow"),f=Ne("inset-shadow"),d=Ne("text-shadow"),h=Ne("drop-shadow"),m=Ne("blur"),p=Ne("perspective"),v=Ne("aspect"),y=Ne("ease"),g=Ne("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...O(),te,ee],w=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],P=()=>[te,ee,c],T=()=>[yn,"full","auto",...P()],I=()=>[yr,"none","subgrid",te,ee],C=()=>["auto",{span:["full",yr,te,ee]},yr,te,ee],j=()=>[yr,"auto",te,ee],k=()=>["auto","min","max","fr",te,ee],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...P()],L=()=>[yn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],M=()=>[e,te,ee],U=()=>[...O(),Hm,Um,{position:[te,ee]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",QC,XC,{size:[te,ee]}],W=()=>[Kc,Ri,zr],V=()=>["","none","full",u,te,ee],Y=()=>["",pe,Ri,zr],re=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[pe,Kc,Hm,Um],Z=()=>["","none",m,te,ee],z=()=>["none",pe,te,ee],K=()=>["none",pe,te,ee],X=()=>[pe,te,ee],B=()=>[yn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xt],breakpoint:[Xt],color:[HC],container:[Xt],"drop-shadow":[Xt],ease:["in","out","in-out"],font:[YC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xt],shadow:[Xt],spacing:["px",pe],text:[Xt],"text-shadow":[Xt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yn,ee,te,v]}],container:["container"],columns:[{columns:[pe,ee,te,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[yr,"auto",te,ee]}],basis:[{basis:[yn,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,yn,"auto","initial","none",ee]}],grow:[{grow:["",pe,te,ee]}],shrink:[{shrink:["",pe,te,ee]}],order:[{order:[yr,"first","last","none",te,ee]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[s,"screen",...L()]}],"min-w":[{"min-w":[s,"screen","none",...L()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,Ri,zr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,te,Gc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kc,ee]}],"font-family":[{font:[JC,ee,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,te,ee]}],"line-clamp":[{"line-clamp":[pe,"none",te,Gc]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",te,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",te,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",te,zr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[pe,"auto",te,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te,ee]}],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",te,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},yr,te,ee],radial:["",te,ee],conic:[yr,te,ee]},ej,ZC]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,te,ee]}],"outline-w":[{outline:["",pe,Ri,zr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",l,io,no]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,io,no]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[pe,zr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",d,io,no]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[pe,te,ee]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[te,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",te,ee]}],filter:[{filter:["","none",te,ee]}],blur:[{blur:Z()}],brightness:[{brightness:[pe,te,ee]}],contrast:[{contrast:[pe,te,ee]}],"drop-shadow":[{"drop-shadow":["","none",h,io,no]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",pe,te,ee]}],"hue-rotate":[{"hue-rotate":[pe,te,ee]}],invert:[{invert:["",pe,te,ee]}],saturate:[{saturate:[pe,te,ee]}],sepia:[{sepia:["",pe,te,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",te,ee]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[pe,te,ee]}],"backdrop-contrast":[{"backdrop-contrast":[pe,te,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,te,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,te,ee]}],"backdrop-invert":[{"backdrop-invert":["",pe,te,ee]}],"backdrop-opacity":[{"backdrop-opacity":[pe,te,ee]}],"backdrop-saturate":[{"backdrop-saturate":[pe,te,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,te,ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",te,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",te,ee]}],ease:[{ease:["linear","initial",y,te,ee]}],delay:[{delay:[pe,te,ee]}],animate:[{animate:["none",g,te,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,te,ee]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[te,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",te,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te,ee]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[pe,Ri,zr,Gc]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ij=DC(nj);function ie(...e){return ij(ce(e))}function aj(e){throw new Error(`Unexpected value: ${e}`)}function oj(e,t){if(!e)throw new Error(t)}const iA=S.createContext(null),sj=()=>{const e=S.useContext(iA);if(!e)throw new Error("useChatId must be used within ElementsProvider");return e.chatId},aA=S.createContext(void 0),cj=S.createContext(null),tv=()=>{const e=S.useContext(aA);if(!e)throw new Error("useElements must be used within a ElementsProvider");return e},uj={compact:{"p-xs":"p-1","p-sm":"p-1.5","p-md":"p-2","p-lg":"p-2.5","p-xl":"p-3","px-xs":"px-1","px-sm":"px-1.5","px-md":"px-2","px-lg":"px-2.5","px-xl":"px-3","py-xs":"py-1","py-sm":"py-1.5","py-md":"py-2","py-lg":"py-2.5","py-xl":"py-3","gap-sm":"gap-1","gap-md":"gap-1.5","gap-lg":"gap-2","gap-xl":"gap-2.5","h-header":"h-10","h-input":"min-h-10","text-base":"text-sm","text-title":"text-xl","text-subtitle":"text-sm"},normal:{"p-xs":"p-1","p-sm":"p-2","p-md":"p-3","p-lg":"p-4","p-xl":"p-6","px-xs":"px-1","px-sm":"px-2","px-md":"px-3","px-lg":"px-4","px-xl":"px-6","py-xs":"py-1","py-sm":"py-2","py-md":"py-3","py-lg":"py-4","py-xl":"py-6","gap-sm":"gap-1.5","gap-md":"gap-2","gap-lg":"gap-3","gap-xl":"gap-4","h-header":"h-12","h-input":"min-h-12","text-base":"text-base","text-title":"text-2xl","text-subtitle":"text-base"},spacious:{"p-xs":"p-2","p-sm":"p-3","p-md":"p-4","p-lg":"p-6","p-xl":"p-10","px-xs":"px-2","px-sm":"px-3","px-md":"px-4","px-lg":"px-6","px-xl":"px-10","py-xs":"py-2","py-sm":"py-3","py-md":"py-4","py-lg":"py-6","py-xl":"py-10","gap-sm":"gap-2","gap-md":"gap-3","gap-lg":"gap-4","gap-xl":"gap-6","h-header":"h-14","h-input":"min-h-16","text-base":"text-lg","text-title":"text-3xl","text-subtitle":"text-lg"}},rv=()=>{const{config:e}=tv(),t=e.theme?.density??"normal";return r=>uj[t][r]};function oA(e){return typeof e=="object"&&e!==null&&"type"in e&&typeof e.type=="string"}const lj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Vm=e=>{const t=fj(e);return t.charAt(0).toUpperCase()+t.slice(1)},sA=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),dj=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var pj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const hj=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},c)=>S.createElement("svg",{ref:c,...pj,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:sA("lucide",i),...!a&&!dj(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,l])=>S.createElement(u,l)),...Array.isArray(a)?a:[a]]));const qa=(e,t)=>{const r=S.forwardRef(({className:n,...i},a)=>S.createElement(hj,{ref:a,iconNode:t,className:sA(`lucide-${lj(Vm(e))}`,`lucide-${e}`,n),...i}));return r.displayName=Vm(e),r};const vj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],nv=qa("check",vj);const mj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xs=qa("chevron-down",mj);const yj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],cA=qa("chevron-up",yj);const gj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],iv=qa("circle-alert",gj),bj={sharp:{sm:"rounded-sm",md:"rounded",lg:"rounded-md",xl:"rounded-lg",full:"rounded-lg"},soft:{sm:"rounded",md:"rounded-lg",lg:"rounded-xl",xl:"rounded-2xl",full:"rounded-full"},round:{sm:"rounded-lg",md:"rounded-xl",lg:"rounded-2xl",xl:"rounded-3xl",full:"rounded-full"}},uA=()=>{const{config:e}=tv(),t=e.theme?.radius??"soft";return r=>bj[t][r]},Mo=({children:e,className:t,title:r})=>{const n=uA();return _.jsx("div",{className:"@container my-4 w-full first:mt-0",children:_.jsxs("div",{className:ie("w-full overflow-hidden border border-border after:hidden @sm:max-w-md @md:max-w-lg @lg:max-w-xl @xl:max-w-2xl",n("lg"),t),children:[_.jsxs("div",{className:"flex h-8 items-center gap-2 border-b border-border bg-muted/50 px-3",children:[_.jsxs("div",{className:"flex items-center gap-1.5",children:[_.jsx("div",{className:"size-3 rounded-full bg-[#FF5F57]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#FEBC2E]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#28C840]"})]}),r&&_.jsx("span",{className:"flex-1 text-center text-xs font-medium text-muted-foreground",children:r})]}),e]})})},xj=({text:e,className:t})=>_.jsx(Mo,{className:t,children:_.jsx("div",{className:ie("relative flex min-h-[400px] items-center justify-center bg-background"),children:_.jsx("span",{className:"shimmer text-sm text-muted-foreground",children:e})})});var Yc,Km;function rt(){if(Km)return Yc;Km=1;var e=Array.isArray;return Yc=e,Yc}var Xc,Gm;function lA(){if(Gm)return Xc;Gm=1;var e=typeof ro=="object"&&ro&&ro.Object===Object&&ro;return Xc=e,Xc}var Zc,Ym;function Ut(){if(Ym)return Zc;Ym=1;var e=lA(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Zc=r,Zc}var Jc,Xm;function Fa(){if(Xm)return Jc;Xm=1;var e=Ut(),t=e.Symbol;return Jc=t,Jc}var Qc,Zm;function wj(){if(Zm)return Qc;Zm=1;var e=Fa(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),c=o[i];try{o[i]=void 0;var u=!0}catch{}var l=n.call(o);return u&&(s?o[i]=c:delete o[i]),l}return Qc=a,Qc}var eu,Jm;function Oj(){if(Jm)return eu;Jm=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return eu=r,eu}var tu,Qm;function pr(){if(Qm)return tu;Qm=1;var e=Fa(),t=wj(),r=Oj(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return tu=o,tu}var ru,ey;function hr(){if(ey)return ru;ey=1;function e(t){return t!=null&&typeof t=="object"}return ru=e,ru}var nu,ty;function mi(){if(ty)return nu;ty=1;var e=pr(),t=hr(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return nu=n,nu}var iu,ry;function av(){if(ry)return iu;ry=1;var e=rt(),t=mi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return iu=i,iu}var au,ny;function Ir(){if(ny)return au;ny=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return au=e,au}var ou,iy;function ov(){if(iy)return ou;iy=1;var e=pr(),t=Ir(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==a}return ou=o,ou}var su,ay;function Sj(){if(ay)return su;ay=1;var e=Ut(),t=e["__core-js_shared__"];return su=t,su}var cu,oy;function Aj(){if(oy)return cu;oy=1;var e=Sj(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return cu=r,cu}var uu,sy;function fA(){if(sy)return uu;sy=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return uu=r,uu}var lu,cy;function _j(){if(cy)return lu;cy=1;var e=ov(),t=Aj(),r=Ir(),n=fA(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,c=o.toString,u=s.hasOwnProperty,l=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?l:a;return h.test(n(d))}return lu=f,lu}var fu,uy;function Pj(){if(uy)return fu;uy=1;function e(t,r){return t?.[r]}return fu=e,fu}var du,ly;function ln(){if(ly)return du;ly=1;var e=_j(),t=Pj();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return du=r,du}var pu,fy;function Zs(){if(fy)return pu;fy=1;var e=ln(),t=e(Object,"create");return pu=t,pu}var hu,dy;function Ej(){if(dy)return hu;dy=1;var e=Zs();function t(){this.__data__=e?e(null):{},this.size=0}return hu=t,hu}var vu,py;function Tj(){if(py)return vu;py=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return vu=e,vu}var mu,hy;function Cj(){if(hy)return mu;hy=1;var e=Zs(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return mu=i,mu}var yu,vy;function jj(){if(vy)return yu;vy=1;var e=Zs(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return yu=n,yu}var gu,my;function Ij(){if(my)return gu;my=1;var e=Zs(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return gu=r,gu}var bu,yy;function kj(){if(yy)return bu;yy=1;var e=Ej(),t=Tj(),r=Cj(),n=jj(),i=Ij();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,bu=a,bu}var xu,gy;function Rj(){if(gy)return xu;gy=1;function e(){this.__data__=[],this.size=0}return xu=e,xu}var wu,by;function sv(){if(by)return wu;by=1;function e(t,r){return t===r||t!==t&&r!==r}return wu=e,wu}var Ou,xy;function Js(){if(xy)return Ou;xy=1;var e=sv();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Ou=t,Ou}var Su,wy;function Mj(){if(wy)return Su;wy=1;var e=Js(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Su=n,Su}var Au,Oy;function $j(){if(Oy)return Au;Oy=1;var e=Js();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Au=t,Au}var _u,Sy;function Nj(){if(Sy)return _u;Sy=1;var e=Js();function t(r){return e(this.__data__,r)>-1}return _u=t,_u}var Pu,Ay;function Dj(){if(Ay)return Pu;Ay=1;var e=Js();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Pu=t,Pu}var Eu,_y;function Qs(){if(_y)return Eu;_y=1;var e=Rj(),t=Mj(),r=$j(),n=Nj(),i=Dj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Eu=a,Eu}var Tu,Py;function cv(){if(Py)return Tu;Py=1;var e=ln(),t=Ut(),r=e(t,"Map");return Tu=r,Tu}var Cu,Ey;function Lj(){if(Ey)return Cu;Ey=1;var e=kj(),t=Qs(),r=cv();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Cu=n,Cu}var ju,Ty;function Bj(){if(Ty)return ju;Ty=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ju=e,ju}var Iu,Cy;function ec(){if(Cy)return Iu;Cy=1;var e=Bj();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Iu=t,Iu}var ku,jy;function qj(){if(jy)return ku;jy=1;var e=ec();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ku=t,ku}var Ru,Iy;function Fj(){if(Iy)return Ru;Iy=1;var e=ec();function t(r){return e(this,r).get(r)}return Ru=t,Ru}var Mu,ky;function zj(){if(ky)return Mu;ky=1;var e=ec();function t(r){return e(this,r).has(r)}return Mu=t,Mu}var $u,Ry;function Wj(){if(Ry)return $u;Ry=1;var e=ec();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return $u=t,$u}var Nu,My;function uv(){if(My)return Nu;My=1;var e=Lj(),t=qj(),r=Fj(),n=zj(),i=Wj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Nu=a,Nu}var Du,$y;function dA(){if($y)return Du;$y=1;var e=uv(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],c=a.cache;if(c.has(s))return c.get(s);var u=n.apply(this,o);return a.cache=c.set(s,u)||c,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Du=r,Du}var Lu,Ny;function Uj(){if(Ny)return Lu;Ny=1;var e=dA(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Lu=r,Lu}var Bu,Dy;function Hj(){if(Dy)return Bu;Dy=1;var e=Uj(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,c,u){a.push(c?u.replace(r,"$1"):s||o)}),a});return Bu=n,Bu}var qu,Ly;function lv(){if(Ly)return qu;Ly=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return qu=e,qu}var Fu,By;function Vj(){if(By)return Fu;By=1;var e=Fa(),t=lv(),r=rt(),n=mi(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return Fu=o,Fu}var zu,qy;function pA(){if(qy)return zu;qy=1;var e=Vj();function t(r){return r==null?"":e(r)}return zu=t,zu}var Wu,Fy;function hA(){if(Fy)return Wu;Fy=1;var e=rt(),t=av(),r=Hj(),n=pA();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Wu=i,Wu}var Uu,zy;function tc(){if(zy)return Uu;zy=1;var e=mi();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Uu=t,Uu}var Hu,Wy;function fv(){if(Wy)return Hu;Wy=1;var e=hA(),t=tc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Hu=r,Hu}var Vu,Uy;function vA(){if(Uy)return Vu;Uy=1;var e=fv();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Vu=t,Vu}var Kj=vA();const ct=ge(Kj);var Ku,Hy;function Gj(){if(Hy)return Ku;Hy=1;function e(t){return t==null}return Ku=e,Ku}var Yj=Gj();const oe=ge(Yj);var Gu,Vy;function Xj(){if(Vy)return Gu;Vy=1;var e=pr(),t=rt(),r=hr(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Gu=i,Gu}var Zj=Xj();const rn=ge(Zj);var Jj=ov();const ae=ge(Jj);var Qj=Ir();const yi=ge(Qj);var ao={exports:{}},be={};var Ky;function eI(){if(Ky)return be;Ky=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case e:switch(p=p.type,p){case r:case i:case n:case c:case u:case d:return p;default:switch(p=p&&p.$$typeof,p){case o:case s:case f:case l:return p;case a:return p;default:return v}}case t:return v}}}return be.ContextConsumer=a,be.ContextProvider=o,be.Element=e,be.ForwardRef=s,be.Fragment=r,be.Lazy=f,be.Memo=l,be.Portal=t,be.Profiler=i,be.StrictMode=n,be.Suspense=c,be.SuspenseList=u,be.isContextConsumer=function(p){return m(p)===a},be.isContextProvider=function(p){return m(p)===o},be.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},be.isForwardRef=function(p){return m(p)===s},be.isFragment=function(p){return m(p)===r},be.isLazy=function(p){return m(p)===f},be.isMemo=function(p){return m(p)===l},be.isPortal=function(p){return m(p)===t},be.isProfiler=function(p){return m(p)===i},be.isStrictMode=function(p){return m(p)===n},be.isSuspense=function(p){return m(p)===c},be.isSuspenseList=function(p){return m(p)===u},be.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===l||p.$$typeof===o||p.$$typeof===a||p.$$typeof===s||p.$$typeof===h||p.getModuleId!==void 0)},be.typeOf=m,be}var xe={};var Gy;function tI(){return Gy||(Gy=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case t:switch(p=p.type,p){case n:case a:case i:case u:case l:case h:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case d:case f:return p;case o:return p;default:return v}}case r:return v}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");xe.ContextConsumer=o,xe.ContextProvider=s,xe.Element=t,xe.ForwardRef=c,xe.Fragment=n,xe.Lazy=d,xe.Memo=f,xe.Portal=r,xe.Profiler=a,xe.StrictMode=i,xe.Suspense=u,xe.SuspenseList=l,xe.isContextConsumer=function(p){return e(p)===o},xe.isContextProvider=function(p){return e(p)===s},xe.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},xe.isForwardRef=function(p){return e(p)===c},xe.isFragment=function(p){return e(p)===n},xe.isLazy=function(p){return e(p)===d},xe.isMemo=function(p){return e(p)===f},xe.isPortal=function(p){return e(p)===r},xe.isProfiler=function(p){return e(p)===a},xe.isStrictMode=function(p){return e(p)===i},xe.isSuspense=function(p){return e(p)===u},xe.isSuspenseList=function(p){return e(p)===l},xe.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===a||p===i||p===u||p===l||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===s||p.$$typeof===o||p.$$typeof===c||p.$$typeof===m||p.getModuleId!==void 0)},xe.typeOf=e})()),xe}var Yy;function dv(){return Yy||(Yy=1,process.env.NODE_ENV==="production"?ao.exports=eI():ao.exports=tI()),ao.exports}var rI=dv(),Yu,Xy;function mA(){if(Xy)return Yu;Xy=1;var e=pr(),t=hr(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Yu=n,Yu}var Xu,Zy;function nI(){if(Zy)return Xu;Zy=1;var e=mA();function t(r){return e(r)&&r!=+r}return Xu=t,Xu}var iI=nI();const gi=ge(iI);var aI=mA();const oI=ge(aI);var Xe=function(t){return t===0?0:t>0?1:-1},Yr=function(t){return rn(t)&&t.indexOf("%")===t.length-1},G=function(t){return oI(t)&&!gi(t)},sI=function(t){return oe(t)},Be=function(t){return G(t)||rn(t)},cI=0,kr=function(t){var r=++cI;return"".concat(t||"").concat(r)},Ze=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!G(t)&&!rn(t))return n;var a;if(Yr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gi(a)&&(a=n),i&&a>r&&(a=r),a},wr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},uI=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Oe=function(t,r){return G(t)&&G(r)?function(n){return t+n*(r-t)}:function(){return r}};function $o(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ct(n,t))===r})}var lI=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,c=-1/0,u=0,l=0,f=0;f<r;f++)u=t[f].cx||0,l=t[f].cy||0,n+=u,i+=l,a+=u*l,o+=u*u,s=Math.min(s,u),c=Math.max(c,u);var d=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:c,a:d,b:(i-d*n)/r}},fI=function(t,r){return G(t)&&G(r)?t-r:rn(t)&&rn(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function jn(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function mp(e){"@babel/helpers - typeof";return mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mp(e)}var dI=["viewBox","children"],pI=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Jy=["points","pathLength"],Zu={svg:dI,polygon:Jy,polyline:Jy},pv=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],No=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(S.isValidElement(t)&&(n=t.props),!yi(n))return null;var i={};return Object.keys(n).forEach(function(a){pv.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},hI=function(t,r,n){return function(i){return t(r,n,i),null}},Tr=function(t,r,n){if(!yi(t)||mp(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];pv.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=hI(o,r,n))}),i},vI=["children"],mI=["children"];function Qy(e,t){if(e==null)return{};var r=yI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yp(e){"@babel/helpers - typeof";return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yp(e)}var eg={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},nr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},tg=null,Ju=null,hv=function e(t){if(t===tg&&Array.isArray(Ju))return Ju;var r=[];return S.Children.forEach(t,function(n){oe(n)||(rI.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Ju=r,tg=t,r};function Qe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return nr(i)}):n=[nr(t)],hv(e).forEach(function(i){var a=ct(i,"type.displayName")||ct(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function at(e,t){var r=Qe(e,t);return r&&r[0]}var rg=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!G(n)||n<=0||!G(i)||i<=0)},gI=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],bI=function(t){return t&&t.type&&rn(t.type)&&gI.indexOf(t.type)>=0},yA=function(t){return t&&yp(t)==="object"&&"clipDot"in t},xI=function(t,r,n,i){var a,o=(a=Zu?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!ae(t)&&(i&&o.includes(r)||pI.includes(r))||n&&pv.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(S.isValidElement(t)&&(i=t.props),!yi(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;xI((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},gp=function e(t,r){if(t===r)return!0;var n=S.Children.count(t);if(n!==S.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ng(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!ng(a,o))return!1}return!0},ng=function(t,r){if(oe(t)&&oe(r))return!0;if(!oe(t)&&!oe(r)){var n=t.props||{},i=n.children,a=Qy(n,vI),o=r.props||{},s=o.children,c=Qy(o,mI);return i&&s?jn(a,c)&&gp(i,s):!i&&!s?jn(a,c):!1}return!1},ig=function(t,r){var n=[],i={};return hv(t).forEach(function(a,o){if(bI(a))n.push(a);else if(a){var s=nr(a.type),c=r[s]||{},u=c.handler,l=c.once;if(u&&(!l||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},wI=function(t){var r=t&&t.type;return r&&eg[r]?eg[r]:null},OI=function(t,r){return hv(r).indexOf(t)},SI=["children","width","height","viewBox","className","style","title","desc"];function bp(){return bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bp.apply(this,arguments)}function AI(e,t){if(e==null)return{};var r=_I(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _I(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xp(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,u=AI(e,SI),l=i||{width:r,height:n,x:0,y:0},f=ce("recharts-surface",a);return S.createElement("svg",bp({},J(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),S.createElement("title",null,s),S.createElement("desc",null,c),t)}var PI=["children","className"];function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wp.apply(this,arguments)}function EI(e,t){if(e==null)return{};var r=TI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ue=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=EI(e,PI),a=ce("recharts-layer",n);return S.createElement("g",wp({className:a},J(i,!0),{ref:t}),r)}),CI=process.env.NODE_ENV!=="production",Pt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(CI&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Qu,ag;function jI(){if(ag)return Qu;ag=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Qu=e,Qu}var el,og;function II(){if(og)return el;og=1;var e=jI();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return el=t,el}var tl,sg;function gA(){if(sg)return tl;sg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function c(u){return s.test(u)}return tl=c,tl}var rl,cg;function kI(){if(cg)return rl;cg=1;function e(t){return t.split("")}return rl=e,rl}var nl,ug;function RI(){if(ug)return nl;ug=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+c+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",m=u+"?",p="["+a+"]?",v="(?:"+h+"(?:"+[l,f,d].join("|")+")"+p+m+")*",y=p+m+v,g="(?:"+[l+s+"?",s,f,d,o].join("|")+")",x=RegExp(c+"(?="+c+")|"+g+y,"g");function O(b){return b.match(x)||[]}return nl=O,nl}var il,lg;function MI(){if(lg)return il;lg=1;var e=kI(),t=gA(),r=RI();function n(i){return t(i)?r(i):e(i)}return il=n,il}var al,fg;function $I(){if(fg)return al;fg=1;var e=II(),t=gA(),r=MI(),n=pA();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,c=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return c[a]()+u}}return al=i,al}var ol,dg;function NI(){if(dg)return ol;dg=1;var e=$I(),t=e("toUpperCase");return ol=t,ol}var DI=NI();const rc=ge(DI);function Pe(e){return function(){return e}}const bA=Math.cos,Do=Math.sin,It=Math.sqrt,Lo=Math.PI,nc=2*Lo,Op=Math.PI,Sp=2*Op,Vr=1e-6,LI=Sp-Vr;function xA(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function BI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return xA;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class qI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?xA:BI(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,c=n-t,u=i-r,l=o-t,f=s-r,d=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Vr)if(!(Math.abs(f*c-u*l)>Vr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,m=i-s,p=c*c+u*u,v=h*h+m*m,y=Math.sqrt(p),g=Math.sqrt(d),x=a*Math.tan((Op-Math.acos((p+d-v)/(2*y*g)))/2),O=x/g,b=x/y;Math.abs(O-1)>Vr&&this._append`L${t+O*l},${r+O*f}`,this._append`A${a},${a},0,0,${+(f*h>l*m)},${this._x1=t+b*c},${this._y1=r+b*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),c=n*Math.sin(i),u=t+s,l=r+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Vr||Math.abs(this._y1-l)>Vr)&&this._append`L${u},${l}`,n&&(d<0&&(d=d%Sp+Sp),d>LI?this._append`A${n},${n},0,1,${f},${t-s},${r-c}A${n},${n},0,1,${f},${this._x1=u},${this._y1=l}`:d>Vr&&this._append`A${n},${n},0,${+(d>=Op)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function vv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new qI(t)}function mv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wA(e){this._context=e}wA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ic(e){return new wA(e)}function OA(e){return e[0]}function SA(e){return e[1]}function AA(e,t){var r=Pe(!0),n=null,i=ic,a=null,o=vv(s);e=typeof e=="function"?e:e===void 0?OA:Pe(e),t=typeof t=="function"?t:t===void 0?SA:Pe(t);function s(c){var u,l=(c=mv(c)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),u=0;u<=l;++u)!(u<l&&r(f=c[u],u,c))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,c),+t(f,u,c));if(h)return a=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Pe(!!c),s):r},s.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),s):i},s.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),s):n},s}function oo(e,t,r){var n=null,i=Pe(!0),a=null,o=ic,s=null,c=vv(u);e=typeof e=="function"?e:e===void 0?OA:Pe(+e),t=typeof t=="function"?t:Pe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?SA:Pe(+r);function u(f){var d,h,m,p=(f=mv(f)).length,v,y=!1,g,x=new Array(p),O=new Array(p);for(a==null&&(s=o(g=c())),d=0;d<=p;++d){if(!(d<p&&i(v=f[d],d,f))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=h;--m)s.point(x[m],O[m]);s.lineEnd(),s.areaEnd()}y&&(x[d]=+e(v,d,f),O[d]=+t(v,d,f),s.point(n?+n(v,d,f):x[d],r?+r(v,d,f):O[d]))}if(g)return s=null,g+""||null}function l(){return AA().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Pe(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Pe(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Pe(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Pe(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Pe(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Pe(+f),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Pe(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class _A{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 FI(e){return new _A(e,!0)}function zI(e){return new _A(e,!1)}const yv={draw(e,t){const r=It(t/Lo);e.moveTo(r,0),e.arc(0,0,r,0,nc)}},WI={draw(e,t){const r=It(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},PA=It(1/3),UI=PA*2,HI={draw(e,t){const r=It(t/UI),n=r*PA;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},VI={draw(e,t){const r=It(t),n=-r/2;e.rect(n,n,r,r)}},KI=.8908130915292852,EA=Do(Lo/10)/Do(7*Lo/10),GI=Do(nc/10)*EA,YI=-bA(nc/10)*EA,XI={draw(e,t){const r=It(t*KI),n=GI*r,i=YI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=nc*a/5,s=bA(o),c=Do(o);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*i,c*n+s*i)}e.closePath()}},sl=It(3),ZI={draw(e,t){const r=-It(t/(sl*3));e.moveTo(0,r*2),e.lineTo(-sl*r,-r),e.lineTo(sl*r,-r),e.closePath()}},ft=-.5,dt=It(3)/2,Ap=1/It(12),JI=(Ap/2+1)*3,QI={draw(e,t){const r=It(t/JI),n=r/2,i=r*Ap,a=n,o=r*Ap+r,s=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(ft*n-dt*i,dt*n+ft*i),e.lineTo(ft*a-dt*o,dt*a+ft*o),e.lineTo(ft*s-dt*c,dt*s+ft*c),e.lineTo(ft*n+dt*i,ft*i-dt*n),e.lineTo(ft*a+dt*o,ft*o-dt*a),e.lineTo(ft*s+dt*c,ft*c-dt*s),e.closePath()}};function ek(e,t){let r=null,n=vv(i);e=typeof e=="function"?e:Pe(e||yv),t=typeof t=="function"?t:Pe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Pe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Bo(){}function qo(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function TA(e){this._context=e}TA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tk(e){return new TA(e)}function CA(e){this._context=e}CA.prototype={areaStart:Bo,areaEnd:Bo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rk(e){return new CA(e)}function jA(e){this._context=e}jA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:qo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nk(e){return new jA(e)}function IA(e){this._context=e}IA.prototype={areaStart:Bo,areaEnd:Bo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ik(e){return new IA(e)}function pg(e){return e<0?-1:1}function hg(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(pg(a)+pg(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function vg(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function cl(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Fo(e){this._context=e}Fo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:cl(this,this._t0,vg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,cl(this,vg(this,r=hg(this,e,t)),r);break;default:cl(this,this._t0,r=hg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function kA(e){this._context=new RA(e)}(kA.prototype=Object.create(Fo.prototype)).point=function(e,t){Fo.prototype.point.call(this,t,e)};function RA(e){this._context=e}RA.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function ak(e){return new Fo(e)}function ok(e){return new kA(e)}function MA(e){this._context=e}MA.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=mg(e),i=mg(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function mg(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function sk(e){return new MA(e)}function ac(e,t){this._context=e,this._t=t}ac.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function ck(e){return new ac(e,.5)}function uk(e){return new ac(e,0)}function lk(e){return new ac(e,1)}function $n(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function _p(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function fk(e,t){return e[t]}function dk(e){const t=[];return t.key=e,t}function pk(){var e=Pe([]),t=_p,r=$n,n=fk;function i(a){var o=Array.from(e.apply(this,arguments),dk),s,c=o.length,u=-1,l;for(const f of a)for(s=0,++u;s<c;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,l=mv(t(o));s<c;++s)o[l[s]].index=s;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Pe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?_p:typeof a=="function"?a:Pe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??$n,i):r},i}function hk(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}$n(e,t)}}function vk(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}$n(e,t)}}function mk(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,c=0,u=0;s<o;++s){for(var l=e[t[s]],f=l[n][1]||0,d=l[n-1][1]||0,h=(f-d)/2,m=0;m<s;++m){var p=e[t[m]],v=p[n][1]||0,y=p[n-1][1]||0;h+=v-y}c+=f,u+=h*f}i[n-1][1]+=i[n-1][0]=r,c&&(r-=u/c)}i[n-1][1]+=i[n-1][0]=r,$n(e,t)}}function ra(e){"@babel/helpers - typeof";return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ra(e)}var yk=["type","size","sizeType"];function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pp.apply(this,arguments)}function yg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yg(Object(r),!0).forEach(function(n){gk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gk(e,t,r){return t=bk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bk(e){var t=xk(e,"string");return ra(t)=="symbol"?t:t+""}function xk(e,t){if(ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wk(e,t){if(e==null)return{};var r=Ok(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ok(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var $A={symbolCircle:yv,symbolCross:WI,symbolDiamond:HI,symbolSquare:VI,symbolStar:XI,symbolTriangle:ZI,symbolWye:QI},Sk=Math.PI/180,Ak=function(t){var r="symbol".concat(rc(t));return $A[r]||yv},_k=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Sk;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Pk=function(t,r){$A["symbol".concat(rc(t))]=r},oc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,c=wk(t,yk),u=gg(gg({},c),{},{type:n,size:a,sizeType:s}),l=function(){var v=Ak(n),y=ek().type(v).size(_k(a,s,n));return y()},f=u.className,d=u.cx,h=u.cy,m=J(u,!0);return d===+d&&h===+h&&a===+a?S.createElement("path",Pp({},m,{className:ce("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:l()})):null};oc.registerSymbol=Pk;function Nn(e){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(e)}function Ep(){return Ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ep.apply(this,arguments)}function bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){na(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ck(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DA(n.key),n)}}function jk(e,t,r){return t&&Ck(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ik(e,t,r){return t=zo(t),kk(e,NA()?Reflect.construct(t,r||[],zo(e).constructor):t.apply(e,r))}function kk(e,t){if(t&&(Nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rk(e)}function Rk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NA=function(){return!!e})()}function zo(e){return zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zo(e)}function Mk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tp(e,t)}function Tp(e,t){return Tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tp(e,t)}function na(e,t,r){return t=DA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DA(e){var t=$k(e,"string");return Nn(t)=="symbol"?t:t+""}function $k(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pt=32,gv=(function(e){function t(){return Tk(this,t),Ik(this,t,arguments)}return Mk(t,e),jk(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=pt/2,o=pt/6,s=pt/3,c=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:pt,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
1
+ "use strict";const _=require("react/jsx-runtime"),S=require("react"),US=require("react-dom");function HS(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const E=HS(S),Ys=HS(US);var ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function VS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=VS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ce(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=VS(e))&&(n&&(n+=" "),n+=t);return n}const gC=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},bC=(e,t)=>({classGroupId:e,validator:t}),KS=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ro="-",zm=[],xC="arbitrary..",wC=e=>{const t=SC(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return OC(o);const s=o.split(Ro),c=s[0]===""&&s.length>1?1:0;return GS(s,c,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const c=n[o],u=r[o];return c?u?gC(u,c):c:u||zm}return r[o]||zm}}},GS=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=GS(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(Ro):e.slice(t).join(Ro),c=o.length;for(let u=0;u<c;u++){const l=o[u];if(l.validator(s))return l.classGroupId}},OC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?xC+n:void 0})(),SC=e=>{const{theme:t,classGroups:r}=e;return AC(r,t)},AC=(e,t)=>{const r=KS();for(const n in e){const i=e[n];tv(i,r,n,t)}return r},tv=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];_C(o,t,r,n)}},_C=(e,t,r,n)=>{if(typeof e=="string"){PC(e,t,r);return}if(typeof e=="function"){EC(e,t,r,n);return}TC(e,t,r,n)},PC=(e,t,r)=>{const n=e===""?t:YS(t,e);n.classGroupId=r},EC=(e,t,r,n)=>{if(CC(e)){tv(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(bC(r,e))},TC=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,c]=i[o];tv(c,YS(t,s),r,n)}},YS=(e,t)=>{let r=e;const n=t.split(Ro),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=KS(),r.nextPart.set(o,s)),r=s}return r},CC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},mp="!",Wm=":",IC=[],Um=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),kC=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,c=0,u;const l=i.length;for(let p=0;p<l;p++){const v=i[p];if(o===0&&s===0){if(v===Wm){a.push(i.slice(c,p)),c=p+1;continue}if(v==="/"){u=p;continue}}v==="["?o++:v==="]"?o--:v==="("?s++:v===")"&&s--}const f=a.length===0?i:i.slice(c);let d=f,h=!1;f.endsWith(mp)?(d=f.slice(0,-1),h=!0):f.startsWith(mp)&&(d=f.slice(1),h=!0);const m=u&&u>c?u-c:void 0;return Um(a,h,d,m)};if(t){const i=t+Wm,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):Um(IC,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},RC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",c=t.has(o);s||c?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},MC=e=>({cache:jC(e.cacheSize),parseClassName:kC(e),sortModifiers:RC(e),...wC(e)}),$C=/\s+/,NC=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split($C);let c="";for(let u=s.length-1;u>=0;u-=1){const l=s[u],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:p}=r(l);if(f){c=l+(c.length>0?" "+c:c);continue}let v=!!p,y=n(v?m.substring(0,p):m);if(!y){if(!v){c=l+(c.length>0?" "+c:c);continue}if(y=n(m),!y){c=l+(c.length>0?" "+c:c);continue}v=!1}const g=d.length===0?"":d.length===1?d[0]:a(d).join(":"),x=h?g+mp:g,O=x+y;if(o.indexOf(O)>-1)continue;o.push(O);const b=i(y,v);for(let w=0;w<b.length;++w){const A=b[w];o.push(x+A)}c=l+(c.length>0?" "+c:c)}return c},DC=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=XS(r))&&(i&&(i+=" "),i+=n);return i},XS=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=XS(e[n]))&&(r&&(r+=" "),r+=t);return r},LC=(e,...t)=>{let r,n,i,a;const o=c=>{const u=t.reduce((l,f)=>f(l),e());return r=MC(u),n=r.cache.get,i=r.cache.set,a=s,s(c)},s=c=>{const u=n(c);if(u)return u;const l=NC(c,r);return i(c,l),l};return a=o,(...c)=>a(DC(...c))},BC=[],Ne=e=>{const t=r=>r[e]||BC;return t.isThemeGetter=!0,t},ZS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,JS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qC=/^\d+\/\d+$/,FC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zC=/\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$/,WC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,UC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,HC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yn=e=>qC.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),yr=e=>!!e&&Number.isInteger(Number(e)),Kc=e=>e.endsWith("%")&&pe(e.slice(0,-1)),Xt=e=>FC.test(e),VC=()=>!0,KC=e=>zC.test(e)&&!WC.test(e),QS=()=>!1,GC=e=>UC.test(e),YC=e=>HC.test(e),XC=e=>!ee(e)&&!te(e),ZC=e=>hi(e,rA,QS),ee=e=>ZS.test(e),zr=e=>hi(e,nA,KC),Gc=e=>hi(e,rj,pe),Hm=e=>hi(e,eA,QS),JC=e=>hi(e,tA,YC),no=e=>hi(e,iA,GC),te=e=>JS.test(e),Ri=e=>vi(e,nA),QC=e=>vi(e,nj),Vm=e=>vi(e,eA),ej=e=>vi(e,rA),tj=e=>vi(e,tA),io=e=>vi(e,iA,!0),hi=(e,t,r)=>{const n=ZS.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},vi=(e,t,r=!1)=>{const n=JS.exec(e);return n?n[1]?t(n[1]):r:!1},eA=e=>e==="position"||e==="percentage",tA=e=>e==="image"||e==="url",rA=e=>e==="length"||e==="size"||e==="bg-size",nA=e=>e==="length",rj=e=>e==="number",nj=e=>e==="family-name",iA=e=>e==="shadow",ij=()=>{const e=Ne("color"),t=Ne("font"),r=Ne("text"),n=Ne("font-weight"),i=Ne("tracking"),a=Ne("leading"),o=Ne("breakpoint"),s=Ne("container"),c=Ne("spacing"),u=Ne("radius"),l=Ne("shadow"),f=Ne("inset-shadow"),d=Ne("text-shadow"),h=Ne("drop-shadow"),m=Ne("blur"),p=Ne("perspective"),v=Ne("aspect"),y=Ne("ease"),g=Ne("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...O(),te,ee],w=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],P=()=>[te,ee,c],T=()=>[yn,"full","auto",...P()],I=()=>[yr,"none","subgrid",te,ee],C=()=>["auto",{span:["full",yr,te,ee]},yr,te,ee],j=()=>[yr,"auto",te,ee],k=()=>["auto","min","max","fr",te,ee],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...P()],L=()=>[yn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],M=()=>[e,te,ee],U=()=>[...O(),Vm,Hm,{position:[te,ee]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",ej,ZC,{size:[te,ee]}],W=()=>[Kc,Ri,zr],V=()=>["","none","full",u,te,ee],Y=()=>["",pe,Ri,zr],re=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[pe,Kc,Vm,Hm],Z=()=>["","none",m,te,ee],z=()=>["none",pe,te,ee],K=()=>["none",pe,te,ee],X=()=>[pe,te,ee],B=()=>[yn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xt],breakpoint:[Xt],color:[VC],container:[Xt],"drop-shadow":[Xt],ease:["in","out","in-out"],font:[XC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xt],shadow:[Xt],spacing:["px",pe],text:[Xt],"text-shadow":[Xt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yn,ee,te,v]}],container:["container"],columns:[{columns:[pe,ee,te,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[yr,"auto",te,ee]}],basis:[{basis:[yn,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,yn,"auto","initial","none",ee]}],grow:[{grow:["",pe,te,ee]}],shrink:[{shrink:["",pe,te,ee]}],order:[{order:[yr,"first","last","none",te,ee]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[s,"screen",...L()]}],"min-w":[{"min-w":[s,"screen","none",...L()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,Ri,zr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,te,Gc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kc,ee]}],"font-family":[{font:[QC,ee,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,te,ee]}],"line-clamp":[{"line-clamp":[pe,"none",te,Gc]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",te,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",te,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",te,zr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[pe,"auto",te,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te,ee]}],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",te,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},yr,te,ee],radial:["",te,ee],conic:[yr,te,ee]},tj,JC]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,te,ee]}],"outline-w":[{outline:["",pe,Ri,zr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",l,io,no]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,io,no]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[pe,zr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",d,io,no]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[pe,te,ee]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[te,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",te,ee]}],filter:[{filter:["","none",te,ee]}],blur:[{blur:Z()}],brightness:[{brightness:[pe,te,ee]}],contrast:[{contrast:[pe,te,ee]}],"drop-shadow":[{"drop-shadow":["","none",h,io,no]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",pe,te,ee]}],"hue-rotate":[{"hue-rotate":[pe,te,ee]}],invert:[{invert:["",pe,te,ee]}],saturate:[{saturate:[pe,te,ee]}],sepia:[{sepia:["",pe,te,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",te,ee]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[pe,te,ee]}],"backdrop-contrast":[{"backdrop-contrast":[pe,te,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,te,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,te,ee]}],"backdrop-invert":[{"backdrop-invert":["",pe,te,ee]}],"backdrop-opacity":[{"backdrop-opacity":[pe,te,ee]}],"backdrop-saturate":[{"backdrop-saturate":[pe,te,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,te,ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",te,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",te,ee]}],ease:[{ease:["linear","initial",y,te,ee]}],delay:[{delay:[pe,te,ee]}],animate:[{animate:["none",g,te,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,te,ee]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[te,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",te,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te,ee]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[pe,Ri,zr,Gc]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},aj=LC(ij);function ie(...e){return aj(ce(e))}function oj(e){throw new Error(`Unexpected value: ${e}`)}function sj(e,t){if(!e)throw new Error(t)}const aA=S.createContext(null),cj=()=>{const e=S.useContext(aA);if(!e)throw new Error("useChatId must be used within ElementsProvider");return e.chatId},oA=S.createContext(void 0),uj=S.createContext(null),rv=()=>{const e=S.useContext(oA);if(!e)throw new Error("useElements must be used within a ElementsProvider");return e},lj={compact:{"p-xs":"p-1","p-sm":"p-1.5","p-md":"p-2","p-lg":"p-2.5","p-xl":"p-3","px-xs":"px-1","px-sm":"px-1.5","px-md":"px-2","px-lg":"px-2.5","px-xl":"px-3","py-xs":"py-1","py-sm":"py-1.5","py-md":"py-2","py-lg":"py-2.5","py-xl":"py-3","gap-sm":"gap-1","gap-md":"gap-1.5","gap-lg":"gap-2","gap-xl":"gap-2.5","h-header":"h-10","h-input":"min-h-10","text-base":"text-sm","text-title":"text-xl","text-subtitle":"text-sm"},normal:{"p-xs":"p-1","p-sm":"p-2","p-md":"p-3","p-lg":"p-4","p-xl":"p-6","px-xs":"px-1","px-sm":"px-2","px-md":"px-3","px-lg":"px-4","px-xl":"px-6","py-xs":"py-1","py-sm":"py-2","py-md":"py-3","py-lg":"py-4","py-xl":"py-6","gap-sm":"gap-1.5","gap-md":"gap-2","gap-lg":"gap-3","gap-xl":"gap-4","h-header":"h-12","h-input":"min-h-12","text-base":"text-base","text-title":"text-2xl","text-subtitle":"text-base"},spacious:{"p-xs":"p-2","p-sm":"p-3","p-md":"p-4","p-lg":"p-6","p-xl":"p-10","px-xs":"px-2","px-sm":"px-3","px-md":"px-4","px-lg":"px-6","px-xl":"px-10","py-xs":"py-2","py-sm":"py-3","py-md":"py-4","py-lg":"py-6","py-xl":"py-10","gap-sm":"gap-2","gap-md":"gap-3","gap-lg":"gap-4","gap-xl":"gap-6","h-header":"h-14","h-input":"min-h-16","text-base":"text-lg","text-title":"text-3xl","text-subtitle":"text-lg"}},nv=()=>{const{config:e}=rv(),t=e.theme?.density??"normal";return r=>lj[t][r]};function sA(e){return typeof e=="object"&&e!==null&&"type"in e&&typeof e.type=="string"}const cA=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const fj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const dj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const Km=e=>{const t=dj(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Yc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const pj=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},hj=S.createContext({}),vj=()=>S.useContext(hj),mj=S.forwardRef(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},c)=>{const{size:u=24,strokeWidth:l=2,absoluteStrokeWidth:f=!1,color:d="currentColor",className:h=""}=vj()??{},m=n??f?Number(r??l)*24/Number(t??u):r??l;return S.createElement("svg",{ref:c,...Yc,width:t??u??Yc.width,height:t??u??Yc.height,stroke:e??d,strokeWidth:m,className:cA("lucide",h,i),...!a&&!pj(s)&&{"aria-hidden":"true"},...s},[...o.map(([p,v])=>S.createElement(p,v)),...Array.isArray(a)?a:[a]])});const qa=(e,t)=>{const r=S.forwardRef(({className:n,...i},a)=>S.createElement(mj,{ref:a,iconNode:t,className:cA(`lucide-${fj(Km(e))}`,`lucide-${e}`,n),...i}));return r.displayName=Km(e),r};const yj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],iv=qa("check",yj);const gj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xs=qa("chevron-down",gj);const bj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],uA=qa("chevron-up",bj);const xj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],av=qa("circle-alert",xj),wj={sharp:{sm:"rounded-sm",md:"rounded",lg:"rounded-md",xl:"rounded-lg",full:"rounded-lg"},soft:{sm:"rounded",md:"rounded-lg",lg:"rounded-xl",xl:"rounded-2xl",full:"rounded-full"},round:{sm:"rounded-lg",md:"rounded-xl",lg:"rounded-2xl",xl:"rounded-3xl",full:"rounded-full"}},lA=()=>{const{config:e}=rv(),t=e.theme?.radius??"soft";return r=>wj[t][r]},Mo=({children:e,className:t,title:r})=>{const n=lA();return _.jsx("div",{className:"@container my-4 w-full first:mt-0",children:_.jsxs("div",{className:ie("w-full overflow-hidden border border-border after:hidden @sm:max-w-md @md:max-w-lg @lg:max-w-xl @xl:max-w-2xl",n("lg"),t),children:[_.jsxs("div",{className:"flex h-8 items-center gap-2 border-b border-border bg-muted/50 px-3",children:[_.jsxs("div",{className:"flex items-center gap-1.5",children:[_.jsx("div",{className:"size-3 rounded-full bg-[#FF5F57]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#FEBC2E]"}),_.jsx("div",{className:"size-3 rounded-full bg-[#28C840]"})]}),r&&_.jsx("span",{className:"flex-1 text-center text-xs font-medium text-muted-foreground",children:r})]}),e]})})},Oj=({text:e,className:t})=>_.jsx(Mo,{className:t,children:_.jsx("div",{className:ie("relative flex min-h-[400px] items-center justify-center bg-background"),children:_.jsx("span",{className:"shimmer text-sm text-muted-foreground",children:e})})});var Xc,Gm;function rt(){if(Gm)return Xc;Gm=1;var e=Array.isArray;return Xc=e,Xc}var Zc,Ym;function fA(){if(Ym)return Zc;Ym=1;var e=typeof ro=="object"&&ro&&ro.Object===Object&&ro;return Zc=e,Zc}var Jc,Xm;function Ut(){if(Xm)return Jc;Xm=1;var e=fA(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Jc=r,Jc}var Qc,Zm;function Fa(){if(Zm)return Qc;Zm=1;var e=Ut(),t=e.Symbol;return Qc=t,Qc}var eu,Jm;function Sj(){if(Jm)return eu;Jm=1;var e=Fa(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),c=o[i];try{o[i]=void 0;var u=!0}catch{}var l=n.call(o);return u&&(s?o[i]=c:delete o[i]),l}return eu=a,eu}var tu,Qm;function Aj(){if(Qm)return tu;Qm=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return tu=r,tu}var ru,ey;function pr(){if(ey)return ru;ey=1;var e=Fa(),t=Sj(),r=Aj(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return ru=o,ru}var nu,ty;function hr(){if(ty)return nu;ty=1;function e(t){return t!=null&&typeof t=="object"}return nu=e,nu}var iu,ry;function mi(){if(ry)return iu;ry=1;var e=pr(),t=hr(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return iu=n,iu}var au,ny;function ov(){if(ny)return au;ny=1;var e=rt(),t=mi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return au=i,au}var ou,iy;function Ir(){if(iy)return ou;iy=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ou=e,ou}var su,ay;function sv(){if(ay)return su;ay=1;var e=pr(),t=Ir(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==a}return su=o,su}var cu,oy;function _j(){if(oy)return cu;oy=1;var e=Ut(),t=e["__core-js_shared__"];return cu=t,cu}var uu,sy;function Pj(){if(sy)return uu;sy=1;var e=_j(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return uu=r,uu}var lu,cy;function dA(){if(cy)return lu;cy=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return lu=r,lu}var fu,uy;function Ej(){if(uy)return fu;uy=1;var e=sv(),t=Pj(),r=Ir(),n=dA(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,c=o.toString,u=s.hasOwnProperty,l=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?l:a;return h.test(n(d))}return fu=f,fu}var du,ly;function Tj(){if(ly)return du;ly=1;function e(t,r){return t?.[r]}return du=e,du}var pu,fy;function ln(){if(fy)return pu;fy=1;var e=Ej(),t=Tj();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return pu=r,pu}var hu,dy;function Zs(){if(dy)return hu;dy=1;var e=ln(),t=e(Object,"create");return hu=t,hu}var vu,py;function Cj(){if(py)return vu;py=1;var e=Zs();function t(){this.__data__=e?e(null):{},this.size=0}return vu=t,vu}var mu,hy;function jj(){if(hy)return mu;hy=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return mu=e,mu}var yu,vy;function Ij(){if(vy)return yu;vy=1;var e=Zs(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return yu=i,yu}var gu,my;function kj(){if(my)return gu;my=1;var e=Zs(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return gu=n,gu}var bu,yy;function Rj(){if(yy)return bu;yy=1;var e=Zs(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return bu=r,bu}var xu,gy;function Mj(){if(gy)return xu;gy=1;var e=Cj(),t=jj(),r=Ij(),n=kj(),i=Rj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,xu=a,xu}var wu,by;function $j(){if(by)return wu;by=1;function e(){this.__data__=[],this.size=0}return wu=e,wu}var Ou,xy;function cv(){if(xy)return Ou;xy=1;function e(t,r){return t===r||t!==t&&r!==r}return Ou=e,Ou}var Su,wy;function Js(){if(wy)return Su;wy=1;var e=cv();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Su=t,Su}var Au,Oy;function Nj(){if(Oy)return Au;Oy=1;var e=Js(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Au=n,Au}var _u,Sy;function Dj(){if(Sy)return _u;Sy=1;var e=Js();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return _u=t,_u}var Pu,Ay;function Lj(){if(Ay)return Pu;Ay=1;var e=Js();function t(r){return e(this.__data__,r)>-1}return Pu=t,Pu}var Eu,_y;function Bj(){if(_y)return Eu;_y=1;var e=Js();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Eu=t,Eu}var Tu,Py;function Qs(){if(Py)return Tu;Py=1;var e=$j(),t=Nj(),r=Dj(),n=Lj(),i=Bj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Tu=a,Tu}var Cu,Ey;function uv(){if(Ey)return Cu;Ey=1;var e=ln(),t=Ut(),r=e(t,"Map");return Cu=r,Cu}var ju,Ty;function qj(){if(Ty)return ju;Ty=1;var e=Mj(),t=Qs(),r=uv();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return ju=n,ju}var Iu,Cy;function Fj(){if(Cy)return Iu;Cy=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Iu=e,Iu}var ku,jy;function ec(){if(jy)return ku;jy=1;var e=Fj();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ku=t,ku}var Ru,Iy;function zj(){if(Iy)return Ru;Iy=1;var e=ec();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ru=t,Ru}var Mu,ky;function Wj(){if(ky)return Mu;ky=1;var e=ec();function t(r){return e(this,r).get(r)}return Mu=t,Mu}var $u,Ry;function Uj(){if(Ry)return $u;Ry=1;var e=ec();function t(r){return e(this,r).has(r)}return $u=t,$u}var Nu,My;function Hj(){if(My)return Nu;My=1;var e=ec();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Nu=t,Nu}var Du,$y;function lv(){if($y)return Du;$y=1;var e=qj(),t=zj(),r=Wj(),n=Uj(),i=Hj();function a(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Du=a,Du}var Lu,Ny;function pA(){if(Ny)return Lu;Ny=1;var e=lv(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],c=a.cache;if(c.has(s))return c.get(s);var u=n.apply(this,o);return a.cache=c.set(s,u)||c,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Lu=r,Lu}var Bu,Dy;function Vj(){if(Dy)return Bu;Dy=1;var e=pA(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Bu=r,Bu}var qu,Ly;function Kj(){if(Ly)return qu;Ly=1;var e=Vj(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,c,u){a.push(c?u.replace(r,"$1"):s||o)}),a});return qu=n,qu}var Fu,By;function fv(){if(By)return Fu;By=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Fu=e,Fu}var zu,qy;function Gj(){if(qy)return zu;qy=1;var e=Fa(),t=fv(),r=rt(),n=mi(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return zu=o,zu}var Wu,Fy;function hA(){if(Fy)return Wu;Fy=1;var e=Gj();function t(r){return r==null?"":e(r)}return Wu=t,Wu}var Uu,zy;function vA(){if(zy)return Uu;zy=1;var e=rt(),t=ov(),r=Kj(),n=hA();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Uu=i,Uu}var Hu,Wy;function tc(){if(Wy)return Hu;Wy=1;var e=mi();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Hu=t,Hu}var Vu,Uy;function dv(){if(Uy)return Vu;Uy=1;var e=vA(),t=tc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Vu=r,Vu}var Ku,Hy;function mA(){if(Hy)return Ku;Hy=1;var e=dv();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Ku=t,Ku}var Yj=mA();const ct=ge(Yj);var Gu,Vy;function Xj(){if(Vy)return Gu;Vy=1;function e(t){return t==null}return Gu=e,Gu}var Zj=Xj();const oe=ge(Zj);var Yu,Ky;function Jj(){if(Ky)return Yu;Ky=1;var e=pr(),t=rt(),r=hr(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Yu=i,Yu}var Qj=Jj();const rn=ge(Qj);var eI=sv();const ae=ge(eI);var tI=Ir();const yi=ge(tI);var ao={exports:{}},be={};var Gy;function rI(){if(Gy)return be;Gy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case e:switch(p=p.type,p){case r:case i:case n:case c:case u:case d:return p;default:switch(p=p&&p.$$typeof,p){case o:case s:case f:case l:return p;case a:return p;default:return v}}case t:return v}}}return be.ContextConsumer=a,be.ContextProvider=o,be.Element=e,be.ForwardRef=s,be.Fragment=r,be.Lazy=f,be.Memo=l,be.Portal=t,be.Profiler=i,be.StrictMode=n,be.Suspense=c,be.SuspenseList=u,be.isContextConsumer=function(p){return m(p)===a},be.isContextProvider=function(p){return m(p)===o},be.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},be.isForwardRef=function(p){return m(p)===s},be.isFragment=function(p){return m(p)===r},be.isLazy=function(p){return m(p)===f},be.isMemo=function(p){return m(p)===l},be.isPortal=function(p){return m(p)===t},be.isProfiler=function(p){return m(p)===i},be.isStrictMode=function(p){return m(p)===n},be.isSuspense=function(p){return m(p)===c},be.isSuspenseList=function(p){return m(p)===u},be.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===l||p.$$typeof===o||p.$$typeof===a||p.$$typeof===s||p.$$typeof===h||p.getModuleId!==void 0)},be.typeOf=m,be}var xe={};var Yy;function nI(){return Yy||(Yy=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case t:switch(p=p.type,p){case n:case a:case i:case u:case l:case h:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case d:case f:return p;case o:return p;default:return v}}case r:return v}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");xe.ContextConsumer=o,xe.ContextProvider=s,xe.Element=t,xe.ForwardRef=c,xe.Fragment=n,xe.Lazy=d,xe.Memo=f,xe.Portal=r,xe.Profiler=a,xe.StrictMode=i,xe.Suspense=u,xe.SuspenseList=l,xe.isContextConsumer=function(p){return e(p)===o},xe.isContextProvider=function(p){return e(p)===s},xe.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},xe.isForwardRef=function(p){return e(p)===c},xe.isFragment=function(p){return e(p)===n},xe.isLazy=function(p){return e(p)===d},xe.isMemo=function(p){return e(p)===f},xe.isPortal=function(p){return e(p)===r},xe.isProfiler=function(p){return e(p)===a},xe.isStrictMode=function(p){return e(p)===i},xe.isSuspense=function(p){return e(p)===u},xe.isSuspenseList=function(p){return e(p)===l},xe.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===a||p===i||p===u||p===l||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===s||p.$$typeof===o||p.$$typeof===c||p.$$typeof===m||p.getModuleId!==void 0)},xe.typeOf=e})()),xe}var Xy;function pv(){return Xy||(Xy=1,process.env.NODE_ENV==="production"?ao.exports=rI():ao.exports=nI()),ao.exports}var iI=pv(),Xu,Zy;function yA(){if(Zy)return Xu;Zy=1;var e=pr(),t=hr(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Xu=n,Xu}var Zu,Jy;function aI(){if(Jy)return Zu;Jy=1;var e=yA();function t(r){return e(r)&&r!=+r}return Zu=t,Zu}var oI=aI();const gi=ge(oI);var sI=yA();const cI=ge(sI);var Xe=function(t){return t===0?0:t>0?1:-1},Yr=function(t){return rn(t)&&t.indexOf("%")===t.length-1},G=function(t){return cI(t)&&!gi(t)},uI=function(t){return oe(t)},Be=function(t){return G(t)||rn(t)},lI=0,kr=function(t){var r=++lI;return"".concat(t||"").concat(r)},Ze=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!G(t)&&!rn(t))return n;var a;if(Yr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gi(a)&&(a=n),i&&a>r&&(a=r),a},wr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},fI=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Oe=function(t,r){return G(t)&&G(r)?function(n){return t+n*(r-t)}:function(){return r}};function $o(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ct(n,t))===r})}var dI=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,c=-1/0,u=0,l=0,f=0;f<r;f++)u=t[f].cx||0,l=t[f].cy||0,n+=u,i+=l,a+=u*l,o+=u*u,s=Math.min(s,u),c=Math.max(c,u);var d=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:c,a:d,b:(i-d*n)/r}},pI=function(t,r){return G(t)&&G(r)?t-r:rn(t)&&rn(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function jn(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function yp(e){"@babel/helpers - typeof";return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yp(e)}var hI=["viewBox","children"],vI=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Qy=["points","pathLength"],Ju={svg:hI,polygon:Qy,polyline:Qy},hv=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],No=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(S.isValidElement(t)&&(n=t.props),!yi(n))return null;var i={};return Object.keys(n).forEach(function(a){hv.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},mI=function(t,r,n){return function(i){return t(r,n,i),null}},Tr=function(t,r,n){if(!yi(t)||yp(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];hv.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=mI(o,r,n))}),i},yI=["children"],gI=["children"];function eg(e,t){if(e==null)return{};var r=bI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gp(e){"@babel/helpers - typeof";return gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gp(e)}var tg={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},nr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},rg=null,Qu=null,vv=function e(t){if(t===rg&&Array.isArray(Qu))return Qu;var r=[];return S.Children.forEach(t,function(n){oe(n)||(iI.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Qu=r,rg=t,r};function Qe(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return nr(i)}):n=[nr(t)],vv(e).forEach(function(i){var a=ct(i,"type.displayName")||ct(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function at(e,t){var r=Qe(e,t);return r&&r[0]}var ng=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!G(n)||n<=0||!G(i)||i<=0)},xI=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],wI=function(t){return t&&t.type&&rn(t.type)&&xI.indexOf(t.type)>=0},gA=function(t){return t&&gp(t)==="object"&&"clipDot"in t},OI=function(t,r,n,i){var a,o=(a=Ju?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!ae(t)&&(i&&o.includes(r)||vI.includes(r))||n&&hv.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(S.isValidElement(t)&&(i=t.props),!yi(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;OI((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},bp=function e(t,r){if(t===r)return!0;var n=S.Children.count(t);if(n!==S.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ig(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!ig(a,o))return!1}return!0},ig=function(t,r){if(oe(t)&&oe(r))return!0;if(!oe(t)&&!oe(r)){var n=t.props||{},i=n.children,a=eg(n,yI),o=r.props||{},s=o.children,c=eg(o,gI);return i&&s?jn(a,c)&&bp(i,s):!i&&!s?jn(a,c):!1}return!1},ag=function(t,r){var n=[],i={};return vv(t).forEach(function(a,o){if(wI(a))n.push(a);else if(a){var s=nr(a.type),c=r[s]||{},u=c.handler,l=c.once;if(u&&(!l||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},SI=function(t){var r=t&&t.type;return r&&tg[r]?tg[r]:null},AI=function(t,r){return vv(r).indexOf(t)},_I=["children","width","height","viewBox","className","style","title","desc"];function xp(){return xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xp.apply(this,arguments)}function PI(e,t){if(e==null)return{};var r=EI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function wp(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,u=PI(e,_I),l=i||{width:r,height:n,x:0,y:0},f=ce("recharts-surface",a);return S.createElement("svg",xp({},J(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),S.createElement("title",null,s),S.createElement("desc",null,c),t)}var TI=["children","className"];function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Op.apply(this,arguments)}function CI(e,t){if(e==null)return{};var r=jI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ue=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=CI(e,TI),a=ce("recharts-layer",n);return S.createElement("g",Op({className:a},J(i,!0),{ref:t}),r)}),II=process.env.NODE_ENV!=="production",Pt=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(II&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},el,og;function kI(){if(og)return el;og=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return el=e,el}var tl,sg;function RI(){if(sg)return tl;sg=1;var e=kI();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return tl=t,tl}var rl,cg;function bA(){if(cg)return rl;cg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function c(u){return s.test(u)}return rl=c,rl}var nl,ug;function MI(){if(ug)return nl;ug=1;function e(t){return t.split("")}return nl=e,nl}var il,lg;function $I(){if(lg)return il;lg=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+c+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",m=u+"?",p="["+a+"]?",v="(?:"+h+"(?:"+[l,f,d].join("|")+")"+p+m+")*",y=p+m+v,g="(?:"+[l+s+"?",s,f,d,o].join("|")+")",x=RegExp(c+"(?="+c+")|"+g+y,"g");function O(b){return b.match(x)||[]}return il=O,il}var al,fg;function NI(){if(fg)return al;fg=1;var e=MI(),t=bA(),r=$I();function n(i){return t(i)?r(i):e(i)}return al=n,al}var ol,dg;function DI(){if(dg)return ol;dg=1;var e=RI(),t=bA(),r=NI(),n=hA();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,c=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return c[a]()+u}}return ol=i,ol}var sl,pg;function LI(){if(pg)return sl;pg=1;var e=DI(),t=e("toUpperCase");return sl=t,sl}var BI=LI();const rc=ge(BI);function Pe(e){return function(){return e}}const xA=Math.cos,Do=Math.sin,It=Math.sqrt,Lo=Math.PI,nc=2*Lo,Sp=Math.PI,Ap=2*Sp,Vr=1e-6,qI=Ap-Vr;function wA(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function FI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return wA;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class zI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?wA:FI(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,c=n-t,u=i-r,l=o-t,f=s-r,d=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Vr)if(!(Math.abs(f*c-u*l)>Vr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,m=i-s,p=c*c+u*u,v=h*h+m*m,y=Math.sqrt(p),g=Math.sqrt(d),x=a*Math.tan((Sp-Math.acos((p+d-v)/(2*y*g)))/2),O=x/g,b=x/y;Math.abs(O-1)>Vr&&this._append`L${t+O*l},${r+O*f}`,this._append`A${a},${a},0,0,${+(f*h>l*m)},${this._x1=t+b*c},${this._y1=r+b*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),c=n*Math.sin(i),u=t+s,l=r+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Vr||Math.abs(this._y1-l)>Vr)&&this._append`L${u},${l}`,n&&(d<0&&(d=d%Ap+Ap),d>qI?this._append`A${n},${n},0,1,${f},${t-s},${r-c}A${n},${n},0,1,${f},${this._x1=u},${this._y1=l}`:d>Vr&&this._append`A${n},${n},0,${+(d>=Sp)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function mv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new zI(t)}function yv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function OA(e){this._context=e}OA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ic(e){return new OA(e)}function SA(e){return e[0]}function AA(e){return e[1]}function _A(e,t){var r=Pe(!0),n=null,i=ic,a=null,o=mv(s);e=typeof e=="function"?e:e===void 0?SA:Pe(e),t=typeof t=="function"?t:t===void 0?AA:Pe(t);function s(c){var u,l=(c=yv(c)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),u=0;u<=l;++u)!(u<l&&r(f=c[u],u,c))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,c),+t(f,u,c));if(h)return a=null,h+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Pe(!!c),s):r},s.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),s):i},s.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),s):n},s}function oo(e,t,r){var n=null,i=Pe(!0),a=null,o=ic,s=null,c=mv(u);e=typeof e=="function"?e:e===void 0?SA:Pe(+e),t=typeof t=="function"?t:Pe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?AA:Pe(+r);function u(f){var d,h,m,p=(f=yv(f)).length,v,y=!1,g,x=new Array(p),O=new Array(p);for(a==null&&(s=o(g=c())),d=0;d<=p;++d){if(!(d<p&&i(v=f[d],d,f))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=h;--m)s.point(x[m],O[m]);s.lineEnd(),s.areaEnd()}y&&(x[d]=+e(v,d,f),O[d]=+t(v,d,f),s.point(n?+n(v,d,f):x[d],r?+r(v,d,f):O[d]))}if(g)return s=null,g+""||null}function l(){return _A().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Pe(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Pe(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Pe(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Pe(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Pe(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Pe(+f),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Pe(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class PA{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 WI(e){return new PA(e,!0)}function UI(e){return new PA(e,!1)}const gv={draw(e,t){const r=It(t/Lo);e.moveTo(r,0),e.arc(0,0,r,0,nc)}},HI={draw(e,t){const r=It(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},EA=It(1/3),VI=EA*2,KI={draw(e,t){const r=It(t/VI),n=r*EA;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},GI={draw(e,t){const r=It(t),n=-r/2;e.rect(n,n,r,r)}},YI=.8908130915292852,TA=Do(Lo/10)/Do(7*Lo/10),XI=Do(nc/10)*TA,ZI=-xA(nc/10)*TA,JI={draw(e,t){const r=It(t*YI),n=XI*r,i=ZI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=nc*a/5,s=xA(o),c=Do(o);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*i,c*n+s*i)}e.closePath()}},cl=It(3),QI={draw(e,t){const r=-It(t/(cl*3));e.moveTo(0,r*2),e.lineTo(-cl*r,-r),e.lineTo(cl*r,-r),e.closePath()}},ft=-.5,dt=It(3)/2,_p=1/It(12),ek=(_p/2+1)*3,tk={draw(e,t){const r=It(t/ek),n=r/2,i=r*_p,a=n,o=r*_p+r,s=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(ft*n-dt*i,dt*n+ft*i),e.lineTo(ft*a-dt*o,dt*a+ft*o),e.lineTo(ft*s-dt*c,dt*s+ft*c),e.lineTo(ft*n+dt*i,ft*i-dt*n),e.lineTo(ft*a+dt*o,ft*o-dt*a),e.lineTo(ft*s+dt*c,ft*c-dt*s),e.closePath()}};function rk(e,t){let r=null,n=mv(i);e=typeof e=="function"?e:Pe(e||gv),t=typeof t=="function"?t:Pe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Pe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Bo(){}function qo(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function CA(e){this._context=e}CA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nk(e){return new CA(e)}function jA(e){this._context=e}jA.prototype={areaStart:Bo,areaEnd:Bo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ik(e){return new jA(e)}function IA(e){this._context=e}IA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:qo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ak(e){return new IA(e)}function kA(e){this._context=e}kA.prototype={areaStart:Bo,areaEnd:Bo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ok(e){return new kA(e)}function hg(e){return e<0?-1:1}function vg(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(hg(a)+hg(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function mg(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ul(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Fo(e){this._context=e}Fo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ul(this,this._t0,mg(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,ul(this,mg(this,r=vg(this,e,t)),r);break;default:ul(this,this._t0,r=vg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function RA(e){this._context=new MA(e)}(RA.prototype=Object.create(Fo.prototype)).point=function(e,t){Fo.prototype.point.call(this,t,e)};function MA(e){this._context=e}MA.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function sk(e){return new Fo(e)}function ck(e){return new RA(e)}function $A(e){this._context=e}$A.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=yg(e),i=yg(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function yg(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function uk(e){return new $A(e)}function ac(e,t){this._context=e,this._t=t}ac.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function lk(e){return new ac(e,.5)}function fk(e){return new ac(e,0)}function dk(e){return new ac(e,1)}function $n(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Pp(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function pk(e,t){return e[t]}function hk(e){const t=[];return t.key=e,t}function vk(){var e=Pe([]),t=Pp,r=$n,n=pk;function i(a){var o=Array.from(e.apply(this,arguments),hk),s,c=o.length,u=-1,l;for(const f of a)for(s=0,++u;s<c;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,l=yv(t(o));s<c;++s)o[l[s]].index=s;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Pe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Pp:typeof a=="function"?a:Pe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??$n,i):r},i}function mk(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}$n(e,t)}}function yk(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}$n(e,t)}}function gk(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,c=0,u=0;s<o;++s){for(var l=e[t[s]],f=l[n][1]||0,d=l[n-1][1]||0,h=(f-d)/2,m=0;m<s;++m){var p=e[t[m]],v=p[n][1]||0,y=p[n-1][1]||0;h+=v-y}c+=f,u+=h*f}i[n-1][1]+=i[n-1][0]=r,c&&(r-=u/c)}i[n-1][1]+=i[n-1][0]=r,$n(e,t)}}function ra(e){"@babel/helpers - typeof";return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ra(e)}var bk=["type","size","sizeType"];function Ep(){return Ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ep.apply(this,arguments)}function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(r),!0).forEach(function(n){xk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xk(e,t,r){return t=wk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wk(e){var t=Ok(e,"string");return ra(t)=="symbol"?t:t+""}function Ok(e,t){if(ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sk(e,t){if(e==null)return{};var r=Ak(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ak(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var NA={symbolCircle:gv,symbolCross:HI,symbolDiamond:KI,symbolSquare:GI,symbolStar:JI,symbolTriangle:QI,symbolWye:tk},_k=Math.PI/180,Pk=function(t){var r="symbol".concat(rc(t));return NA[r]||gv},Ek=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*_k;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Tk=function(t,r){NA["symbol".concat(rc(t))]=r},oc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,c=Sk(t,bk),u=bg(bg({},c),{},{type:n,size:a,sizeType:s}),l=function(){var v=Pk(n),y=rk().type(v).size(Ek(a,s,n));return y()},f=u.className,d=u.cx,h=u.cy,m=J(u,!0);return d===+d&&h===+h&&a===+a?S.createElement("path",Ep({},m,{className:ce("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:l()})):null};oc.registerSymbol=Tk;function Nn(e){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(e)}function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tp.apply(this,arguments)}function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ck(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){na(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ik(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LA(n.key),n)}}function kk(e,t,r){return t&&Ik(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rk(e,t,r){return t=zo(t),Mk(e,DA()?Reflect.construct(t,r||[],zo(e).constructor):t.apply(e,r))}function Mk(e,t){if(t&&(Nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $k(e)}function $k(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DA=function(){return!!e})()}function zo(e){return zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zo(e)}function Nk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cp(e,t)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cp(e,t)}function na(e,t,r){return t=LA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LA(e){var t=Dk(e,"string");return Nn(t)=="symbol"?t:t+""}function Dk(e,t){if(Nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pt=32,bv=(function(e){function t(){return jk(this,t),Rk(this,t,arguments)}return Nk(t,e),kk(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=pt/2,o=pt/6,s=pt/3,c=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:pt,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(s,`
2
2
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
3
3
  H`).concat(pt,"M").concat(2*s,",").concat(a,`
4
- A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(pt/8,"h").concat(pt,"v").concat(pt*3/4,"h").concat(-pt,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var u=Ek({},n);return delete u.legendIcon,S.cloneElement(n.legendIcon,u)}return S.createElement(oc,{fill:c,cx:a,cy:a,size:pt,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,c=i.formatter,u=i.inactiveColor,l={x:0,y:0,width:pt,height:pt},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,m){var p=h.formatter||c,v=ce(na(na({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=ae(h.value)?null:h.value;Pt(!ae(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var g=h.inactive?u:h.color;return S.createElement("li",Ep({className:v,style:f,key:"legend-item-".concat(m)},Tr(n.props,h,m)),S.createElement(xp,{width:o,height:o,viewBox:l,style:d},n.renderIcon(h)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},p?p(y,h,m):y))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(S.PureComponent);na(gv,"displayName","Legend");na(gv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ul,xg;function Nk(){if(xg)return ul;xg=1;var e=Qs();function t(){this.__data__=new e,this.size=0}return ul=t,ul}var ll,wg;function Dk(){if(wg)return ll;wg=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ll=e,ll}var fl,Og;function Lk(){if(Og)return fl;Og=1;function e(t){return this.__data__.get(t)}return fl=e,fl}var dl,Sg;function Bk(){if(Sg)return dl;Sg=1;function e(t){return this.__data__.has(t)}return dl=e,dl}var pl,Ag;function qk(){if(Ag)return pl;Ag=1;var e=Qs(),t=cv(),r=uv(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,o),this.size=s.size,this}return pl=i,pl}var hl,_g;function LA(){if(_g)return hl;_g=1;var e=Qs(),t=Nk(),r=Dk(),n=Lk(),i=Bk(),a=qk();function o(s){var c=this.__data__=new e(s);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,hl=o,hl}var vl,Pg;function Fk(){if(Pg)return vl;Pg=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return vl=t,vl}var ml,Eg;function zk(){if(Eg)return ml;Eg=1;function e(t){return this.__data__.has(t)}return ml=e,ml}var yl,Tg;function BA(){if(Tg)return yl;Tg=1;var e=uv(),t=Fk(),r=zk();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,yl=n,yl}var gl,Cg;function qA(){if(Cg)return gl;Cg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return gl=e,gl}var bl,jg;function FA(){if(jg)return bl;jg=1;function e(t,r){return t.has(r)}return bl=e,bl}var xl,Ig;function zA(){if(Ig)return xl;Ig=1;var e=BA(),t=qA(),r=FA(),n=1,i=2;function a(o,s,c,u,l,f){var d=c&n,h=o.length,m=s.length;if(h!=m&&!(d&&m>h))return!1;var p=f.get(o),v=f.get(s);if(p&&v)return p==s&&v==o;var y=-1,g=!0,x=c&i?new e:void 0;for(f.set(o,s),f.set(s,o);++y<h;){var O=o[y],b=s[y];if(u)var w=d?u(b,O,y,s,o,f):u(O,b,y,o,s,f);if(w!==void 0){if(w)continue;g=!1;break}if(x){if(!t(s,function(A,P){if(!r(x,P)&&(O===A||l(O,A,c,u,f)))return x.push(P)})){g=!1;break}}else if(!(O===b||l(O,b,c,u,f))){g=!1;break}}return f.delete(o),f.delete(s),g}return xl=a,xl}var wl,kg;function Wk(){if(kg)return wl;kg=1;var e=Ut(),t=e.Uint8Array;return wl=t,wl}var Ol,Rg;function Uk(){if(Rg)return Ol;Rg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Ol=e,Ol}var Sl,Mg;function bv(){if(Mg)return Sl;Mg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Sl=e,Sl}var Al,$g;function Hk(){if($g)return Al;$g=1;var e=Fa(),t=Wk(),r=sv(),n=zA(),i=Uk(),a=bv(),o=1,s=2,c="[object Boolean]",u="[object Date]",l="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",m="[object Set]",p="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",x=e?e.prototype:void 0,O=x?x.valueOf:void 0;function b(w,A,P,T,I,C,j){switch(P){case g:if(w.byteLength!=A.byteLength||w.byteOffset!=A.byteOffset)return!1;w=w.buffer,A=A.buffer;case y:return!(w.byteLength!=A.byteLength||!C(new t(w),new t(A)));case c:case u:case d:return r(+w,+A);case l:return w.name==A.name&&w.message==A.message;case h:case p:return w==A+"";case f:var k=i;case m:var $=T&o;if(k||(k=a),w.size!=A.size&&!$)return!1;var N=j.get(w);if(N)return N==A;T|=s,j.set(w,A);var R=n(k(w),k(A),T,I,C,j);return j.delete(w),R;case v:if(O)return O.call(w)==O.call(A)}return!1}return Al=b,Al}var _l,Ng;function WA(){if(Ng)return _l;Ng=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return _l=e,_l}var Pl,Dg;function Vk(){if(Dg)return Pl;Dg=1;var e=WA(),t=rt();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Pl=r,Pl}var El,Lg;function Kk(){if(Lg)return El;Lg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return El=e,El}var Tl,Bg;function Gk(){if(Bg)return Tl;Bg=1;function e(){return[]}return Tl=e,Tl}var Cl,qg;function Yk(){if(qg)return Cl;qg=1;var e=Kk(),t=Gk(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return Cl=a,Cl}var jl,Fg;function Xk(){if(Fg)return jl;Fg=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return jl=e,jl}var Il,zg;function Zk(){if(zg)return Il;zg=1;var e=pr(),t=hr(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Il=n,Il}var kl,Wg;function xv(){if(Wg)return kl;Wg=1;var e=Zk(),t=hr(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return kl=a,kl}var Wi={exports:{}},Rl,Ug;function Jk(){if(Ug)return Rl;Ug=1;function e(){return!1}return Rl=e,Rl}Wi.exports;var Hg;function UA(){return Hg||(Hg=1,(function(e,t){var r=Ut(),n=Jk(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(Wi,Wi.exports)),Wi.exports}var Ml,Vg;function wv(){if(Vg)return Ml;Vg=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Ml=r,Ml}var $l,Kg;function Ov(){if(Kg)return $l;Kg=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return $l=t,$l}var Nl,Gg;function Qk(){if(Gg)return Nl;Gg=1;var e=pr(),t=Ov(),r=hr(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",l="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",m="[object String]",p="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",b="[object Int16Array]",w="[object Int32Array]",A="[object Uint8Array]",P="[object Uint8ClampedArray]",T="[object Uint16Array]",I="[object Uint32Array]",C={};C[g]=C[x]=C[O]=C[b]=C[w]=C[A]=C[P]=C[T]=C[I]=!0,C[n]=C[i]=C[v]=C[a]=C[y]=C[o]=C[s]=C[c]=C[u]=C[l]=C[f]=C[d]=C[h]=C[m]=C[p]=!1;function j(k){return r(k)&&t(k.length)&&!!C[e(k)]}return Nl=j,Nl}var Dl,Yg;function HA(){if(Yg)return Dl;Yg=1;function e(t){return function(r){return t(r)}}return Dl=e,Dl}var Ui={exports:{}};Ui.exports;var Xg;function eR(){return Xg||(Xg=1,(function(e,t){var r=lA(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(Ui,Ui.exports)),Ui.exports}var Ll,Zg;function VA(){if(Zg)return Ll;Zg=1;var e=Qk(),t=HA(),r=eR(),n=r&&r.isTypedArray,i=n?t(n):e;return Ll=i,Ll}var Bl,Jg;function tR(){if(Jg)return Bl;Jg=1;var e=Xk(),t=xv(),r=rt(),n=UA(),i=wv(),a=VA(),o=Object.prototype,s=o.hasOwnProperty;function c(u,l){var f=r(u),d=!f&&t(u),h=!f&&!d&&n(u),m=!f&&!d&&!h&&a(u),p=f||d||h||m,v=p?e(u.length,String):[],y=v.length;for(var g in u)(l||s.call(u,g))&&!(p&&(g=="length"||h&&(g=="offset"||g=="parent")||m&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i(g,y)))&&v.push(g);return v}return Bl=c,Bl}var ql,Qg;function rR(){if(Qg)return ql;Qg=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return ql=t,ql}var Fl,eb;function KA(){if(eb)return Fl;eb=1;function e(t,r){return function(n){return t(r(n))}}return Fl=e,Fl}var zl,tb;function nR(){if(tb)return zl;tb=1;var e=KA(),t=e(Object.keys,Object);return zl=t,zl}var Wl,rb;function iR(){if(rb)return Wl;rb=1;var e=rR(),t=nR(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Wl=i,Wl}var Ul,nb;function za(){if(nb)return Ul;nb=1;var e=ov(),t=Ov();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ul=r,Ul}var Hl,ib;function sc(){if(ib)return Hl;ib=1;var e=tR(),t=iR(),r=za();function n(i){return r(i)?e(i):t(i)}return Hl=n,Hl}var Vl,ab;function aR(){if(ab)return Vl;ab=1;var e=Vk(),t=Yk(),r=sc();function n(i){return e(i,r,t)}return Vl=n,Vl}var Kl,ob;function oR(){if(ob)return Kl;ob=1;var e=aR(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,c,u,l){var f=s&t,d=e(a),h=d.length,m=e(o),p=m.length;if(h!=p&&!f)return!1;for(var v=h;v--;){var y=d[v];if(!(f?y in o:n.call(o,y)))return!1}var g=l.get(a),x=l.get(o);if(g&&x)return g==o&&x==a;var O=!0;l.set(a,o),l.set(o,a);for(var b=f;++v<h;){y=d[v];var w=a[y],A=o[y];if(c)var P=f?c(A,w,y,o,a,l):c(w,A,y,a,o,l);if(!(P===void 0?w===A||u(w,A,s,c,l):P)){O=!1;break}b||(b=y=="constructor")}if(O&&!b){var T=a.constructor,I=o.constructor;T!=I&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof I=="function"&&I instanceof I)&&(O=!1)}return l.delete(a),l.delete(o),O}return Kl=i,Kl}var Gl,sb;function sR(){if(sb)return Gl;sb=1;var e=ln(),t=Ut(),r=e(t,"DataView");return Gl=r,Gl}var Yl,cb;function cR(){if(cb)return Yl;cb=1;var e=ln(),t=Ut(),r=e(t,"Promise");return Yl=r,Yl}var Xl,ub;function GA(){if(ub)return Xl;ub=1;var e=ln(),t=Ut(),r=e(t,"Set");return Xl=r,Xl}var Zl,lb;function uR(){if(lb)return Zl;lb=1;var e=ln(),t=Ut(),r=e(t,"WeakMap");return Zl=r,Zl}var Jl,fb;function lR(){if(fb)return Jl;fb=1;var e=sR(),t=cv(),r=cR(),n=GA(),i=uR(),a=pr(),o=fA(),s="[object Map]",c="[object Object]",u="[object Promise]",l="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),m=o(t),p=o(r),v=o(n),y=o(i),g=a;return(e&&g(new e(new ArrayBuffer(1)))!=d||t&&g(new t)!=s||r&&g(r.resolve())!=u||n&&g(new n)!=l||i&&g(new i)!=f)&&(g=function(x){var O=a(x),b=O==c?x.constructor:void 0,w=b?o(b):"";if(w)switch(w){case h:return d;case m:return s;case p:return u;case v:return l;case y:return f}return O}),Jl=g,Jl}var Ql,db;function fR(){if(db)return Ql;db=1;var e=LA(),t=zA(),r=Hk(),n=oR(),i=lR(),a=rt(),o=UA(),s=VA(),c=1,u="[object Arguments]",l="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function m(p,v,y,g,x,O){var b=a(p),w=a(v),A=b?l:i(p),P=w?l:i(v);A=A==u?f:A,P=P==u?f:P;var T=A==f,I=P==f,C=A==P;if(C&&o(p)){if(!o(v))return!1;b=!0,T=!1}if(C&&!T)return O||(O=new e),b||s(p)?t(p,v,y,g,x,O):r(p,v,A,y,g,x,O);if(!(y&c)){var j=T&&h.call(p,"__wrapped__"),k=I&&h.call(v,"__wrapped__");if(j||k){var $=j?p.value():p,N=k?v.value():v;return O||(O=new e),x($,N,y,g,O)}}return C?(O||(O=new e),n(p,v,y,g,x,O)):!1}return Ql=m,Ql}var ef,pb;function Sv(){if(pb)return ef;pb=1;var e=fR(),t=hr();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return ef=r,ef}var tf,hb;function dR(){if(hb)return tf;hb=1;var e=LA(),t=Sv(),r=1,n=2;function i(a,o,s,c){var u=s.length,l=u,f=!c;if(a==null)return!l;for(a=Object(a);u--;){var d=s[u];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++u<l;){d=s[u];var h=d[0],m=a[h],p=d[1];if(f&&d[2]){if(m===void 0&&!(h in a))return!1}else{var v=new e;if(c)var y=c(m,p,h,a,o,v);if(!(y===void 0?t(p,m,r|n,c,v):y))return!1}}return!0}return tf=i,tf}var rf,vb;function YA(){if(vb)return rf;vb=1;var e=Ir();function t(r){return r===r&&!e(r)}return rf=t,rf}var nf,mb;function pR(){if(mb)return nf;mb=1;var e=YA(),t=sc();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return nf=r,nf}var af,yb;function XA(){if(yb)return af;yb=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return af=e,af}var of,gb;function hR(){if(gb)return of;gb=1;var e=dR(),t=pR(),r=XA();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return of=n,of}var sf,bb;function vR(){if(bb)return sf;bb=1;function e(t,r){return t!=null&&r in Object(t)}return sf=e,sf}var cf,xb;function mR(){if(xb)return cf;xb=1;var e=hA(),t=xv(),r=rt(),n=wv(),i=Ov(),a=tc();function o(s,c,u){c=e(c,s);for(var l=-1,f=c.length,d=!1;++l<f;){var h=a(c[l]);if(!(d=s!=null&&u(s,h)))break;s=s[h]}return d||++l!=f?d:(f=s==null?0:s.length,!!f&&i(f)&&n(h,f)&&(r(s)||t(s)))}return cf=o,cf}var uf,wb;function yR(){if(wb)return uf;wb=1;var e=vR(),t=mR();function r(n,i){return n!=null&&t(n,i,e)}return uf=r,uf}var lf,Ob;function gR(){if(Ob)return lf;Ob=1;var e=Sv(),t=vA(),r=yR(),n=av(),i=YA(),a=XA(),o=tc(),s=1,c=2;function u(l,f){return n(l)&&i(f)?a(o(l),f):function(d){var h=t(d,l);return h===void 0&&h===f?r(d,l):e(f,h,s|c)}}return lf=u,lf}var ff,Sb;function bi(){if(Sb)return ff;Sb=1;function e(t){return t}return ff=e,ff}var df,Ab;function bR(){if(Ab)return df;Ab=1;function e(t){return function(r){return r?.[t]}}return df=e,df}var pf,_b;function xR(){if(_b)return pf;_b=1;var e=fv();function t(r){return function(n){return e(n,r)}}return pf=t,pf}var hf,Pb;function wR(){if(Pb)return hf;Pb=1;var e=bR(),t=xR(),r=av(),n=tc();function i(a){return r(a)?e(n(a)):t(a)}return hf=i,hf}var vf,Eb;function Ht(){if(Eb)return vf;Eb=1;var e=hR(),t=gR(),r=bi(),n=rt(),i=wR();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return vf=a,vf}var mf,Tb;function ZA(){if(Tb)return mf;Tb=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return mf=e,mf}var yf,Cb;function OR(){if(Cb)return yf;Cb=1;function e(t){return t!==t}return yf=e,yf}var gf,jb;function SR(){if(jb)return gf;jb=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return gf=e,gf}var bf,Ib;function AR(){if(Ib)return bf;Ib=1;var e=ZA(),t=OR(),r=SR();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return bf=n,bf}var xf,kb;function _R(){if(kb)return xf;kb=1;var e=AR();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return xf=t,xf}var wf,Rb;function PR(){if(Rb)return wf;Rb=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return wf=e,wf}var Of,Mb;function ER(){if(Mb)return Of;Mb=1;function e(){}return Of=e,Of}var Sf,$b;function TR(){if($b)return Sf;$b=1;var e=GA(),t=ER(),r=bv(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Sf=i,Sf}var Af,Nb;function CR(){if(Nb)return Af;Nb=1;var e=BA(),t=_R(),r=PR(),n=FA(),i=TR(),a=bv(),o=200;function s(c,u,l){var f=-1,d=t,h=c.length,m=!0,p=[],v=p;if(l)m=!1,d=r;else if(h>=o){var y=u?null:i(c);if(y)return a(y);m=!1,d=n,v=new e}else v=u?[]:p;e:for(;++f<h;){var g=c[f],x=u?u(g):g;if(g=l||g!==0?g:0,m&&x===x){for(var O=v.length;O--;)if(v[O]===x)continue e;u&&v.push(x),p.push(g)}else d(v,x,l)||(v!==p&&v.push(x),p.push(g))}return p}return Af=s,Af}var _f,Db;function jR(){if(Db)return _f;Db=1;var e=Ht(),t=CR();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return _f=r,_f}var IR=jR();const Lb=ge(IR);function JA(e,t,r){return t===!0?Lb(e,r):ae(t)?Lb(e,t):e}function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}var kR=["ref"];function Bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e_(n.key),n)}}function MR(e,t,r){return t&&qb(e.prototype,t),r&&qb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $R(e,t,r){return t=Wo(t),NR(e,QA()?Reflect.construct(t,r||[],Wo(e).constructor):t.apply(e,r))}function NR(e,t){if(t&&(Dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DR(e)}function DR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QA=function(){return!!e})()}function Wo(e){return Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wo(e)}function LR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cp(e,t)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cp(e,t)}function cc(e,t,r){return t=e_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e_(e){var t=BR(e,"string");return Dn(t)=="symbol"?t:t+""}function BR(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function qR(e,t){if(e==null)return{};var r=FR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zR(e){return e.value}function WR(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=qR(t,kR);return S.createElement(gv,r)}var Fb=1,yt=(function(e){function t(){var r;RR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=$R(this,t,[].concat(i)),cc(r,"lastBoundingBox",{width:-1,height:-1}),r}return LR(t,e),MR(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Fb||Math.abs(i.height-this.lastBoundingBox.height)>Fb)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Zt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,c=i.margin,u=i.chartWidth,l=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();d={top:((l||0)-m.height)/2}}else d=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Zt(Zt({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,l=i.payload,f=Zt(Zt({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return S.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},WR(a,Zt(Zt({},this.props),{},{payload:JA(l,u,zR)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Zt(Zt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&G(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(S.PureComponent);cc(yt,"displayName","Legend");cc(yt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Pf,zb;function UR(){if(zb)return Pf;zb=1;var e=Fa(),t=xv(),r=rt(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Pf=i,Pf}var Ef,Wb;function t_(){if(Wb)return Ef;Wb=1;var e=WA(),t=UR();function r(n,i,a,o,s){var c=-1,u=n.length;for(a||(a=t),s||(s=[]);++c<u;){var l=n[c];i>0&&a(l)?i>1?r(l,i-1,a,o,s):e(s,l):o||(s[s.length]=l)}return s}return Ef=r,Ef}var Tf,Ub;function HR(){if(Ub)return Tf;Ub=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++a];if(n(o[u],u,o)===!1)break}return r}}return Tf=e,Tf}var Cf,Hb;function VR(){if(Hb)return Cf;Hb=1;var e=HR(),t=e();return Cf=t,Cf}var jf,Vb;function r_(){if(Vb)return jf;Vb=1;var e=VR(),t=sc();function r(n,i){return n&&e(n,i,t)}return jf=r,jf}var If,Kb;function KR(){if(Kb)return If;Kb=1;var e=za();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,c=Object(i);(n?s--:++s<o)&&a(c[s],s,c)!==!1;);return i}}return If=t,If}var kf,Gb;function Av(){if(Gb)return kf;Gb=1;var e=r_(),t=KR(),r=t(e);return kf=r,kf}var Rf,Yb;function n_(){if(Yb)return Rf;Yb=1;var e=Av(),t=za();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,c,u){o[++a]=i(s,c,u)}),o}return Rf=r,Rf}var Mf,Xb;function GR(){if(Xb)return Mf;Xb=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Mf=e,Mf}var $f,Zb;function YR(){if(Zb)return $f;Zb=1;var e=mi();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),c=n!==void 0,u=n===null,l=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&c&&l&&!u&&!f||a&&c&&l||!i&&l||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!c&&o||!l)return-1}return 0}return $f=t,$f}var Nf,Jb;function XR(){if(Jb)return Nf;Jb=1;var e=YR();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,c=o.length,u=i.length;++a<c;){var l=e(o[a],s[a]);if(l){if(a>=u)return l;var f=i[a];return l*(f=="desc"?-1:1)}}return r.index-n.index}return Nf=t,Nf}var Df,Qb;function ZR(){if(Qb)return Df;Qb=1;var e=lv(),t=fv(),r=Ht(),n=n_(),i=GR(),a=HA(),o=XR(),s=bi(),c=rt();function u(l,f,d){f.length?f=e(f,function(p){return c(p)?function(v){return t(v,p.length===1?p[0]:p)}:p}):f=[s];var h=-1;f=e(f,a(r));var m=n(l,function(p,v,y){var g=e(f,function(x){return x(p)});return{criteria:g,index:++h,value:p}});return i(m,function(p,v){return o(p,v,d)})}return Df=u,Df}var Lf,ex;function JR(){if(ex)return Lf;ex=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Lf=e,Lf}var Bf,tx;function QR(){if(tx)return Bf;tx=1;var e=JR(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,c=t(o.length-i,0),u=Array(c);++s<c;)u[s]=o[i+s];s=-1;for(var l=Array(i+1);++s<i;)l[s]=o[s];return l[i]=a(u),e(n,this,l)}}return Bf=r,Bf}var qf,rx;function eM(){if(rx)return qf;rx=1;function e(t){return function(){return t}}return qf=e,qf}var Ff,nx;function i_(){if(nx)return Ff;nx=1;var e=ln(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ff=t,Ff}var zf,ix;function tM(){if(ix)return zf;ix=1;var e=eM(),t=i_(),r=bi(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return zf=n,zf}var Wf,ax;function rM(){if(ax)return Wf;ax=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),c=t-(s-o);if(o=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Wf=n,Wf}var Uf,ox;function nM(){if(ox)return Uf;ox=1;var e=tM(),t=rM(),r=t(e);return Uf=r,Uf}var Hf,sx;function iM(){if(sx)return Hf;sx=1;var e=bi(),t=QR(),r=nM();function n(i,a){return r(t(i,a,e),i+"")}return Hf=n,Hf}var Vf,cx;function uc(){if(cx)return Vf;cx=1;var e=sv(),t=za(),r=wv(),n=Ir();function i(a,o,s){if(!n(s))return!1;var c=typeof o;return(c=="number"?t(s)&&r(o,s.length):c=="string"&&o in s)?e(s[o],a):!1}return Vf=i,Vf}var Kf,ux;function aM(){if(ux)return Kf;ux=1;var e=t_(),t=ZR(),r=iM(),n=uc(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Kf=i,Kf}var oM=aM();const _v=ge(oM);function ia(e){"@babel/helpers - typeof";return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ia(e)}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jp.apply(this,arguments)}function sM(e,t){return fM(e)||lM(e,t)||uM(e,t)||cM()}function cM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uM(e,t){if(e){if(typeof e=="string")return lx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lx(e,t)}}function lx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function fM(e){if(Array.isArray(e))return e}function fx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fx(Object(r),!0).forEach(function(n){dM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dM(e,t,r){return t=pM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pM(e){var t=hM(e,"string");return ia(t)=="symbol"?t:t+""}function hM(e,t){if(ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vM(e){return Array.isArray(e)&&Be(e[0])&&Be(e[1])?e.join(" ~ "):e}var mM=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,l=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,m=t.labelClassName,p=t.label,v=t.labelFormatter,y=t.accessibilityLayer,g=y===void 0?!1:y,x=function(){if(l&&l.length){var j={padding:0,margin:0},k=(d?_v(l,d):l).map(function($,N){if($.type==="none")return null;var R=Gf({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},s),L=$.formatter||f||vM,M=$.value,U=$.name,D=M,F=U;if(L&&D!=null&&F!=null){var W=L(M,U,$,N,l);if(Array.isArray(W)){var V=sM(W,2);D=V[0],F=V[1]}else D=W}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(N),style:R},Be(F)?S.createElement("span",{className:"recharts-tooltip-item-name"},F):null,Be(F)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},D),S.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:j},k)}return null},O=Gf({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),b=Gf({margin:0},u),w=!oe(p),A=w?p:"",P=ce("recharts-default-tooltip",h),T=ce("recharts-tooltip-label",m);w&&v&&l!==void 0&&l!==null&&(A=v(p,l));var I=g?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",jp({className:P,style:O},I),S.createElement("p",{className:T,style:b},S.isValidElement(A)?A:"".concat(A)),x())};function aa(e){"@babel/helpers - typeof";return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aa(e)}function so(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=gM(e,"string");return aa(t)=="symbol"?t:t+""}function gM(e,t){if(aa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(aa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mi="recharts-tooltip-wrapper",bM={visibility:"hidden"};function xM(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ce(Mi,so(so(so(so({},"".concat(Mi,"-right"),G(r)&&t&&G(t.x)&&r>=t.x),"".concat(Mi,"-left"),G(r)&&t&&G(t.x)&&r<t.x),"".concat(Mi,"-bottom"),G(n)&&t&&G(t.y)&&n>=t.y),"".concat(Mi,"-top"),G(n)&&t&&G(t.y)&&n<t.y))}function dx(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(a&&G(a[n]))return a[n];var l=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?l:f;if(o[n]){var d=l,h=c[n];return d<h?Math.max(f,c[n]):Math.max(l,c[n])}var m=f+s,p=c[n]+u;return m>p?Math.max(l,c[n]):Math.max(f,c[n])}function wM(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function OM(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,l,f;return o.height>0&&o.width>0&&r?(l=dx({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=dx({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=wM({translateX:l,translateY:f,useTranslate3d:s})):u=bM,{cssProperties:u,cssClasses:xM({translateX:l,translateY:f,coordinate:r})}}function Ln(e){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(e)}function px(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?px(Object(r),!0).forEach(function(n){kp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o_(n.key),n)}}function _M(e,t,r){return t&&AM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PM(e,t,r){return t=Uo(t),EM(e,a_()?Reflect.construct(t,r||[],Uo(e).constructor):t.apply(e,r))}function EM(e,t){if(t&&(Ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TM(e)}function TM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a_=function(){return!!e})()}function Uo(e){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uo(e)}function CM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ip(e,t)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ip(e,t)}function kp(e,t,r){return t=o_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o_(e){var t=jM(e,"string");return Ln(t)=="symbol"?t:t+""}function jM(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vx=1,IM=(function(e){function t(){var r;SM(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=PM(this,t,[].concat(i)),kp(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),kp(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,c,u,l;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(l=r.props.coordinate)===null||l===void 0?void 0:l.y)!==null&&u!==void 0?u:0}})}}),r}return CM(t,e),_M(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>vx||Math.abs(n.height-this.state.lastBoundingBox.height)>vx)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.children,l=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,m=i.position,p=i.reverseDirection,v=i.useTranslate3d,y=i.viewBox,g=i.wrapperStyle,x=OM({allowEscapeViewBox:o,coordinate:l,offsetTopLeft:h,position:m,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),O=x.cssClasses,b=x.cssProperties,w=hx(hx({transition:d&&a?"transform ".concat(s,"ms ").concat(c):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},g);return S.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(P){n.wrapperNode=P}},u)}}])})(S.PureComponent),kM=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Vt={isSsr:kM()};function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mx(Object(r),!0).forEach(function(n){Pv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c_(n.key),n)}}function $M(e,t,r){return t&&MM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NM(e,t,r){return t=Ho(t),DM(e,s_()?Reflect.construct(t,r||[],Ho(e).constructor):t.apply(e,r))}function DM(e,t){if(t&&(Bn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LM(e)}function LM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s_=function(){return!!e})()}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ho(e)}function BM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rp(e,t)}function Rp(e,t){return Rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rp(e,t)}function Pv(e,t,r){return t=c_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c_(e){var t=qM(e,"string");return Bn(t)=="symbol"?t:t+""}function qM(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function FM(e){return e.dataKey}function zM(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(mM,t)}var Ke=(function(e){function t(){return RM(this,t),NM(this,t,arguments)}return BM(t,e),$M(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.content,l=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,m=i.payload,p=i.payloadUniqBy,v=i.position,y=i.reverseDirection,g=i.useTranslate3d,x=i.viewBox,O=i.wrapperStyle,b=m??[];f&&b.length&&(b=JA(m.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),p,FM));var w=b.length>0;return S.createElement(IM,{allowEscapeViewBox:o,animationDuration:s,animationEasing:c,isAnimationActive:d,active:a,coordinate:l,hasPayload:w,offset:h,position:v,reverseDirection:y,useTranslate3d:g,viewBox:x,wrapperStyle:O},zM(u,yx(yx({},this.props),{},{payload:b})))}}])})(S.PureComponent);Pv(Ke,"displayName","Tooltip");Pv(Ke,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Vt.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Yf,gx;function WM(){if(gx)return Yf;gx=1;var e=Ut(),t=function(){return e.Date.now()};return Yf=t,Yf}var Xf,bx;function UM(){if(bx)return Xf;bx=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Xf=t,Xf}var Zf,xx;function HM(){if(xx)return Zf;xx=1;var e=UM(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Zf=r,Zf}var Jf,wx;function u_(){if(wx)return Jf;wx=1;var e=HM(),t=Ir(),r=mi(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var l=typeof u.valueOf=="function"?u.valueOf():u;u=t(l)?l+"":l}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return Jf=c,Jf}var Qf,Ox;function VM(){if(Ox)return Qf;Ox=1;var e=Ir(),t=WM(),r=u_(),n="Expected a function",i=Math.max,a=Math.min;function o(s,c,u){var l,f,d,h,m,p,v=0,y=!1,g=!1,x=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(u)&&(y=!!u.leading,g="maxWait"in u,d=g?i(r(u.maxWait)||0,c):d,x="trailing"in u?!!u.trailing:x);function O(k){var $=l,N=f;return l=f=void 0,v=k,h=s.apply(N,$),h}function b(k){return v=k,m=setTimeout(P,c),y?O(k):h}function w(k){var $=k-p,N=k-v,R=c-$;return g?a(R,d-N):R}function A(k){var $=k-p,N=k-v;return p===void 0||$>=c||$<0||g&&N>=d}function P(){var k=t();if(A(k))return T(k);m=setTimeout(P,w(k))}function T(k){return m=void 0,x&&l?O(k):(l=f=void 0,h)}function I(){m!==void 0&&clearTimeout(m),v=0,l=p=f=m=void 0}function C(){return m===void 0?h:T(t())}function j(){var k=t(),$=A(k);if(l=arguments,f=this,p=k,$){if(m===void 0)return b(p);if(g)return clearTimeout(m),m=setTimeout(P,c),O(p)}return m===void 0&&(m=setTimeout(P,c)),h}return j.cancel=I,j.flush=C,j}return Qf=o,Qf}var ed,Sx;function KM(){if(Sx)return ed;Sx=1;var e=VM(),t=Ir(),r="Expected a function";function n(i,a,o){var s=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:s,maxWait:a,trailing:c})}return ed=n,ed}var GM=KM();const l_=ge(GM);function oa(e){"@babel/helpers - typeof";return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(e)}function Ax(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function co(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ax(Object(r),!0).forEach(function(n){YM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ax(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YM(e,t,r){return t=XM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XM(e){var t=ZM(e,"string");return oa(t)=="symbol"?t:t+""}function ZM(e,t){if(oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JM(e,t){return r$(e)||t$(e,t)||e$(e,t)||QM()}function QM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e$(e,t){if(e){if(typeof e=="string")return _x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _x(e,t)}}function _x(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function r$(e){if(Array.isArray(e))return e}var fn=S.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,l=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,h=e.children,m=e.debounce,p=m===void 0?0:m,v=e.id,y=e.className,g=e.onResize,x=e.style,O=x===void 0?{}:x,b=S.useRef(null),w=S.useRef();w.current=g,S.useImperativeHandle(t,function(){return Object.defineProperty(b.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),b.current},configurable:!0})});var A=S.useState({containerWidth:i.width,containerHeight:i.height}),P=JM(A,2),T=P[0],I=P[1],C=S.useCallback(function(k,$){I(function(N){var R=Math.round(k),L=Math.round($);return N.containerWidth===R&&N.containerHeight===L?N:{containerWidth:R,containerHeight:L}})},[]);S.useEffect(function(){var k=function(U){var D,F=U[0].contentRect,W=F.width,V=F.height;C(W,V),(D=w.current)===null||D===void 0||D.call(w,W,V)};p>0&&(k=l_(k,p,{trailing:!0,leading:!1}));var $=new ResizeObserver(k),N=b.current.getBoundingClientRect(),R=N.width,L=N.height;return C(R,L),$.observe(b.current),function(){$.disconnect()}},[C,p]);var j=S.useMemo(function(){var k=T.containerWidth,$=T.containerHeight;if(k<0||$<0)return null;Pt(Yr(o)||Yr(c),`The width(%s) and height(%s) are both fixed numbers,
4
+ A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(pt/8,"h").concat(pt,"v").concat(pt*3/4,"h").concat(-pt,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var u=Ck({},n);return delete u.legendIcon,S.cloneElement(n.legendIcon,u)}return S.createElement(oc,{fill:c,cx:a,cy:a,size:pt,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,c=i.formatter,u=i.inactiveColor,l={x:0,y:0,width:pt,height:pt},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,m){var p=h.formatter||c,v=ce(na(na({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=ae(h.value)?null:h.value;Pt(!ae(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var g=h.inactive?u:h.color;return S.createElement("li",Tp({className:v,style:f,key:"legend-item-".concat(m)},Tr(n.props,h,m)),S.createElement(wp,{width:o,height:o,viewBox:l,style:d},n.renderIcon(h)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},p?p(y,h,m):y))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(S.PureComponent);na(bv,"displayName","Legend");na(bv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ll,wg;function Lk(){if(wg)return ll;wg=1;var e=Qs();function t(){this.__data__=new e,this.size=0}return ll=t,ll}var fl,Og;function Bk(){if(Og)return fl;Og=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return fl=e,fl}var dl,Sg;function qk(){if(Sg)return dl;Sg=1;function e(t){return this.__data__.get(t)}return dl=e,dl}var pl,Ag;function Fk(){if(Ag)return pl;Ag=1;function e(t){return this.__data__.has(t)}return pl=e,pl}var hl,_g;function zk(){if(_g)return hl;_g=1;var e=Qs(),t=uv(),r=lv(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,o),this.size=s.size,this}return hl=i,hl}var vl,Pg;function BA(){if(Pg)return vl;Pg=1;var e=Qs(),t=Lk(),r=Bk(),n=qk(),i=Fk(),a=zk();function o(s){var c=this.__data__=new e(s);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,vl=o,vl}var ml,Eg;function Wk(){if(Eg)return ml;Eg=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return ml=t,ml}var yl,Tg;function Uk(){if(Tg)return yl;Tg=1;function e(t){return this.__data__.has(t)}return yl=e,yl}var gl,Cg;function qA(){if(Cg)return gl;Cg=1;var e=lv(),t=Wk(),r=Uk();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,gl=n,gl}var bl,jg;function FA(){if(jg)return bl;jg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return bl=e,bl}var xl,Ig;function zA(){if(Ig)return xl;Ig=1;function e(t,r){return t.has(r)}return xl=e,xl}var wl,kg;function WA(){if(kg)return wl;kg=1;var e=qA(),t=FA(),r=zA(),n=1,i=2;function a(o,s,c,u,l,f){var d=c&n,h=o.length,m=s.length;if(h!=m&&!(d&&m>h))return!1;var p=f.get(o),v=f.get(s);if(p&&v)return p==s&&v==o;var y=-1,g=!0,x=c&i?new e:void 0;for(f.set(o,s),f.set(s,o);++y<h;){var O=o[y],b=s[y];if(u)var w=d?u(b,O,y,s,o,f):u(O,b,y,o,s,f);if(w!==void 0){if(w)continue;g=!1;break}if(x){if(!t(s,function(A,P){if(!r(x,P)&&(O===A||l(O,A,c,u,f)))return x.push(P)})){g=!1;break}}else if(!(O===b||l(O,b,c,u,f))){g=!1;break}}return f.delete(o),f.delete(s),g}return wl=a,wl}var Ol,Rg;function Hk(){if(Rg)return Ol;Rg=1;var e=Ut(),t=e.Uint8Array;return Ol=t,Ol}var Sl,Mg;function Vk(){if(Mg)return Sl;Mg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Sl=e,Sl}var Al,$g;function xv(){if($g)return Al;$g=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Al=e,Al}var _l,Ng;function Kk(){if(Ng)return _l;Ng=1;var e=Fa(),t=Hk(),r=cv(),n=WA(),i=Vk(),a=xv(),o=1,s=2,c="[object Boolean]",u="[object Date]",l="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",m="[object Set]",p="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",x=e?e.prototype:void 0,O=x?x.valueOf:void 0;function b(w,A,P,T,I,C,j){switch(P){case g:if(w.byteLength!=A.byteLength||w.byteOffset!=A.byteOffset)return!1;w=w.buffer,A=A.buffer;case y:return!(w.byteLength!=A.byteLength||!C(new t(w),new t(A)));case c:case u:case d:return r(+w,+A);case l:return w.name==A.name&&w.message==A.message;case h:case p:return w==A+"";case f:var k=i;case m:var $=T&o;if(k||(k=a),w.size!=A.size&&!$)return!1;var N=j.get(w);if(N)return N==A;T|=s,j.set(w,A);var R=n(k(w),k(A),T,I,C,j);return j.delete(w),R;case v:if(O)return O.call(w)==O.call(A)}return!1}return _l=b,_l}var Pl,Dg;function UA(){if(Dg)return Pl;Dg=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Pl=e,Pl}var El,Lg;function Gk(){if(Lg)return El;Lg=1;var e=UA(),t=rt();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return El=r,El}var Tl,Bg;function Yk(){if(Bg)return Tl;Bg=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return Tl=e,Tl}var Cl,qg;function Xk(){if(qg)return Cl;qg=1;function e(){return[]}return Cl=e,Cl}var jl,Fg;function Zk(){if(Fg)return jl;Fg=1;var e=Yk(),t=Xk(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return jl=a,jl}var Il,zg;function Jk(){if(zg)return Il;zg=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Il=e,Il}var kl,Wg;function Qk(){if(Wg)return kl;Wg=1;var e=pr(),t=hr(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return kl=n,kl}var Rl,Ug;function wv(){if(Ug)return Rl;Ug=1;var e=Qk(),t=hr(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Rl=a,Rl}var Wi={exports:{}},Ml,Hg;function eR(){if(Hg)return Ml;Hg=1;function e(){return!1}return Ml=e,Ml}Wi.exports;var Vg;function HA(){return Vg||(Vg=1,(function(e,t){var r=Ut(),n=eR(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(Wi,Wi.exports)),Wi.exports}var $l,Kg;function Ov(){if(Kg)return $l;Kg=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return $l=r,$l}var Nl,Gg;function Sv(){if(Gg)return Nl;Gg=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Nl=t,Nl}var Dl,Yg;function tR(){if(Yg)return Dl;Yg=1;var e=pr(),t=Sv(),r=hr(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",l="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",m="[object String]",p="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",b="[object Int16Array]",w="[object Int32Array]",A="[object Uint8Array]",P="[object Uint8ClampedArray]",T="[object Uint16Array]",I="[object Uint32Array]",C={};C[g]=C[x]=C[O]=C[b]=C[w]=C[A]=C[P]=C[T]=C[I]=!0,C[n]=C[i]=C[v]=C[a]=C[y]=C[o]=C[s]=C[c]=C[u]=C[l]=C[f]=C[d]=C[h]=C[m]=C[p]=!1;function j(k){return r(k)&&t(k.length)&&!!C[e(k)]}return Dl=j,Dl}var Ll,Xg;function VA(){if(Xg)return Ll;Xg=1;function e(t){return function(r){return t(r)}}return Ll=e,Ll}var Ui={exports:{}};Ui.exports;var Zg;function rR(){return Zg||(Zg=1,(function(e,t){var r=fA(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(Ui,Ui.exports)),Ui.exports}var Bl,Jg;function KA(){if(Jg)return Bl;Jg=1;var e=tR(),t=VA(),r=rR(),n=r&&r.isTypedArray,i=n?t(n):e;return Bl=i,Bl}var ql,Qg;function nR(){if(Qg)return ql;Qg=1;var e=Jk(),t=wv(),r=rt(),n=HA(),i=Ov(),a=KA(),o=Object.prototype,s=o.hasOwnProperty;function c(u,l){var f=r(u),d=!f&&t(u),h=!f&&!d&&n(u),m=!f&&!d&&!h&&a(u),p=f||d||h||m,v=p?e(u.length,String):[],y=v.length;for(var g in u)(l||s.call(u,g))&&!(p&&(g=="length"||h&&(g=="offset"||g=="parent")||m&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i(g,y)))&&v.push(g);return v}return ql=c,ql}var Fl,eb;function iR(){if(eb)return Fl;eb=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Fl=t,Fl}var zl,tb;function GA(){if(tb)return zl;tb=1;function e(t,r){return function(n){return t(r(n))}}return zl=e,zl}var Wl,rb;function aR(){if(rb)return Wl;rb=1;var e=GA(),t=e(Object.keys,Object);return Wl=t,Wl}var Ul,nb;function oR(){if(nb)return Ul;nb=1;var e=iR(),t=aR(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Ul=i,Ul}var Hl,ib;function za(){if(ib)return Hl;ib=1;var e=sv(),t=Sv();function r(n){return n!=null&&t(n.length)&&!e(n)}return Hl=r,Hl}var Vl,ab;function sc(){if(ab)return Vl;ab=1;var e=nR(),t=oR(),r=za();function n(i){return r(i)?e(i):t(i)}return Vl=n,Vl}var Kl,ob;function sR(){if(ob)return Kl;ob=1;var e=Gk(),t=Zk(),r=sc();function n(i){return e(i,r,t)}return Kl=n,Kl}var Gl,sb;function cR(){if(sb)return Gl;sb=1;var e=sR(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,c,u,l){var f=s&t,d=e(a),h=d.length,m=e(o),p=m.length;if(h!=p&&!f)return!1;for(var v=h;v--;){var y=d[v];if(!(f?y in o:n.call(o,y)))return!1}var g=l.get(a),x=l.get(o);if(g&&x)return g==o&&x==a;var O=!0;l.set(a,o),l.set(o,a);for(var b=f;++v<h;){y=d[v];var w=a[y],A=o[y];if(c)var P=f?c(A,w,y,o,a,l):c(w,A,y,a,o,l);if(!(P===void 0?w===A||u(w,A,s,c,l):P)){O=!1;break}b||(b=y=="constructor")}if(O&&!b){var T=a.constructor,I=o.constructor;T!=I&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof I=="function"&&I instanceof I)&&(O=!1)}return l.delete(a),l.delete(o),O}return Gl=i,Gl}var Yl,cb;function uR(){if(cb)return Yl;cb=1;var e=ln(),t=Ut(),r=e(t,"DataView");return Yl=r,Yl}var Xl,ub;function lR(){if(ub)return Xl;ub=1;var e=ln(),t=Ut(),r=e(t,"Promise");return Xl=r,Xl}var Zl,lb;function YA(){if(lb)return Zl;lb=1;var e=ln(),t=Ut(),r=e(t,"Set");return Zl=r,Zl}var Jl,fb;function fR(){if(fb)return Jl;fb=1;var e=ln(),t=Ut(),r=e(t,"WeakMap");return Jl=r,Jl}var Ql,db;function dR(){if(db)return Ql;db=1;var e=uR(),t=uv(),r=lR(),n=YA(),i=fR(),a=pr(),o=dA(),s="[object Map]",c="[object Object]",u="[object Promise]",l="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),m=o(t),p=o(r),v=o(n),y=o(i),g=a;return(e&&g(new e(new ArrayBuffer(1)))!=d||t&&g(new t)!=s||r&&g(r.resolve())!=u||n&&g(new n)!=l||i&&g(new i)!=f)&&(g=function(x){var O=a(x),b=O==c?x.constructor:void 0,w=b?o(b):"";if(w)switch(w){case h:return d;case m:return s;case p:return u;case v:return l;case y:return f}return O}),Ql=g,Ql}var ef,pb;function pR(){if(pb)return ef;pb=1;var e=BA(),t=WA(),r=Kk(),n=cR(),i=dR(),a=rt(),o=HA(),s=KA(),c=1,u="[object Arguments]",l="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function m(p,v,y,g,x,O){var b=a(p),w=a(v),A=b?l:i(p),P=w?l:i(v);A=A==u?f:A,P=P==u?f:P;var T=A==f,I=P==f,C=A==P;if(C&&o(p)){if(!o(v))return!1;b=!0,T=!1}if(C&&!T)return O||(O=new e),b||s(p)?t(p,v,y,g,x,O):r(p,v,A,y,g,x,O);if(!(y&c)){var j=T&&h.call(p,"__wrapped__"),k=I&&h.call(v,"__wrapped__");if(j||k){var $=j?p.value():p,N=k?v.value():v;return O||(O=new e),x($,N,y,g,O)}}return C?(O||(O=new e),n(p,v,y,g,x,O)):!1}return ef=m,ef}var tf,hb;function Av(){if(hb)return tf;hb=1;var e=pR(),t=hr();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return tf=r,tf}var rf,vb;function hR(){if(vb)return rf;vb=1;var e=BA(),t=Av(),r=1,n=2;function i(a,o,s,c){var u=s.length,l=u,f=!c;if(a==null)return!l;for(a=Object(a);u--;){var d=s[u];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++u<l;){d=s[u];var h=d[0],m=a[h],p=d[1];if(f&&d[2]){if(m===void 0&&!(h in a))return!1}else{var v=new e;if(c)var y=c(m,p,h,a,o,v);if(!(y===void 0?t(p,m,r|n,c,v):y))return!1}}return!0}return rf=i,rf}var nf,mb;function XA(){if(mb)return nf;mb=1;var e=Ir();function t(r){return r===r&&!e(r)}return nf=t,nf}var af,yb;function vR(){if(yb)return af;yb=1;var e=XA(),t=sc();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return af=r,af}var of,gb;function ZA(){if(gb)return of;gb=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return of=e,of}var sf,bb;function mR(){if(bb)return sf;bb=1;var e=hR(),t=vR(),r=ZA();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return sf=n,sf}var cf,xb;function yR(){if(xb)return cf;xb=1;function e(t,r){return t!=null&&r in Object(t)}return cf=e,cf}var uf,wb;function gR(){if(wb)return uf;wb=1;var e=vA(),t=wv(),r=rt(),n=Ov(),i=Sv(),a=tc();function o(s,c,u){c=e(c,s);for(var l=-1,f=c.length,d=!1;++l<f;){var h=a(c[l]);if(!(d=s!=null&&u(s,h)))break;s=s[h]}return d||++l!=f?d:(f=s==null?0:s.length,!!f&&i(f)&&n(h,f)&&(r(s)||t(s)))}return uf=o,uf}var lf,Ob;function bR(){if(Ob)return lf;Ob=1;var e=yR(),t=gR();function r(n,i){return n!=null&&t(n,i,e)}return lf=r,lf}var ff,Sb;function xR(){if(Sb)return ff;Sb=1;var e=Av(),t=mA(),r=bR(),n=ov(),i=XA(),a=ZA(),o=tc(),s=1,c=2;function u(l,f){return n(l)&&i(f)?a(o(l),f):function(d){var h=t(d,l);return h===void 0&&h===f?r(d,l):e(f,h,s|c)}}return ff=u,ff}var df,Ab;function bi(){if(Ab)return df;Ab=1;function e(t){return t}return df=e,df}var pf,_b;function wR(){if(_b)return pf;_b=1;function e(t){return function(r){return r?.[t]}}return pf=e,pf}var hf,Pb;function OR(){if(Pb)return hf;Pb=1;var e=dv();function t(r){return function(n){return e(n,r)}}return hf=t,hf}var vf,Eb;function SR(){if(Eb)return vf;Eb=1;var e=wR(),t=OR(),r=ov(),n=tc();function i(a){return r(a)?e(n(a)):t(a)}return vf=i,vf}var mf,Tb;function Ht(){if(Tb)return mf;Tb=1;var e=mR(),t=xR(),r=bi(),n=rt(),i=SR();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return mf=a,mf}var yf,Cb;function JA(){if(Cb)return yf;Cb=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return yf=e,yf}var gf,jb;function AR(){if(jb)return gf;jb=1;function e(t){return t!==t}return gf=e,gf}var bf,Ib;function _R(){if(Ib)return bf;Ib=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return bf=e,bf}var xf,kb;function PR(){if(kb)return xf;kb=1;var e=JA(),t=AR(),r=_R();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return xf=n,xf}var wf,Rb;function ER(){if(Rb)return wf;Rb=1;var e=PR();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return wf=t,wf}var Of,Mb;function TR(){if(Mb)return Of;Mb=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Of=e,Of}var Sf,$b;function CR(){if($b)return Sf;$b=1;function e(){}return Sf=e,Sf}var Af,Nb;function jR(){if(Nb)return Af;Nb=1;var e=YA(),t=CR(),r=xv(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Af=i,Af}var _f,Db;function IR(){if(Db)return _f;Db=1;var e=qA(),t=ER(),r=TR(),n=zA(),i=jR(),a=xv(),o=200;function s(c,u,l){var f=-1,d=t,h=c.length,m=!0,p=[],v=p;if(l)m=!1,d=r;else if(h>=o){var y=u?null:i(c);if(y)return a(y);m=!1,d=n,v=new e}else v=u?[]:p;e:for(;++f<h;){var g=c[f],x=u?u(g):g;if(g=l||g!==0?g:0,m&&x===x){for(var O=v.length;O--;)if(v[O]===x)continue e;u&&v.push(x),p.push(g)}else d(v,x,l)||(v!==p&&v.push(x),p.push(g))}return p}return _f=s,_f}var Pf,Lb;function kR(){if(Lb)return Pf;Lb=1;var e=Ht(),t=IR();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Pf=r,Pf}var RR=kR();const Bb=ge(RR);function QA(e,t,r){return t===!0?Bb(e,r):ae(t)?Bb(e,t):e}function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}var MR=["ref"];function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(r),!0).forEach(function(n){cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t_(n.key),n)}}function NR(e,t,r){return t&&Fb(e.prototype,t),r&&Fb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DR(e,t,r){return t=Wo(t),LR(e,e_()?Reflect.construct(t,r||[],Wo(e).constructor):t.apply(e,r))}function LR(e,t){if(t&&(Dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BR(e)}function BR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e_=function(){return!!e})()}function Wo(e){return Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wo(e)}function qR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jp(e,t)}function jp(e,t){return jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jp(e,t)}function cc(e,t,r){return t=t_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t_(e){var t=FR(e,"string");return Dn(t)=="symbol"?t:t+""}function FR(e,t){if(Dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zR(e,t){if(e==null)return{};var r=WR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function UR(e){return e.value}function HR(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=zR(t,MR);return S.createElement(bv,r)}var zb=1,yt=(function(e){function t(){var r;$R(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=DR(this,t,[].concat(i)),cc(r,"lastBoundingBox",{width:-1,height:-1}),r}return qR(t,e),NR(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>zb||Math.abs(i.height-this.lastBoundingBox.height)>zb)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Zt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,c=i.margin,u=i.chartWidth,l=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();d={top:((l||0)-m.height)/2}}else d=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Zt(Zt({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,l=i.payload,f=Zt(Zt({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return S.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},HR(a,Zt(Zt({},this.props),{},{payload:QA(l,u,UR)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Zt(Zt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&G(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(S.PureComponent);cc(yt,"displayName","Legend");cc(yt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ef,Wb;function VR(){if(Wb)return Ef;Wb=1;var e=Fa(),t=wv(),r=rt(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Ef=i,Ef}var Tf,Ub;function r_(){if(Ub)return Tf;Ub=1;var e=UA(),t=VR();function r(n,i,a,o,s){var c=-1,u=n.length;for(a||(a=t),s||(s=[]);++c<u;){var l=n[c];i>0&&a(l)?i>1?r(l,i-1,a,o,s):e(s,l):o||(s[s.length]=l)}return s}return Tf=r,Tf}var Cf,Hb;function KR(){if(Hb)return Cf;Hb=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++a];if(n(o[u],u,o)===!1)break}return r}}return Cf=e,Cf}var jf,Vb;function GR(){if(Vb)return jf;Vb=1;var e=KR(),t=e();return jf=t,jf}var If,Kb;function n_(){if(Kb)return If;Kb=1;var e=GR(),t=sc();function r(n,i){return n&&e(n,i,t)}return If=r,If}var kf,Gb;function YR(){if(Gb)return kf;Gb=1;var e=za();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,c=Object(i);(n?s--:++s<o)&&a(c[s],s,c)!==!1;);return i}}return kf=t,kf}var Rf,Yb;function _v(){if(Yb)return Rf;Yb=1;var e=n_(),t=YR(),r=t(e);return Rf=r,Rf}var Mf,Xb;function i_(){if(Xb)return Mf;Xb=1;var e=_v(),t=za();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,c,u){o[++a]=i(s,c,u)}),o}return Mf=r,Mf}var $f,Zb;function XR(){if(Zb)return $f;Zb=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return $f=e,$f}var Nf,Jb;function ZR(){if(Jb)return Nf;Jb=1;var e=mi();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),c=n!==void 0,u=n===null,l=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&c&&l&&!u&&!f||a&&c&&l||!i&&l||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!c&&o||!l)return-1}return 0}return Nf=t,Nf}var Df,Qb;function JR(){if(Qb)return Df;Qb=1;var e=ZR();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,c=o.length,u=i.length;++a<c;){var l=e(o[a],s[a]);if(l){if(a>=u)return l;var f=i[a];return l*(f=="desc"?-1:1)}}return r.index-n.index}return Df=t,Df}var Lf,ex;function QR(){if(ex)return Lf;ex=1;var e=fv(),t=dv(),r=Ht(),n=i_(),i=XR(),a=VA(),o=JR(),s=bi(),c=rt();function u(l,f,d){f.length?f=e(f,function(p){return c(p)?function(v){return t(v,p.length===1?p[0]:p)}:p}):f=[s];var h=-1;f=e(f,a(r));var m=n(l,function(p,v,y){var g=e(f,function(x){return x(p)});return{criteria:g,index:++h,value:p}});return i(m,function(p,v){return o(p,v,d)})}return Lf=u,Lf}var Bf,tx;function eM(){if(tx)return Bf;tx=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Bf=e,Bf}var qf,rx;function tM(){if(rx)return qf;rx=1;var e=eM(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,c=t(o.length-i,0),u=Array(c);++s<c;)u[s]=o[i+s];s=-1;for(var l=Array(i+1);++s<i;)l[s]=o[s];return l[i]=a(u),e(n,this,l)}}return qf=r,qf}var Ff,nx;function rM(){if(nx)return Ff;nx=1;function e(t){return function(){return t}}return Ff=e,Ff}var zf,ix;function a_(){if(ix)return zf;ix=1;var e=ln(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return zf=t,zf}var Wf,ax;function nM(){if(ax)return Wf;ax=1;var e=rM(),t=a_(),r=bi(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Wf=n,Wf}var Uf,ox;function iM(){if(ox)return Uf;ox=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),c=t-(s-o);if(o=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Uf=n,Uf}var Hf,sx;function aM(){if(sx)return Hf;sx=1;var e=nM(),t=iM(),r=t(e);return Hf=r,Hf}var Vf,cx;function oM(){if(cx)return Vf;cx=1;var e=bi(),t=tM(),r=aM();function n(i,a){return r(t(i,a,e),i+"")}return Vf=n,Vf}var Kf,ux;function uc(){if(ux)return Kf;ux=1;var e=cv(),t=za(),r=Ov(),n=Ir();function i(a,o,s){if(!n(s))return!1;var c=typeof o;return(c=="number"?t(s)&&r(o,s.length):c=="string"&&o in s)?e(s[o],a):!1}return Kf=i,Kf}var Gf,lx;function sM(){if(lx)return Gf;lx=1;var e=r_(),t=QR(),r=oM(),n=uc(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Gf=i,Gf}var cM=sM();const Pv=ge(cM);function ia(e){"@babel/helpers - typeof";return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ia(e)}function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ip.apply(this,arguments)}function uM(e,t){return pM(e)||dM(e,t)||fM(e,t)||lM()}function lM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fM(e,t){if(e){if(typeof e=="string")return fx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fx(e,t)}}function fx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function pM(e){if(Array.isArray(e))return e}function dx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dx(Object(r),!0).forEach(function(n){hM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hM(e,t,r){return t=vM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vM(e){var t=mM(e,"string");return ia(t)=="symbol"?t:t+""}function mM(e,t){if(ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yM(e){return Array.isArray(e)&&Be(e[0])&&Be(e[1])?e.join(" ~ "):e}var gM=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,l=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,m=t.labelClassName,p=t.label,v=t.labelFormatter,y=t.accessibilityLayer,g=y===void 0?!1:y,x=function(){if(l&&l.length){var j={padding:0,margin:0},k=(d?Pv(l,d):l).map(function($,N){if($.type==="none")return null;var R=Yf({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},s),L=$.formatter||f||yM,M=$.value,U=$.name,D=M,F=U;if(L&&D!=null&&F!=null){var W=L(M,U,$,N,l);if(Array.isArray(W)){var V=uM(W,2);D=V[0],F=V[1]}else D=W}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(N),style:R},Be(F)?S.createElement("span",{className:"recharts-tooltip-item-name"},F):null,Be(F)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},D),S.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:j},k)}return null},O=Yf({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),b=Yf({margin:0},u),w=!oe(p),A=w?p:"",P=ce("recharts-default-tooltip",h),T=ce("recharts-tooltip-label",m);w&&v&&l!==void 0&&l!==null&&(A=v(p,l));var I=g?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",Ip({className:P,style:O},I),S.createElement("p",{className:T,style:b},S.isValidElement(A)?A:"".concat(A)),x())};function aa(e){"@babel/helpers - typeof";return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aa(e)}function so(e,t,r){return t=bM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bM(e){var t=xM(e,"string");return aa(t)=="symbol"?t:t+""}function xM(e,t){if(aa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(aa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mi="recharts-tooltip-wrapper",wM={visibility:"hidden"};function OM(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ce(Mi,so(so(so(so({},"".concat(Mi,"-right"),G(r)&&t&&G(t.x)&&r>=t.x),"".concat(Mi,"-left"),G(r)&&t&&G(t.x)&&r<t.x),"".concat(Mi,"-bottom"),G(n)&&t&&G(t.y)&&n>=t.y),"".concat(Mi,"-top"),G(n)&&t&&G(t.y)&&n<t.y))}function px(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(a&&G(a[n]))return a[n];var l=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?l:f;if(o[n]){var d=l,h=c[n];return d<h?Math.max(f,c[n]):Math.max(l,c[n])}var m=f+s,p=c[n]+u;return m>p?Math.max(l,c[n]):Math.max(f,c[n])}function SM(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function AM(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,l,f;return o.height>0&&o.width>0&&r?(l=px({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=px({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=SM({translateX:l,translateY:f,useTranslate3d:s})):u=wM,{cssProperties:u,cssClasses:OM({translateX:l,translateY:f,coordinate:r})}}function Ln(e){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(e)}function hx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hx(Object(r),!0).forEach(function(n){Rp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s_(n.key),n)}}function EM(e,t,r){return t&&PM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TM(e,t,r){return t=Uo(t),CM(e,o_()?Reflect.construct(t,r||[],Uo(e).constructor):t.apply(e,r))}function CM(e,t){if(t&&(Ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jM(e)}function jM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o_=function(){return!!e})()}function Uo(e){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uo(e)}function IM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kp(e,t)}function kp(e,t){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kp(e,t)}function Rp(e,t,r){return t=s_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s_(e){var t=kM(e,"string");return Ln(t)=="symbol"?t:t+""}function kM(e,t){if(Ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mx=1,RM=(function(e){function t(){var r;_M(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=TM(this,t,[].concat(i)),Rp(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Rp(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,c,u,l;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(l=r.props.coordinate)===null||l===void 0?void 0:l.y)!==null&&u!==void 0?u:0}})}}),r}return IM(t,e),EM(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>mx||Math.abs(n.height-this.state.lastBoundingBox.height)>mx)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.children,l=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,m=i.position,p=i.reverseDirection,v=i.useTranslate3d,y=i.viewBox,g=i.wrapperStyle,x=AM({allowEscapeViewBox:o,coordinate:l,offsetTopLeft:h,position:m,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),O=x.cssClasses,b=x.cssProperties,w=vx(vx({transition:d&&a?"transform ".concat(s,"ms ").concat(c):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},g);return S.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(P){n.wrapperNode=P}},u)}}])})(S.PureComponent),MM=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Vt={isSsr:MM()};function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yx(Object(r),!0).forEach(function(n){Ev(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u_(n.key),n)}}function DM(e,t,r){return t&&NM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LM(e,t,r){return t=Ho(t),BM(e,c_()?Reflect.construct(t,r||[],Ho(e).constructor):t.apply(e,r))}function BM(e,t){if(t&&(Bn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qM(e)}function qM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c_=function(){return!!e})()}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ho(e)}function FM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mp(e,t)}function Mp(e,t){return Mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mp(e,t)}function Ev(e,t,r){return t=u_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u_(e){var t=zM(e,"string");return Bn(t)=="symbol"?t:t+""}function zM(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function WM(e){return e.dataKey}function UM(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(gM,t)}var Ke=(function(e){function t(){return $M(this,t),LM(this,t,arguments)}return FM(t,e),DM(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.content,l=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,m=i.payload,p=i.payloadUniqBy,v=i.position,y=i.reverseDirection,g=i.useTranslate3d,x=i.viewBox,O=i.wrapperStyle,b=m??[];f&&b.length&&(b=QA(m.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),p,WM));var w=b.length>0;return S.createElement(RM,{allowEscapeViewBox:o,animationDuration:s,animationEasing:c,isAnimationActive:d,active:a,coordinate:l,hasPayload:w,offset:h,position:v,reverseDirection:y,useTranslate3d:g,viewBox:x,wrapperStyle:O},UM(u,gx(gx({},this.props),{},{payload:b})))}}])})(S.PureComponent);Ev(Ke,"displayName","Tooltip");Ev(Ke,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Vt.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Xf,bx;function HM(){if(bx)return Xf;bx=1;var e=Ut(),t=function(){return e.Date.now()};return Xf=t,Xf}var Zf,xx;function VM(){if(xx)return Zf;xx=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Zf=t,Zf}var Jf,wx;function KM(){if(wx)return Jf;wx=1;var e=VM(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Jf=r,Jf}var Qf,Ox;function l_(){if(Ox)return Qf;Ox=1;var e=KM(),t=Ir(),r=mi(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var l=typeof u.valueOf=="function"?u.valueOf():u;u=t(l)?l+"":l}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return Qf=c,Qf}var ed,Sx;function GM(){if(Sx)return ed;Sx=1;var e=Ir(),t=HM(),r=l_(),n="Expected a function",i=Math.max,a=Math.min;function o(s,c,u){var l,f,d,h,m,p,v=0,y=!1,g=!1,x=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(u)&&(y=!!u.leading,g="maxWait"in u,d=g?i(r(u.maxWait)||0,c):d,x="trailing"in u?!!u.trailing:x);function O(k){var $=l,N=f;return l=f=void 0,v=k,h=s.apply(N,$),h}function b(k){return v=k,m=setTimeout(P,c),y?O(k):h}function w(k){var $=k-p,N=k-v,R=c-$;return g?a(R,d-N):R}function A(k){var $=k-p,N=k-v;return p===void 0||$>=c||$<0||g&&N>=d}function P(){var k=t();if(A(k))return T(k);m=setTimeout(P,w(k))}function T(k){return m=void 0,x&&l?O(k):(l=f=void 0,h)}function I(){m!==void 0&&clearTimeout(m),v=0,l=p=f=m=void 0}function C(){return m===void 0?h:T(t())}function j(){var k=t(),$=A(k);if(l=arguments,f=this,p=k,$){if(m===void 0)return b(p);if(g)return clearTimeout(m),m=setTimeout(P,c),O(p)}return m===void 0&&(m=setTimeout(P,c)),h}return j.cancel=I,j.flush=C,j}return ed=o,ed}var td,Ax;function YM(){if(Ax)return td;Ax=1;var e=GM(),t=Ir(),r="Expected a function";function n(i,a,o){var s=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:s,maxWait:a,trailing:c})}return td=n,td}var XM=YM();const f_=ge(XM);function oa(e){"@babel/helpers - typeof";return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(e)}function _x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function co(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_x(Object(r),!0).forEach(function(n){ZM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZM(e,t,r){return t=JM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JM(e){var t=QM(e,"string");return oa(t)=="symbol"?t:t+""}function QM(e,t){if(oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e$(e,t){return i$(e)||n$(e,t)||r$(e,t)||t$()}function t$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r$(e,t){if(e){if(typeof e=="string")return Px(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Px(e,t)}}function Px(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function i$(e){if(Array.isArray(e))return e}var fn=S.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,l=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,h=e.children,m=e.debounce,p=m===void 0?0:m,v=e.id,y=e.className,g=e.onResize,x=e.style,O=x===void 0?{}:x,b=S.useRef(null),w=S.useRef();w.current=g,S.useImperativeHandle(t,function(){return Object.defineProperty(b.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),b.current},configurable:!0})});var A=S.useState({containerWidth:i.width,containerHeight:i.height}),P=e$(A,2),T=P[0],I=P[1],C=S.useCallback(function(k,$){I(function(N){var R=Math.round(k),L=Math.round($);return N.containerWidth===R&&N.containerHeight===L?N:{containerWidth:R,containerHeight:L}})},[]);S.useEffect(function(){var k=function(U){var D,F=U[0].contentRect,W=F.width,V=F.height;C(W,V),(D=w.current)===null||D===void 0||D.call(w,W,V)};p>0&&(k=f_(k,p,{trailing:!0,leading:!1}));var $=new ResizeObserver(k),N=b.current.getBoundingClientRect(),R=N.width,L=N.height;return C(R,L),$.observe(b.current),function(){$.disconnect()}},[C,p]);var j=S.useMemo(function(){var k=T.containerWidth,$=T.containerHeight;if(k<0||$<0)return null;Pt(Yr(o)||Yr(c),`The width(%s) and height(%s) are both fixed numbers,
7
7
  maybe you don't need to use a ResponsiveContainer.`,o,c),Pt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var N=Yr(o)?k:o,R=Yr(c)?$:c;r&&r>0&&(N?R=N/r:R&&(N=R*r),d&&R>d&&(R=d)),Pt(N>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
8
8
  please check the style of container, or the props width(%s) and height(%s),
9
9
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
10
- height and width.`,N,R,o,c,l,f,r);var L=!Array.isArray(h)&&nr(h.type).endsWith("Chart");return S.Children.map(h,function(M){return S.isValidElement(M)?S.cloneElement(M,co({width:N,height:R},L?{style:co({height:"100%",width:"100%",maxHeight:R,maxWidth:N},M.props.style)}:{})):M})},[r,h,c,d,f,l,T,o]);return S.createElement("div",{id:v?"".concat(v):void 0,className:ce("recharts-responsive-container",y),style:co(co({},O),{},{width:o,height:c,minWidth:l,minHeight:f,maxHeight:d}),ref:b},j)}),Rr=function(t){return null};Rr.displayName="Cell";function sa(e){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(e)}function Px(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Px(Object(r),!0).forEach(function(n){n$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n$(e,t,r){return t=i$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i$(e){var t=a$(e,"string");return sa(t)=="symbol"?t:t+""}function a$(e,t){if(sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gn={widthCache:{},cacheCount:0},o$=2e3,s$={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ex="recharts_measurement_span";function c$(e){var t=Mp({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Ki=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Vt.isSsr)return{width:0,height:0};var n=c$(r),i=JSON.stringify({text:t,copyStyle:n});if(gn.widthCache[i])return gn.widthCache[i];try{var a=document.getElementById(Ex);a||(a=document.createElement("span"),a.setAttribute("id",Ex),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Mp(Mp({},s$),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),c={width:s.width,height:s.height};return gn.widthCache[i]=c,++gn.cacheCount>o$&&(gn.cacheCount=0,gn.widthCache={}),c}catch{return{width:0,height:0}}},u$=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function Vo(e,t){return p$(e)||d$(e,t)||f$(e,t)||l$()}function l$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f$(e,t){if(e){if(typeof e=="string")return Tx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tx(e,t)}}function Tx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function p$(e){if(Array.isArray(e))return e}function h$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m$(n.key),n)}}function v$(e,t,r){return t&&Cx(e.prototype,t),r&&Cx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m$(e){var t=y$(e,"string");return ca(t)=="symbol"?t:t+""}function y$(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ix=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,g$=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,b$=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,f_={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},x$=Object.keys(f_),_n="NaN";function w$(e,t){return e*f_[t]}var uo=(function(){function e(t,r){h$(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!g$.test(r)&&(this.num=NaN,this.unit=""),x$.includes(r)&&(this.num=w$(t,r),this.unit="px")}return v$(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=b$.exec(r))!==null&&n!==void 0?n:[],a=Vo(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function d_(e){if(e.includes(_n))return _n;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=jx.exec(t))!==null&&r!==void 0?r:[],i=Vo(n,4),a=i[1],o=i[2],s=i[3],c=uo.parse(a??""),u=uo.parse(s??""),l=o==="*"?c.multiply(u):c.divide(u);if(l.isNaN())return _n;t=t.replace(jx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=Ix.exec(t))!==null&&f!==void 0?f:[],h=Vo(d,4),m=h[1],p=h[2],v=h[3],y=uo.parse(m??""),g=uo.parse(v??""),x=p==="+"?y.add(g):y.subtract(g);if(x.isNaN())return _n;t=t.replace(Ix,x.toString())}return t}var kx=/\(([^()]*)\)/;function O$(e){for(var t=e;t.includes("(");){var r=kx.exec(t),n=Vo(r,2),i=n[1];t=t.replace(kx,d_(i))}return t}function S$(e){var t=e.replace(/\s+/g,"");return t=O$(t),t=d_(t),t}function A$(e){try{return S$(e)}catch{return _n}}function td(e){var t=A$(e.slice(5,-1));return t===_n?"":t}var _$=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],P$=["dx","dy","angle","className","breakAll"];function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$p.apply(this,arguments)}function Rx(e,t){if(e==null)return{};var r=E$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mx(e,t){return I$(e)||j$(e,t)||C$(e,t)||T$()}function T$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C$(e,t){if(e){if(typeof e=="string")return $x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $x(e,t)}}function $x(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function I$(e){if(Array.isArray(e))return e}var p_=/[ \f\n\r\t\v\u2028\u2029]+/,h_=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];oe(r)||(n?a=r.toString().split(""):a=r.toString().split(p_));var o=a.map(function(c){return{word:c,width:Ki(c,i).width}}),s=n?0:Ki(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},k$=function(t,r,n,i,a){var o=t.maxLines,s=t.children,c=t.style,u=t.breakAll,l=G(o),f=s,d=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(R,L){var M=L.word,U=L.width,D=R[R.length-1];if(D&&(i==null||a||D.width+U+n<Number(i)))D.words.push(M),D.width+=U+n;else{var F={words:[M],width:U};R.push(F)}return R},[])},h=d(r),m=function(N){return N.reduce(function(R,L){return R.width>L.width?R:L})};if(!l)return h;for(var p="…",v=function(N){var R=f.slice(0,N),L=h_({breakAll:u,style:c,children:R+p}).wordsWithComputedWidth,M=d(L),U=M.length>o||m(M).width>Number(i);return[U,M]},y=0,g=f.length-1,x=0,O;y<=g&&x<=f.length-1;){var b=Math.floor((y+g)/2),w=b-1,A=v(w),P=Mx(A,2),T=P[0],I=P[1],C=v(b),j=Mx(C,1),k=j[0];if(!T&&!k&&(y=b+1),T&&k&&(g=b-1),!T&&k){O=I;break}x++}return O||h},Nx=function(t){var r=oe(t)?[]:t.toString().split(p_);return[{words:r}]},R$=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Vt.isSsr){var c,u,l=h_({breakAll:o,children:i,style:a});if(l){var f=l.wordsWithComputedWidth,d=l.spaceWidth;c=f,u=d}else return Nx(i);return k$({breakAll:o,children:i,maxLines:s,style:a},c,u,r,n)}return Nx(i)},Dx="#808080",nn=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,l=t.scaleToFit,f=l===void 0?!1:l,d=t.textAnchor,h=d===void 0?"start":d,m=t.verticalAnchor,p=m===void 0?"end":m,v=t.fill,y=v===void 0?Dx:v,g=Rx(t,_$),x=S.useMemo(function(){return R$({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),O=g.dx,b=g.dy,w=g.angle,A=g.className,P=g.breakAll,T=Rx(g,P$);if(!Be(n)||!Be(a))return null;var I=n+(G(O)?O:0),C=a+(G(b)?b:0),j;switch(p){case"start":j=td("calc(".concat(u,")"));break;case"middle":j=td("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:j=td("calc(".concat(x.length-1," * -").concat(s,")"));break}var k=[];if(f){var $=x[0].width,N=g.width;k.push("scale(".concat((G(N)?N/$:1)/$,")"))}return w&&k.push("rotate(".concat(w,", ").concat(I,", ").concat(C,")")),k.length&&(T.transform=k.join(" ")),S.createElement("text",$p({},J(T,!0),{x:I,y:C,className:ce("recharts-text",A),textAnchor:h,fill:y.includes("url")?Dx:y}),x.map(function(R,L){var M=R.words.join(P?"":" ");return S.createElement("tspan",{x:I,dy:L===0?j:s,key:"".concat(M,"-").concat(L)},M)}))};function _r(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function M$(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ev(e){let t,r,n;e.length!==2?(t=_r,r=(s,c)=>_r(e(s),c),n=(s,c)=>e(s)-c):(t=e===_r||e===M$?e:$$,r=e,n=e);function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<0?u=f+1:l=f}while(u<l)}return u}function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function o(s,c,u=0,l=s.length){const f=i(s,c,u,l-1);return f>u&&n(s[f-1],c)>-n(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function $$(){return 0}function v_(e){return e===null?NaN:+e}function*N$(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const D$=Ev(_r),Wa=D$.right;Ev(v_).center;class Lx extends Map{constructor(t,r=q$){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Bx(this,t))}has(t){return super.has(Bx(this,t))}set(t,r){return super.set(L$(this,t),r)}delete(t){return super.delete(B$(this,t))}}function Bx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function L$({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function B$({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function q$(e){return e!==null&&typeof e=="object"?e.valueOf():e}function F$(e=_r){if(e===_r)return m_;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function m_(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const z$=Math.sqrt(50),W$=Math.sqrt(10),U$=Math.sqrt(2);function Ko(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=z$?10:a>=W$?5:a>=U$?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=r&&r<2?Ko(e,t,r*2):[s,c,u]}function Np(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Ko(t,e,r):Ko(e,t,r);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)c[u]=(a-u)/-o;else for(let u=0;u<s;++u)c[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(i+u)/-o;else for(let u=0;u<s;++u)c[u]=(i+u)*o;return c}function Dp(e,t,r){return t=+t,e=+e,r=+r,Ko(e,t,r)[2]}function Lp(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Dp(t,e,r):Dp(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function qx(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Fx(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function y_(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?m_:F$(i);n>r;){if(n-r>600){const c=n-r+1,u=t-r+1,l=Math.log(c),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(c-f)/c)*(u-c/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/c+d)),m=Math.min(n,Math.floor(t+(c-u)*f/c+d));y_(e,t,h,m,i)}const a=e[t];let o=r,s=n;for($i(e,r,t),i(e[n],a)>0&&$i(e,r,n);o<s;){for($i(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?$i(e,r,s):(++s,$i(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function $i(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function H$(e,t,r){if(e=Float64Array.from(N$(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Fx(e);if(t>=1)return qx(e);var n,i=(n-1)*t,a=Math.floor(i),o=qx(y_(e,a).subarray(0,a+1)),s=Fx(e.subarray(a+1));return o+(s-o)*(i-a)}}function V$(e,t,r=v_){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function K$(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function xt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function vr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Bp=Symbol("implicit");function Tv(){var e=new Lx,t=[],r=[],n=Bp;function i(a){let o=e.get(a);if(o===void 0){if(n!==Bp)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Lx;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Tv(t,r).unknown(n)},xt.apply(i,arguments),i}function ua(){var e=Tv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function f(){var d=t().length,h=i<n,m=h?i:n,p=h?n:i;a=(p-m)/Math.max(1,d-c+u*2),s&&(a=Math.floor(a)),m+=(p-m-a*(d-c))*l,o=a*(1-c),s&&(m=Math.round(m),o=Math.round(o));var v=K$(d).map(function(y){return m+a*y});return r(h?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(c=Math.min(1,u=+d),f()):c},e.paddingInner=function(d){return arguments.length?(c=Math.min(1,d),f()):c},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return ua(t(),[n,i]).round(s).paddingInner(c).paddingOuter(u).align(l)},xt.apply(f(),arguments)}function g_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return g_(t())},e}function Gi(){return g_(ua.apply(null,arguments).paddingInner(1))}function Cv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function b_(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ua(){}var la=.7,Go=1/la,In="\\s*([+-]?\\d+)\\s*",fa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",G$=/^#([0-9a-f]{3,8})$/,Y$=new RegExp(`^rgb\\(${In},${In},${In}\\)$`),X$=new RegExp(`^rgb\\(${Lt},${Lt},${Lt}\\)$`),Z$=new RegExp(`^rgba\\(${In},${In},${In},${fa}\\)$`),J$=new RegExp(`^rgba\\(${Lt},${Lt},${Lt},${fa}\\)$`),Q$=new RegExp(`^hsl\\(${fa},${Lt},${Lt}\\)$`),eN=new RegExp(`^hsla\\(${fa},${Lt},${Lt},${fa}\\)$`),zx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Cv(Ua,da,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wx,formatHex:Wx,formatHex8:tN,formatHsl:rN,formatRgb:Ux,toString:Ux});function Wx(){return this.rgb().formatHex()}function tN(){return this.rgb().formatHex8()}function rN(){return x_(this).formatHsl()}function Ux(){return this.rgb().formatRgb()}function da(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=G$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Hx(t):r===3?new et(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?lo(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?lo(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Y$.exec(e))?new et(t[1],t[2],t[3],1):(t=X$.exec(e))?new et(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Z$.exec(e))?lo(t[1],t[2],t[3],t[4]):(t=J$.exec(e))?lo(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Q$.exec(e))?Gx(t[1],t[2]/100,t[3]/100,1):(t=eN.exec(e))?Gx(t[1],t[2]/100,t[3]/100,t[4]):zx.hasOwnProperty(e)?Hx(zx[e]):e==="transparent"?new et(NaN,NaN,NaN,0):null}function Hx(e){return new et(e>>16&255,e>>8&255,e&255,1)}function lo(e,t,r,n){return n<=0&&(e=t=r=NaN),new et(e,t,r,n)}function nN(e){return e instanceof Ua||(e=da(e)),e?(e=e.rgb(),new et(e.r,e.g,e.b,e.opacity)):new et}function qp(e,t,r,n){return arguments.length===1?nN(e):new et(e,t,r,n??1)}function et(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Cv(et,qp,b_(Ua,{brighter(e){return e=e==null?Go:Math.pow(Go,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new et(en(this.r),en(this.g),en(this.b),Yo(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Vx,formatHex:Vx,formatHex8:iN,formatRgb:Kx,toString:Kx}));function Vx(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}`}function iN(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}${Xr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Kx(){const e=Yo(this.opacity);return`${e===1?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${e===1?")":`, ${e})`}`}function Yo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function en(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xr(e){return e=en(e),(e<16?"0":"")+e.toString(16)}function Gx(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new _t(e,t,r,n)}function x_(e){if(e instanceof _t)return new _t(e.h,e.s,e.l,e.opacity);if(e instanceof Ua||(e=da(e)),!e)return new _t;if(e instanceof _t)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,c=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new _t(o,s,c,e.opacity)}function aN(e,t,r,n){return arguments.length===1?x_(e):new _t(e,t,r,n??1)}function _t(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Cv(_t,aN,b_(Ua,{brighter(e){return e=e==null?Go:Math.pow(Go,e),new _t(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new _t(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new et(rd(e>=240?e-240:e+120,i,n),rd(e,i,n),rd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new _t(Yx(this.h),fo(this.s),fo(this.l),Yo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Yo(this.opacity);return`${e===1?"hsl(":"hsla("}${Yx(this.h)}, ${fo(this.s)*100}%, ${fo(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yx(e){return e=(e||0)%360,e<0?e+360:e}function fo(e){return Math.max(0,Math.min(1,e||0))}function rd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const jv=e=>()=>e;function oN(e,t){return function(r){return e+r*t}}function sN(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function cN(e){return(e=+e)==1?w_:function(t,r){return r-t?sN(t,r,e):jv(isNaN(t)?r:t)}}function w_(e,t){var r=t-e;return r?oN(e,r):jv(isNaN(e)?t:e)}const Xx=(function e(t){var r=cN(t);function n(i,a){var o=r((i=qp(i)).r,(a=qp(a)).r),s=r(i.g,a.g),c=r(i.b,a.b),u=w_(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return n.gamma=e,n})(1);function uN(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function lN(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function fN(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=xi(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function dN(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Xo(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function pN(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=xi(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Fp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nd=new RegExp(Fp.source,"g");function hN(e){return function(){return e}}function vN(e){return function(t){return e(t)+""}}function mN(e,t){var r=Fp.lastIndex=nd.lastIndex=0,n,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(n=Fp.exec(e))&&(i=nd.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Xo(n,i)})),r=nd.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?vN(c[0].x):hN(t):(t=c.length,function(u){for(var l=0,f;l<t;++l)s[(f=c[l]).i]=f.x(u);return s.join("")})}function xi(e,t){var r=typeof t,n;return t==null||r==="boolean"?jv(t):(r==="number"?Xo:r==="string"?(n=da(t))?(t=n,Xx):mN:t instanceof da?Xx:t instanceof Date?dN:lN(t)?uN:Array.isArray(t)?fN:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?pN:Xo)(e,t)}function Iv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function yN(e,t){t===void 0&&(t=e,e=xi);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function gN(e){return function(){return e}}function Zo(e){return+e}var Zx=[0,1];function Je(e){return e}function zp(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:gN(isNaN(t)?NaN:.5)}function bN(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function xN(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=zp(i,n),a=r(o,a)):(n=zp(n,i),a=r(a,o)),function(s){return a(n(s))}}function wN(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=zp(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var c=Wa(e,s,1,n)-1;return a[c](i[c](s))}}function Ha(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lc(){var e=Zx,t=Zx,r=xi,n,i,a,o=Je,s,c,u;function l(){var d=Math.min(e.length,t.length);return o!==Je&&(o=bN(e[0],e[d-1])),s=d>2?wN:xN,c=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(c||(c=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=s(t,e.map(n),Xo)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Zo),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Iv,l()},f.clamp=function(d){return arguments.length?(o=d?!0:Je,l()):o!==Je},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,l()}}function kv(){return lc()(Je,Je)}function ON(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Jo(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function qn(e){return e=Jo(Math.abs(e)),e?e[1]:NaN}function SN(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>n&&(s=Math.max(1,n-c)),a.push(r.substring(i-=s,i+s)),!((c+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function AN(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var _N=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pa(e){if(!(t=_N.exec(e)))throw new Error("invalid format: "+e);var t;return new Rv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}pa.prototype=Rv.prototype;function Rv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Rv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function PN(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var O_;function EN(e,t){var r=Jo(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(O_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Jo(e,Math.max(0,t+a-1))[0]}function Jx(e,t){var r=Jo(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Qx={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ON,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Jx(e*100,t),r:Jx,s:EN,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function e0(e){return e}var t0=Array.prototype.map,r0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function TN(e){var t=e.grouping===void 0||e.thousands===void 0?e0:SN(t0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?e0:AN(t0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(f){f=pa(f);var d=f.fill,h=f.align,m=f.sign,p=f.symbol,v=f.zero,y=f.width,g=f.comma,x=f.precision,O=f.trim,b=f.type;b==="n"?(g=!0,b="g"):Qx[b]||(x===void 0&&(x=12),O=!0,b="g"),(v||d==="0"&&h==="=")&&(v=!0,d="0",h="=");var w=p==="$"?r:p==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",A=p==="$"?n:/[%p]/.test(b)?o:"",P=Qx[b],T=/[defgprs%]/.test(b);x=x===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function I(C){var j=w,k=A,$,N,R;if(b==="c")k=P(C)+k,C="";else{C=+C;var L=C<0||1/C<0;if(C=isNaN(C)?c:P(Math.abs(C),x),O&&(C=PN(C)),L&&+C==0&&m!=="+"&&(L=!1),j=(L?m==="("?m:s:m==="-"||m==="("?"":m)+j,k=(b==="s"?r0[8+O_/3]:"")+k+(L&&m==="("?")":""),T){for($=-1,N=C.length;++$<N;)if(R=C.charCodeAt($),48>R||R>57){k=(R===46?i+C.slice($+1):C.slice($))+k,C=C.slice(0,$);break}}}g&&!v&&(C=t(C,1/0));var M=j.length+C.length+k.length,U=M<y?new Array(y-M+1).join(d):"";switch(g&&v&&(C=t(U+C,U.length?y-k.length:1/0),U=""),h){case"<":C=j+C+k+U;break;case"=":C=j+U+C+k;break;case"^":C=U.slice(0,M=U.length>>1)+j+C+k+U.slice(M);break;default:C=U+j+C+k;break}return a(C)}return I.toString=function(){return f+""},I}function l(f,d){var h=u((f=pa(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(qn(d)/3)))*3,p=Math.pow(10,-m),v=r0[8+m/3];return function(y){return h(p*y)+v}}return{format:u,formatPrefix:l}}var po,Mv,S_;CN({thousands:",",grouping:[3],currency:["$",""]});function CN(e){return po=TN(e),Mv=po.format,S_=po.formatPrefix,po}function jN(e){return Math.max(0,-qn(Math.abs(e)))}function IN(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(qn(t)/3)))*3-qn(Math.abs(e)))}function kN(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,qn(t)-qn(e))+1}function A_(e,t,r,n){var i=Lp(e,t,r),a;switch(n=pa(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=IN(i,o))&&(n.precision=a),S_(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=kN(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=jN(i))&&(n.precision=a-(n.type==="%")*2);break}}return Mv(n)}function Mr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Np(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return A_(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],c,u,l=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);l-- >0;){if(u=Dp(o,s,r),u===c)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function Qo(){var e=kv();return e.copy=function(){return Ha(e,Qo())},xt.apply(e,arguments),Mr(e)}function __(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Zo),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return __(e).unknown(t)},e=arguments.length?Array.from(e,Zo):[0,1],Mr(r)}function P_(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function n0(e){return Math.log(e)}function i0(e){return Math.exp(e)}function RN(e){return-Math.log(-e)}function MN(e){return-Math.exp(-e)}function $N(e){return isFinite(e)?+("1e"+e):e<0?0:e}function NN(e){return e===10?$N:e===Math.E?Math.exp:t=>Math.pow(e,t)}function DN(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function a0(e){return(t,r)=>-e(-t,r)}function $v(e){const t=e(n0,i0),r=t.domain;let n=10,i,a;function o(){return i=DN(n),a=NN(n),r()[0]<0?(i=a0(i),a=a0(a),e(RN,MN)):e(n0,i0),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const c=r();let u=c[0],l=c[c.length-1];const f=l<u;f&&([u,l]=[l,u]);let d=i(u),h=i(l),m,p;const v=s==null?10:+s;let y=[];if(!(n%1)&&h-d<v){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(m=1;m<n;++m)if(p=d<0?m/a(-d):m*a(d),!(p<u)){if(p>l)break;y.push(p)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(p=d>0?m/a(-d):m*a(d),!(p<u)){if(p>l)break;y.push(p)}y.length*2<v&&(y=Np(u,l,v))}else y=Np(d,h,Math.min(h-d,v)).map(a);return f?y.reverse():y},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=pa(c)).precision==null&&(c.trim=!0),c=Mv(c)),s===1/0)return c;const u=Math.max(1,n*s/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=u?c(l):""}},t.nice=()=>r(P_(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function E_(){const e=$v(lc()).domain([1,10]);return e.copy=()=>Ha(e,E_()).base(e.base()),xt.apply(e,arguments),e}function o0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Nv(e){var t=1,r=e(o0(t),s0(t));return r.constant=function(n){return arguments.length?e(o0(t=+n),s0(t)):t},Mr(r)}function T_(){var e=Nv(lc());return e.copy=function(){return Ha(e,T_()).constant(e.constant())},xt.apply(e,arguments)}function c0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function LN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function BN(e){return e<0?-e*e:e*e}function Dv(e){var t=e(Je,Je),r=1;function n(){return r===1?e(Je,Je):r===.5?e(LN,BN):e(c0(r),c0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Mr(t)}function Lv(){var e=Dv(lc());return e.copy=function(){return Ha(e,Lv()).exponent(e.exponent())},xt.apply(e,arguments),e}function qN(){return Lv.apply(null,arguments).exponent(.5)}function u0(e){return Math.sign(e)*e*e}function FN(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function C_(){var e=kv(),t=[0,1],r=!1,n;function i(a){var o=FN(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(u0(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Zo)).map(u0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return C_(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},xt.apply(i,arguments),Mr(i)}function j_(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=V$(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Wa(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(_r),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return j_().domain(e).range(t).unknown(n)},xt.apply(a,arguments)}function I_(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Wa(n,c,0,r)]:a}function s(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,s()):i.slice()},o.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return I_().domain([e,t]).range(i).unknown(a)},xt.apply(Mr(o),arguments)}function k_(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Wa(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return k_().domain(e).range(t).unknown(r)},xt.apply(i,arguments)}const id=new Date,ad=new Date;function qe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const c=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;let u;do c.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return c},i.filter=a=>qe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(id.setTime(+a),ad.setTime(+o),e(id),e(ad),Math.floor(r(id,ad))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const es=qe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);es.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):es);es.range;const er=1e3,mt=er*60,tr=mt*60,ar=tr*24,Bv=ar*7,l0=ar*30,od=ar*365,Zr=qe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*er)},(e,t)=>(t-e)/er,e=>e.getUTCSeconds());Zr.range;const qv=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getMinutes());qv.range;const Fv=qe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getUTCMinutes());Fv.range;const zv=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er-e.getMinutes()*mt)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getHours());zv.range;const Wv=qe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCHours());Wv.range;const Va=qe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mt)/ar,e=>e.getDate()-1);Va.range;const fc=qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ar,e=>e.getUTCDate()-1);fc.range;const R_=qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ar,e=>Math.floor(e/ar));R_.range;function dn(e){return qe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*mt)/Bv)}const dc=dn(0),ts=dn(1),zN=dn(2),WN=dn(3),Fn=dn(4),UN=dn(5),HN=dn(6);dc.range;ts.range;zN.range;WN.range;Fn.range;UN.range;HN.range;function pn(e){return qe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Bv)}const pc=pn(0),rs=pn(1),VN=pn(2),KN=pn(3),zn=pn(4),GN=pn(5),YN=pn(6);pc.range;rs.range;VN.range;KN.range;zn.range;GN.range;YN.range;const Uv=qe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Uv.range;const Hv=qe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Hv.range;const or=qe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());or.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});or.range;const sr=qe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());sr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});sr.range;function M_(e,t,r,n,i,a){const o=[[Zr,1,er],[Zr,5,5*er],[Zr,15,15*er],[Zr,30,30*er],[a,1,mt],[a,5,5*mt],[a,15,15*mt],[a,30,30*mt],[i,1,tr],[i,3,3*tr],[i,6,6*tr],[i,12,12*tr],[n,1,ar],[n,2,2*ar],[r,1,Bv],[t,1,l0],[t,3,3*l0],[e,1,od]];function s(u,l,f){const d=l<u;d&&([u,l]=[l,u]);const h=f&&typeof f.range=="function"?f:c(u,l,f),m=h?h.range(u,+l+1):[];return d?m.reverse():m}function c(u,l,f){const d=Math.abs(l-u)/f,h=Ev(([,,v])=>v).right(o,d);if(h===o.length)return e.every(Lp(u/od,l/od,f));if(h===0)return es.every(Math.max(Lp(u,l,f),1));const[m,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(p)}return[s,c]}const[XN,ZN]=M_(sr,Hv,pc,R_,Wv,Fv),[JN,QN]=M_(or,Uv,dc,Va,zv,qv);function sd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function cd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ni(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function eD(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Di(i),l=Li(i),f=Di(a),d=Li(a),h=Di(o),m=Li(o),p=Di(s),v=Li(s),y=Di(c),g=Li(c),x={a:L,A:M,b:U,B:D,c:null,d:m0,e:m0,f:SD,g:RD,G:$D,H:xD,I:wD,j:OD,L:$_,m:AD,M:_D,p:F,q:W,Q:b0,s:x0,S:PD,u:ED,U:TD,V:CD,w:jD,W:ID,x:null,X:null,y:kD,Y:MD,Z:ND,"%":g0},O={a:V,A:Y,b:re,B:ne,c:null,d:y0,e:y0,f:qD,g:XD,G:JD,H:DD,I:LD,j:BD,L:D_,m:FD,M:zD,p:H,q:Z,Q:b0,s:x0,S:WD,u:UD,U:HD,V:VD,w:KD,W:GD,x:null,X:null,y:YD,Y:ZD,Z:QD,"%":g0},b={a:I,A:C,b:j,B:k,c:$,d:h0,e:h0,f:mD,g:p0,G:d0,H:v0,I:v0,j:dD,L:vD,m:fD,M:pD,p:T,q:lD,Q:gD,s:bD,S:hD,u:aD,U:oD,V:sD,w:iD,W:cD,x:N,X:R,y:p0,Y:d0,Z:uD,"%":yD};x.x=w(r,x),x.X=w(n,x),x.c=w(t,x),O.x=w(r,O),O.X=w(n,O),O.c=w(t,O);function w(z,K){return function(X){var B=[],fe=-1,de=0,je=z.length,Ie,Fe,mr;for(X instanceof Date||(X=new Date(+X));++fe<je;)z.charCodeAt(fe)===37&&(B.push(z.slice(de,fe)),(Fe=f0[Ie=z.charAt(++fe)])!=null?Ie=z.charAt(++fe):Fe=Ie==="e"?" ":"0",(mr=K[Ie])&&(Ie=mr(X,Fe)),B.push(Ie),de=fe+1);return B.push(z.slice(de,fe)),B.join("")}}function A(z,K){return function(X){var B=Ni(1900,void 0,1),fe=P(B,z,X+="",0),de,je;if(fe!=X.length)return null;if("Q"in B)return new Date(B.Q);if("s"in B)return new Date(B.s*1e3+("L"in B?B.L:0));if(K&&!("Z"in B)&&(B.Z=0),"p"in B&&(B.H=B.H%12+B.p*12),B.m===void 0&&(B.m="q"in B?B.q:0),"V"in B){if(B.V<1||B.V>53)return null;"w"in B||(B.w=1),"Z"in B?(de=cd(Ni(B.y,0,1)),je=de.getUTCDay(),de=je>4||je===0?rs.ceil(de):rs(de),de=fc.offset(de,(B.V-1)*7),B.y=de.getUTCFullYear(),B.m=de.getUTCMonth(),B.d=de.getUTCDate()+(B.w+6)%7):(de=sd(Ni(B.y,0,1)),je=de.getDay(),de=je>4||je===0?ts.ceil(de):ts(de),de=Va.offset(de,(B.V-1)*7),B.y=de.getFullYear(),B.m=de.getMonth(),B.d=de.getDate()+(B.w+6)%7)}else("W"in B||"U"in B)&&("w"in B||(B.w="u"in B?B.u%7:"W"in B?1:0),je="Z"in B?cd(Ni(B.y,0,1)).getUTCDay():sd(Ni(B.y,0,1)).getDay(),B.m=0,B.d="W"in B?(B.w+6)%7+B.W*7-(je+5)%7:B.w+B.U*7-(je+6)%7);return"Z"in B?(B.H+=B.Z/100|0,B.M+=B.Z%100,cd(B)):sd(B)}}function P(z,K,X,B){for(var fe=0,de=K.length,je=X.length,Ie,Fe;fe<de;){if(B>=je)return-1;if(Ie=K.charCodeAt(fe++),Ie===37){if(Ie=K.charAt(fe++),Fe=b[Ie in f0?K.charAt(fe++):Ie],!Fe||(B=Fe(z,X,B))<0)return-1}else if(Ie!=X.charCodeAt(B++))return-1}return B}function T(z,K,X){var B=u.exec(K.slice(X));return B?(z.p=l.get(B[0].toLowerCase()),X+B[0].length):-1}function I(z,K,X){var B=h.exec(K.slice(X));return B?(z.w=m.get(B[0].toLowerCase()),X+B[0].length):-1}function C(z,K,X){var B=f.exec(K.slice(X));return B?(z.w=d.get(B[0].toLowerCase()),X+B[0].length):-1}function j(z,K,X){var B=y.exec(K.slice(X));return B?(z.m=g.get(B[0].toLowerCase()),X+B[0].length):-1}function k(z,K,X){var B=p.exec(K.slice(X));return B?(z.m=v.get(B[0].toLowerCase()),X+B[0].length):-1}function $(z,K,X){return P(z,t,K,X)}function N(z,K,X){return P(z,r,K,X)}function R(z,K,X){return P(z,n,K,X)}function L(z){return o[z.getDay()]}function M(z){return a[z.getDay()]}function U(z){return c[z.getMonth()]}function D(z){return s[z.getMonth()]}function F(z){return i[+(z.getHours()>=12)]}function W(z){return 1+~~(z.getMonth()/3)}function V(z){return o[z.getUTCDay()]}function Y(z){return a[z.getUTCDay()]}function re(z){return c[z.getUTCMonth()]}function ne(z){return s[z.getUTCMonth()]}function H(z){return i[+(z.getUTCHours()>=12)]}function Z(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var K=w(z+="",x);return K.toString=function(){return z},K},parse:function(z){var K=A(z+="",!1);return K.toString=function(){return z},K},utcFormat:function(z){var K=w(z+="",O);return K.toString=function(){return z},K},utcParse:function(z){var K=A(z+="",!0);return K.toString=function(){return z},K}}}var f0={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,tD=/^%/,rD=/[\\^$*+?|[\]().{}]/g;function ve(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function nD(e){return e.replace(rD,"\\$&")}function Di(e){return new RegExp("^(?:"+e.map(nD).join("|")+")","i")}function Li(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function iD(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function aD(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function cD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function d0(e,t,r){var n=Ue.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function p0(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function uD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function lD(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function fD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function h0(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function dD(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function v0(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function pD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function hD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function vD(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function mD(e,t,r){var n=Ue.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function yD(e,t,r){var n=tD.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function gD(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function bD(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function m0(e,t){return ve(e.getDate(),t,2)}function xD(e,t){return ve(e.getHours(),t,2)}function wD(e,t){return ve(e.getHours()%12||12,t,2)}function OD(e,t){return ve(1+Va.count(or(e),e),t,3)}function $_(e,t){return ve(e.getMilliseconds(),t,3)}function SD(e,t){return $_(e,t)+"000"}function AD(e,t){return ve(e.getMonth()+1,t,2)}function _D(e,t){return ve(e.getMinutes(),t,2)}function PD(e,t){return ve(e.getSeconds(),t,2)}function ED(e){var t=e.getDay();return t===0?7:t}function TD(e,t){return ve(dc.count(or(e)-1,e),t,2)}function N_(e){var t=e.getDay();return t>=4||t===0?Fn(e):Fn.ceil(e)}function CD(e,t){return e=N_(e),ve(Fn.count(or(e),e)+(or(e).getDay()===4),t,2)}function jD(e){return e.getDay()}function ID(e,t){return ve(ts.count(or(e)-1,e),t,2)}function kD(e,t){return ve(e.getFullYear()%100,t,2)}function RD(e,t){return e=N_(e),ve(e.getFullYear()%100,t,2)}function MD(e,t){return ve(e.getFullYear()%1e4,t,4)}function $D(e,t){var r=e.getDay();return e=r>=4||r===0?Fn(e):Fn.ceil(e),ve(e.getFullYear()%1e4,t,4)}function ND(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ve(t/60|0,"0",2)+ve(t%60,"0",2)}function y0(e,t){return ve(e.getUTCDate(),t,2)}function DD(e,t){return ve(e.getUTCHours(),t,2)}function LD(e,t){return ve(e.getUTCHours()%12||12,t,2)}function BD(e,t){return ve(1+fc.count(sr(e),e),t,3)}function D_(e,t){return ve(e.getUTCMilliseconds(),t,3)}function qD(e,t){return D_(e,t)+"000"}function FD(e,t){return ve(e.getUTCMonth()+1,t,2)}function zD(e,t){return ve(e.getUTCMinutes(),t,2)}function WD(e,t){return ve(e.getUTCSeconds(),t,2)}function UD(e){var t=e.getUTCDay();return t===0?7:t}function HD(e,t){return ve(pc.count(sr(e)-1,e),t,2)}function L_(e){var t=e.getUTCDay();return t>=4||t===0?zn(e):zn.ceil(e)}function VD(e,t){return e=L_(e),ve(zn.count(sr(e),e)+(sr(e).getUTCDay()===4),t,2)}function KD(e){return e.getUTCDay()}function GD(e,t){return ve(rs.count(sr(e)-1,e),t,2)}function YD(e,t){return ve(e.getUTCFullYear()%100,t,2)}function XD(e,t){return e=L_(e),ve(e.getUTCFullYear()%100,t,2)}function ZD(e,t){return ve(e.getUTCFullYear()%1e4,t,4)}function JD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?zn(e):zn.ceil(e),ve(e.getUTCFullYear()%1e4,t,4)}function QD(){return"+0000"}function g0(){return"%"}function b0(e){return+e}function x0(e){return Math.floor(+e/1e3)}var bn,B_,q_;eL({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function eL(e){return bn=eD(e),B_=bn.format,bn.parse,q_=bn.utcFormat,bn.utcParse,bn}function tL(e){return new Date(e)}function rL(e){return e instanceof Date?+e:+new Date(+e)}function Vv(e,t,r,n,i,a,o,s,c,u){var l=kv(),f=l.invert,d=l.domain,h=u(".%L"),m=u(":%S"),p=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),g=u("%b %d"),x=u("%B"),O=u("%Y");function b(w){return(c(w)<w?h:s(w)<w?m:o(w)<w?p:a(w)<w?v:n(w)<w?i(w)<w?y:g:r(w)<w?x:O)(w)}return l.invert=function(w){return new Date(f(w))},l.domain=function(w){return arguments.length?d(Array.from(w,rL)):d().map(tL)},l.ticks=function(w){var A=d();return e(A[0],A[A.length-1],w??10)},l.tickFormat=function(w,A){return A==null?b:u(A)},l.nice=function(w){var A=d();return(!w||typeof w.range!="function")&&(w=t(A[0],A[A.length-1],w??10)),w?d(P_(A,w)):l},l.copy=function(){return Ha(l,Vv(e,t,r,n,i,a,o,s,c,u))},l}function nL(){return xt.apply(Vv(JN,QN,or,Uv,dc,Va,zv,qv,Zr,B_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function iL(){return xt.apply(Vv(XN,ZN,sr,Hv,pc,fc,Wv,Fv,Zr,q_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hc(){var e=0,t=1,r,n,i,a,o=Je,s=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function l(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),u):[o(0),o(1)]}}return u.range=l(xi),u.rangeRound=l(Iv),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function $r(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function F_(){var e=Mr(hc()(Je));return e.copy=function(){return $r(e,F_())},vr.apply(e,arguments)}function z_(){var e=$v(hc()).domain([1,10]);return e.copy=function(){return $r(e,z_()).base(e.base())},vr.apply(e,arguments)}function W_(){var e=Nv(hc());return e.copy=function(){return $r(e,W_()).constant(e.constant())},vr.apply(e,arguments)}function Kv(){var e=Dv(hc());return e.copy=function(){return $r(e,Kv()).exponent(e.exponent())},vr.apply(e,arguments)}function aL(){return Kv.apply(null,arguments).exponent(.5)}function U_(){var e=[],t=Je;function r(n){if(n!=null&&!isNaN(n=+n))return t((Wa(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(_r),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>H$(e,a/n))},r.copy=function(){return U_(t).domain(e)},vr.apply(r,arguments)}function vc(){var e=0,t=.5,r=1,n=1,i,a,o,s,c,u=Je,l,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+l(p))-a)*(n*p<n*a?s:c),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=l(e=+e),a=l(t=+t),o=l(r=+r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function m(p){return function(v){var y,g,x;return arguments.length?([y,g,x]=v,u=yN(p,[y,g,x]),h):[u(0),u(.5),u(1)]}}return h.range=m(xi),h.rangeRound=m(Iv),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return l=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function H_(){var e=Mr(vc()(Je));return e.copy=function(){return $r(e,H_())},vr.apply(e,arguments)}function V_(){var e=$v(vc()).domain([.1,1,10]);return e.copy=function(){return $r(e,V_()).base(e.base())},vr.apply(e,arguments)}function K_(){var e=Nv(vc());return e.copy=function(){return $r(e,K_()).constant(e.constant())},vr.apply(e,arguments)}function Gv(){var e=Dv(vc());return e.copy=function(){return $r(e,Gv()).exponent(e.exponent())},vr.apply(e,arguments)}function oL(){return Gv.apply(null,arguments).exponent(.5)}const w0=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ua,scaleDiverging:H_,scaleDivergingLog:V_,scaleDivergingPow:Gv,scaleDivergingSqrt:oL,scaleDivergingSymlog:K_,scaleIdentity:__,scaleImplicit:Bp,scaleLinear:Qo,scaleLog:E_,scaleOrdinal:Tv,scalePoint:Gi,scalePow:Lv,scaleQuantile:j_,scaleQuantize:I_,scaleRadial:C_,scaleSequential:F_,scaleSequentialLog:z_,scaleSequentialPow:Kv,scaleSequentialQuantile:U_,scaleSequentialSqrt:aL,scaleSequentialSymlog:W_,scaleSqrt:qN,scaleSymlog:T_,scaleThreshold:k_,scaleTime:nL,scaleUtc:iL,tickFormat:A_},Symbol.toStringTag,{value:"Module"}));var ud,O0;function mc(){if(O0)return ud;O0=1;var e=mi();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],c=n(s);if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,l=s}return l}return ud=t,ud}var ld,S0;function G_(){if(S0)return ld;S0=1;function e(t,r){return t>r}return ld=e,ld}var fd,A0;function sL(){if(A0)return fd;A0=1;var e=mc(),t=G_(),r=bi();function n(i){return i&&i.length?e(i,r,t):void 0}return fd=n,fd}var cL=sL();const Or=ge(cL);var dd,_0;function Y_(){if(_0)return dd;_0=1;function e(t,r){return t<r}return dd=e,dd}var pd,P0;function uL(){if(P0)return pd;P0=1;var e=mc(),t=Y_(),r=bi();function n(i){return i&&i.length?e(i,r,t):void 0}return pd=n,pd}var lL=uL();const yc=ge(lL);var hd,E0;function fL(){if(E0)return hd;E0=1;var e=lv(),t=Ht(),r=n_(),n=rt();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return hd=i,hd}var vd,T0;function dL(){if(T0)return vd;T0=1;var e=t_(),t=fL();function r(n,i){return e(t(n,i),1)}return vd=r,vd}var pL=dL();const hL=ge(pL);var md,C0;function vL(){if(C0)return md;C0=1;var e=Sv();function t(r,n){return e(r,n)}return md=t,md}var mL=vL();const cr=ge(mL);var wi=1e9,yL={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Xv,Te=!0,bt="[DecimalError] ",tn=bt+"Invalid argument: ",Yv=bt+"Exponent out of range: ",Oi=Math.floor,Kr=Math.pow,gL=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,st,ze=1e7,Ee=7,X_=9007199254740991,ns=Oi(X_/Ee),Q={};Q.absoluteValue=Q.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Q.comparedTo=Q.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};Q.decimalPlaces=Q.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ee;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Q.dividedBy=Q.div=function(e){return ir(this,new this.constructor(e))};Q.dividedToIntegerBy=Q.idiv=function(e){var t=this,r=t.constructor;return Ae(ir(t,new r(e),0,1),r.precision)};Q.equals=Q.eq=function(e){return!this.cmp(e)};Q.exponent=function(){return $e(this)};Q.greaterThan=Q.gt=function(e){return this.cmp(e)>0};Q.greaterThanOrEqualTo=Q.gte=function(e){return this.cmp(e)>=0};Q.isInteger=Q.isint=function(){return this.e>this.d.length-2};Q.isNegative=Q.isneg=function(){return this.s<0};Q.isPositive=Q.ispos=function(){return this.s>0};Q.isZero=function(){return this.s===0};Q.lessThan=Q.lt=function(e){return this.cmp(e)<0};Q.lessThanOrEqualTo=Q.lte=function(e){return this.cmp(e)<1};Q.logarithm=Q.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(st))throw Error(bt+"NaN");if(r.s<1)throw Error(bt+(r.s?"NaN":"-Infinity"));return r.eq(st)?new n(0):(Te=!1,t=ir(ha(r,a),ha(e,a),a),Te=!0,Ae(t,i))};Q.minus=Q.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Q_(t,e):Z_(t,(e.s=-e.s,e))};Q.modulo=Q.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(bt+"NaN");return r.s?(Te=!1,t=ir(r,e,0,1).times(e),Te=!0,r.minus(t)):Ae(new n(r),i)};Q.naturalExponential=Q.exp=function(){return J_(this)};Q.naturalLogarithm=Q.ln=function(){return ha(this)};Q.negated=Q.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Q.plus=Q.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Z_(t,e):Q_(t,(e.s=-e.s,e))};Q.precision=Q.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(tn+e);if(t=$e(i)+1,n=i.d.length-1,r=n*Ee+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Q.squareRoot=Q.sqrt=function(){var e,t,r,n,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(bt+"NaN")}for(e=$e(s),Te=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=$t(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Oi((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(ir(s,a,o+2)).times(.5),$t(a.d).slice(0,o)===(t=$t(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ae(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Te=!0,Ae(n,r)};Q.times=Q.mul=function(e){var t,r,n,i,a,o,s,c,u,l=this,f=l.constructor,d=l.d,h=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,c=d.length,u=h.length,c<u&&(a=d,d=h,h=a,o=c,c=u,u=o),a=[],o=c+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%ze|0,t=s/ze|0;a[i]=(a[i]+t)%ze|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Te?Ae(e,f.precision):e};Q.toDecimalPlaces=Q.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ft(e,0,wi),t===void 0?t=n.rounding:Ft(t,0,8),Ae(r,e+$e(r)+1,t))};Q.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=an(n,!0):(Ft(e,0,wi),t===void 0?t=i.rounding:Ft(t,0,8),n=Ae(new i(n),e+1,t),r=an(n,!0,e+1)),r};Q.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?an(i):(Ft(e,0,wi),t===void 0?t=a.rounding:Ft(t,0,8),n=Ae(new a(i),e+$e(i)+1,t),r=an(n.abs(),!1,e+$e(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Q.toInteger=Q.toint=function(){var e=this,t=e.constructor;return Ae(new t(e),$e(e)+1,t.rounding)};Q.toNumber=function(){return+this};Q.toPower=Q.pow=function(e){var t,r,n,i,a,o,s=this,c=s.constructor,u=12,l=+(e=new c(e));if(!e.s)return new c(st);if(s=new c(s),!s.s){if(e.s<1)throw Error(bt+"Infinity");return s}if(s.eq(st))return s;if(n=c.precision,e.eq(st))return Ae(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=l<0?-l:l)<=X_){for(i=new c(st),t=Math.ceil(n/Ee+4),Te=!1;r%2&&(i=i.times(s),I0(i.d,t)),r=Oi(r/2),r!==0;)s=s.times(s),I0(s.d,t);return Te=!0,e.s<0?new c(st).div(i):Ae(i,n)}}else if(a<0)throw Error(bt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Te=!1,i=e.times(ha(s,n+u)),Te=!0,i=J_(i),i.s=a,i};Q.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=$e(i),n=an(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ft(e,1,wi),t===void 0?t=a.rounding:Ft(t,0,8),i=Ae(new a(i),e,t),r=$e(i),n=an(i,e<=r||r<=a.toExpNeg,e)),n};Q.toSignificantDigits=Q.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ft(e,1,wi),t===void 0?t=n.rounding:Ft(t,0,8)),Ae(new n(r),e,t)};Q.toString=Q.valueOf=Q.val=Q.toJSON=Q[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$e(e),r=e.constructor;return an(e,t<=r.toExpNeg||t>=r.toExpPos)};function Z_(e,t){var r,n,i,a,o,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),Te?Ae(t,f):t;if(c=e.d,u=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,s=u.length):(n=u,i=o,s=c.length),o=Math.ceil(f/Ee),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=c.length,a=u.length,s-a<0&&(a=s,n=u,u=c,c=n),r=0;a;)r=(c[--a]=c[a]+u[a]+r)/ze|0,c[a]%=ze;for(r&&(c.unshift(r),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,Te?Ae(t,f):t}function Ft(e,t,r){if(e!==~~e||e<t||e>r)throw Error(tn+e)}function $t(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Ee-n.length,r&&(a+=xr(r)),a+=n;o=e[t],n=o+"",r=Ee-n.length,r&&(a+=xr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ir=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%ze|0,o=a/ze|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,c;if(a!=o)c=a>o?1:-1;else for(s=c=0;s<a;s++)if(n[s]!=i[s]){c=n[s]>i[s]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ze+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,c,u,l,f,d,h,m,p,v,y,g,x,O,b,w,A,P,T=n.constructor,I=n.s==i.s?1:-1,C=n.d,j=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(bt+"Division by zero");for(c=n.e-i.e,A=j.length,b=C.length,h=new T(I),m=h.d=[],u=0;j[u]==(C[u]||0);)++u;if(j[u]>(C[u]||0)&&--c,a==null?g=a=T.precision:o?g=a+($e(n)-$e(i))+1:g=a,g<0)return new T(0);if(g=g/Ee+2|0,u=0,A==1)for(l=0,j=j[0],g++;(u<b||l)&&g--;u++)x=l*ze+(C[u]||0),m[u]=x/j|0,l=x%j|0;else{for(l=ze/(j[0]+1)|0,l>1&&(j=e(j,l),C=e(C,l),A=j.length,b=C.length),O=A,p=C.slice(0,A),v=p.length;v<A;)p[v++]=0;P=j.slice(),P.unshift(0),w=j[0],j[1]>=ze/2&&++w;do l=0,s=t(j,p,A,v),s<0?(y=p[0],A!=v&&(y=y*ze+(p[1]||0)),l=y/w|0,l>1?(l>=ze&&(l=ze-1),f=e(j,l),d=f.length,v=p.length,s=t(f,p,d,v),s==1&&(l--,r(f,A<d?P:j,d))):(l==0&&(s=l=1),f=j.slice()),d=f.length,d<v&&f.unshift(0),r(p,f,v),s==-1&&(v=p.length,s=t(j,p,A,v),s<1&&(l++,r(p,A<v?P:j,v))),v=p.length):s===0&&(l++,p=[0]),m[u++]=l,s&&p[0]?p[v++]=C[O]||0:(p=[C[O]],v=1);while((O++<b||p[0]!==void 0)&&g--)}return m[0]||m.shift(),h.e=c,Ae(h,o?a+$e(h)+1:a)}})();function J_(e,t){var r,n,i,a,o,s,c=0,u=0,l=e.constructor,f=l.precision;if($e(e)>16)throw Error(Yv+$e(e));if(!e.s)return new l(st);for(Te=!1,s=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Kr(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new l(st),l.precision=s;;){if(i=Ae(i.times(e),s),r=r.times(++c),o=a.plus(ir(i,r,s)),$t(o.d).slice(0,s)===$t(a.d).slice(0,s)){for(;u--;)a=Ae(a.times(a),s);return l.precision=f,t==null?(Te=!0,Ae(a,f)):a}a=o}}function $e(e){for(var t=e.e*Ee,r=e.d[0];r>=10;r/=10)t++;return t}function yd(e,t,r){if(t>e.LN10.sd())throw Te=!0,r&&(e.precision=r),Error(bt+"LN10 precision limit exceeded");return Ae(new e(e.LN10),t)}function xr(e){for(var t="";e--;)t+="0";return t}function ha(e,t){var r,n,i,a,o,s,c,u,l,f=1,d=10,h=e,m=h.d,p=h.constructor,v=p.precision;if(h.s<1)throw Error(bt+(h.s?"NaN":"-Infinity"));if(h.eq(st))return new p(0);if(t==null?(Te=!1,u=v):u=t,h.eq(10))return t==null&&(Te=!0),yd(p,u);if(u+=d,p.precision=u,r=$t(m),n=r.charAt(0),a=$e(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=$t(h.d),n=r.charAt(0),f++;a=$e(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return c=yd(p,u+2,v).times(a+""),h=ha(new p(n+"."+r.slice(1)),u-d).plus(c),p.precision=v,t==null?(Te=!0,Ae(h,v)):h;for(s=o=h=ir(h.minus(st),h.plus(st),u),l=Ae(h.times(h),u),i=3;;){if(o=Ae(o.times(l),u),c=s.plus(ir(o,new p(i),u)),$t(c.d).slice(0,u)===$t(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(yd(p,u+2,v).times(a+""))),s=ir(s,new p(f),u),p.precision=v,t==null?(Te=!0,Ae(s,v)):s;s=c,i+=2}}function j0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Oi(r/Ee),e.d=[],n=(r+1)%Ee,r<0&&(n+=Ee),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ee;n<i;)e.d.push(+t.slice(n,n+=Ee));t=t.slice(n),n=Ee-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Te&&(e.e>ns||e.e<-ns))throw Error(Yv+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ae(e,t,r){var n,i,a,o,s,c,u,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ee,i=t,u=f[l=0];else{if(l=Math.ceil((n+1)/Ee),a=f.length,l>=a)return e;for(u=a=f[l],o=1;a>=10;a/=10)o++;n%=Ee,i=n-Ee+o}if(r!==void 0&&(a=Kr(10,o-i-1),s=u/a%10|0,c=t<0||f[l+1]!==void 0||u%a,c=r<4?(s||c)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||c||r==6&&(n>0?i>0?u/Kr(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(a=$e(e),f.length=1,t=t-a-1,f[0]=Kr(10,(Ee-t%Ee)%Ee),e.e=Oi(-t/Ee)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=Kr(10,Ee-n),f[l]=i>0?(u/Kr(10,o-i)%Kr(10,i)|0)*a:0),c)for(;;)if(l==0){(f[0]+=a)==ze&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=ze)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Te&&(e.e>ns||e.e<-ns))throw Error(Yv+$e(e));return e}function Q_(e,t){var r,n,i,a,o,s,c,u,l,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Te?Ae(t,h):t;if(c=e.d,f=t.d,n=t.e,u=e.e,c=c.slice(),o=u-n,o){for(l=o<0,l?(r=c,o=-o,s=f.length):(r=f,n=u,s=c.length),i=Math.max(Math.ceil(h/Ee),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,s=f.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}o=0}for(l&&(r=c,c=f,f=r,t.s=-t.s),s=c.length,i=f.length-s;i>0;--i)c[s++]=0;for(i=f.length;i>o;){if(c[--i]<f[i]){for(a=i;a&&c[--a]===0;)c[a]=ze-1;--c[a],c[i]+=ze}c[i]-=f[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,Te?Ae(t,h):t):new d(0)}function an(e,t,r){var n,i=$e(e),a=$t(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+xr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+xr(-i-1)+a,r&&(n=r-o)>0&&(a+=xr(n))):i>=o?(a+=xr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+xr(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=xr(n))),e.s<0?"-"+a:a}function I0(e,t){if(e.length>t)return e.length=t,!0}function eP(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(tn+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return j0(o,a.toString())}else if(typeof a!="string")throw Error(tn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,gL.test(a))j0(o,a);else throw Error(tn+a)}if(i.prototype=Q,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=eP,i.config=i.set=bL,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function bL(e){if(!e||typeof e!="object")throw Error(bt+"Object expected");var t,r,n,i=["precision",1,wi,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Oi(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(tn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(tn+r+": "+n);return this}var Xv=eP(yL);st=new Xv(1);const we=Xv;function xL(e){return AL(e)||SL(e)||OL(e)||wL()}function wL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OL(e,t){if(e){if(typeof e=="string")return Wp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wp(e,t)}}function SL(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function AL(e){if(Array.isArray(e))return Wp(e)}function Wp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _L=function(t){return t},tP={},rP=function(t){return t===tP},k0=function(t){return function r(){return arguments.length===0||arguments.length===1&&rP(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},PL=function e(t,r){return t===1?r:k0(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==tP}).length;return o>=t?r.apply(void 0,i):e(t-o,k0(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=i.map(function(f){return rP(f)?c.shift():f});return r.apply(void 0,xL(l).concat(c))}))})},gc=function(t){return PL(t.length,t)},Up=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},EL=gc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),TL=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return _L;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,c){return c(s)},a.apply(void 0,arguments))}},Hp=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},nP=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,c){return s===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function CL(e){var t;return e===0?t=1:t=Math.floor(new we(e).abs().log(10).toNumber())+1,t}function jL(e,t,r){for(var n=new we(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var IL=gc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),kL=gc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),RL=gc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const bc={rangeStep:jL,getDigitCount:CL,interpolateNumber:IL,uninterpolateNumber:kL,uninterpolateTruncation:RL};function Vp(e){return NL(e)||$L(e)||iP(e)||ML()}function ML(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $L(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function NL(e){if(Array.isArray(e))return Kp(e)}function va(e,t){return BL(e)||LL(e,t)||iP(e,t)||DL()}function DL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iP(e,t){if(e){if(typeof e=="string")return Kp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kp(e,t)}}function Kp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LL(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function BL(e){if(Array.isArray(e))return e}function aP(e){var t=va(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function oP(e,t,r){if(e.lte(0))return new we(0);var n=bc.getDigitCount(e.toNumber()),i=new we(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new we(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=s.mul(i);return t?c:new we(Math.ceil(c))}function qL(e,t,r){var n=1,i=new we(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new we(10).pow(bc.getDigitCount(e)-1),i=new we(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new we(Math.floor(e)))}else e===0?i=new we(Math.floor((t-1)/2)):r||(i=new we(Math.floor(e)));var o=Math.floor((t-1)/2),s=TL(EL(function(c){return i.add(new we(c-o).mul(n)).toNumber()}),Up);return s(0,t)}function sP(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new we(0),tickMin:new we(0),tickMax:new we(0)};var a=oP(new we(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new we(0):(o=new we(e).add(t).div(2),o=o.sub(new we(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new we(t).sub(o).div(a).toNumber()),u=s+c+1;return u>r?sP(e,t,r,n,i+1):(u<r&&(c=t>0?c+(r-u):c,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new we(s).mul(a)),tickMax:o.add(new we(c).mul(a))})}function FL(e){var t=va(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=aP([r,n]),c=va(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(Vp(Up(0,i-1).map(function(){return 1/0}))):[].concat(Vp(Up(0,i-1).map(function(){return-1/0})),[l]);return r>n?Hp(f):f}if(u===l)return qL(u,i,a);var d=sP(u,l,o,a),h=d.step,m=d.tickMin,p=d.tickMax,v=bc.rangeStep(m,p.add(new we(.1).mul(h)),h);return r>n?Hp(v):v}function zL(e,t){var r=va(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=aP([n,i]),s=va(o,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var l=Math.max(t,2),f=oP(new we(u).sub(c).div(l-1),a,0),d=[].concat(Vp(bc.rangeStep(new we(c),new we(u).sub(new we(.99).mul(f)),f)),[u]);return n>i?Hp(d):d}var WL=nP(FL),UL=nP(zL),HL=process.env.NODE_ENV==="production",gd="Invariant failed";function tt(e,t){if(HL)throw new Error(gd);var r=typeof t=="function"?t():t,n=r?"".concat(gd,": ").concat(r):gd;throw new Error(n)}var VL=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function is(){return is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},is.apply(this,arguments)}function KL(e,t){return ZL(e)||XL(e,t)||YL(e,t)||GL()}function GL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YL(e,t){if(e){if(typeof e=="string")return R0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R0(e,t)}}function R0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function ZL(e){if(Array.isArray(e))return e}function JL(e,t){if(e==null)return{};var r=QL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function e2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lP(n.key),n)}}function r2(e,t,r){return t&&t2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n2(e,t,r){return t=as(t),i2(e,cP()?Reflect.construct(t,r||[],as(e).constructor):t.apply(e,r))}function i2(e,t){if(t&&(Wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a2(e)}function a2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cP=function(){return!!e})()}function as(e){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},as(e)}function o2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gp(e,t)}function Gp(e,t){return Gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gp(e,t)}function uP(e,t,r){return t=lP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lP(e){var t=s2(e,"string");return Wn(t)=="symbol"?t:t+""}function s2(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Si=(function(e){function t(){return e2(this,t),n2(this,t,arguments)}return o2(t,e),r2(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,c=n.data,u=n.dataPointFormatter,l=n.xAxis,f=n.yAxis,d=JL(n,VL),h=J(d,!1);this.props.direction==="x"&&l.type!=="number"&&(process.env.NODE_ENV!=="production"?tt(!1,'ErrorBar requires Axis type property to be "number".'):tt());var m=c.map(function(p){var v=u(p,s),y=v.x,g=v.y,x=v.value,O=v.errorVal;if(!O)return null;var b=[],w,A;if(Array.isArray(O)){var P=KL(O,2);w=P[0],A=P[1]}else w=A=O;if(a==="vertical"){var T=l.scale,I=g+i,C=I+o,j=I-o,k=T(x-w),$=T(x+A);b.push({x1:$,y1:C,x2:$,y2:j}),b.push({x1:k,y1:I,x2:$,y2:I}),b.push({x1:k,y1:C,x2:k,y2:j})}else if(a==="horizontal"){var N=f.scale,R=y+i,L=R-o,M=R+o,U=N(x-w),D=N(x+A);b.push({x1:L,y1:D,x2:M,y2:D}),b.push({x1:R,y1:U,x2:R,y2:D}),b.push({x1:L,y1:U,x2:M,y2:U})}return S.createElement(ue,is({className:"recharts-errorBar",key:"bar-".concat(b.map(function(F){return"".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))},h),b.map(function(F){return S.createElement("line",is({},F,{key:"line-".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))}))});return S.createElement(ue,{className:"recharts-errorBars"},m)}}])})(S.Component);uP(Si,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});uP(Si,"displayName","ErrorBar");function ma(e){"@babel/helpers - typeof";return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ma(e)}function M0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M0(Object(r),!0).forEach(function(n){c2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c2(e,t,r){return t=u2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u2(e){var t=l2(e,"string");return ma(t)=="symbol"?t:t+""}function l2(e,t){if(ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fP=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=at(r,yt);if(!o)return null;var s=yt.defaultProps,c=s!==void 0?Wr(Wr({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(l,f){var d=f.item,h=f.props,m=h.sectors||h.data||[];return l.concat(m.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):u=(n||[]).map(function(l){var f=l.item,d=f.type.defaultProps,h=d!==void 0?Wr(Wr({},d),f.props):{},m=h.dataKey,p=h.name,v=h.legendType,y=h.hide;return{inactive:y,dataKey:m,type:c.iconType||v||"square",color:Zv(f),value:p||m,payload:h}}),Wr(Wr(Wr({},c),yt.getWithHeight(o,i)),{},{payload:u,item:o})};function ya(e){"@babel/helpers - typeof";return ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ya(e)}function $0(e){return h2(e)||p2(e)||d2(e)||f2()}function f2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d2(e,t){if(e){if(typeof e=="string")return Yp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yp(e,t)}}function p2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function h2(e){if(Array.isArray(e))return Yp(e)}function Yp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(r),!0).forEach(function(n){kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kn(e,t,r){return t=v2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v2(e){var t=m2(e,"string");return ya(t)=="symbol"?t:t+""}function m2(e,t){if(ya(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ya(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e,t,r){return oe(e)||oe(t)?r:Be(t)?ct(e,t,r):ae(t)?t(e):r}function Yi(e,t,r,n){var i=hL(e,function(s){return Se(s,t)});if(r==="number"){var a=i.filter(function(s){return G(s)||parseFloat(s)});return a.length?[yc(a),Or(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!oe(s)}):i;return o.map(function(s){return Be(s)||s instanceof Date?s:""})}var y2=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,u=0;u<s;u++){var l=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(Xe(f-l)!==Xe(d-f)){var m=[];if(Xe(d-f)===Xe(c[1]-c[0])){h=d;var p=f+c[1]-c[0];m[0]=Math.min(p,(p+l)/2),m[1]=Math.max(p,(p+l)/2)}else{h=l;var v=d+c[1]-c[0];m[0]=Math.min(f,(v+f)/2),m[1]=Math.max(f,(v+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var g=Math.min(l,d),x=Math.max(l,d);if(t>(g+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var O=0;O<s;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Zv=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ke(ke({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:s;break;default:c=s;break}return c},g2=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),c=0,u=s.length;c<u;c++)for(var l=a[s[c]].stackGroups,f=Object.keys(l),d=0,h=f.length;d<h;d++){var m=l[f[d]],p=m.items,v=m.cateAxisId,y=p.filter(function(A){return nr(A.type).indexOf("Bar")>=0});if(y&&y.length){var g=y[0].type.defaultProps,x=g!==void 0?ke(ke({},g),y[0].props):y[0].props,O=x.barSize,b=x[v];o[b]||(o[b]=[]);var w=oe(O)?r:O;o[b].push({item:y[0],stackList:y.slice(1),barSize:oe(w)?void 0:Ze(w,n,0)})}}return o},b2=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,c=o.length;if(c<1)return null;var u=Ze(r,i,0,!0),l,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/c,m=o.reduce(function(O,b){return O+b.barSize||0},0);m+=(c-1)*u,m>=i&&(m-=(c-1)*u,u=0),m>=i&&h>0&&(d=!0,h*=.9,m=c*h);var p=(i-m)/2>>0,v={offset:p-u,size:0};l=o.reduce(function(O,b){var w={item:b.item,position:{offset:v.offset+v.size+u,size:d?h:b.barSize}},A=[].concat($0(O),[w]);return v=A[A.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){A.push({item:P,position:v})}),A},f)}else{var y=Ze(n,i,0,!0);i-2*y-(c-1)*u<=0&&(u=0);var g=(i-2*y-(c-1)*u)/c;g>1&&(g>>=0);var x=s===+s?Math.min(g,s):g;l=o.reduce(function(O,b,w){var A=[].concat($0(O),[{item:b.item,position:{offset:y+(g+u)*w+(g-x)/2,size:x}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){A.push({item:P,position:A[A.length-1].position})}),A},f)}return l},x2=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,c=o-(s.left||0)-(s.right||0),u=fP({children:a,legendWidth:c});if(u){var l=i||{},f=l.width,d=l.height,h=u.align,m=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&m==="middle")&&h!=="center"&&G(t[h]))return ke(ke({},t),{},kn({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&m!=="middle"&&G(t[m]))return ke(ke({},t),{},kn({},m,t[m]+(d||0)))}return t},w2=function(t,r,n){return oe(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},dP=function(t,r,n,i,a){var o=r.props.children,s=Qe(o,Si).filter(function(u){return w2(i,a,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,l){var f=Se(l,n);if(oe(f))return u;var d=Array.isArray(f)?[yc(f),Or(f)]:[f,f],h=c.reduce(function(m,p){var v=Se(l,p,0),y=d[0]-Math.abs(Array.isArray(v)?v[0]:v),g=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,m[0]),Math.max(g,m[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},O2=function(t,r,n,i,a){var o=r.map(function(s){return dP(t,s,n,a,i)}).filter(function(s){return!oe(s)});return o&&o.length?o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},pP=function(t,r,n,i,a){var o=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&dP(t,c,u,i)||Yi(t,u,n,a)});if(n==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(c,u){for(var l=0,f=u.length;l<f;l++)s[u[l]]||(s[u[l]]=!0,c.push(u[l]));return c},[])},hP=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},vP=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,s=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||s.push(r),o||s.push(n),s},rr=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&s?.length>=2?Xe(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var l=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return l.filter(function(f){return!gi(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},bd=new WeakMap,ho=function(t,r){if(typeof r!="function")return t;bd.has(t)||bd.set(t,new WeakMap);var n=bd.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},mP=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:ua(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Qo(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Gi(),realScaleType:"point"}:a==="category"?{scale:ua(),realScaleType:"band"}:{scale:Qo(),realScaleType:"linear"};if(rn(i)){var c="scale".concat(rc(i));return{scale:(w0[c]||Gi)(),realScaleType:w0[c]?c:"point"}}return ae(i)?{scale:i}:{scale:Gi(),realScaleType:"point"}},D0=1e-4,yP=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-D0,o=Math.max(i[0],i[1])+D0,s=t(r[0]),c=t(r[n-1]);(s<a||s>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},S2=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},A2=function(t,r){if(!r||r.length!==2||!G(r[0])||!G(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!G(t[0])||t[0]<n)&&(a[0]=n),(!G(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},_2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var c=gi(t[s][n][1])?t[s][n][0]:t[s][n][1];c>=0?(t[s][n][0]=a,t[s][n][1]=a+c,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+c,o=t[s][n][1])}},P2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=gi(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},E2={sign:_2,expand:hk,none:$n,silhouette:vk,wiggle:mk,positive:P2},T2=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=E2[n],o=pk().keys(i).value(function(s,c){return+Se(s,c,0)}).order(_p).offset(a);return o(t)},C2=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,c={},u=s.reduce(function(f,d){var h,m=(h=d.type)!==null&&h!==void 0&&h.defaultProps?ke(ke({},d.type.defaultProps),d.props):d.props,p=m.stackId,v=m.hide;if(v)return f;var y=m[n],g=f[y]||{hasStack:!1,stackGroups:{}};if(Be(p)){var x=g.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(d),g.hasStack=!0,g.stackGroups[p]=x}else g.stackGroups[kr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ke(ke({},f),{},kn({},y,g))},c),l={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,v){var y=h.stackGroups[v];return ke(ke({},p),{},kn({},v,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:T2(t,y.items,a)}))},m)}return ke(ke({},f),{},kn({},d,h))},l)},gP=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var l=WL(u,a,s);return t.domain([yc(l),Or(l)]),{niceTicks:l}}if(a&&i==="number"){var f=t.domain(),d=UL(f,a,s);return{niceTicks:d}}return null};function Un(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!oe(i[t.dataKey])){var s=$o(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Se(i,oe(o)?t.dataKey:o);return oe(c)?null:t.scale(c)}var L0=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var c=Se(o,r.dataKey,r.domain[s]);return oe(c)?null:r.scale(c)-a/2+i},j2=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},I2=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ke(ke({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Be(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},k2=function(t){return t.reduce(function(r,n){return[yc(n.concat([r[0]]).filter(G)),Or(n.concat([r[1]]).filter(G))]},[1/0,-1/0])},bP=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,c=s.reduce(function(u,l){var f=k2(l.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},B0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,q0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xp=function(t,r,n){if(ae(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(G(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(B0.test(t[0])){var a=+B0.exec(t[0])[1];i[0]=r[0]-a}else ae(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(G(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(q0.test(t[1])){var o=+q0.exec(t[1])[1];i[1]=r[1]+o}else ae(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},os=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=_v(r,function(f){return f.coordinate}),o=1/0,s=1,c=a.length;s<c;s++){var u=a[s],l=a[s-1];o=Math.min((u.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},F0=function(t,r,n){return!t||!t.length||cr(t,ct(n,"type.defaultProps.domain"))?r:t},xP=function(t,r){var n=t.type.defaultProps?ke(ke({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,c=n.tooltipType,u=n.chartType,l=n.hide;return ke(ke({},J(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:Zv(t),value:Se(r,i),type:c,payload:r,chartType:u,hide:l})};function ga(e){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ga(e)}function z0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z0(Object(r),!0).forEach(function(n){wP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wP(e,t,r){return t=R2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R2(e){var t=M2(e,"string");return ga(t)=="symbol"?t:t+""}function M2(e,t){if(ga(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ga(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $2(e,t){return B2(e)||L2(e,t)||D2(e,t)||N2()}function N2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D2(e,t){if(e){if(typeof e=="string")return W0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W0(e,t)}}function W0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function B2(e){if(Array.isArray(e))return e}var ss=Math.PI/180,q2=function(t){return t*180/Math.PI},me=function(t,r,n,i){return{x:t+Math.cos(-ss*i)*n,y:r+Math.sin(-ss*i)*n}},OP=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},SP=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.startAngle,u=t.endAngle,l=Ze(t.cx,o,o/2),f=Ze(t.cy,s,s/2),d=OP(o,s,n),h=Ze(t.innerRadius,d,0),m=Ze(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(v,y){var g=r[y],x=g.domain,O=g.reversed,b;if(oe(g.range))i==="angleAxis"?b=[c,u]:i==="radiusAxis"&&(b=[h,m]),O&&(b=[b[1],b[0]]);else{b=g.range;var w=b,A=$2(w,2);c=A[0],u=A[1]}var P=mP(g,a),T=P.realScaleType,I=P.scale;I.domain(x).range(b),yP(I);var C=gP(I,Jt(Jt({},g),{},{realScaleType:T})),j=Jt(Jt(Jt({},g),C),{},{range:b,radius:m,realScaleType:T,scale:I,cx:l,cy:f,innerRadius:h,outerRadius:m,startAngle:c,endAngle:u});return Jt(Jt({},v),{},wP({},y,j))},{})},F2=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},z2=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=F2({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var c=(n-a)/s,u=Math.acos(c);return i>o&&(u=2*Math.PI-u),{radius:s,angle:q2(u),angleInRadian:u}},W2=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},U2=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},U0=function(t,r){var n=t.x,i=t.y,a=z2({x:n,y:i},r),o=a.radius,s=a.angle,c=r.innerRadius,u=r.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var l=W2(r),f=l.startAngle,d=l.endAngle,h=s,m;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;m=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;m=h>=d&&h<=f}return m?Jt(Jt({},r),{},{radius:o,angle:U2(h,r)}):null},AP=function(t){return!S.isValidElement(t)&&!ae(t)&&typeof t!="boolean"?t.className:""};function ba(e){"@babel/helpers - typeof";return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ba(e)}var H2=["offset"];function V2(e){return X2(e)||Y2(e)||G2(e)||K2()}function K2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G2(e,t){if(e){if(typeof e=="string")return Zp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zp(e,t)}}function Y2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X2(e){if(Array.isArray(e))return Zp(e)}function Zp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Z2(e,t){if(e==null)return{};var r=J2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function J2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function H0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H0(Object(r),!0).forEach(function(n){Q2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q2(e,t,r){return t=eB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eB(e){var t=tB(e,"string");return ba(t)=="symbol"?t:t+""}function tB(e,t){if(ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xa.apply(this,arguments)}var rB=function(t){var r=t.value,n=t.formatter,i=oe(t.children)?r:t.children;return ae(n)?n(i):i},nB=function(t,r){var n=Xe(r-t),i=Math.min(Math.abs(r-t),360);return n*i},iB=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,c=a,u=c.cx,l=c.cy,f=c.innerRadius,d=c.outerRadius,h=c.startAngle,m=c.endAngle,p=c.clockWise,v=(f+d)/2,y=nB(h,m),g=y>=0?1:-1,x,O;i==="insideStart"?(x=h+g*o,O=p):i==="insideEnd"?(x=m-g*o,O=!p):i==="end"&&(x=m+g*o,O=p),O=y<=0?O:!O;var b=me(u,l,v,x),w=me(u,l,v,x+(O?1:-1)*359),A="M".concat(b.x,",").concat(b.y,`
10
+ height and width.`,N,R,o,c,l,f,r);var L=!Array.isArray(h)&&nr(h.type).endsWith("Chart");return S.Children.map(h,function(M){return S.isValidElement(M)?S.cloneElement(M,co({width:N,height:R},L?{style:co({height:"100%",width:"100%",maxHeight:R,maxWidth:N},M.props.style)}:{})):M})},[r,h,c,d,f,l,T,o]);return S.createElement("div",{id:v?"".concat(v):void 0,className:ce("recharts-responsive-container",y),style:co(co({},O),{},{width:o,height:c,minWidth:l,minHeight:f,maxHeight:d}),ref:b},j)}),Rr=function(t){return null};Rr.displayName="Cell";function sa(e){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(e)}function Ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $p(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ex(Object(r),!0).forEach(function(n){a$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ex(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a$(e,t,r){return t=o$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$(e){var t=s$(e,"string");return sa(t)=="symbol"?t:t+""}function s$(e,t){if(sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gn={widthCache:{},cacheCount:0},c$=2e3,u$={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Tx="recharts_measurement_span";function l$(e){var t=$p({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Ki=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Vt.isSsr)return{width:0,height:0};var n=l$(r),i=JSON.stringify({text:t,copyStyle:n});if(gn.widthCache[i])return gn.widthCache[i];try{var a=document.getElementById(Tx);a||(a=document.createElement("span"),a.setAttribute("id",Tx),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=$p($p({},u$),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),c={width:s.width,height:s.height};return gn.widthCache[i]=c,++gn.cacheCount>c$&&(gn.cacheCount=0,gn.widthCache={}),c}catch{return{width:0,height:0}}},f$=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function Vo(e,t){return v$(e)||h$(e,t)||p$(e,t)||d$()}function d$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p$(e,t){if(e){if(typeof e=="string")return Cx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cx(e,t)}}function Cx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function v$(e){if(Array.isArray(e))return e}function m$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g$(n.key),n)}}function y$(e,t,r){return t&&jx(e.prototype,t),r&&jx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g$(e){var t=b$(e,"string");return ca(t)=="symbol"?t:t+""}function b$(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ix=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,kx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,x$=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,w$=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,d_={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},O$=Object.keys(d_),_n="NaN";function S$(e,t){return e*d_[t]}var uo=(function(){function e(t,r){m$(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!x$.test(r)&&(this.num=NaN,this.unit=""),O$.includes(r)&&(this.num=S$(t,r),this.unit="px")}return y$(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=w$.exec(r))!==null&&n!==void 0?n:[],a=Vo(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function p_(e){if(e.includes(_n))return _n;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Ix.exec(t))!==null&&r!==void 0?r:[],i=Vo(n,4),a=i[1],o=i[2],s=i[3],c=uo.parse(a??""),u=uo.parse(s??""),l=o==="*"?c.multiply(u):c.divide(u);if(l.isNaN())return _n;t=t.replace(Ix,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=kx.exec(t))!==null&&f!==void 0?f:[],h=Vo(d,4),m=h[1],p=h[2],v=h[3],y=uo.parse(m??""),g=uo.parse(v??""),x=p==="+"?y.add(g):y.subtract(g);if(x.isNaN())return _n;t=t.replace(kx,x.toString())}return t}var Rx=/\(([^()]*)\)/;function A$(e){for(var t=e;t.includes("(");){var r=Rx.exec(t),n=Vo(r,2),i=n[1];t=t.replace(Rx,p_(i))}return t}function _$(e){var t=e.replace(/\s+/g,"");return t=A$(t),t=p_(t),t}function P$(e){try{return _$(e)}catch{return _n}}function rd(e){var t=P$(e.slice(5,-1));return t===_n?"":t}var E$=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],T$=["dx","dy","angle","className","breakAll"];function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Np.apply(this,arguments)}function Mx(e,t){if(e==null)return{};var r=C$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function C$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $x(e,t){return R$(e)||k$(e,t)||I$(e,t)||j$()}function j$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I$(e,t){if(e){if(typeof e=="string")return Nx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nx(e,t)}}function Nx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function R$(e){if(Array.isArray(e))return e}var h_=/[ \f\n\r\t\v\u2028\u2029]+/,v_=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];oe(r)||(n?a=r.toString().split(""):a=r.toString().split(h_));var o=a.map(function(c){return{word:c,width:Ki(c,i).width}}),s=n?0:Ki(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},M$=function(t,r,n,i,a){var o=t.maxLines,s=t.children,c=t.style,u=t.breakAll,l=G(o),f=s,d=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(R,L){var M=L.word,U=L.width,D=R[R.length-1];if(D&&(i==null||a||D.width+U+n<Number(i)))D.words.push(M),D.width+=U+n;else{var F={words:[M],width:U};R.push(F)}return R},[])},h=d(r),m=function(N){return N.reduce(function(R,L){return R.width>L.width?R:L})};if(!l)return h;for(var p="…",v=function(N){var R=f.slice(0,N),L=v_({breakAll:u,style:c,children:R+p}).wordsWithComputedWidth,M=d(L),U=M.length>o||m(M).width>Number(i);return[U,M]},y=0,g=f.length-1,x=0,O;y<=g&&x<=f.length-1;){var b=Math.floor((y+g)/2),w=b-1,A=v(w),P=$x(A,2),T=P[0],I=P[1],C=v(b),j=$x(C,1),k=j[0];if(!T&&!k&&(y=b+1),T&&k&&(g=b-1),!T&&k){O=I;break}x++}return O||h},Dx=function(t){var r=oe(t)?[]:t.toString().split(h_);return[{words:r}]},$$=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Vt.isSsr){var c,u,l=v_({breakAll:o,children:i,style:a});if(l){var f=l.wordsWithComputedWidth,d=l.spaceWidth;c=f,u=d}else return Dx(i);return M$({breakAll:o,children:i,maxLines:s,style:a},c,u,r,n)}return Dx(i)},Lx="#808080",nn=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,l=t.scaleToFit,f=l===void 0?!1:l,d=t.textAnchor,h=d===void 0?"start":d,m=t.verticalAnchor,p=m===void 0?"end":m,v=t.fill,y=v===void 0?Lx:v,g=Mx(t,E$),x=S.useMemo(function(){return $$({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),O=g.dx,b=g.dy,w=g.angle,A=g.className,P=g.breakAll,T=Mx(g,T$);if(!Be(n)||!Be(a))return null;var I=n+(G(O)?O:0),C=a+(G(b)?b:0),j;switch(p){case"start":j=rd("calc(".concat(u,")"));break;case"middle":j=rd("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:j=rd("calc(".concat(x.length-1," * -").concat(s,")"));break}var k=[];if(f){var $=x[0].width,N=g.width;k.push("scale(".concat((G(N)?N/$:1)/$,")"))}return w&&k.push("rotate(".concat(w,", ").concat(I,", ").concat(C,")")),k.length&&(T.transform=k.join(" ")),S.createElement("text",Np({},J(T,!0),{x:I,y:C,className:ce("recharts-text",A),textAnchor:h,fill:y.includes("url")?Lx:y}),x.map(function(R,L){var M=R.words.join(P?"":" ");return S.createElement("tspan",{x:I,dy:L===0?j:s,key:"".concat(M,"-").concat(L)},M)}))};function _r(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function N$(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Tv(e){let t,r,n;e.length!==2?(t=_r,r=(s,c)=>_r(e(s),c),n=(s,c)=>e(s)-c):(t=e===_r||e===N$?e:D$,r=e,n=e);function i(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<0?u=f+1:l=f}while(u<l)}return u}function a(s,c,u=0,l=s.length){if(u<l){if(t(c,c)!==0)return l;do{const f=u+l>>>1;r(s[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function o(s,c,u=0,l=s.length){const f=i(s,c,u,l-1);return f>u&&n(s[f-1],c)>-n(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function D$(){return 0}function m_(e){return e===null?NaN:+e}function*L$(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const B$=Tv(_r),Wa=B$.right;Tv(m_).center;class Bx extends Map{constructor(t,r=z$){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(qx(this,t))}has(t){return super.has(qx(this,t))}set(t,r){return super.set(q$(this,t),r)}delete(t){return super.delete(F$(this,t))}}function qx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function q$({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function F$({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function z$(e){return e!==null&&typeof e=="object"?e.valueOf():e}function W$(e=_r){if(e===_r)return y_;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function y_(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const U$=Math.sqrt(50),H$=Math.sqrt(10),V$=Math.sqrt(2);function Ko(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=U$?10:a>=H$?5:a>=V$?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=r&&r<2?Ko(e,t,r*2):[s,c,u]}function Dp(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Ko(t,e,r):Ko(e,t,r);if(!(a>=i))return[];const s=a-i+1,c=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)c[u]=(a-u)/-o;else for(let u=0;u<s;++u)c[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(i+u)/-o;else for(let u=0;u<s;++u)c[u]=(i+u)*o;return c}function Lp(e,t,r){return t=+t,e=+e,r=+r,Ko(e,t,r)[2]}function Bp(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Lp(t,e,r):Lp(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Fx(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function zx(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function g_(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?y_:W$(i);n>r;){if(n-r>600){const c=n-r+1,u=t-r+1,l=Math.log(c),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(c-f)/c)*(u-c/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/c+d)),m=Math.min(n,Math.floor(t+(c-u)*f/c+d));g_(e,t,h,m,i)}const a=e[t];let o=r,s=n;for($i(e,r,t),i(e[n],a)>0&&$i(e,r,n);o<s;){for($i(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?$i(e,r,s):(++s,$i(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function $i(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function K$(e,t,r){if(e=Float64Array.from(L$(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return zx(e);if(t>=1)return Fx(e);var n,i=(n-1)*t,a=Math.floor(i),o=Fx(g_(e,a).subarray(0,a+1)),s=zx(e.subarray(a+1));return o+(s-o)*(i-a)}}function G$(e,t,r=m_){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function Y$(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function xt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function vr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const qp=Symbol("implicit");function Cv(){var e=new Bx,t=[],r=[],n=qp;function i(a){let o=e.get(a);if(o===void 0){if(n!==qp)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Bx;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Cv(t,r).unknown(n)},xt.apply(i,arguments),i}function ua(){var e=Cv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,c=0,u=0,l=.5;delete e.unknown;function f(){var d=t().length,h=i<n,m=h?i:n,p=h?n:i;a=(p-m)/Math.max(1,d-c+u*2),s&&(a=Math.floor(a)),m+=(p-m-a*(d-c))*l,o=a*(1-c),s&&(m=Math.round(m),o=Math.round(o));var v=Y$(d).map(function(y){return m+a*y});return r(h?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(c=Math.min(1,u=+d),f()):c},e.paddingInner=function(d){return arguments.length?(c=Math.min(1,d),f()):c},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return ua(t(),[n,i]).round(s).paddingInner(c).paddingOuter(u).align(l)},xt.apply(f(),arguments)}function b_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return b_(t())},e}function Gi(){return b_(ua.apply(null,arguments).paddingInner(1))}function jv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function x_(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ua(){}var la=.7,Go=1/la,In="\\s*([+-]?\\d+)\\s*",fa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",X$=/^#([0-9a-f]{3,8})$/,Z$=new RegExp(`^rgb\\(${In},${In},${In}\\)$`),J$=new RegExp(`^rgb\\(${Lt},${Lt},${Lt}\\)$`),Q$=new RegExp(`^rgba\\(${In},${In},${In},${fa}\\)$`),eN=new RegExp(`^rgba\\(${Lt},${Lt},${Lt},${fa}\\)$`),tN=new RegExp(`^hsl\\(${fa},${Lt},${Lt}\\)$`),rN=new RegExp(`^hsla\\(${fa},${Lt},${Lt},${fa}\\)$`),Wx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};jv(Ua,da,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ux,formatHex:Ux,formatHex8:nN,formatHsl:iN,formatRgb:Hx,toString:Hx});function Ux(){return this.rgb().formatHex()}function nN(){return this.rgb().formatHex8()}function iN(){return w_(this).formatHsl()}function Hx(){return this.rgb().formatRgb()}function da(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=X$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Vx(t):r===3?new et(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?lo(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?lo(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Z$.exec(e))?new et(t[1],t[2],t[3],1):(t=J$.exec(e))?new et(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Q$.exec(e))?lo(t[1],t[2],t[3],t[4]):(t=eN.exec(e))?lo(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tN.exec(e))?Yx(t[1],t[2]/100,t[3]/100,1):(t=rN.exec(e))?Yx(t[1],t[2]/100,t[3]/100,t[4]):Wx.hasOwnProperty(e)?Vx(Wx[e]):e==="transparent"?new et(NaN,NaN,NaN,0):null}function Vx(e){return new et(e>>16&255,e>>8&255,e&255,1)}function lo(e,t,r,n){return n<=0&&(e=t=r=NaN),new et(e,t,r,n)}function aN(e){return e instanceof Ua||(e=da(e)),e?(e=e.rgb(),new et(e.r,e.g,e.b,e.opacity)):new et}function Fp(e,t,r,n){return arguments.length===1?aN(e):new et(e,t,r,n??1)}function et(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}jv(et,Fp,x_(Ua,{brighter(e){return e=e==null?Go:Math.pow(Go,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new et(en(this.r),en(this.g),en(this.b),Yo(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Kx,formatHex:Kx,formatHex8:oN,formatRgb:Gx,toString:Gx}));function Kx(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}`}function oN(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}${Xr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gx(){const e=Yo(this.opacity);return`${e===1?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${e===1?")":`, ${e})`}`}function Yo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function en(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xr(e){return e=en(e),(e<16?"0":"")+e.toString(16)}function Yx(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new _t(e,t,r,n)}function w_(e){if(e instanceof _t)return new _t(e.h,e.s,e.l,e.opacity);if(e instanceof Ua||(e=da(e)),!e)return new _t;if(e instanceof _t)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,c=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new _t(o,s,c,e.opacity)}function sN(e,t,r,n){return arguments.length===1?w_(e):new _t(e,t,r,n??1)}function _t(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}jv(_t,sN,x_(Ua,{brighter(e){return e=e==null?Go:Math.pow(Go,e),new _t(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?la:Math.pow(la,e),new _t(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new et(nd(e>=240?e-240:e+120,i,n),nd(e,i,n),nd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new _t(Xx(this.h),fo(this.s),fo(this.l),Yo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Yo(this.opacity);return`${e===1?"hsl(":"hsla("}${Xx(this.h)}, ${fo(this.s)*100}%, ${fo(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Xx(e){return e=(e||0)%360,e<0?e+360:e}function fo(e){return Math.max(0,Math.min(1,e||0))}function nd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Iv=e=>()=>e;function cN(e,t){return function(r){return e+r*t}}function uN(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function lN(e){return(e=+e)==1?O_:function(t,r){return r-t?uN(t,r,e):Iv(isNaN(t)?r:t)}}function O_(e,t){var r=t-e;return r?cN(e,r):Iv(isNaN(e)?t:e)}const Zx=(function e(t){var r=lN(t);function n(i,a){var o=r((i=Fp(i)).r,(a=Fp(a)).r),s=r(i.g,a.g),c=r(i.b,a.b),u=O_(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return n.gamma=e,n})(1);function fN(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function dN(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function pN(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=xi(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function hN(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Xo(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function vN(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=xi(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var zp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,id=new RegExp(zp.source,"g");function mN(e){return function(){return e}}function yN(e){return function(t){return e(t)+""}}function gN(e,t){var r=zp.lastIndex=id.lastIndex=0,n,i,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(n=zp.exec(e))&&(i=id.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Xo(n,i)})),r=id.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?yN(c[0].x):mN(t):(t=c.length,function(u){for(var l=0,f;l<t;++l)s[(f=c[l]).i]=f.x(u);return s.join("")})}function xi(e,t){var r=typeof t,n;return t==null||r==="boolean"?Iv(t):(r==="number"?Xo:r==="string"?(n=da(t))?(t=n,Zx):gN:t instanceof da?Zx:t instanceof Date?hN:dN(t)?fN:Array.isArray(t)?pN:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?vN:Xo)(e,t)}function kv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function bN(e,t){t===void 0&&(t=e,e=xi);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function xN(e){return function(){return e}}function Zo(e){return+e}var Jx=[0,1];function Je(e){return e}function Wp(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:xN(isNaN(t)?NaN:.5)}function wN(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ON(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Wp(i,n),a=r(o,a)):(n=Wp(n,i),a=r(a,o)),function(s){return a(n(s))}}function SN(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Wp(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var c=Wa(e,s,1,n)-1;return a[c](i[c](s))}}function Ha(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lc(){var e=Jx,t=Jx,r=xi,n,i,a,o=Je,s,c,u;function l(){var d=Math.min(e.length,t.length);return o!==Je&&(o=wN(e[0],e[d-1])),s=d>2?SN:ON,c=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(c||(c=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=s(t,e.map(n),Xo)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Zo),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=kv,l()},f.clamp=function(d){return arguments.length?(o=d?!0:Je,l()):o!==Je},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,l()}}function Rv(){return lc()(Je,Je)}function AN(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Jo(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function qn(e){return e=Jo(Math.abs(e)),e?e[1]:NaN}function _N(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>n&&(s=Math.max(1,n-c)),a.push(r.substring(i-=s,i+s)),!((c+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function PN(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var EN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pa(e){if(!(t=EN.exec(e)))throw new Error("invalid format: "+e);var t;return new Mv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}pa.prototype=Mv.prototype;function Mv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Mv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function TN(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var S_;function CN(e,t){var r=Jo(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(S_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Jo(e,Math.max(0,t+a-1))[0]}function Qx(e,t){var r=Jo(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const e0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:AN,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Qx(e*100,t),r:Qx,s:CN,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function t0(e){return e}var r0=Array.prototype.map,n0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jN(e){var t=e.grouping===void 0||e.thousands===void 0?t0:_N(r0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?t0:PN(r0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(f){f=pa(f);var d=f.fill,h=f.align,m=f.sign,p=f.symbol,v=f.zero,y=f.width,g=f.comma,x=f.precision,O=f.trim,b=f.type;b==="n"?(g=!0,b="g"):e0[b]||(x===void 0&&(x=12),O=!0,b="g"),(v||d==="0"&&h==="=")&&(v=!0,d="0",h="=");var w=p==="$"?r:p==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",A=p==="$"?n:/[%p]/.test(b)?o:"",P=e0[b],T=/[defgprs%]/.test(b);x=x===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function I(C){var j=w,k=A,$,N,R;if(b==="c")k=P(C)+k,C="";else{C=+C;var L=C<0||1/C<0;if(C=isNaN(C)?c:P(Math.abs(C),x),O&&(C=TN(C)),L&&+C==0&&m!=="+"&&(L=!1),j=(L?m==="("?m:s:m==="-"||m==="("?"":m)+j,k=(b==="s"?n0[8+S_/3]:"")+k+(L&&m==="("?")":""),T){for($=-1,N=C.length;++$<N;)if(R=C.charCodeAt($),48>R||R>57){k=(R===46?i+C.slice($+1):C.slice($))+k,C=C.slice(0,$);break}}}g&&!v&&(C=t(C,1/0));var M=j.length+C.length+k.length,U=M<y?new Array(y-M+1).join(d):"";switch(g&&v&&(C=t(U+C,U.length?y-k.length:1/0),U=""),h){case"<":C=j+C+k+U;break;case"=":C=j+U+C+k;break;case"^":C=U.slice(0,M=U.length>>1)+j+C+k+U.slice(M);break;default:C=U+j+C+k;break}return a(C)}return I.toString=function(){return f+""},I}function l(f,d){var h=u((f=pa(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(qn(d)/3)))*3,p=Math.pow(10,-m),v=n0[8+m/3];return function(y){return h(p*y)+v}}return{format:u,formatPrefix:l}}var po,$v,A_;IN({thousands:",",grouping:[3],currency:["$",""]});function IN(e){return po=jN(e),$v=po.format,A_=po.formatPrefix,po}function kN(e){return Math.max(0,-qn(Math.abs(e)))}function RN(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(qn(t)/3)))*3-qn(Math.abs(e)))}function MN(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,qn(t)-qn(e))+1}function __(e,t,r,n){var i=Bp(e,t,r),a;switch(n=pa(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=RN(i,o))&&(n.precision=a),A_(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=MN(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=kN(i))&&(n.precision=a-(n.type==="%")*2);break}}return $v(n)}function Mr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Dp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return __(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],c,u,l=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);l-- >0;){if(u=Lp(o,s,r),u===c)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function Qo(){var e=Rv();return e.copy=function(){return Ha(e,Qo())},xt.apply(e,arguments),Mr(e)}function P_(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Zo),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return P_(e).unknown(t)},e=arguments.length?Array.from(e,Zo):[0,1],Mr(r)}function E_(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function i0(e){return Math.log(e)}function a0(e){return Math.exp(e)}function $N(e){return-Math.log(-e)}function NN(e){return-Math.exp(-e)}function DN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function LN(e){return e===10?DN:e===Math.E?Math.exp:t=>Math.pow(e,t)}function BN(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function o0(e){return(t,r)=>-e(-t,r)}function Nv(e){const t=e(i0,a0),r=t.domain;let n=10,i,a;function o(){return i=BN(n),a=LN(n),r()[0]<0?(i=o0(i),a=o0(a),e($N,NN)):e(i0,a0),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const c=r();let u=c[0],l=c[c.length-1];const f=l<u;f&&([u,l]=[l,u]);let d=i(u),h=i(l),m,p;const v=s==null?10:+s;let y=[];if(!(n%1)&&h-d<v){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(m=1;m<n;++m)if(p=d<0?m/a(-d):m*a(d),!(p<u)){if(p>l)break;y.push(p)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(p=d>0?m/a(-d):m*a(d),!(p<u)){if(p>l)break;y.push(p)}y.length*2<v&&(y=Dp(u,l,v))}else y=Dp(d,h,Math.min(h-d,v)).map(a);return f?y.reverse():y},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=pa(c)).precision==null&&(c.trim=!0),c=$v(c)),s===1/0)return c;const u=Math.max(1,n*s/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=u?c(l):""}},t.nice=()=>r(E_(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function T_(){const e=Nv(lc()).domain([1,10]);return e.copy=()=>Ha(e,T_()).base(e.base()),xt.apply(e,arguments),e}function s0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function c0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Dv(e){var t=1,r=e(s0(t),c0(t));return r.constant=function(n){return arguments.length?e(s0(t=+n),c0(t)):t},Mr(r)}function C_(){var e=Dv(lc());return e.copy=function(){return Ha(e,C_()).constant(e.constant())},xt.apply(e,arguments)}function u0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function FN(e){return e<0?-e*e:e*e}function Lv(e){var t=e(Je,Je),r=1;function n(){return r===1?e(Je,Je):r===.5?e(qN,FN):e(u0(r),u0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Mr(t)}function Bv(){var e=Lv(lc());return e.copy=function(){return Ha(e,Bv()).exponent(e.exponent())},xt.apply(e,arguments),e}function zN(){return Bv.apply(null,arguments).exponent(.5)}function l0(e){return Math.sign(e)*e*e}function WN(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function j_(){var e=Rv(),t=[0,1],r=!1,n;function i(a){var o=WN(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(l0(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Zo)).map(l0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return j_(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},xt.apply(i,arguments),Mr(i)}function I_(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=G$(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Wa(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(_r),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return I_().domain(e).range(t).unknown(n)},xt.apply(a,arguments)}function k_(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Wa(n,c,0,r)]:a}function s(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,s()):i.slice()},o.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return k_().domain([e,t]).range(i).unknown(a)},xt.apply(Mr(o),arguments)}function R_(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Wa(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return R_().domain(e).range(t).unknown(r)},xt.apply(i,arguments)}const ad=new Date,od=new Date;function qe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const c=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;let u;do c.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return c},i.filter=a=>qe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(ad.setTime(+a),od.setTime(+o),e(ad),e(od),Math.floor(r(ad,od))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const es=qe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);es.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):es);es.range;const er=1e3,mt=er*60,tr=mt*60,ar=tr*24,qv=ar*7,f0=ar*30,sd=ar*365,Zr=qe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*er)},(e,t)=>(t-e)/er,e=>e.getUTCSeconds());Zr.range;const Fv=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getMinutes());Fv.range;const zv=qe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mt)},(e,t)=>(t-e)/mt,e=>e.getUTCMinutes());zv.range;const Wv=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*er-e.getMinutes()*mt)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getHours());Wv.range;const Uv=qe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCHours());Uv.range;const Va=qe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mt)/ar,e=>e.getDate()-1);Va.range;const fc=qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ar,e=>e.getUTCDate()-1);fc.range;const M_=qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ar,e=>Math.floor(e/ar));M_.range;function dn(e){return qe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*mt)/qv)}const dc=dn(0),ts=dn(1),UN=dn(2),HN=dn(3),Fn=dn(4),VN=dn(5),KN=dn(6);dc.range;ts.range;UN.range;HN.range;Fn.range;VN.range;KN.range;function pn(e){return qe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/qv)}const pc=pn(0),rs=pn(1),GN=pn(2),YN=pn(3),zn=pn(4),XN=pn(5),ZN=pn(6);pc.range;rs.range;GN.range;YN.range;zn.range;XN.range;ZN.range;const Hv=qe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Hv.range;const Vv=qe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Vv.range;const or=qe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());or.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});or.range;const sr=qe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());sr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});sr.range;function $_(e,t,r,n,i,a){const o=[[Zr,1,er],[Zr,5,5*er],[Zr,15,15*er],[Zr,30,30*er],[a,1,mt],[a,5,5*mt],[a,15,15*mt],[a,30,30*mt],[i,1,tr],[i,3,3*tr],[i,6,6*tr],[i,12,12*tr],[n,1,ar],[n,2,2*ar],[r,1,qv],[t,1,f0],[t,3,3*f0],[e,1,sd]];function s(u,l,f){const d=l<u;d&&([u,l]=[l,u]);const h=f&&typeof f.range=="function"?f:c(u,l,f),m=h?h.range(u,+l+1):[];return d?m.reverse():m}function c(u,l,f){const d=Math.abs(l-u)/f,h=Tv(([,,v])=>v).right(o,d);if(h===o.length)return e.every(Bp(u/sd,l/sd,f));if(h===0)return es.every(Math.max(Bp(u,l,f),1));const[m,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(p)}return[s,c]}const[JN,QN]=$_(sr,Vv,pc,M_,Uv,zv),[eD,tD]=$_(or,Hv,dc,Va,Wv,Fv);function cd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ud(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ni(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function rD(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Di(i),l=Li(i),f=Di(a),d=Li(a),h=Di(o),m=Li(o),p=Di(s),v=Li(s),y=Di(c),g=Li(c),x={a:L,A:M,b:U,B:D,c:null,d:y0,e:y0,f:_D,g:$D,G:DD,H:OD,I:SD,j:AD,L:N_,m:PD,M:ED,p:F,q:W,Q:x0,s:w0,S:TD,u:CD,U:jD,V:ID,w:kD,W:RD,x:null,X:null,y:MD,Y:ND,Z:LD,"%":b0},O={a:V,A:Y,b:re,B:ne,c:null,d:g0,e:g0,f:zD,g:JD,G:eL,H:BD,I:qD,j:FD,L:L_,m:WD,M:UD,p:H,q:Z,Q:x0,s:w0,S:HD,u:VD,U:KD,V:GD,w:YD,W:XD,x:null,X:null,y:ZD,Y:QD,Z:tL,"%":b0},b={a:I,A:C,b:j,B:k,c:$,d:v0,e:v0,f:gD,g:h0,G:p0,H:m0,I:m0,j:hD,L:yD,m:pD,M:vD,p:T,q:dD,Q:xD,s:wD,S:mD,u:sD,U:cD,V:uD,w:oD,W:lD,x:N,X:R,y:h0,Y:p0,Z:fD,"%":bD};x.x=w(r,x),x.X=w(n,x),x.c=w(t,x),O.x=w(r,O),O.X=w(n,O),O.c=w(t,O);function w(z,K){return function(X){var B=[],fe=-1,de=0,je=z.length,Ie,Fe,mr;for(X instanceof Date||(X=new Date(+X));++fe<je;)z.charCodeAt(fe)===37&&(B.push(z.slice(de,fe)),(Fe=d0[Ie=z.charAt(++fe)])!=null?Ie=z.charAt(++fe):Fe=Ie==="e"?" ":"0",(mr=K[Ie])&&(Ie=mr(X,Fe)),B.push(Ie),de=fe+1);return B.push(z.slice(de,fe)),B.join("")}}function A(z,K){return function(X){var B=Ni(1900,void 0,1),fe=P(B,z,X+="",0),de,je;if(fe!=X.length)return null;if("Q"in B)return new Date(B.Q);if("s"in B)return new Date(B.s*1e3+("L"in B?B.L:0));if(K&&!("Z"in B)&&(B.Z=0),"p"in B&&(B.H=B.H%12+B.p*12),B.m===void 0&&(B.m="q"in B?B.q:0),"V"in B){if(B.V<1||B.V>53)return null;"w"in B||(B.w=1),"Z"in B?(de=ud(Ni(B.y,0,1)),je=de.getUTCDay(),de=je>4||je===0?rs.ceil(de):rs(de),de=fc.offset(de,(B.V-1)*7),B.y=de.getUTCFullYear(),B.m=de.getUTCMonth(),B.d=de.getUTCDate()+(B.w+6)%7):(de=cd(Ni(B.y,0,1)),je=de.getDay(),de=je>4||je===0?ts.ceil(de):ts(de),de=Va.offset(de,(B.V-1)*7),B.y=de.getFullYear(),B.m=de.getMonth(),B.d=de.getDate()+(B.w+6)%7)}else("W"in B||"U"in B)&&("w"in B||(B.w="u"in B?B.u%7:"W"in B?1:0),je="Z"in B?ud(Ni(B.y,0,1)).getUTCDay():cd(Ni(B.y,0,1)).getDay(),B.m=0,B.d="W"in B?(B.w+6)%7+B.W*7-(je+5)%7:B.w+B.U*7-(je+6)%7);return"Z"in B?(B.H+=B.Z/100|0,B.M+=B.Z%100,ud(B)):cd(B)}}function P(z,K,X,B){for(var fe=0,de=K.length,je=X.length,Ie,Fe;fe<de;){if(B>=je)return-1;if(Ie=K.charCodeAt(fe++),Ie===37){if(Ie=K.charAt(fe++),Fe=b[Ie in d0?K.charAt(fe++):Ie],!Fe||(B=Fe(z,X,B))<0)return-1}else if(Ie!=X.charCodeAt(B++))return-1}return B}function T(z,K,X){var B=u.exec(K.slice(X));return B?(z.p=l.get(B[0].toLowerCase()),X+B[0].length):-1}function I(z,K,X){var B=h.exec(K.slice(X));return B?(z.w=m.get(B[0].toLowerCase()),X+B[0].length):-1}function C(z,K,X){var B=f.exec(K.slice(X));return B?(z.w=d.get(B[0].toLowerCase()),X+B[0].length):-1}function j(z,K,X){var B=y.exec(K.slice(X));return B?(z.m=g.get(B[0].toLowerCase()),X+B[0].length):-1}function k(z,K,X){var B=p.exec(K.slice(X));return B?(z.m=v.get(B[0].toLowerCase()),X+B[0].length):-1}function $(z,K,X){return P(z,t,K,X)}function N(z,K,X){return P(z,r,K,X)}function R(z,K,X){return P(z,n,K,X)}function L(z){return o[z.getDay()]}function M(z){return a[z.getDay()]}function U(z){return c[z.getMonth()]}function D(z){return s[z.getMonth()]}function F(z){return i[+(z.getHours()>=12)]}function W(z){return 1+~~(z.getMonth()/3)}function V(z){return o[z.getUTCDay()]}function Y(z){return a[z.getUTCDay()]}function re(z){return c[z.getUTCMonth()]}function ne(z){return s[z.getUTCMonth()]}function H(z){return i[+(z.getUTCHours()>=12)]}function Z(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var K=w(z+="",x);return K.toString=function(){return z},K},parse:function(z){var K=A(z+="",!1);return K.toString=function(){return z},K},utcFormat:function(z){var K=w(z+="",O);return K.toString=function(){return z},K},utcParse:function(z){var K=A(z+="",!0);return K.toString=function(){return z},K}}}var d0={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,nD=/^%/,iD=/[\\^$*+?|[\]().{}]/g;function ve(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function aD(e){return e.replace(iD,"\\$&")}function Di(e){return new RegExp("^(?:"+e.map(aD).join("|")+")","i")}function Li(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function oD(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function cD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function uD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function lD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function p0(e,t,r){var n=Ue.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function h0(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function fD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function dD(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function pD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function v0(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function hD(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function m0(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function vD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function mD(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function yD(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function gD(e,t,r){var n=Ue.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function bD(e,t,r){var n=nD.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function xD(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function wD(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function y0(e,t){return ve(e.getDate(),t,2)}function OD(e,t){return ve(e.getHours(),t,2)}function SD(e,t){return ve(e.getHours()%12||12,t,2)}function AD(e,t){return ve(1+Va.count(or(e),e),t,3)}function N_(e,t){return ve(e.getMilliseconds(),t,3)}function _D(e,t){return N_(e,t)+"000"}function PD(e,t){return ve(e.getMonth()+1,t,2)}function ED(e,t){return ve(e.getMinutes(),t,2)}function TD(e,t){return ve(e.getSeconds(),t,2)}function CD(e){var t=e.getDay();return t===0?7:t}function jD(e,t){return ve(dc.count(or(e)-1,e),t,2)}function D_(e){var t=e.getDay();return t>=4||t===0?Fn(e):Fn.ceil(e)}function ID(e,t){return e=D_(e),ve(Fn.count(or(e),e)+(or(e).getDay()===4),t,2)}function kD(e){return e.getDay()}function RD(e,t){return ve(ts.count(or(e)-1,e),t,2)}function MD(e,t){return ve(e.getFullYear()%100,t,2)}function $D(e,t){return e=D_(e),ve(e.getFullYear()%100,t,2)}function ND(e,t){return ve(e.getFullYear()%1e4,t,4)}function DD(e,t){var r=e.getDay();return e=r>=4||r===0?Fn(e):Fn.ceil(e),ve(e.getFullYear()%1e4,t,4)}function LD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ve(t/60|0,"0",2)+ve(t%60,"0",2)}function g0(e,t){return ve(e.getUTCDate(),t,2)}function BD(e,t){return ve(e.getUTCHours(),t,2)}function qD(e,t){return ve(e.getUTCHours()%12||12,t,2)}function FD(e,t){return ve(1+fc.count(sr(e),e),t,3)}function L_(e,t){return ve(e.getUTCMilliseconds(),t,3)}function zD(e,t){return L_(e,t)+"000"}function WD(e,t){return ve(e.getUTCMonth()+1,t,2)}function UD(e,t){return ve(e.getUTCMinutes(),t,2)}function HD(e,t){return ve(e.getUTCSeconds(),t,2)}function VD(e){var t=e.getUTCDay();return t===0?7:t}function KD(e,t){return ve(pc.count(sr(e)-1,e),t,2)}function B_(e){var t=e.getUTCDay();return t>=4||t===0?zn(e):zn.ceil(e)}function GD(e,t){return e=B_(e),ve(zn.count(sr(e),e)+(sr(e).getUTCDay()===4),t,2)}function YD(e){return e.getUTCDay()}function XD(e,t){return ve(rs.count(sr(e)-1,e),t,2)}function ZD(e,t){return ve(e.getUTCFullYear()%100,t,2)}function JD(e,t){return e=B_(e),ve(e.getUTCFullYear()%100,t,2)}function QD(e,t){return ve(e.getUTCFullYear()%1e4,t,4)}function eL(e,t){var r=e.getUTCDay();return e=r>=4||r===0?zn(e):zn.ceil(e),ve(e.getUTCFullYear()%1e4,t,4)}function tL(){return"+0000"}function b0(){return"%"}function x0(e){return+e}function w0(e){return Math.floor(+e/1e3)}var bn,q_,F_;rL({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function rL(e){return bn=rD(e),q_=bn.format,bn.parse,F_=bn.utcFormat,bn.utcParse,bn}function nL(e){return new Date(e)}function iL(e){return e instanceof Date?+e:+new Date(+e)}function Kv(e,t,r,n,i,a,o,s,c,u){var l=Rv(),f=l.invert,d=l.domain,h=u(".%L"),m=u(":%S"),p=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),g=u("%b %d"),x=u("%B"),O=u("%Y");function b(w){return(c(w)<w?h:s(w)<w?m:o(w)<w?p:a(w)<w?v:n(w)<w?i(w)<w?y:g:r(w)<w?x:O)(w)}return l.invert=function(w){return new Date(f(w))},l.domain=function(w){return arguments.length?d(Array.from(w,iL)):d().map(nL)},l.ticks=function(w){var A=d();return e(A[0],A[A.length-1],w??10)},l.tickFormat=function(w,A){return A==null?b:u(A)},l.nice=function(w){var A=d();return(!w||typeof w.range!="function")&&(w=t(A[0],A[A.length-1],w??10)),w?d(E_(A,w)):l},l.copy=function(){return Ha(l,Kv(e,t,r,n,i,a,o,s,c,u))},l}function aL(){return xt.apply(Kv(eD,tD,or,Hv,dc,Va,Wv,Fv,Zr,q_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function oL(){return xt.apply(Kv(JN,QN,sr,Vv,pc,fc,Uv,zv,Zr,F_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hc(){var e=0,t=1,r,n,i,a,o=Je,s=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function l(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),u):[o(0),o(1)]}}return u.range=l(xi),u.rangeRound=l(kv),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function $r(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function z_(){var e=Mr(hc()(Je));return e.copy=function(){return $r(e,z_())},vr.apply(e,arguments)}function W_(){var e=Nv(hc()).domain([1,10]);return e.copy=function(){return $r(e,W_()).base(e.base())},vr.apply(e,arguments)}function U_(){var e=Dv(hc());return e.copy=function(){return $r(e,U_()).constant(e.constant())},vr.apply(e,arguments)}function Gv(){var e=Lv(hc());return e.copy=function(){return $r(e,Gv()).exponent(e.exponent())},vr.apply(e,arguments)}function sL(){return Gv.apply(null,arguments).exponent(.5)}function H_(){var e=[],t=Je;function r(n){if(n!=null&&!isNaN(n=+n))return t((Wa(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(_r),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>K$(e,a/n))},r.copy=function(){return H_(t).domain(e)},vr.apply(r,arguments)}function vc(){var e=0,t=.5,r=1,n=1,i,a,o,s,c,u=Je,l,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+l(p))-a)*(n*p<n*a?s:c),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=l(e=+e),a=l(t=+t),o=l(r=+r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function m(p){return function(v){var y,g,x;return arguments.length?([y,g,x]=v,u=bN(p,[y,g,x]),h):[u(0),u(.5),u(1)]}}return h.range=m(xi),h.rangeRound=m(kv),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return l=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function V_(){var e=Mr(vc()(Je));return e.copy=function(){return $r(e,V_())},vr.apply(e,arguments)}function K_(){var e=Nv(vc()).domain([.1,1,10]);return e.copy=function(){return $r(e,K_()).base(e.base())},vr.apply(e,arguments)}function G_(){var e=Dv(vc());return e.copy=function(){return $r(e,G_()).constant(e.constant())},vr.apply(e,arguments)}function Yv(){var e=Lv(vc());return e.copy=function(){return $r(e,Yv()).exponent(e.exponent())},vr.apply(e,arguments)}function cL(){return Yv.apply(null,arguments).exponent(.5)}const O0=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ua,scaleDiverging:V_,scaleDivergingLog:K_,scaleDivergingPow:Yv,scaleDivergingSqrt:cL,scaleDivergingSymlog:G_,scaleIdentity:P_,scaleImplicit:qp,scaleLinear:Qo,scaleLog:T_,scaleOrdinal:Cv,scalePoint:Gi,scalePow:Bv,scaleQuantile:I_,scaleQuantize:k_,scaleRadial:j_,scaleSequential:z_,scaleSequentialLog:W_,scaleSequentialPow:Gv,scaleSequentialQuantile:H_,scaleSequentialSqrt:sL,scaleSequentialSymlog:U_,scaleSqrt:zN,scaleSymlog:C_,scaleThreshold:R_,scaleTime:aL,scaleUtc:oL,tickFormat:__},Symbol.toStringTag,{value:"Module"}));var ld,S0;function mc(){if(S0)return ld;S0=1;var e=mi();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],c=n(s);if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,l=s}return l}return ld=t,ld}var fd,A0;function Y_(){if(A0)return fd;A0=1;function e(t,r){return t>r}return fd=e,fd}var dd,_0;function uL(){if(_0)return dd;_0=1;var e=mc(),t=Y_(),r=bi();function n(i){return i&&i.length?e(i,r,t):void 0}return dd=n,dd}var lL=uL();const Or=ge(lL);var pd,P0;function X_(){if(P0)return pd;P0=1;function e(t,r){return t<r}return pd=e,pd}var hd,E0;function fL(){if(E0)return hd;E0=1;var e=mc(),t=X_(),r=bi();function n(i){return i&&i.length?e(i,r,t):void 0}return hd=n,hd}var dL=fL();const yc=ge(dL);var vd,T0;function pL(){if(T0)return vd;T0=1;var e=fv(),t=Ht(),r=i_(),n=rt();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return vd=i,vd}var md,C0;function hL(){if(C0)return md;C0=1;var e=r_(),t=pL();function r(n,i){return e(t(n,i),1)}return md=r,md}var vL=hL();const mL=ge(vL);var yd,j0;function yL(){if(j0)return yd;j0=1;var e=Av();function t(r,n){return e(r,n)}return yd=t,yd}var gL=yL();const cr=ge(gL);var wi=1e9,bL={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Zv,Te=!0,bt="[DecimalError] ",tn=bt+"Invalid argument: ",Xv=bt+"Exponent out of range: ",Oi=Math.floor,Kr=Math.pow,xL=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,st,ze=1e7,Ee=7,Z_=9007199254740991,ns=Oi(Z_/Ee),Q={};Q.absoluteValue=Q.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Q.comparedTo=Q.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};Q.decimalPlaces=Q.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ee;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Q.dividedBy=Q.div=function(e){return ir(this,new this.constructor(e))};Q.dividedToIntegerBy=Q.idiv=function(e){var t=this,r=t.constructor;return Ae(ir(t,new r(e),0,1),r.precision)};Q.equals=Q.eq=function(e){return!this.cmp(e)};Q.exponent=function(){return $e(this)};Q.greaterThan=Q.gt=function(e){return this.cmp(e)>0};Q.greaterThanOrEqualTo=Q.gte=function(e){return this.cmp(e)>=0};Q.isInteger=Q.isint=function(){return this.e>this.d.length-2};Q.isNegative=Q.isneg=function(){return this.s<0};Q.isPositive=Q.ispos=function(){return this.s>0};Q.isZero=function(){return this.s===0};Q.lessThan=Q.lt=function(e){return this.cmp(e)<0};Q.lessThanOrEqualTo=Q.lte=function(e){return this.cmp(e)<1};Q.logarithm=Q.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(st))throw Error(bt+"NaN");if(r.s<1)throw Error(bt+(r.s?"NaN":"-Infinity"));return r.eq(st)?new n(0):(Te=!1,t=ir(ha(r,a),ha(e,a),a),Te=!0,Ae(t,i))};Q.minus=Q.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?eP(t,e):J_(t,(e.s=-e.s,e))};Q.modulo=Q.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(bt+"NaN");return r.s?(Te=!1,t=ir(r,e,0,1).times(e),Te=!0,r.minus(t)):Ae(new n(r),i)};Q.naturalExponential=Q.exp=function(){return Q_(this)};Q.naturalLogarithm=Q.ln=function(){return ha(this)};Q.negated=Q.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Q.plus=Q.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?J_(t,e):eP(t,(e.s=-e.s,e))};Q.precision=Q.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(tn+e);if(t=$e(i)+1,n=i.d.length-1,r=n*Ee+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Q.squareRoot=Q.sqrt=function(){var e,t,r,n,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(bt+"NaN")}for(e=$e(s),Te=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=$t(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Oi((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(ir(s,a,o+2)).times(.5),$t(a.d).slice(0,o)===(t=$t(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ae(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Te=!0,Ae(n,r)};Q.times=Q.mul=function(e){var t,r,n,i,a,o,s,c,u,l=this,f=l.constructor,d=l.d,h=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,c=d.length,u=h.length,c<u&&(a=d,d=h,h=a,o=c,c=u,u=o),a=[],o=c+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%ze|0,t=s/ze|0;a[i]=(a[i]+t)%ze|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Te?Ae(e,f.precision):e};Q.toDecimalPlaces=Q.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ft(e,0,wi),t===void 0?t=n.rounding:Ft(t,0,8),Ae(r,e+$e(r)+1,t))};Q.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=an(n,!0):(Ft(e,0,wi),t===void 0?t=i.rounding:Ft(t,0,8),n=Ae(new i(n),e+1,t),r=an(n,!0,e+1)),r};Q.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?an(i):(Ft(e,0,wi),t===void 0?t=a.rounding:Ft(t,0,8),n=Ae(new a(i),e+$e(i)+1,t),r=an(n.abs(),!1,e+$e(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Q.toInteger=Q.toint=function(){var e=this,t=e.constructor;return Ae(new t(e),$e(e)+1,t.rounding)};Q.toNumber=function(){return+this};Q.toPower=Q.pow=function(e){var t,r,n,i,a,o,s=this,c=s.constructor,u=12,l=+(e=new c(e));if(!e.s)return new c(st);if(s=new c(s),!s.s){if(e.s<1)throw Error(bt+"Infinity");return s}if(s.eq(st))return s;if(n=c.precision,e.eq(st))return Ae(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=l<0?-l:l)<=Z_){for(i=new c(st),t=Math.ceil(n/Ee+4),Te=!1;r%2&&(i=i.times(s),k0(i.d,t)),r=Oi(r/2),r!==0;)s=s.times(s),k0(s.d,t);return Te=!0,e.s<0?new c(st).div(i):Ae(i,n)}}else if(a<0)throw Error(bt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Te=!1,i=e.times(ha(s,n+u)),Te=!0,i=Q_(i),i.s=a,i};Q.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=$e(i),n=an(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ft(e,1,wi),t===void 0?t=a.rounding:Ft(t,0,8),i=Ae(new a(i),e,t),r=$e(i),n=an(i,e<=r||r<=a.toExpNeg,e)),n};Q.toSignificantDigits=Q.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ft(e,1,wi),t===void 0?t=n.rounding:Ft(t,0,8)),Ae(new n(r),e,t)};Q.toString=Q.valueOf=Q.val=Q.toJSON=Q[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$e(e),r=e.constructor;return an(e,t<=r.toExpNeg||t>=r.toExpPos)};function J_(e,t){var r,n,i,a,o,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),Te?Ae(t,f):t;if(c=e.d,u=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,s=u.length):(n=u,i=o,s=c.length),o=Math.ceil(f/Ee),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=c.length,a=u.length,s-a<0&&(a=s,n=u,u=c,c=n),r=0;a;)r=(c[--a]=c[a]+u[a]+r)/ze|0,c[a]%=ze;for(r&&(c.unshift(r),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,Te?Ae(t,f):t}function Ft(e,t,r){if(e!==~~e||e<t||e>r)throw Error(tn+e)}function $t(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Ee-n.length,r&&(a+=xr(r)),a+=n;o=e[t],n=o+"",r=Ee-n.length,r&&(a+=xr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ir=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%ze|0,o=a/ze|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,c;if(a!=o)c=a>o?1:-1;else for(s=c=0;s<a;s++)if(n[s]!=i[s]){c=n[s]>i[s]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ze+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,c,u,l,f,d,h,m,p,v,y,g,x,O,b,w,A,P,T=n.constructor,I=n.s==i.s?1:-1,C=n.d,j=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(bt+"Division by zero");for(c=n.e-i.e,A=j.length,b=C.length,h=new T(I),m=h.d=[],u=0;j[u]==(C[u]||0);)++u;if(j[u]>(C[u]||0)&&--c,a==null?g=a=T.precision:o?g=a+($e(n)-$e(i))+1:g=a,g<0)return new T(0);if(g=g/Ee+2|0,u=0,A==1)for(l=0,j=j[0],g++;(u<b||l)&&g--;u++)x=l*ze+(C[u]||0),m[u]=x/j|0,l=x%j|0;else{for(l=ze/(j[0]+1)|0,l>1&&(j=e(j,l),C=e(C,l),A=j.length,b=C.length),O=A,p=C.slice(0,A),v=p.length;v<A;)p[v++]=0;P=j.slice(),P.unshift(0),w=j[0],j[1]>=ze/2&&++w;do l=0,s=t(j,p,A,v),s<0?(y=p[0],A!=v&&(y=y*ze+(p[1]||0)),l=y/w|0,l>1?(l>=ze&&(l=ze-1),f=e(j,l),d=f.length,v=p.length,s=t(f,p,d,v),s==1&&(l--,r(f,A<d?P:j,d))):(l==0&&(s=l=1),f=j.slice()),d=f.length,d<v&&f.unshift(0),r(p,f,v),s==-1&&(v=p.length,s=t(j,p,A,v),s<1&&(l++,r(p,A<v?P:j,v))),v=p.length):s===0&&(l++,p=[0]),m[u++]=l,s&&p[0]?p[v++]=C[O]||0:(p=[C[O]],v=1);while((O++<b||p[0]!==void 0)&&g--)}return m[0]||m.shift(),h.e=c,Ae(h,o?a+$e(h)+1:a)}})();function Q_(e,t){var r,n,i,a,o,s,c=0,u=0,l=e.constructor,f=l.precision;if($e(e)>16)throw Error(Xv+$e(e));if(!e.s)return new l(st);for(Te=!1,s=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Kr(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new l(st),l.precision=s;;){if(i=Ae(i.times(e),s),r=r.times(++c),o=a.plus(ir(i,r,s)),$t(o.d).slice(0,s)===$t(a.d).slice(0,s)){for(;u--;)a=Ae(a.times(a),s);return l.precision=f,t==null?(Te=!0,Ae(a,f)):a}a=o}}function $e(e){for(var t=e.e*Ee,r=e.d[0];r>=10;r/=10)t++;return t}function gd(e,t,r){if(t>e.LN10.sd())throw Te=!0,r&&(e.precision=r),Error(bt+"LN10 precision limit exceeded");return Ae(new e(e.LN10),t)}function xr(e){for(var t="";e--;)t+="0";return t}function ha(e,t){var r,n,i,a,o,s,c,u,l,f=1,d=10,h=e,m=h.d,p=h.constructor,v=p.precision;if(h.s<1)throw Error(bt+(h.s?"NaN":"-Infinity"));if(h.eq(st))return new p(0);if(t==null?(Te=!1,u=v):u=t,h.eq(10))return t==null&&(Te=!0),gd(p,u);if(u+=d,p.precision=u,r=$t(m),n=r.charAt(0),a=$e(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=$t(h.d),n=r.charAt(0),f++;a=$e(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return c=gd(p,u+2,v).times(a+""),h=ha(new p(n+"."+r.slice(1)),u-d).plus(c),p.precision=v,t==null?(Te=!0,Ae(h,v)):h;for(s=o=h=ir(h.minus(st),h.plus(st),u),l=Ae(h.times(h),u),i=3;;){if(o=Ae(o.times(l),u),c=s.plus(ir(o,new p(i),u)),$t(c.d).slice(0,u)===$t(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(gd(p,u+2,v).times(a+""))),s=ir(s,new p(f),u),p.precision=v,t==null?(Te=!0,Ae(s,v)):s;s=c,i+=2}}function I0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Oi(r/Ee),e.d=[],n=(r+1)%Ee,r<0&&(n+=Ee),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ee;n<i;)e.d.push(+t.slice(n,n+=Ee));t=t.slice(n),n=Ee-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Te&&(e.e>ns||e.e<-ns))throw Error(Xv+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ae(e,t,r){var n,i,a,o,s,c,u,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ee,i=t,u=f[l=0];else{if(l=Math.ceil((n+1)/Ee),a=f.length,l>=a)return e;for(u=a=f[l],o=1;a>=10;a/=10)o++;n%=Ee,i=n-Ee+o}if(r!==void 0&&(a=Kr(10,o-i-1),s=u/a%10|0,c=t<0||f[l+1]!==void 0||u%a,c=r<4?(s||c)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||c||r==6&&(n>0?i>0?u/Kr(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(a=$e(e),f.length=1,t=t-a-1,f[0]=Kr(10,(Ee-t%Ee)%Ee),e.e=Oi(-t/Ee)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=Kr(10,Ee-n),f[l]=i>0?(u/Kr(10,o-i)%Kr(10,i)|0)*a:0),c)for(;;)if(l==0){(f[0]+=a)==ze&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=ze)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Te&&(e.e>ns||e.e<-ns))throw Error(Xv+$e(e));return e}function eP(e,t){var r,n,i,a,o,s,c,u,l,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Te?Ae(t,h):t;if(c=e.d,f=t.d,n=t.e,u=e.e,c=c.slice(),o=u-n,o){for(l=o<0,l?(r=c,o=-o,s=f.length):(r=f,n=u,s=c.length),i=Math.max(Math.ceil(h/Ee),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,s=f.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}o=0}for(l&&(r=c,c=f,f=r,t.s=-t.s),s=c.length,i=f.length-s;i>0;--i)c[s++]=0;for(i=f.length;i>o;){if(c[--i]<f[i]){for(a=i;a&&c[--a]===0;)c[a]=ze-1;--c[a],c[i]+=ze}c[i]-=f[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,Te?Ae(t,h):t):new d(0)}function an(e,t,r){var n,i=$e(e),a=$t(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+xr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+xr(-i-1)+a,r&&(n=r-o)>0&&(a+=xr(n))):i>=o?(a+=xr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+xr(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=xr(n))),e.s<0?"-"+a:a}function k0(e,t){if(e.length>t)return e.length=t,!0}function tP(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(tn+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return I0(o,a.toString())}else if(typeof a!="string")throw Error(tn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,xL.test(a))I0(o,a);else throw Error(tn+a)}if(i.prototype=Q,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=tP,i.config=i.set=wL,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function wL(e){if(!e||typeof e!="object")throw Error(bt+"Object expected");var t,r,n,i=["precision",1,wi,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Oi(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(tn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(tn+r+": "+n);return this}var Zv=tP(bL);st=new Zv(1);const we=Zv;function OL(e){return PL(e)||_L(e)||AL(e)||SL()}function SL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AL(e,t){if(e){if(typeof e=="string")return Up(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Up(e,t)}}function _L(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function PL(e){if(Array.isArray(e))return Up(e)}function Up(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var EL=function(t){return t},rP={},nP=function(t){return t===rP},R0=function(t){return function r(){return arguments.length===0||arguments.length===1&&nP(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},TL=function e(t,r){return t===1?r:R0(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==rP}).length;return o>=t?r.apply(void 0,i):e(t-o,R0(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=i.map(function(f){return nP(f)?c.shift():f});return r.apply(void 0,OL(l).concat(c))}))})},gc=function(t){return TL(t.length,t)},Hp=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},CL=gc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),jL=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return EL;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,c){return c(s)},a.apply(void 0,arguments))}},Vp=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},iP=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,c){return s===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function IL(e){var t;return e===0?t=1:t=Math.floor(new we(e).abs().log(10).toNumber())+1,t}function kL(e,t,r){for(var n=new we(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var RL=gc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),ML=gc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),$L=gc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const bc={rangeStep:kL,getDigitCount:IL,interpolateNumber:RL,uninterpolateNumber:ML,uninterpolateTruncation:$L};function Kp(e){return LL(e)||DL(e)||aP(e)||NL()}function NL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DL(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function LL(e){if(Array.isArray(e))return Gp(e)}function va(e,t){return FL(e)||qL(e,t)||aP(e,t)||BL()}function BL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aP(e,t){if(e){if(typeof e=="string")return Gp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gp(e,t)}}function Gp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qL(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function FL(e){if(Array.isArray(e))return e}function oP(e){var t=va(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function sP(e,t,r){if(e.lte(0))return new we(0);var n=bc.getDigitCount(e.toNumber()),i=new we(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new we(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=s.mul(i);return t?c:new we(Math.ceil(c))}function zL(e,t,r){var n=1,i=new we(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new we(10).pow(bc.getDigitCount(e)-1),i=new we(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new we(Math.floor(e)))}else e===0?i=new we(Math.floor((t-1)/2)):r||(i=new we(Math.floor(e)));var o=Math.floor((t-1)/2),s=jL(CL(function(c){return i.add(new we(c-o).mul(n)).toNumber()}),Hp);return s(0,t)}function cP(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new we(0),tickMin:new we(0),tickMax:new we(0)};var a=sP(new we(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new we(0):(o=new we(e).add(t).div(2),o=o.sub(new we(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new we(t).sub(o).div(a).toNumber()),u=s+c+1;return u>r?cP(e,t,r,n,i+1):(u<r&&(c=t>0?c+(r-u):c,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new we(s).mul(a)),tickMax:o.add(new we(c).mul(a))})}function WL(e){var t=va(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=oP([r,n]),c=va(s,2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var f=l===1/0?[u].concat(Kp(Hp(0,i-1).map(function(){return 1/0}))):[].concat(Kp(Hp(0,i-1).map(function(){return-1/0})),[l]);return r>n?Vp(f):f}if(u===l)return zL(u,i,a);var d=cP(u,l,o,a),h=d.step,m=d.tickMin,p=d.tickMax,v=bc.rangeStep(m,p.add(new we(.1).mul(h)),h);return r>n?Vp(v):v}function UL(e,t){var r=va(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=oP([n,i]),s=va(o,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var l=Math.max(t,2),f=sP(new we(u).sub(c).div(l-1),a,0),d=[].concat(Kp(bc.rangeStep(new we(c),new we(u).sub(new we(.99).mul(f)),f)),[u]);return n>i?Vp(d):d}var HL=iP(WL),VL=iP(UL),KL=process.env.NODE_ENV==="production",bd="Invariant failed";function tt(e,t){if(KL)throw new Error(bd);var r=typeof t=="function"?t():t,n=r?"".concat(bd,": ").concat(r):bd;throw new Error(n)}var GL=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function is(){return is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},is.apply(this,arguments)}function YL(e,t){return QL(e)||JL(e,t)||ZL(e,t)||XL()}function XL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZL(e,t){if(e){if(typeof e=="string")return M0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M0(e,t)}}function M0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function QL(e){if(Array.isArray(e))return e}function e2(e,t){if(e==null)return{};var r=t2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function t2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function r2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fP(n.key),n)}}function i2(e,t,r){return t&&n2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a2(e,t,r){return t=as(t),o2(e,uP()?Reflect.construct(t,r||[],as(e).constructor):t.apply(e,r))}function o2(e,t){if(t&&(Wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s2(e)}function s2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uP=function(){return!!e})()}function as(e){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},as(e)}function c2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yp(e,t)}function Yp(e,t){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yp(e,t)}function lP(e,t,r){return t=fP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fP(e){var t=u2(e,"string");return Wn(t)=="symbol"?t:t+""}function u2(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Si=(function(e){function t(){return r2(this,t),a2(this,t,arguments)}return c2(t,e),i2(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,c=n.data,u=n.dataPointFormatter,l=n.xAxis,f=n.yAxis,d=e2(n,GL),h=J(d,!1);this.props.direction==="x"&&l.type!=="number"&&(process.env.NODE_ENV!=="production"?tt(!1,'ErrorBar requires Axis type property to be "number".'):tt());var m=c.map(function(p){var v=u(p,s),y=v.x,g=v.y,x=v.value,O=v.errorVal;if(!O)return null;var b=[],w,A;if(Array.isArray(O)){var P=YL(O,2);w=P[0],A=P[1]}else w=A=O;if(a==="vertical"){var T=l.scale,I=g+i,C=I+o,j=I-o,k=T(x-w),$=T(x+A);b.push({x1:$,y1:C,x2:$,y2:j}),b.push({x1:k,y1:I,x2:$,y2:I}),b.push({x1:k,y1:C,x2:k,y2:j})}else if(a==="horizontal"){var N=f.scale,R=y+i,L=R-o,M=R+o,U=N(x-w),D=N(x+A);b.push({x1:L,y1:D,x2:M,y2:D}),b.push({x1:R,y1:U,x2:R,y2:D}),b.push({x1:L,y1:U,x2:M,y2:U})}return S.createElement(ue,is({className:"recharts-errorBar",key:"bar-".concat(b.map(function(F){return"".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))},h),b.map(function(F){return S.createElement("line",is({},F,{key:"line-".concat(F.x1,"-").concat(F.x2,"-").concat(F.y1,"-").concat(F.y2)}))}))});return S.createElement(ue,{className:"recharts-errorBars"},m)}}])})(S.Component);lP(Si,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});lP(Si,"displayName","ErrorBar");function ma(e){"@babel/helpers - typeof";return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ma(e)}function $0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(r),!0).forEach(function(n){l2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l2(e,t,r){return t=f2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f2(e){var t=d2(e,"string");return ma(t)=="symbol"?t:t+""}function d2(e,t){if(ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dP=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=at(r,yt);if(!o)return null;var s=yt.defaultProps,c=s!==void 0?Wr(Wr({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(l,f){var d=f.item,h=f.props,m=h.sectors||h.data||[];return l.concat(m.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):u=(n||[]).map(function(l){var f=l.item,d=f.type.defaultProps,h=d!==void 0?Wr(Wr({},d),f.props):{},m=h.dataKey,p=h.name,v=h.legendType,y=h.hide;return{inactive:y,dataKey:m,type:c.iconType||v||"square",color:Jv(f),value:p||m,payload:h}}),Wr(Wr(Wr({},c),yt.getWithHeight(o,i)),{},{payload:u,item:o})};function ya(e){"@babel/helpers - typeof";return ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ya(e)}function N0(e){return m2(e)||v2(e)||h2(e)||p2()}function p2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h2(e,t){if(e){if(typeof e=="string")return Xp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xp(e,t)}}function v2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m2(e){if(Array.isArray(e))return Xp(e)}function Xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D0(Object(r),!0).forEach(function(n){kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kn(e,t,r){return t=y2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y2(e){var t=g2(e,"string");return ya(t)=="symbol"?t:t+""}function g2(e,t){if(ya(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ya(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e,t,r){return oe(e)||oe(t)?r:Be(t)?ct(e,t,r):ae(t)?t(e):r}function Yi(e,t,r,n){var i=mL(e,function(s){return Se(s,t)});if(r==="number"){var a=i.filter(function(s){return G(s)||parseFloat(s)});return a.length?[yc(a),Or(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!oe(s)}):i;return o.map(function(s){return Be(s)||s instanceof Date?s:""})}var b2=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,u=0;u<s;u++){var l=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(Xe(f-l)!==Xe(d-f)){var m=[];if(Xe(d-f)===Xe(c[1]-c[0])){h=d;var p=f+c[1]-c[0];m[0]=Math.min(p,(p+l)/2),m[1]=Math.max(p,(p+l)/2)}else{h=l;var v=d+c[1]-c[0];m[0]=Math.min(f,(v+f)/2),m[1]=Math.max(f,(v+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var g=Math.min(l,d),x=Math.max(l,d);if(t>(g+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var O=0;O<s;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Jv=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ke(ke({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:s;break;default:c=s;break}return c},x2=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),c=0,u=s.length;c<u;c++)for(var l=a[s[c]].stackGroups,f=Object.keys(l),d=0,h=f.length;d<h;d++){var m=l[f[d]],p=m.items,v=m.cateAxisId,y=p.filter(function(A){return nr(A.type).indexOf("Bar")>=0});if(y&&y.length){var g=y[0].type.defaultProps,x=g!==void 0?ke(ke({},g),y[0].props):y[0].props,O=x.barSize,b=x[v];o[b]||(o[b]=[]);var w=oe(O)?r:O;o[b].push({item:y[0],stackList:y.slice(1),barSize:oe(w)?void 0:Ze(w,n,0)})}}return o},w2=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,c=o.length;if(c<1)return null;var u=Ze(r,i,0,!0),l,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/c,m=o.reduce(function(O,b){return O+b.barSize||0},0);m+=(c-1)*u,m>=i&&(m-=(c-1)*u,u=0),m>=i&&h>0&&(d=!0,h*=.9,m=c*h);var p=(i-m)/2>>0,v={offset:p-u,size:0};l=o.reduce(function(O,b){var w={item:b.item,position:{offset:v.offset+v.size+u,size:d?h:b.barSize}},A=[].concat(N0(O),[w]);return v=A[A.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){A.push({item:P,position:v})}),A},f)}else{var y=Ze(n,i,0,!0);i-2*y-(c-1)*u<=0&&(u=0);var g=(i-2*y-(c-1)*u)/c;g>1&&(g>>=0);var x=s===+s?Math.min(g,s):g;l=o.reduce(function(O,b,w){var A=[].concat(N0(O),[{item:b.item,position:{offset:y+(g+u)*w+(g-x)/2,size:x}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){A.push({item:P,position:A[A.length-1].position})}),A},f)}return l},O2=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,c=o-(s.left||0)-(s.right||0),u=dP({children:a,legendWidth:c});if(u){var l=i||{},f=l.width,d=l.height,h=u.align,m=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&m==="middle")&&h!=="center"&&G(t[h]))return ke(ke({},t),{},kn({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&m!=="middle"&&G(t[m]))return ke(ke({},t),{},kn({},m,t[m]+(d||0)))}return t},S2=function(t,r,n){return oe(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},pP=function(t,r,n,i,a){var o=r.props.children,s=Qe(o,Si).filter(function(u){return S2(i,a,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,l){var f=Se(l,n);if(oe(f))return u;var d=Array.isArray(f)?[yc(f),Or(f)]:[f,f],h=c.reduce(function(m,p){var v=Se(l,p,0),y=d[0]-Math.abs(Array.isArray(v)?v[0]:v),g=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,m[0]),Math.max(g,m[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},A2=function(t,r,n,i,a){var o=r.map(function(s){return pP(t,s,n,a,i)}).filter(function(s){return!oe(s)});return o&&o.length?o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},hP=function(t,r,n,i,a){var o=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&pP(t,c,u,i)||Yi(t,u,n,a)});if(n==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(c,u){for(var l=0,f=u.length;l<f;l++)s[u[l]]||(s[u[l]]=!0,c.push(u[l]));return c},[])},vP=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},mP=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,s=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||s.push(r),o||s.push(n),s},rr=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&s?.length>=2?Xe(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var l=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return l.filter(function(f){return!gi(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},xd=new WeakMap,ho=function(t,r){if(typeof r!="function")return t;xd.has(t)||xd.set(t,new WeakMap);var n=xd.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},yP=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:ua(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Qo(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Gi(),realScaleType:"point"}:a==="category"?{scale:ua(),realScaleType:"band"}:{scale:Qo(),realScaleType:"linear"};if(rn(i)){var c="scale".concat(rc(i));return{scale:(O0[c]||Gi)(),realScaleType:O0[c]?c:"point"}}return ae(i)?{scale:i}:{scale:Gi(),realScaleType:"point"}},L0=1e-4,gP=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-L0,o=Math.max(i[0],i[1])+L0,s=t(r[0]),c=t(r[n-1]);(s<a||s>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},_2=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},P2=function(t,r){if(!r||r.length!==2||!G(r[0])||!G(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!G(t[0])||t[0]<n)&&(a[0]=n),(!G(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},E2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var c=gi(t[s][n][1])?t[s][n][0]:t[s][n][1];c>=0?(t[s][n][0]=a,t[s][n][1]=a+c,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+c,o=t[s][n][1])}},T2=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=gi(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},C2={sign:E2,expand:mk,none:$n,silhouette:yk,wiggle:gk,positive:T2},j2=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=C2[n],o=vk().keys(i).value(function(s,c){return+Se(s,c,0)}).order(Pp).offset(a);return o(t)},I2=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,c={},u=s.reduce(function(f,d){var h,m=(h=d.type)!==null&&h!==void 0&&h.defaultProps?ke(ke({},d.type.defaultProps),d.props):d.props,p=m.stackId,v=m.hide;if(v)return f;var y=m[n],g=f[y]||{hasStack:!1,stackGroups:{}};if(Be(p)){var x=g.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(d),g.hasStack=!0,g.stackGroups[p]=x}else g.stackGroups[kr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ke(ke({},f),{},kn({},y,g))},c),l={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,v){var y=h.stackGroups[v];return ke(ke({},p),{},kn({},v,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:j2(t,y.items,a)}))},m)}return ke(ke({},f),{},kn({},d,h))},l)},bP=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var l=HL(u,a,s);return t.domain([yc(l),Or(l)]),{niceTicks:l}}if(a&&i==="number"){var f=t.domain(),d=VL(f,a,s);return{niceTicks:d}}return null};function Un(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!oe(i[t.dataKey])){var s=$o(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Se(i,oe(o)?t.dataKey:o);return oe(c)?null:t.scale(c)}var B0=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var c=Se(o,r.dataKey,r.domain[s]);return oe(c)?null:r.scale(c)-a/2+i},k2=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},R2=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ke(ke({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Be(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},M2=function(t){return t.reduce(function(r,n){return[yc(n.concat([r[0]]).filter(G)),Or(n.concat([r[1]]).filter(G))]},[1/0,-1/0])},xP=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,c=s.reduce(function(u,l){var f=M2(l.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},q0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,F0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Zp=function(t,r,n){if(ae(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(G(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(q0.test(t[0])){var a=+q0.exec(t[0])[1];i[0]=r[0]-a}else ae(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(G(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(F0.test(t[1])){var o=+F0.exec(t[1])[1];i[1]=r[1]+o}else ae(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},os=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Pv(r,function(f){return f.coordinate}),o=1/0,s=1,c=a.length;s<c;s++){var u=a[s],l=a[s-1];o=Math.min((u.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},z0=function(t,r,n){return!t||!t.length||cr(t,ct(n,"type.defaultProps.domain"))?r:t},wP=function(t,r){var n=t.type.defaultProps?ke(ke({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,c=n.tooltipType,u=n.chartType,l=n.hide;return ke(ke({},J(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:Jv(t),value:Se(r,i),type:c,payload:r,chartType:u,hide:l})};function ga(e){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ga(e)}function W0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W0(Object(r),!0).forEach(function(n){OP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OP(e,t,r){return t=$2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $2(e){var t=N2(e,"string");return ga(t)=="symbol"?t:t+""}function N2(e,t){if(ga(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ga(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D2(e,t){return F2(e)||q2(e,t)||B2(e,t)||L2()}function L2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B2(e,t){if(e){if(typeof e=="string")return U0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U0(e,t)}}function U0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function q2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function F2(e){if(Array.isArray(e))return e}var ss=Math.PI/180,z2=function(t){return t*180/Math.PI},me=function(t,r,n,i){return{x:t+Math.cos(-ss*i)*n,y:r+Math.sin(-ss*i)*n}},SP=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},AP=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.startAngle,u=t.endAngle,l=Ze(t.cx,o,o/2),f=Ze(t.cy,s,s/2),d=SP(o,s,n),h=Ze(t.innerRadius,d,0),m=Ze(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(v,y){var g=r[y],x=g.domain,O=g.reversed,b;if(oe(g.range))i==="angleAxis"?b=[c,u]:i==="radiusAxis"&&(b=[h,m]),O&&(b=[b[1],b[0]]);else{b=g.range;var w=b,A=D2(w,2);c=A[0],u=A[1]}var P=yP(g,a),T=P.realScaleType,I=P.scale;I.domain(x).range(b),gP(I);var C=bP(I,Jt(Jt({},g),{},{realScaleType:T})),j=Jt(Jt(Jt({},g),C),{},{range:b,radius:m,realScaleType:T,scale:I,cx:l,cy:f,innerRadius:h,outerRadius:m,startAngle:c,endAngle:u});return Jt(Jt({},v),{},OP({},y,j))},{})},W2=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},U2=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=W2({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var c=(n-a)/s,u=Math.acos(c);return i>o&&(u=2*Math.PI-u),{radius:s,angle:z2(u),angleInRadian:u}},H2=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},V2=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},H0=function(t,r){var n=t.x,i=t.y,a=U2({x:n,y:i},r),o=a.radius,s=a.angle,c=r.innerRadius,u=r.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var l=H2(r),f=l.startAngle,d=l.endAngle,h=s,m;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;m=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;m=h>=d&&h<=f}return m?Jt(Jt({},r),{},{radius:o,angle:V2(h,r)}):null},_P=function(t){return!S.isValidElement(t)&&!ae(t)&&typeof t!="boolean"?t.className:""};function ba(e){"@babel/helpers - typeof";return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ba(e)}var K2=["offset"];function G2(e){return J2(e)||Z2(e)||X2(e)||Y2()}function Y2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X2(e,t){if(e){if(typeof e=="string")return Jp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jp(e,t)}}function Z2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function J2(e){if(Array.isArray(e))return Jp(e)}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Q2(e,t){if(e==null)return{};var r=eB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function V0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V0(Object(r),!0).forEach(function(n){tB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tB(e,t,r){return t=rB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rB(e){var t=nB(e,"string");return ba(t)=="symbol"?t:t+""}function nB(e,t){if(ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xa.apply(this,arguments)}var iB=function(t){var r=t.value,n=t.formatter,i=oe(t.children)?r:t.children;return ae(n)?n(i):i},aB=function(t,r){var n=Xe(r-t),i=Math.min(Math.abs(r-t),360);return n*i},oB=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,c=a,u=c.cx,l=c.cy,f=c.innerRadius,d=c.outerRadius,h=c.startAngle,m=c.endAngle,p=c.clockWise,v=(f+d)/2,y=aB(h,m),g=y>=0?1:-1,x,O;i==="insideStart"?(x=h+g*o,O=p):i==="insideEnd"?(x=m-g*o,O=!p):i==="end"&&(x=m+g*o,O=p),O=y<=0?O:!O;var b=me(u,l,v,x),w=me(u,l,v,x+(O?1:-1)*359),A="M".concat(b.x,",").concat(b.y,`
20
20
  A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`,
21
- `).concat(w.x,",").concat(w.y),P=oe(t.id)?kr("recharts-radial-line-"):t.id;return S.createElement("text",xa({},n,{dominantBaseline:"central",className:ce("recharts-radial-bar-label",s)}),S.createElement("defs",null,S.createElement("path",{id:P,d:A})),S.createElement("textPath",{xlinkHref:"#".concat(P)},r))},aB=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,c=a.innerRadius,u=a.outerRadius,l=a.startAngle,f=a.endAngle,d=(l+f)/2;if(i==="outside"){var h=me(o,s,u+n,d),m=h.x,p=h.y;return{x:m,y:p,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(c+u)/2,y=me(o,s,v,d),g=y.x,x=y.y;return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},oB=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,c=o.y,u=o.width,l=o.height,f=l>=0?1:-1,d=f*i,h=f>0?"end":"start",m=f>0?"start":"end",p=u>=0?1:-1,v=p*i,y=p>0?"end":"start",g=p>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:c-f*i,textAnchor:"middle",verticalAnchor:h};return Le(Le({},x),n?{height:Math.max(c-n.y,0),width:u}:{})}if(a==="bottom"){var O={x:s+u/2,y:c+l+d,textAnchor:"middle",verticalAnchor:m};return Le(Le({},O),n?{height:Math.max(n.y+n.height-(c+l),0),width:u}:{})}if(a==="left"){var b={x:s-v,y:c+l/2,textAnchor:y,verticalAnchor:"middle"};return Le(Le({},b),n?{width:Math.max(b.x-n.x,0),height:l}:{})}if(a==="right"){var w={x:s+u+v,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return Le(Le({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:l}:{})}var A=n?{width:u,height:l}:{};return a==="insideLeft"?Le({x:s+v,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},A):a==="insideRight"?Le({x:s+u-v,y:c+l/2,textAnchor:y,verticalAnchor:"middle"},A):a==="insideTop"?Le({x:s+u/2,y:c+d,textAnchor:"middle",verticalAnchor:m},A):a==="insideBottom"?Le({x:s+u/2,y:c+l-d,textAnchor:"middle",verticalAnchor:h},A):a==="insideTopLeft"?Le({x:s+v,y:c+d,textAnchor:g,verticalAnchor:m},A):a==="insideTopRight"?Le({x:s+u-v,y:c+d,textAnchor:y,verticalAnchor:m},A):a==="insideBottomLeft"?Le({x:s+v,y:c+l-d,textAnchor:g,verticalAnchor:h},A):a==="insideBottomRight"?Le({x:s+u-v,y:c+l-d,textAnchor:y,verticalAnchor:h},A):yi(a)&&(G(a.x)||Yr(a.x))&&(G(a.y)||Yr(a.y))?Le({x:s+Ze(a.x,u),y:c+Ze(a.y,l),textAnchor:"end",verticalAnchor:"end"},A):Le({x:s+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},A)},sB=function(t){return"cx"in t&&G(t.cx)};function We(e){var t=e.offset,r=t===void 0?5:t,n=Z2(e,H2),i=Le({offset:r},n),a=i.viewBox,o=i.position,s=i.value,c=i.children,u=i.content,l=i.className,f=l===void 0?"":l,d=i.textBreakAll;if(!a||oe(s)&&oe(c)&&!S.isValidElement(u)&&!ae(u))return null;if(S.isValidElement(u))return S.cloneElement(u,i);var h;if(ae(u)){if(h=S.createElement(u,i),S.isValidElement(h))return h}else h=rB(i);var m=sB(a),p=J(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return iB(i,h,p);var v=m?aB(i):oB(i);return S.createElement(nn,xa({className:ce("recharts-label",f)},p,v,{breakAll:d}),h)}We.displayName="Label";var _P=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,f=t.x,d=t.y,h=t.top,m=t.left,p=t.width,v=t.height,y=t.clockWise,g=t.labelViewBox;if(g)return g;if(G(p)&&G(v)){if(G(f)&&G(d))return{x:f,y:d,width:p,height:v};if(G(h)&&G(m))return{x:h,y:m,width:p,height:v}}return G(f)&&G(d)?{x:f,y:d,width:0,height:0}:G(r)&&G(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:l||c||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},cB=function(t,r){return t?t===!0?S.createElement(We,{key:"label-implicit",viewBox:r}):Be(t)?S.createElement(We,{key:"label-implicit",viewBox:r,value:t}):S.isValidElement(t)?t.type===We?S.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(We,{key:"label-implicit",content:t,viewBox:r}):ae(t)?S.createElement(We,{key:"label-implicit",content:t,viewBox:r}):yi(t)?S.createElement(We,xa({viewBox:r},t,{key:"label-implicit"})):null:null},uB=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=_P(t),o=Qe(i,We).map(function(c,u){return S.cloneElement(c,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=cB(t.label,r||a);return[s].concat(V2(o))};We.parseViewBox=_P;We.renderCallByParent=uB;var xd,V0;function lB(){if(V0)return xd;V0=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return xd=e,xd}var fB=lB();const PP=ge(fB);function wa(e){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}var dB=["valueAccessor"],pB=["data","dataKey","clockWise","id","textBreakAll"];function hB(e){return gB(e)||yB(e)||mB(e)||vB()}function vB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mB(e,t){if(e){if(typeof e=="string")return Jp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jp(e,t)}}function yB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gB(e){if(Array.isArray(e))return Jp(e)}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cs.apply(this,arguments)}function K0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function G0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K0(Object(r),!0).forEach(function(n){bB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bB(e,t,r){return t=xB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xB(e){var t=wB(e,"string");return wa(t)=="symbol"?t:t+""}function wB(e,t){if(wa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y0(e,t){if(e==null)return{};var r=OB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var SB=function(t){return Array.isArray(t.value)?PP(t.value):t.value};function gt(e){var t=e.valueAccessor,r=t===void 0?SB:t,n=Y0(e,dB),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,c=n.textBreakAll,u=Y0(n,pB);return!i||!i.length?null:S.createElement(ue,{className:"recharts-label-list"},i.map(function(l,f){var d=oe(a)?r(l,f):Se(l&&l.payload,a),h=oe(s)?{}:{id:"".concat(s,"-").concat(f)};return S.createElement(We,cs({},J(l,!0),u,h,{parentViewBox:l.parentViewBox,value:d,textBreakAll:c,viewBox:We.parseViewBox(oe(o)?l:G0(G0({},l),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}gt.displayName="LabelList";function AB(e,t){return e?e===!0?S.createElement(gt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||ae(e)?S.createElement(gt,{key:"labelList-implicit",data:t,content:e}):yi(e)?S.createElement(gt,cs({data:t},e,{key:"labelList-implicit"})):null:null}function _B(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Qe(n,gt).map(function(o,s){return S.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=AB(e.label,t);return[a].concat(hB(i))}gt.renderCallByParent=_B;function Oa(e){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(e)}function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qp.apply(this,arguments)}function X0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Z0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X0(Object(r),!0).forEach(function(n){PB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PB(e,t,r){return t=EB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EB(e){var t=TB(e,"string");return Oa(t)=="symbol"?t:t+""}function TB(e,t){if(Oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CB=function(t,r){var n=Xe(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},vo=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(s?1:-1)+i,f=Math.asin(c/l)/ss,d=u?a:a+o*f,h=me(r,n,l,d),m=me(r,n,i,d),p=u?a-o*f:a,v=me(r,n,l*Math.cos(f*ss),p);return{center:h,circleTangency:m,lineTangency:v,theta:f}},EP=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,c=CB(o,s),u=o+c,l=me(r,n,a,o),f=me(r,n,a,u),d="M ".concat(l.x,",").concat(l.y,`
21
+ `).concat(w.x,",").concat(w.y),P=oe(t.id)?kr("recharts-radial-line-"):t.id;return S.createElement("text",xa({},n,{dominantBaseline:"central",className:ce("recharts-radial-bar-label",s)}),S.createElement("defs",null,S.createElement("path",{id:P,d:A})),S.createElement("textPath",{xlinkHref:"#".concat(P)},r))},sB=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,c=a.innerRadius,u=a.outerRadius,l=a.startAngle,f=a.endAngle,d=(l+f)/2;if(i==="outside"){var h=me(o,s,u+n,d),m=h.x,p=h.y;return{x:m,y:p,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(c+u)/2,y=me(o,s,v,d),g=y.x,x=y.y;return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},cB=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,c=o.y,u=o.width,l=o.height,f=l>=0?1:-1,d=f*i,h=f>0?"end":"start",m=f>0?"start":"end",p=u>=0?1:-1,v=p*i,y=p>0?"end":"start",g=p>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:c-f*i,textAnchor:"middle",verticalAnchor:h};return Le(Le({},x),n?{height:Math.max(c-n.y,0),width:u}:{})}if(a==="bottom"){var O={x:s+u/2,y:c+l+d,textAnchor:"middle",verticalAnchor:m};return Le(Le({},O),n?{height:Math.max(n.y+n.height-(c+l),0),width:u}:{})}if(a==="left"){var b={x:s-v,y:c+l/2,textAnchor:y,verticalAnchor:"middle"};return Le(Le({},b),n?{width:Math.max(b.x-n.x,0),height:l}:{})}if(a==="right"){var w={x:s+u+v,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return Le(Le({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:l}:{})}var A=n?{width:u,height:l}:{};return a==="insideLeft"?Le({x:s+v,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},A):a==="insideRight"?Le({x:s+u-v,y:c+l/2,textAnchor:y,verticalAnchor:"middle"},A):a==="insideTop"?Le({x:s+u/2,y:c+d,textAnchor:"middle",verticalAnchor:m},A):a==="insideBottom"?Le({x:s+u/2,y:c+l-d,textAnchor:"middle",verticalAnchor:h},A):a==="insideTopLeft"?Le({x:s+v,y:c+d,textAnchor:g,verticalAnchor:m},A):a==="insideTopRight"?Le({x:s+u-v,y:c+d,textAnchor:y,verticalAnchor:m},A):a==="insideBottomLeft"?Le({x:s+v,y:c+l-d,textAnchor:g,verticalAnchor:h},A):a==="insideBottomRight"?Le({x:s+u-v,y:c+l-d,textAnchor:y,verticalAnchor:h},A):yi(a)&&(G(a.x)||Yr(a.x))&&(G(a.y)||Yr(a.y))?Le({x:s+Ze(a.x,u),y:c+Ze(a.y,l),textAnchor:"end",verticalAnchor:"end"},A):Le({x:s+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},A)},uB=function(t){return"cx"in t&&G(t.cx)};function We(e){var t=e.offset,r=t===void 0?5:t,n=Q2(e,K2),i=Le({offset:r},n),a=i.viewBox,o=i.position,s=i.value,c=i.children,u=i.content,l=i.className,f=l===void 0?"":l,d=i.textBreakAll;if(!a||oe(s)&&oe(c)&&!S.isValidElement(u)&&!ae(u))return null;if(S.isValidElement(u))return S.cloneElement(u,i);var h;if(ae(u)){if(h=S.createElement(u,i),S.isValidElement(h))return h}else h=iB(i);var m=uB(a),p=J(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return oB(i,h,p);var v=m?sB(i):cB(i);return S.createElement(nn,xa({className:ce("recharts-label",f)},p,v,{breakAll:d}),h)}We.displayName="Label";var PP=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,f=t.x,d=t.y,h=t.top,m=t.left,p=t.width,v=t.height,y=t.clockWise,g=t.labelViewBox;if(g)return g;if(G(p)&&G(v)){if(G(f)&&G(d))return{x:f,y:d,width:p,height:v};if(G(h)&&G(m))return{x:h,y:m,width:p,height:v}}return G(f)&&G(d)?{x:f,y:d,width:0,height:0}:G(r)&&G(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:l||c||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},lB=function(t,r){return t?t===!0?S.createElement(We,{key:"label-implicit",viewBox:r}):Be(t)?S.createElement(We,{key:"label-implicit",viewBox:r,value:t}):S.isValidElement(t)?t.type===We?S.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(We,{key:"label-implicit",content:t,viewBox:r}):ae(t)?S.createElement(We,{key:"label-implicit",content:t,viewBox:r}):yi(t)?S.createElement(We,xa({viewBox:r},t,{key:"label-implicit"})):null:null},fB=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=PP(t),o=Qe(i,We).map(function(c,u){return S.cloneElement(c,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=lB(t.label,r||a);return[s].concat(G2(o))};We.parseViewBox=PP;We.renderCallByParent=fB;var wd,K0;function dB(){if(K0)return wd;K0=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return wd=e,wd}var pB=dB();const EP=ge(pB);function wa(e){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}var hB=["valueAccessor"],vB=["data","dataKey","clockWise","id","textBreakAll"];function mB(e){return xB(e)||bB(e)||gB(e)||yB()}function yB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gB(e,t){if(e){if(typeof e=="string")return Qp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qp(e,t)}}function bB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xB(e){if(Array.isArray(e))return Qp(e)}function Qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cs.apply(this,arguments)}function G0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G0(Object(r),!0).forEach(function(n){wB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wB(e,t,r){return t=OB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OB(e){var t=SB(e,"string");return wa(t)=="symbol"?t:t+""}function SB(e,t){if(wa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X0(e,t){if(e==null)return{};var r=AB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var _B=function(t){return Array.isArray(t.value)?EP(t.value):t.value};function gt(e){var t=e.valueAccessor,r=t===void 0?_B:t,n=X0(e,hB),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,c=n.textBreakAll,u=X0(n,vB);return!i||!i.length?null:S.createElement(ue,{className:"recharts-label-list"},i.map(function(l,f){var d=oe(a)?r(l,f):Se(l&&l.payload,a),h=oe(s)?{}:{id:"".concat(s,"-").concat(f)};return S.createElement(We,cs({},J(l,!0),u,h,{parentViewBox:l.parentViewBox,value:d,textBreakAll:c,viewBox:We.parseViewBox(oe(o)?l:Y0(Y0({},l),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}gt.displayName="LabelList";function PB(e,t){return e?e===!0?S.createElement(gt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||ae(e)?S.createElement(gt,{key:"labelList-implicit",data:t,content:e}):yi(e)?S.createElement(gt,cs({data:t},e,{key:"labelList-implicit"})):null:null}function EB(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Qe(n,gt).map(function(o,s){return S.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=PB(e.label,t);return[a].concat(mB(i))}gt.renderCallByParent=EB;function Oa(e){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(e)}function eh(){return eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eh.apply(this,arguments)}function Z0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function J0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z0(Object(r),!0).forEach(function(n){TB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TB(e,t,r){return t=CB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CB(e){var t=jB(e,"string");return Oa(t)=="symbol"?t:t+""}function jB(e,t){if(Oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IB=function(t,r){var n=Xe(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},vo=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(s?1:-1)+i,f=Math.asin(c/l)/ss,d=u?a:a+o*f,h=me(r,n,l,d),m=me(r,n,i,d),p=u?a-o*f:a,v=me(r,n,l*Math.cos(f*ss),p);return{center:h,circleTangency:m,lineTangency:v,theta:f}},TP=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,c=IB(o,s),u=o+c,l=me(r,n,a,o),f=me(r,n,a,u),d="M ".concat(l.x,",").concat(l.y,`
23
23
  A `).concat(a,",").concat(a,`,0,
24
24
  `).concat(+(Math.abs(c)>180),",").concat(+(o>u),`,
25
25
  `).concat(f.x,",").concat(f.y,`
26
26
  `);if(i>0){var h=me(r,n,i,o),m=me(r,n,i,u);d+="L ".concat(m.x,",").concat(m.y,`
27
27
  A `).concat(i,",").concat(i,`,0,
28
28
  `).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`,
29
- `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},jB=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,f=Xe(l-u),d=vo({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:c}),h=d.circleTangency,m=d.lineTangency,p=d.theta,v=vo({cx:r,cy:n,radius:a,angle:l,sign:-f,cornerRadius:o,cornerIsExternal:c}),y=v.circleTangency,g=v.lineTangency,x=v.theta,O=c?Math.abs(u-l):Math.abs(u-l)-p-x;if(O<0)return s?"M ".concat(m.x,",").concat(m.y,`
29
+ `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},kB=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,f=Xe(l-u),d=vo({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:c}),h=d.circleTangency,m=d.lineTangency,p=d.theta,v=vo({cx:r,cy:n,radius:a,angle:l,sign:-f,cornerRadius:o,cornerIsExternal:c}),y=v.circleTangency,g=v.lineTangency,x=v.theta,O=c?Math.abs(u-l):Math.abs(u-l)-p-x;if(O<0)return s?"M ".concat(m.x,",").concat(m.y,`
30
30
  a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
31
31
  a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
32
- `):EP({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:l});var b="M ".concat(m.x,",").concat(m.y,`
32
+ `):TP({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:l});var b="M ".concat(m.x,",").concat(m.y,`
33
33
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
34
34
  A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
35
35
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
36
36
  `);if(i>0){var w=vo({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=w.circleTangency,P=w.lineTangency,T=w.theta,I=vo({cx:r,cy:n,radius:i,angle:l,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),C=I.circleTangency,j=I.lineTangency,k=I.theta,$=c?Math.abs(u-l):Math.abs(u-l)-T-k;if($<0&&o===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="L".concat(j.x,",").concat(j.y,`
37
37
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,`
38
38
  A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
39
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else b+="L".concat(r,",").concat(n,"Z");return b},IB={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},TP=function(t){var r=Z0(Z0({},IB),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,l=r.startAngle,f=r.endAngle,d=r.className;if(o<a||l===f)return null;var h=ce("recharts-sector",d),m=o-a,p=Ze(s,m,0,!0),v;return p>0&&Math.abs(l-f)<360?v=jB({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,m/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:f}):v=EP({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:f}),S.createElement("path",Qp({},J(r,!0),{className:h,d:v,role:"img"}))};function Sa(e){"@babel/helpers - typeof";return Sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sa(e)}function eh(){return eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eh.apply(this,arguments)}function J0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Q0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J0(Object(r),!0).forEach(function(n){kB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kB(e,t,r){return t=RB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RB(e){var t=MB(e,"string");return Sa(t)=="symbol"?t:t+""}function MB(e,t){if(Sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ew={curveBasisClosed:rk,curveBasisOpen:nk,curveBasis:tk,curveBumpX:FI,curveBumpY:zI,curveLinearClosed:ik,curveLinear:ic,curveMonotoneX:ak,curveMonotoneY:ok,curveNatural:sk,curveStep:ck,curveStepAfter:lk,curveStepBefore:uk},mo=function(t){return t.x===+t.x&&t.y===+t.y},Bi=function(t){return t.x},qi=function(t){return t.y},$B=function(t,r){if(ae(t))return t;var n="curve".concat(rc(t));return(n==="curveMonotone"||n==="curveBump")&&r?ew["".concat(n).concat(r==="vertical"?"Y":"X")]:ew[n]||ic},NB=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,l=$B(n,s),f=u?a.filter(function(p){return mo(p)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(p){return mo(p)}):o,m=f.map(function(p,v){return Q0(Q0({},p),{},{base:h[v]})});return s==="vertical"?d=oo().y(qi).x1(Bi).x0(function(p){return p.base.x}):d=oo().x(Bi).y1(qi).y0(function(p){return p.base.y}),d.defined(mo).curve(l),d(m)}return s==="vertical"&&G(o)?d=oo().y(qi).x1(Bi).x0(o):G(o)?d=oo().x(Bi).y1(qi).y0(o):d=AA().x(Bi).y(qi),d.defined(mo).curve(l),d(f)},Pr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?NB(t):i;return E.createElement("path",eh({},J(t,!1),No(t),{className:ce("recharts-curve",r),d:o,ref:a}))},yo={exports:{}};var wd,tw;function DB(){if(tw)return wd;tw=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wd=i()?Object.assign:function(a,o){for(var s,c=n(a),u,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var f in s)t.call(s,f)&&(c[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(c[u[d]]=s[u[d]])}}return c},wd}var Od,rw;function Jv(){if(rw)return Od;rw=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Od=e,Od}var Sd,nw;function CP(){return nw||(nw=1,Sd=Function.call.bind(Object.prototype.hasOwnProperty)),Sd}var Ad,iw;function LB(){if(iw)return Ad;iw=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Jv(),r={},n=CP();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var l in a)if(n(a,l)){var f;try{if(typeof a[l]!="function"){var d=Error((c||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[l](o,l,c,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ad=i,Ad}var _d,aw;function BB(){if(aw)return _d;aw=1;var e=dv(),t=DB(),r=Jv(),n=CP(),i=LB(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return _d=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(D){var F=D&&(u&&D[u]||D[l]);if(typeof F=="function")return F}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:g(),arrayOf:x,element:O(),elementType:b(),instanceOf:w,node:I(),objectOf:P,oneOf:A,oneOfType:T,shape:j,exact:k};function m(D,F){return D===F?D!==0||1/D===1/F:D!==D&&F!==F}function p(D,F){this.message=D,this.data=F&&typeof F=="object"?F:{},this.stack=""}p.prototype=Error.prototype;function v(D){if(process.env.NODE_ENV!=="production")var F={},W=0;function V(re,ne,H,Z,z,K,X){if(Z=Z||d,K=K||H,X!==r){if(c){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=Z+":"+H;!F[fe]&&W<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[fe]=!0,W++)}}return ne[H]==null?re?ne[H]===null?new p("The "+z+" `"+K+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+z+" `"+K+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:D(ne,H,Z,z,K)}var Y=V.bind(null,!1);return Y.isRequired=V.bind(null,!0),Y}function y(D){function F(W,V,Y,re,ne,H){var Z=W[V],z=R(Z);if(z!==D){var K=L(Z);return new p("Invalid "+re+" `"+ne+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return v(F)}function g(){return v(o)}function x(D){function F(W,V,Y,re,ne){if(typeof D!="function")return new p("Property `"+ne+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var H=W[V];if(!Array.isArray(H)){var Z=R(H);return new p("Invalid "+re+" `"+ne+"` of type "+("`"+Z+"` supplied to `"+Y+"`, expected an array."))}for(var z=0;z<H.length;z++){var K=D(H,z,Y,re,ne+"["+z+"]",r);if(K instanceof Error)return K}return null}return v(F)}function O(){function D(F,W,V,Y,re){var ne=F[W];if(!s(ne)){var H=R(ne);return new p("Invalid "+Y+" `"+re+"` of type "+("`"+H+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return v(D)}function b(){function D(F,W,V,Y,re){var ne=F[W];if(!e.isValidElementType(ne)){var H=R(ne);return new p("Invalid "+Y+" `"+re+"` of type "+("`"+H+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return v(D)}function w(D){function F(W,V,Y,re,ne){if(!(W[V]instanceof D)){var H=D.name||d,Z=U(W[V]);return new p("Invalid "+re+" `"+ne+"` of type "+("`"+Z+"` supplied to `"+Y+"`, expected ")+("instance of `"+H+"`."))}return null}return v(F)}function A(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function F(W,V,Y,re,ne){for(var H=W[V],Z=0;Z<D.length;Z++)if(m(H,D[Z]))return null;var z=JSON.stringify(D,function(X,B){var fe=L(B);return fe==="symbol"?String(B):B});return new p("Invalid "+re+" `"+ne+"` of value `"+String(H)+"` "+("supplied to `"+Y+"`, expected one of "+z+"."))}return v(F)}function P(D){function F(W,V,Y,re,ne){if(typeof D!="function")return new p("Property `"+ne+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var H=W[V],Z=R(H);if(Z!=="object")return new p("Invalid "+re+" `"+ne+"` of type "+("`"+Z+"` supplied to `"+Y+"`, expected an object."));for(var z in H)if(n(H,z)){var K=D(H,z,Y,re,ne+"."+z,r);if(K instanceof Error)return K}return null}return v(F)}function T(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var F=0;F<D.length;F++){var W=D[F];if(typeof W!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(W)+" at index "+F+"."),o}function V(Y,re,ne,H,Z){for(var z=[],K=0;K<D.length;K++){var X=D[K],B=X(Y,re,ne,H,Z,r);if(B==null)return null;B.data&&n(B.data,"expectedType")&&z.push(B.data.expectedType)}var fe=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new p("Invalid "+H+" `"+Z+"` supplied to "+("`"+ne+"`"+fe+"."))}return v(V)}function I(){function D(F,W,V,Y,re){return $(F[W])?null:new p("Invalid "+Y+" `"+re+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return v(D)}function C(D,F,W,V,Y){return new p((D||"React class")+": "+F+" type `"+W+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function j(D){function F(W,V,Y,re,ne){var H=W[V],Z=R(H);if(Z!=="object")return new p("Invalid "+re+" `"+ne+"` of type `"+Z+"` "+("supplied to `"+Y+"`, expected `object`."));for(var z in D){var K=D[z];if(typeof K!="function")return C(Y,re,ne,z,L(K));var X=K(H,z,Y,re,ne+"."+z,r);if(X)return X}return null}return v(F)}function k(D){function F(W,V,Y,re,ne){var H=W[V],Z=R(H);if(Z!=="object")return new p("Invalid "+re+" `"+ne+"` of type `"+Z+"` "+("supplied to `"+Y+"`, expected `object`."));var z=t({},W[V],D);for(var K in z){var X=D[K];if(n(D,K)&&typeof X!="function")return C(Y,re,ne,K,L(X));if(!X)return new p("Invalid "+re+" `"+ne+"` key `"+K+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(W[V],null," ")+`
40
- Valid keys: `+JSON.stringify(Object.keys(D),null," "));var B=X(H,K,Y,re,ne+"."+K,r);if(B)return B}return null}return v(F)}function $(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every($);if(D===null||s(D))return!0;var F=f(D);if(F){var W=F.call(D),V;if(F!==D.entries){for(;!(V=W.next()).done;)if(!$(V.value))return!1}else for(;!(V=W.next()).done;){var Y=V.value;if(Y&&!$(Y[1]))return!1}}else return!1;return!0;default:return!1}}function N(D,F){return D==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function R(D){var F=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":N(F,D)?"symbol":F}function L(D){if(typeof D>"u"||D===null)return""+D;var F=R(D);if(F==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return F}function M(D){var F=L(D);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function U(D){return!D.constructor||!D.constructor.name?d:D.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},_d}var Pd,ow;function qB(){if(ow)return Pd;ow=1;var e=Jv();function t(){}function r(){}return r.resetWarningCache=t,Pd=function(){function n(o,s,c,u,l,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Pd}var sw;function FB(){if(sw)return yo.exports;if(sw=1,process.env.NODE_ENV!=="production"){var e=dv(),t=!0;yo.exports=BB()(e.isElement,t)}else yo.exports=qB()();return yo.exports}var zB=FB();const ye=ge(zB),{getOwnPropertyNames:WB,getOwnPropertySymbols:UB}=Object,{hasOwnProperty:HB}=Object.prototype;function Ed(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function go(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function VB(e){return e?.[Symbol.toStringTag]}function cw(e){return WB(e).concat(UB(e))}const KB=Object.hasOwn||((e,t)=>HB.call(e,t));function hn(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const GB="__v",YB="__o",XB="_owner",{getOwnPropertyDescriptor:uw,keys:lw}=Object;function ZB(e,t){return e.byteLength===t.byteLength&&us(new Uint8Array(e),new Uint8Array(t))}function JB(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function QB(e,t){return e.byteLength===t.byteLength&&us(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function eq(e,t){return hn(e.getTime(),t.getTime())}function tq(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function rq(e,t){return e===t}function fw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,c=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let l=!1,f=0;for(;(s=u.next())&&!s.done;){if(i[f]){f++;continue}const d=o.value,h=s.value;if(r.equals(d[0],h[0],c,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1;c++}return!0}const nq=hn;function iq(e,t,r){const n=lw(e);let i=n.length;if(lw(t).length!==i)return!1;for(;i-- >0;)if(!jP(e,t,r,n[i]))return!1;return!0}function Fi(e,t,r){const n=cw(e);let i=n.length;if(cw(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!jP(e,t,r,a)||(o=uw(e,a),s=uw(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function aq(e,t){return hn(e.valueOf(),t.valueOf())}function oq(e,t){return e.source===t.source&&e.flags===t.flags}function dw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const c=t.values();let u=!1,l=0;for(;(s=c.next())&&!s.done;){if(!i[l]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[l]=!0;break}l++}if(!u)return!1}return!0}function us(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function sq(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function jP(e,t,r,n){return(n===XB||n===YB||n===GB)&&(e.$$typeof||t.$$typeof)?!0:KB(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const cq="[object ArrayBuffer]",uq="[object Arguments]",lq="[object Boolean]",fq="[object DataView]",dq="[object Date]",pq="[object Error]",hq="[object Map]",vq="[object Number]",mq="[object Object]",yq="[object RegExp]",gq="[object Set]",bq="[object String]",xq={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},wq="[object URL]",Oq=Object.prototype.toString;function Sq({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:l,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:m}){return function(v,y,g){if(v===y)return!0;if(v==null||y==null)return!1;const x=typeof v;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?s(v,y,g):x==="function"?a(v,y,g):!1;const O=v.constructor;if(O!==y.constructor)return!1;if(O===Object)return c(v,y,g);if(Array.isArray(v))return t(v,y,g);if(O===Date)return n(v,y,g);if(O===RegExp)return l(v,y,g);if(O===Map)return o(v,y,g);if(O===Set)return f(v,y,g);const b=Oq.call(v);if(b===dq)return n(v,y,g);if(b===yq)return l(v,y,g);if(b===hq)return o(v,y,g);if(b===gq)return f(v,y,g);if(b===mq)return typeof v.then!="function"&&typeof y.then!="function"&&c(v,y,g);if(b===wq)return h(v,y,g);if(b===pq)return i(v,y,g);if(b===uq)return c(v,y,g);if(xq[b])return d(v,y,g);if(b===cq)return e(v,y,g);if(b===fq)return r(v,y,g);if(b===lq||b===vq||b===bq)return u(v,y,g);if(m){let w=m[b];if(!w){const A=VB(v);A&&(w=m[A])}if(w)return w(v,y,g)}return!1}}function Aq({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:ZB,areArraysEqual:r?Fi:JB,areDataViewsEqual:QB,areDatesEqual:eq,areErrorsEqual:tq,areFunctionsEqual:rq,areMapsEqual:r?Ed(fw,Fi):fw,areNumbersEqual:nq,areObjectsEqual:r?Fi:iq,arePrimitiveWrappersEqual:aq,areRegExpsEqual:oq,areSetsEqual:r?Ed(dw,Fi):dw,areTypedArraysEqual:r?Ed(us,Fi):us,areUrlsEqual:sq,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=go(n.areArraysEqual),a=go(n.areMapsEqual),o=go(n.areObjectsEqual),s=go(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function _q(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function Pq({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,c){const{cache:u=e?new WeakMap:void 0,meta:l}=r();return t(s,c,{cache:u,equals:n,meta:l,strict:i})};if(e)return function(s,c){return t(s,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,c){return t(s,c,a)}}const Eq=Nr();Nr({strict:!0});Nr({circular:!0});Nr({circular:!0,strict:!0});Nr({createInternalComparator:()=>hn});Nr({strict:!0,createInternalComparator:()=>hn});Nr({circular:!0,createInternalComparator:()=>hn});Nr({circular:!0,createInternalComparator:()=>hn,strict:!0});function Nr(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=Aq(e),o=Sq(a),s=r?r(o):_q(o);return Pq({circular:t,comparator:o,createState:n,equals:s,strict:i})}function Tq(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function pw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):Tq(i)};requestAnimationFrame(n)}function th(e){"@babel/helpers - typeof";return th=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},th(e)}function Cq(e){return Rq(e)||kq(e)||Iq(e)||jq()}function jq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
41
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iq(e,t){if(e){if(typeof e=="string")return hw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hw(e,t)}}function hw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rq(e){if(Array.isArray(e))return e}function Mq(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=Cq(o),c=s[0],u=s.slice(1);if(typeof c=="number"){pw(i.bind(null,u),c);return}i(c),pw(i.bind(null,u));return}th(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Aa(e){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Aa(e)}function vw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vw(Object(r),!0).forEach(function(n){IP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IP(e,t,r){return t=$q(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $q(e){var t=Nq(e,"string");return Aa(t)==="symbol"?t:String(t)}function Nq(e,t){if(Aa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Aa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dq=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},Lq=function(t){return t},Bq=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Xi=function(t,r){return Object.keys(r).reduce(function(n,i){return mw(mw({},n),{},IP({},i,t(i,r[i])))},{})},yw=function(t,r,n){return t.map(function(i){return"".concat(Bq(i)," ").concat(r,"ms ").concat(n)}).join(",")},qq=process.env.NODE_ENV!=="production",ls=function(t,r,n,i,a,o,s,c){if(qq&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,c],l=0;console.warn(r.replace(/%s/g,function(){return u[l++]}))}};function Fq(e,t){return Uq(e)||Wq(e,t)||kP(e,t)||zq()}function zq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
42
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Uq(e){if(Array.isArray(e))return e}function Hq(e){return Gq(e)||Kq(e)||kP(e)||Vq()}function Vq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
43
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kP(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function Kq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gq(e){if(Array.isArray(e))return rh(e)}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fs=1e-4,RP=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},MP=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},gw=function(t,r){return function(n){var i=RP(t,r);return MP(i,n)}},Yq=function(t,r){return function(n){var i=RP(t,r),a=[].concat(Hq(i.map(function(o,s){return o*s}).slice(1)),[0]);return MP(a,n)}},bw=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),l=Fq(u,4);i=l[0],a=l[1],o=l[2],s=l[3]}else ls(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}ls([i,o,a,s].every(function(v){return typeof v=="number"&&v>=0&&v<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=gw(i,o),d=gw(a,s),h=Yq(i,o),m=function(y){return y>1?1:y<0?0:y},p=function(y){for(var g=y>1?1:y,x=g,O=0;O<8;++O){var b=f(x)-g,w=h(x);if(Math.abs(b-g)<fs||w<fs)return d(x);x=m(x-b/w)}return d(x)};return p.isStepper=!1,p},Xq=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,c=function(l,f,d){var h=-(l-f)*n,m=d*a,p=d+(h-m)*s/1e3,v=d*s/1e3+l;return Math.abs(v-f)<fs&&Math.abs(p)<fs?[f,0]:[v,p]};return c.isStepper=!0,c.dt=s,c},Zq=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return bw(i);case"spring":return Xq();default:if(i.split("(")[0]==="cubic-bezier")return bw(i);ls(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(ls(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function _a(e){"@babel/helpers - typeof";return _a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_a(e)}function xw(e){return eF(e)||Qq(e)||$P(e)||Jq()}function Jq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
44
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eF(e){if(Array.isArray(e))return ih(e)}function ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ww(Object(r),!0).forEach(function(n){nh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ww(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nh(e,t,r){return t=tF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tF(e){var t=rF(e,"string");return _a(t)==="symbol"?t:String(t)}function rF(e,t){if(_a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nF(e,t){return oF(e)||aF(e,t)||$P(e,t)||iF()}function iF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
45
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $P(e,t){if(e){if(typeof e=="string")return ih(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ih(e,t)}}function ih(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function oF(e){if(Array.isArray(e))return e}var ds=function(t,r,n){return t+(r-t)*n},ah=function(t){var r=t.from,n=t.to;return r!==n},sF=function e(t,r,n){var i=Xi(function(a,o){if(ah(o)){var s=t(o.from,o.to,o.velocity),c=nF(s,2),u=c[0],l=c[1];return He(He({},o),{},{from:u,velocity:l})}return o},r);return n<1?Xi(function(a,o){return ah(o)?He(He({},o),{},{velocity:ds(o.velocity,i[a].velocity,n),from:ds(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const cF=(function(e,t,r,n,i){var a=Dq(e,t),o=a.reduce(function(v,y){return He(He({},v),{},nh({},y,[e[y],t[y]]))},{}),s=a.reduce(function(v,y){return He(He({},v),{},nh({},y,{from:e[y],velocity:0,to:t[y]}))},{}),c=-1,u,l,f=function(){return null},d=function(){return Xi(function(y,g){return g.from},s)},h=function(){return!Object.values(s).filter(ah).length},m=function(y){u||(u=y);var g=y-u,x=g/r.dt;s=sF(r,s,x),i(He(He(He({},e),t),d())),u=y,h()||(c=requestAnimationFrame(f))},p=function(y){l||(l=y);var g=(y-l)/n,x=Xi(function(b,w){return ds.apply(void 0,xw(w).concat([r(g)]))},o);if(i(He(He(He({},e),t),x)),g<1)c=requestAnimationFrame(f);else{var O=Xi(function(b,w){return ds.apply(void 0,xw(w).concat([r(1)]))},o);i(He(He(He({},e),t),O))}};return f=r.isStepper?m:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}});function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}var uF=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function lF(e,t){if(e==null)return{};var r=fF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fF(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Td(e){return vF(e)||hF(e)||pF(e)||dF()}function dF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
46
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pF(e,t){if(e){if(typeof e=="string")return oh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oh(e,t)}}function hF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vF(e){if(Array.isArray(e))return oh(e)}function oh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ow(Object(r),!0).forEach(function(n){Hi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hi(e,t,r){return t=NP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,NP(n.key),n)}}function gF(e,t,r){return t&&yF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NP(e){var t=bF(e,"string");return Hn(t)==="symbol"?t:String(t)}function bF(e,t){if(Hn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sh(e,t)}function sh(e,t){return sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sh(e,t)}function wF(e){var t=OF();return function(){var n=ps(e),i;if(t){var a=ps(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return ch(this,i)}}function ch(e,t){if(t&&(Hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uh(e)}function uh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OF(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ps(e)}var lt=(function(e){xF(r,e);var t=wF(r);function r(n,i){var a;mF(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,c=o.attributeName,u=o.from,l=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(uh(a)),a.changeStyle=a.changeStyle.bind(uh(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:l}),ch(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},ch(a);a.state={style:c?Hi({},c,u):u}}else a.state={style:{}};return a}return gF(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,c=a.attributeName,u=a.shouldReAnimate,l=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:c?Hi({},c,l):l};this.state&&d&&(c&&d[c]!==l||!c&&d!==l)&&this.setState(h);return}if(!(Eq(i.to,l)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=m||u?f:i.to;if(this.state&&d){var v={style:c?Hi({},c,p):p};(c&&d[c]!==p||!c&&d!==p)&&this.setState(v)}this.runAnimation(wt(wt({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,c=i.duration,u=i.easing,l=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=cF(o,s,Zq(u),c,this.changeStyle),m=function(){a.stopJSAnimation=h()};this.manager.start([d,l,m,c,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,c=i.onAnimationStart,u=o[0],l=u.style,f=u.duration,d=f===void 0?0:f,h=function(p,v,y){if(y===0)return p;var g=v.duration,x=v.easing,O=x===void 0?"ease":x,b=v.style,w=v.properties,A=v.onAnimationEnd,P=y>0?o[y-1]:v,T=w||Object.keys(b);if(typeof O=="function"||O==="spring")return[].concat(Td(p),[a.runJSAnimation.bind(a,{from:P.style,to:b,duration:g,easing:O}),g]);var I=yw(T,g,O),C=wt(wt(wt({},P.style),b),{},{transition:I});return[].concat(Td(p),[C,g,A]).filter(Lq)};return this.manager.start([c].concat(Td(o.reduce(h,[l,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Mq());var a=i.begin,o=i.duration,s=i.attributeName,c=i.to,u=i.easing,l=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?Hi({},s,c):c,v=yw(Object.keys(p),o,u);m.start([l,a,wt(wt({},p),{},{transition:v}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=lF(i,uF),u=S.Children.count(a),l=this.state.style;if(typeof a=="function")return a(l);if(!s||u===0||o<=0)return a;var f=function(h){var m=h.props,p=m.style,v=p===void 0?{}:p,y=m.className,g=S.cloneElement(h,wt(wt({},c),{},{style:wt(wt({},v),l),className:y}));return g};return u===1?f(S.Children.only(a)):S.createElement("div",null,S.Children.map(a,function(d){return f(d)}))}}]),r})(S.PureComponent);lt.displayName="Animate";lt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};lt.propTypes={from:ye.oneOfType([ye.object,ye.string]),to:ye.oneOfType([ye.object,ye.string]),attributeName:ye.string,duration:ye.number,begin:ye.number,easing:ye.oneOfType([ye.string,ye.func]),steps:ye.arrayOf(ye.shape({duration:ye.number.isRequired,style:ye.object.isRequired,easing:ye.oneOfType([ye.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ye.func]),properties:ye.arrayOf("string"),onAnimationEnd:ye.func})),children:ye.oneOfType([ye.node,ye.func]),isActive:ye.bool,canBegin:ye.bool,onAnimationEnd:ye.func,shouldReAnimate:ye.bool,onAnimationStart:ye.func,onAnimationReStart:ye.func};function Pa(e){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(e)}function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hs.apply(this,arguments)}function SF(e,t){return EF(e)||PF(e,t)||_F(e,t)||AF()}function AF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _F(e,t){if(e){if(typeof e=="string")return Sw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sw(e,t)}}function Sw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function EF(e){if(Array.isArray(e))return e}function Aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _w(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aw(Object(r),!0).forEach(function(n){TF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TF(e,t,r){return t=CF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CF(e){var t=jF(e,"string");return Pa(t)=="symbol"?t:t+""}function jF(e,t){if(Pa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pw=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,c=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,l;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>o?o:a[d];l="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(l+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+c*f[0],",").concat(r)),l+="L ".concat(t+n-c*f[1],",").concat(r),f[1]>0&&(l+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
39
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else b+="L".concat(r,",").concat(n,"Z");return b},RB={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},CP=function(t){var r=J0(J0({},RB),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,l=r.startAngle,f=r.endAngle,d=r.className;if(o<a||l===f)return null;var h=ce("recharts-sector",d),m=o-a,p=Ze(s,m,0,!0),v;return p>0&&Math.abs(l-f)<360?v=kB({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,m/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:f}):v=TP({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:f}),S.createElement("path",eh({},J(r,!0),{className:h,d:v,role:"img"}))};function Sa(e){"@babel/helpers - typeof";return Sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sa(e)}function th(){return th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},th.apply(this,arguments)}function Q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ew(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q0(Object(r),!0).forEach(function(n){MB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MB(e,t,r){return t=$B(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $B(e){var t=NB(e,"string");return Sa(t)=="symbol"?t:t+""}function NB(e,t){if(Sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tw={curveBasisClosed:ik,curveBasisOpen:ak,curveBasis:nk,curveBumpX:WI,curveBumpY:UI,curveLinearClosed:ok,curveLinear:ic,curveMonotoneX:sk,curveMonotoneY:ck,curveNatural:uk,curveStep:lk,curveStepAfter:dk,curveStepBefore:fk},mo=function(t){return t.x===+t.x&&t.y===+t.y},Bi=function(t){return t.x},qi=function(t){return t.y},DB=function(t,r){if(ae(t))return t;var n="curve".concat(rc(t));return(n==="curveMonotone"||n==="curveBump")&&r?tw["".concat(n).concat(r==="vertical"?"Y":"X")]:tw[n]||ic},LB=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,l=DB(n,s),f=u?a.filter(function(p){return mo(p)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(p){return mo(p)}):o,m=f.map(function(p,v){return ew(ew({},p),{},{base:h[v]})});return s==="vertical"?d=oo().y(qi).x1(Bi).x0(function(p){return p.base.x}):d=oo().x(Bi).y1(qi).y0(function(p){return p.base.y}),d.defined(mo).curve(l),d(m)}return s==="vertical"&&G(o)?d=oo().y(qi).x1(Bi).x0(o):G(o)?d=oo().x(Bi).y1(qi).y0(o):d=_A().x(Bi).y(qi),d.defined(mo).curve(l),d(f)},Pr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?LB(t):i;return E.createElement("path",th({},J(t,!1),No(t),{className:ce("recharts-curve",r),d:o,ref:a}))},yo={exports:{}};var Od,rw;function BB(){if(rw)return Od;rw=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Od=i()?Object.assign:function(a,o){for(var s,c=n(a),u,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var f in s)t.call(s,f)&&(c[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(c[u[d]]=s[u[d]])}}return c},Od}var Sd,nw;function Qv(){if(nw)return Sd;nw=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Sd=e,Sd}var Ad,iw;function jP(){return iw||(iw=1,Ad=Function.call.bind(Object.prototype.hasOwnProperty)),Ad}var _d,aw;function qB(){if(aw)return _d;aw=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qv(),r={},n=jP();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,c,u){if(process.env.NODE_ENV!=="production"){for(var l in a)if(n(a,l)){var f;try{if(typeof a[l]!="function"){var d=Error((c||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[l](o,l,c,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},_d=i,_d}var Pd,ow;function FB(){if(ow)return Pd;ow=1;var e=pv(),t=BB(),r=Qv(),n=jP(),i=qB(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return Pd=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(D){var F=D&&(u&&D[u]||D[l]);if(typeof F=="function")return F}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:g(),arrayOf:x,element:O(),elementType:b(),instanceOf:w,node:I(),objectOf:P,oneOf:A,oneOfType:T,shape:j,exact:k};function m(D,F){return D===F?D!==0||1/D===1/F:D!==D&&F!==F}function p(D,F){this.message=D,this.data=F&&typeof F=="object"?F:{},this.stack=""}p.prototype=Error.prototype;function v(D){if(process.env.NODE_ENV!=="production")var F={},W=0;function V(re,ne,H,Z,z,K,X){if(Z=Z||d,K=K||H,X!==r){if(c){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=Z+":"+H;!F[fe]&&W<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[fe]=!0,W++)}}return ne[H]==null?re?ne[H]===null?new p("The "+z+" `"+K+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+z+" `"+K+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:D(ne,H,Z,z,K)}var Y=V.bind(null,!1);return Y.isRequired=V.bind(null,!0),Y}function y(D){function F(W,V,Y,re,ne,H){var Z=W[V],z=R(Z);if(z!==D){var K=L(Z);return new p("Invalid "+re+" `"+ne+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return v(F)}function g(){return v(o)}function x(D){function F(W,V,Y,re,ne){if(typeof D!="function")return new p("Property `"+ne+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var H=W[V];if(!Array.isArray(H)){var Z=R(H);return new p("Invalid "+re+" `"+ne+"` of type "+("`"+Z+"` supplied to `"+Y+"`, expected an array."))}for(var z=0;z<H.length;z++){var K=D(H,z,Y,re,ne+"["+z+"]",r);if(K instanceof Error)return K}return null}return v(F)}function O(){function D(F,W,V,Y,re){var ne=F[W];if(!s(ne)){var H=R(ne);return new p("Invalid "+Y+" `"+re+"` of type "+("`"+H+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return v(D)}function b(){function D(F,W,V,Y,re){var ne=F[W];if(!e.isValidElementType(ne)){var H=R(ne);return new p("Invalid "+Y+" `"+re+"` of type "+("`"+H+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return v(D)}function w(D){function F(W,V,Y,re,ne){if(!(W[V]instanceof D)){var H=D.name||d,Z=U(W[V]);return new p("Invalid "+re+" `"+ne+"` of type "+("`"+Z+"` supplied to `"+Y+"`, expected ")+("instance of `"+H+"`."))}return null}return v(F)}function A(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function F(W,V,Y,re,ne){for(var H=W[V],Z=0;Z<D.length;Z++)if(m(H,D[Z]))return null;var z=JSON.stringify(D,function(X,B){var fe=L(B);return fe==="symbol"?String(B):B});return new p("Invalid "+re+" `"+ne+"` of value `"+String(H)+"` "+("supplied to `"+Y+"`, expected one of "+z+"."))}return v(F)}function P(D){function F(W,V,Y,re,ne){if(typeof D!="function")return new p("Property `"+ne+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var H=W[V],Z=R(H);if(Z!=="object")return new p("Invalid "+re+" `"+ne+"` of type "+("`"+Z+"` supplied to `"+Y+"`, expected an object."));for(var z in H)if(n(H,z)){var K=D(H,z,Y,re,ne+"."+z,r);if(K instanceof Error)return K}return null}return v(F)}function T(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var F=0;F<D.length;F++){var W=D[F];if(typeof W!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(W)+" at index "+F+"."),o}function V(Y,re,ne,H,Z){for(var z=[],K=0;K<D.length;K++){var X=D[K],B=X(Y,re,ne,H,Z,r);if(B==null)return null;B.data&&n(B.data,"expectedType")&&z.push(B.data.expectedType)}var fe=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new p("Invalid "+H+" `"+Z+"` supplied to "+("`"+ne+"`"+fe+"."))}return v(V)}function I(){function D(F,W,V,Y,re){return $(F[W])?null:new p("Invalid "+Y+" `"+re+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return v(D)}function C(D,F,W,V,Y){return new p((D||"React class")+": "+F+" type `"+W+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function j(D){function F(W,V,Y,re,ne){var H=W[V],Z=R(H);if(Z!=="object")return new p("Invalid "+re+" `"+ne+"` of type `"+Z+"` "+("supplied to `"+Y+"`, expected `object`."));for(var z in D){var K=D[z];if(typeof K!="function")return C(Y,re,ne,z,L(K));var X=K(H,z,Y,re,ne+"."+z,r);if(X)return X}return null}return v(F)}function k(D){function F(W,V,Y,re,ne){var H=W[V],Z=R(H);if(Z!=="object")return new p("Invalid "+re+" `"+ne+"` of type `"+Z+"` "+("supplied to `"+Y+"`, expected `object`."));var z=t({},W[V],D);for(var K in z){var X=D[K];if(n(D,K)&&typeof X!="function")return C(Y,re,ne,K,L(X));if(!X)return new p("Invalid "+re+" `"+ne+"` key `"+K+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(W[V],null," ")+`
40
+ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var B=X(H,K,Y,re,ne+"."+K,r);if(B)return B}return null}return v(F)}function $(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every($);if(D===null||s(D))return!0;var F=f(D);if(F){var W=F.call(D),V;if(F!==D.entries){for(;!(V=W.next()).done;)if(!$(V.value))return!1}else for(;!(V=W.next()).done;){var Y=V.value;if(Y&&!$(Y[1]))return!1}}else return!1;return!0;default:return!1}}function N(D,F){return D==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function R(D){var F=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":N(F,D)?"symbol":F}function L(D){if(typeof D>"u"||D===null)return""+D;var F=R(D);if(F==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return F}function M(D){var F=L(D);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function U(D){return!D.constructor||!D.constructor.name?d:D.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Pd}var Ed,sw;function zB(){if(sw)return Ed;sw=1;var e=Qv();function t(){}function r(){}return r.resetWarningCache=t,Ed=function(){function n(o,s,c,u,l,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Ed}var cw;function WB(){if(cw)return yo.exports;if(cw=1,process.env.NODE_ENV!=="production"){var e=pv(),t=!0;yo.exports=FB()(e.isElement,t)}else yo.exports=zB()();return yo.exports}var UB=WB();const ye=ge(UB),{getOwnPropertyNames:HB,getOwnPropertySymbols:VB}=Object,{hasOwnProperty:KB}=Object.prototype;function Td(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function go(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function GB(e){return e?.[Symbol.toStringTag]}function uw(e){return HB(e).concat(VB(e))}const YB=Object.hasOwn||((e,t)=>KB.call(e,t));function hn(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const XB="__v",ZB="__o",JB="_owner",{getOwnPropertyDescriptor:lw,keys:fw}=Object;function QB(e,t){return e.byteLength===t.byteLength&&us(new Uint8Array(e),new Uint8Array(t))}function eq(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function tq(e,t){return e.byteLength===t.byteLength&&us(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function rq(e,t){return hn(e.getTime(),t.getTime())}function nq(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function iq(e,t){return e===t}function dw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,c=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let l=!1,f=0;for(;(s=u.next())&&!s.done;){if(i[f]){f++;continue}const d=o.value,h=s.value;if(r.equals(d[0],h[0],c,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1;c++}return!0}const aq=hn;function oq(e,t,r){const n=fw(e);let i=n.length;if(fw(t).length!==i)return!1;for(;i-- >0;)if(!IP(e,t,r,n[i]))return!1;return!0}function Fi(e,t,r){const n=uw(e);let i=n.length;if(uw(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!IP(e,t,r,a)||(o=lw(e,a),s=lw(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function sq(e,t){return hn(e.valueOf(),t.valueOf())}function cq(e,t){return e.source===t.source&&e.flags===t.flags}function pw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const c=t.values();let u=!1,l=0;for(;(s=c.next())&&!s.done;){if(!i[l]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[l]=!0;break}l++}if(!u)return!1}return!0}function us(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function uq(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function IP(e,t,r,n){return(n===JB||n===ZB||n===XB)&&(e.$$typeof||t.$$typeof)?!0:YB(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const lq="[object ArrayBuffer]",fq="[object Arguments]",dq="[object Boolean]",pq="[object DataView]",hq="[object Date]",vq="[object Error]",mq="[object Map]",yq="[object Number]",gq="[object Object]",bq="[object RegExp]",xq="[object Set]",wq="[object String]",Oq={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Sq="[object URL]",Aq=Object.prototype.toString;function _q({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:l,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:m}){return function(v,y,g){if(v===y)return!0;if(v==null||y==null)return!1;const x=typeof v;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?s(v,y,g):x==="function"?a(v,y,g):!1;const O=v.constructor;if(O!==y.constructor)return!1;if(O===Object)return c(v,y,g);if(Array.isArray(v))return t(v,y,g);if(O===Date)return n(v,y,g);if(O===RegExp)return l(v,y,g);if(O===Map)return o(v,y,g);if(O===Set)return f(v,y,g);const b=Aq.call(v);if(b===hq)return n(v,y,g);if(b===bq)return l(v,y,g);if(b===mq)return o(v,y,g);if(b===xq)return f(v,y,g);if(b===gq)return typeof v.then!="function"&&typeof y.then!="function"&&c(v,y,g);if(b===Sq)return h(v,y,g);if(b===vq)return i(v,y,g);if(b===fq)return c(v,y,g);if(Oq[b])return d(v,y,g);if(b===lq)return e(v,y,g);if(b===pq)return r(v,y,g);if(b===dq||b===yq||b===wq)return u(v,y,g);if(m){let w=m[b];if(!w){const A=GB(v);A&&(w=m[A])}if(w)return w(v,y,g)}return!1}}function Pq({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:QB,areArraysEqual:r?Fi:eq,areDataViewsEqual:tq,areDatesEqual:rq,areErrorsEqual:nq,areFunctionsEqual:iq,areMapsEqual:r?Td(dw,Fi):dw,areNumbersEqual:aq,areObjectsEqual:r?Fi:oq,arePrimitiveWrappersEqual:sq,areRegExpsEqual:cq,areSetsEqual:r?Td(pw,Fi):pw,areTypedArraysEqual:r?Td(us,Fi):us,areUrlsEqual:uq,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=go(n.areArraysEqual),a=go(n.areMapsEqual),o=go(n.areObjectsEqual),s=go(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function Eq(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function Tq({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,c){const{cache:u=e?new WeakMap:void 0,meta:l}=r();return t(s,c,{cache:u,equals:n,meta:l,strict:i})};if(e)return function(s,c){return t(s,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,c){return t(s,c,a)}}const Cq=Nr();Nr({strict:!0});Nr({circular:!0});Nr({circular:!0,strict:!0});Nr({createInternalComparator:()=>hn});Nr({strict:!0,createInternalComparator:()=>hn});Nr({circular:!0,createInternalComparator:()=>hn});Nr({circular:!0,createInternalComparator:()=>hn,strict:!0});function Nr(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=Pq(e),o=_q(a),s=r?r(o):Eq(o);return Tq({circular:t,comparator:o,createState:n,equals:s,strict:i})}function jq(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function hw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):jq(i)};requestAnimationFrame(n)}function rh(e){"@babel/helpers - typeof";return rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rh(e)}function Iq(e){return $q(e)||Mq(e)||Rq(e)||kq()}function kq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
41
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rq(e,t){if(e){if(typeof e=="string")return vw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vw(e,t)}}function vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Mq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $q(e){if(Array.isArray(e))return e}function Nq(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=Iq(o),c=s[0],u=s.slice(1);if(typeof c=="number"){hw(i.bind(null,u),c);return}i(c),hw(i.bind(null,u));return}rh(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Aa(e){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Aa(e)}function mw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mw(Object(r),!0).forEach(function(n){kP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kP(e,t,r){return t=Dq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dq(e){var t=Lq(e,"string");return Aa(t)==="symbol"?t:String(t)}function Lq(e,t){if(Aa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Aa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bq=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},qq=function(t){return t},Fq=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Xi=function(t,r){return Object.keys(r).reduce(function(n,i){return yw(yw({},n),{},kP({},i,t(i,r[i])))},{})},gw=function(t,r,n){return t.map(function(i){return"".concat(Fq(i)," ").concat(r,"ms ").concat(n)}).join(",")},zq=process.env.NODE_ENV!=="production",ls=function(t,r,n,i,a,o,s,c){if(zq&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,c],l=0;console.warn(r.replace(/%s/g,function(){return u[l++]}))}};function Wq(e,t){return Vq(e)||Hq(e,t)||RP(e,t)||Uq()}function Uq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
42
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Vq(e){if(Array.isArray(e))return e}function Kq(e){return Xq(e)||Yq(e)||RP(e)||Gq()}function Gq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
43
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RP(e,t){if(e){if(typeof e=="string")return nh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nh(e,t)}}function Yq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xq(e){if(Array.isArray(e))return nh(e)}function nh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fs=1e-4,MP=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},$P=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},bw=function(t,r){return function(n){var i=MP(t,r);return $P(i,n)}},Zq=function(t,r){return function(n){var i=MP(t,r),a=[].concat(Kq(i.map(function(o,s){return o*s}).slice(1)),[0]);return $P(a,n)}},xw=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),l=Wq(u,4);i=l[0],a=l[1],o=l[2],s=l[3]}else ls(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}ls([i,o,a,s].every(function(v){return typeof v=="number"&&v>=0&&v<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=bw(i,o),d=bw(a,s),h=Zq(i,o),m=function(y){return y>1?1:y<0?0:y},p=function(y){for(var g=y>1?1:y,x=g,O=0;O<8;++O){var b=f(x)-g,w=h(x);if(Math.abs(b-g)<fs||w<fs)return d(x);x=m(x-b/w)}return d(x)};return p.isStepper=!1,p},Jq=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,c=function(l,f,d){var h=-(l-f)*n,m=d*a,p=d+(h-m)*s/1e3,v=d*s/1e3+l;return Math.abs(v-f)<fs&&Math.abs(p)<fs?[f,0]:[v,p]};return c.isStepper=!0,c.dt=s,c},Qq=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return xw(i);case"spring":return Jq();default:if(i.split("(")[0]==="cubic-bezier")return xw(i);ls(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(ls(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function _a(e){"@babel/helpers - typeof";return _a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_a(e)}function ww(e){return rF(e)||tF(e)||NP(e)||eF()}function eF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
44
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rF(e){if(Array.isArray(e))return ah(e)}function Ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ow(Object(r),!0).forEach(function(n){ih(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ih(e,t,r){return t=nF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nF(e){var t=iF(e,"string");return _a(t)==="symbol"?t:String(t)}function iF(e,t){if(_a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aF(e,t){return cF(e)||sF(e,t)||NP(e,t)||oF()}function oF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
45
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NP(e,t){if(e){if(typeof e=="string")return ah(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ah(e,t)}}function ah(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function cF(e){if(Array.isArray(e))return e}var ds=function(t,r,n){return t+(r-t)*n},oh=function(t){var r=t.from,n=t.to;return r!==n},uF=function e(t,r,n){var i=Xi(function(a,o){if(oh(o)){var s=t(o.from,o.to,o.velocity),c=aF(s,2),u=c[0],l=c[1];return He(He({},o),{},{from:u,velocity:l})}return o},r);return n<1?Xi(function(a,o){return oh(o)?He(He({},o),{},{velocity:ds(o.velocity,i[a].velocity,n),from:ds(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const lF=(function(e,t,r,n,i){var a=Bq(e,t),o=a.reduce(function(v,y){return He(He({},v),{},ih({},y,[e[y],t[y]]))},{}),s=a.reduce(function(v,y){return He(He({},v),{},ih({},y,{from:e[y],velocity:0,to:t[y]}))},{}),c=-1,u,l,f=function(){return null},d=function(){return Xi(function(y,g){return g.from},s)},h=function(){return!Object.values(s).filter(oh).length},m=function(y){u||(u=y);var g=y-u,x=g/r.dt;s=uF(r,s,x),i(He(He(He({},e),t),d())),u=y,h()||(c=requestAnimationFrame(f))},p=function(y){l||(l=y);var g=(y-l)/n,x=Xi(function(b,w){return ds.apply(void 0,ww(w).concat([r(g)]))},o);if(i(He(He(He({},e),t),x)),g<1)c=requestAnimationFrame(f);else{var O=Xi(function(b,w){return ds.apply(void 0,ww(w).concat([r(1)]))},o);i(He(He(He({},e),t),O))}};return f=r.isStepper?m:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}});function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}var fF=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function dF(e,t){if(e==null)return{};var r=pF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pF(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Cd(e){return yF(e)||mF(e)||vF(e)||hF()}function hF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vF(e,t){if(e){if(typeof e=="string")return sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sh(e,t)}}function mF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yF(e){if(Array.isArray(e))return sh(e)}function sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sw(Object(r),!0).forEach(function(n){Hi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hi(e,t,r){return t=DP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DP(n.key),n)}}function xF(e,t,r){return t&&bF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DP(e){var t=wF(e,"string");return Hn(t)==="symbol"?t:String(t)}function wF(e,t){if(Hn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ch(e,t)}function ch(e,t){return ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ch(e,t)}function SF(e){var t=AF();return function(){var n=ps(e),i;if(t){var a=ps(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return uh(this,i)}}function uh(e,t){if(t&&(Hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lh(e)}function lh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AF(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ps(e)}var lt=(function(e){OF(r,e);var t=SF(r);function r(n,i){var a;gF(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,c=o.attributeName,u=o.from,l=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(lh(a)),a.changeStyle=a.changeStyle.bind(lh(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:l}),uh(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},uh(a);a.state={style:c?Hi({},c,u):u}}else a.state={style:{}};return a}return xF(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,c=a.attributeName,u=a.shouldReAnimate,l=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:c?Hi({},c,l):l};this.state&&d&&(c&&d[c]!==l||!c&&d!==l)&&this.setState(h);return}if(!(Cq(i.to,l)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=m||u?f:i.to;if(this.state&&d){var v={style:c?Hi({},c,p):p};(c&&d[c]!==p||!c&&d!==p)&&this.setState(v)}this.runAnimation(wt(wt({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,c=i.duration,u=i.easing,l=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=lF(o,s,Qq(u),c,this.changeStyle),m=function(){a.stopJSAnimation=h()};this.manager.start([d,l,m,c,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,c=i.onAnimationStart,u=o[0],l=u.style,f=u.duration,d=f===void 0?0:f,h=function(p,v,y){if(y===0)return p;var g=v.duration,x=v.easing,O=x===void 0?"ease":x,b=v.style,w=v.properties,A=v.onAnimationEnd,P=y>0?o[y-1]:v,T=w||Object.keys(b);if(typeof O=="function"||O==="spring")return[].concat(Cd(p),[a.runJSAnimation.bind(a,{from:P.style,to:b,duration:g,easing:O}),g]);var I=gw(T,g,O),C=wt(wt(wt({},P.style),b),{},{transition:I});return[].concat(Cd(p),[C,g,A]).filter(qq)};return this.manager.start([c].concat(Cd(o.reduce(h,[l,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Nq());var a=i.begin,o=i.duration,s=i.attributeName,c=i.to,u=i.easing,l=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?Hi({},s,c):c,v=gw(Object.keys(p),o,u);m.start([l,a,wt(wt({},p),{},{transition:v}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=dF(i,fF),u=S.Children.count(a),l=this.state.style;if(typeof a=="function")return a(l);if(!s||u===0||o<=0)return a;var f=function(h){var m=h.props,p=m.style,v=p===void 0?{}:p,y=m.className,g=S.cloneElement(h,wt(wt({},c),{},{style:wt(wt({},v),l),className:y}));return g};return u===1?f(S.Children.only(a)):S.createElement("div",null,S.Children.map(a,function(d){return f(d)}))}}]),r})(S.PureComponent);lt.displayName="Animate";lt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};lt.propTypes={from:ye.oneOfType([ye.object,ye.string]),to:ye.oneOfType([ye.object,ye.string]),attributeName:ye.string,duration:ye.number,begin:ye.number,easing:ye.oneOfType([ye.string,ye.func]),steps:ye.arrayOf(ye.shape({duration:ye.number.isRequired,style:ye.object.isRequired,easing:ye.oneOfType([ye.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ye.func]),properties:ye.arrayOf("string"),onAnimationEnd:ye.func})),children:ye.oneOfType([ye.node,ye.func]),isActive:ye.bool,canBegin:ye.bool,onAnimationEnd:ye.func,shouldReAnimate:ye.bool,onAnimationStart:ye.func,onAnimationReStart:ye.func};function Pa(e){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(e)}function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hs.apply(this,arguments)}function _F(e,t){return CF(e)||TF(e,t)||EF(e,t)||PF()}function PF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EF(e,t){if(e){if(typeof e=="string")return Aw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Aw(e,t)}}function Aw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function TF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function CF(e){if(Array.isArray(e))return e}function _w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_w(Object(r),!0).forEach(function(n){jF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jF(e,t,r){return t=IF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IF(e){var t=kF(e,"string");return Pa(t)=="symbol"?t:t+""}function kF(e,t){if(Pa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ew=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,c=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,l;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>o?o:a[d];l="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(l+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+c*f[0],",").concat(r)),l+="L ".concat(t+n-c*f[1],",").concat(r),f[1]>0&&(l+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
48
48
  `).concat(t+n,",").concat(r+s*f[1])),l+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(l+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
49
49
  `).concat(t+n-c*f[2],",").concat(r+i)),l+="L ".concat(t+c*f[3],",").concat(r+i),f[3]>0&&(l+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
50
50
  `).concat(t,",").concat(r+i-s*f[3])),l+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);l="M ".concat(t,",").concat(r+s*m,`
@@ -54,16 +54,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
54
54
  L `).concat(t+n,",").concat(r+i-s*m,`
55
55
  A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-c*m,",").concat(r+i,`
56
56
  L `).concat(t+c*m,",").concat(r+i,`
57
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else l="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return l},IF=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,c=r.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(a,a+s),l=Math.max(a,a+s),f=Math.min(o,o+c),d=Math.max(o,o+c);return n>=u&&n<=l&&i>=f&&i<=d}return!1},kF={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Qv=function(t){var r=_w(_w({},kF),t),n=S.useRef(),i=S.useState(-1),a=SF(i,2),o=a[0],s=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var c=r.x,u=r.y,l=r.width,f=r.height,d=r.radius,h=r.className,m=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isAnimationActive,g=r.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||f!==+f||l===0||f===0)return null;var x=ce("recharts-rectangle",h);return g?S.createElement(lt,{canBegin:o>0,from:{width:l,height:f,x:c,y:u},to:{width:l,height:f,x:c,y:u},duration:p,animationEasing:m,isActive:g},function(O){var b=O.width,w=O.height,A=O.x,P=O.y;return S.createElement(lt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:y,easing:m},S.createElement("path",hs({},J(r,!0),{className:x,d:Pw(A,P,b,w,d),ref:n})))}):S.createElement("path",hs({},J(r,!0),{className:x,d:Pw(c,u,l,f,d)}))},RF=["points","className","baseLinePoints","connectNulls"];function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pn.apply(this,arguments)}function MF(e,t){if(e==null)return{};var r=$F(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $F(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ew(e){return BF(e)||LF(e)||DF(e)||NF()}function NF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DF(e,t){if(e){if(typeof e=="string")return lh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lh(e,t)}}function LF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BF(e){if(Array.isArray(e))return lh(e)}function lh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Tw=function(t){return t&&t.x===+t.x&&t.y===+t.y},qF=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Tw(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Tw(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Zi=function(t,r){var n=qF(t);r&&(n=[n.reduce(function(a,o){return[].concat(Ew(a),Ew(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,c){return"".concat(o).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},FF=function(t,r,n){var i=Zi(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Zi(r.reverse(),n).slice(1))},DP=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=MF(t,RF);if(!r||!r.length)return null;var s=ce("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",u=FF(r,i,a);return S.createElement("g",{className:s},S.createElement("path",Pn({},J(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?S.createElement("path",Pn({},J(o,!0),{fill:"none",d:Zi(r,a)})):null,c?S.createElement("path",Pn({},J(o,!0),{fill:"none",d:Zi(i,a)})):null)}var l=Zi(r,a);return S.createElement("path",Pn({},J(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",className:s,d:l}))};function fh(){return fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fh.apply(this,arguments)}var Ai=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ce("recharts-dot",a);return r===+r&&n===+n&&i===+i?E.createElement("circle",fh({},J(t,!1),No(t),{className:o,cx:r,cy:n,r:i})):null};function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ea(e)}var zF=["x","y","top","left","width","height","className"];function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dh.apply(this,arguments)}function Cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(r),!0).forEach(function(n){UF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UF(e,t,r){return t=HF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HF(e){var t=VF(e,"string");return Ea(t)=="symbol"?t:t+""}function VF(e,t){if(Ea(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KF(e,t){if(e==null)return{};var r=GF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var YF=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},XF=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,c=t.left,u=c===void 0?0:c,l=t.width,f=l===void 0?0:l,d=t.height,h=d===void 0?0:d,m=t.className,p=KF(t,zF),v=WF({x:n,y:a,top:s,left:u,width:f,height:h},p);return!G(n)||!G(a)||!G(f)||!G(h)||!G(s)||!G(u)?null:S.createElement("path",dh({},J(v,!0),{className:ce("recharts-cross",m),d:YF(n,a,f,h,s,u)}))},ZF=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Ta(e){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ta(e)}function JF(e,t){if(e==null)return{};var r=QF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ur.apply(this,arguments)}function jw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jw(Object(r),!0).forEach(function(n){ez(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ez(e,t,r){return t=tz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tz(e){var t=rz(e,"string");return Ta(t)=="symbol"?t:t+""}function rz(e,t){if(Ta(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ta(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nz=function(t,r,n,i){var a="";return i.forEach(function(o,s){var c=me(r,n,t,o);s?a+="L ".concat(c.x,",").concat(c.y):a+="M ".concat(c.x,",").concat(c.y)}),a+="Z",a},iz=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.polarAngles,s=t.radialLines;if(!o||!o.length||!s)return null;var c=Ca({stroke:"#ccc"},J(t,!1));return S.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(u){var l=me(r,n,i,u),f=me(r,n,a,u);return S.createElement("line",ur({},c,{key:"line-".concat(u),x1:l.x,y1:l.y,x2:f.x,y2:f.y}))}))},az=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=Ca(Ca({stroke:"#ccc"},J(t,!1)),{},{fill:"none"});return S.createElement("circle",ur({},o,{className:ce("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},oz=function(t){var r=t.radius,n=t.index,i=Ca(Ca({stroke:"#ccc"},J(t,!1)),{},{fill:"none"});return S.createElement("path",ur({},i,{className:ce("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:nz(r,t.cx,t.cy,t.polarAngles)}))},sz=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:S.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?S.createElement(az,ur({key:o},t,{radius:i,index:a})):S.createElement(oz,ur({key:o},t,{radius:i,index:a}))}))},LP=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.innerRadius,s=o===void 0?0:o,c=t.outerRadius,u=c===void 0?0:c,l=t.gridType,f=l===void 0?"polygon":l,d=t.radialLines,h=d===void 0?!0:d,m=JF(t,ZF);return u<=0?null:S.createElement("g",{className:"recharts-polar-grid"},S.createElement(iz,ur({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)),S.createElement(sz,ur({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)))};LP.displayName="PolarGrid";var Cd,Iw;function cz(){if(Iw)return Cd;Iw=1;var e=mc(),t=G_(),r=Ht();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Cd=n,Cd}var uz=cz();const lz=ge(uz);var jd,kw;function fz(){if(kw)return jd;kw=1;var e=mc(),t=Ht(),r=Y_();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return jd=n,jd}var dz=fz();const pz=ge(dz);var hz=["cx","cy","angle","ticks","axisLine"],vz=["ticks","tick","angle","tickFormatter","stroke"];function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(this,arguments)}function Rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(r),!0).forEach(function(n){xc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mw(e,t){if(e==null)return{};var r=mz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qP(n.key),n)}}function gz(e,t,r){return t&&$w(e.prototype,t),r&&$w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bz(e,t,r){return t=vs(t),xz(e,BP()?Reflect.construct(t,r||[],vs(e).constructor):t.apply(e,r))}function xz(e,t){if(t&&(Vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wz(e)}function wz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BP=function(){return!!e})()}function vs(e){return vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vs(e)}function Oz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ph(e,t)}function ph(e,t){return ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ph(e,t)}function xc(e,t,r){return t=qP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qP(e){var t=Sz(e,"string");return Vn(t)=="symbol"?t:t+""}function Sz(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _i=(function(e){function t(){return yz(this,t),bz(this,t,arguments)}return Oz(t,e),gz(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,c=a.cy;return me(s,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=lz(s,function(l){return l.coordinate||0}),u=pz(s,function(l){return l.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=n.axisLine,u=Mw(n,hz),l=s.reduce(function(m,p){return[Math.min(m[0],p.coordinate),Math.max(m[1],p.coordinate)]},[1/0,-1/0]),f=me(i,a,l[0],o),d=me(i,a,l[1],o),h=Ur(Ur(Ur({},J(u,!1)),{},{fill:"none"},J(c,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return S.createElement("line",Ji({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,c=i.tickFormatter,u=i.stroke,l=Mw(i,vz),f=this.getTickTextAnchor(),d=J(l,!1),h=J(o,!1),m=a.map(function(p,v){var y=n.getTickValueCoord(p),g=Ur(Ur(Ur(Ur({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:u},h),{},{index:v},y),{},{payload:p});return S.createElement(ue,Ji({className:ce("recharts-polar-radius-axis-tick",AP(o)),key:"tick-".concat(p.coordinate)},Tr(n.props,p,v)),t.renderTickItem(o,g,c?c(p.value,v):p.value))});return S.createElement(ue,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:S.createElement(ue,{className:ce("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),We.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):ae(n)?o=n(i):o=S.createElement(nn,Ji({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(S.PureComponent);xc(_i,"displayName","PolarRadiusAxis");xc(_i,"axisType","radiusAxis");xc(_i,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(this,arguments)}function Nw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nw(Object(r),!0).forEach(function(n){wc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Az(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zP(n.key),n)}}function _z(e,t,r){return t&&Dw(e.prototype,t),r&&Dw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pz(e,t,r){return t=ms(t),Ez(e,FP()?Reflect.construct(t,r||[],ms(e).constructor):t.apply(e,r))}function Ez(e,t){if(t&&(Kn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tz(e)}function Tz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FP=function(){return!!e})()}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ms(e)}function Cz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hh(e,t)}function hh(e,t){return hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hh(e,t)}function wc(e,t,r){return t=zP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zP(e){var t=jz(e,"string");return Kn(t)=="symbol"?t:t+""}function jz(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Iz=Math.PI/180,Lw=1e-5,Pi=(function(e){function t(){return Az(this,t),Pz(this,t,arguments)}return Cz(t,e),_z(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,c=i.orientation,u=i.tickSize,l=u||8,f=me(a,o,s,n.coordinate),d=me(a,o,s+(c==="inner"?-1:1)*l,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Iz),o;return a>Lw?o=i==="outer"?"start":"end":a<-Lw?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,c=n.axisLineType,u=Hr(Hr({},J(this.props,!1)),{},{fill:"none"},J(s,!1));if(c==="circle")return S.createElement(Ai,Gr({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var l=this.props.ticks,f=l.map(function(d){return me(i,a,o,d.coordinate)});return S.createElement(DP,Gr({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,c=i.tickFormatter,u=i.stroke,l=J(this.props,!1),f=J(o,!1),d=Hr(Hr({},l),{},{fill:"none"},J(s,!1)),h=a.map(function(m,p){var v=n.getTickLineCoord(m),y=n.getTickTextAnchor(m),g=Hr(Hr(Hr({textAnchor:y},l),{},{stroke:"none",fill:u},f),{},{index:p,payload:m,x:v.x2,y:v.y2});return S.createElement(ue,Gr({className:ce("recharts-polar-angle-axis-tick",AP(o)),key:"tick-".concat(m.coordinate)},Tr(n.props,m,p)),s&&S.createElement("line",Gr({className:"recharts-polar-angle-axis-tick-line"},d,v)),o&&t.renderTickItem(o,g,c?c(m.value,p):m.value))});return S.createElement(ue,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(ue,{className:ce("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):ae(n)?o=n(i):o=S.createElement(nn,Gr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(S.PureComponent);wc(Pi,"displayName","PolarAngleAxis");wc(Pi,"axisType","angleAxis");wc(Pi,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Id,Bw;function kz(){if(Bw)return Id;Bw=1;var e=KA(),t=e(Object.getPrototypeOf,Object);return Id=t,Id}var kd,qw;function Rz(){if(qw)return kd;qw=1;var e=pr(),t=kz(),r=hr(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,c=o.call(Object);function u(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var d=s.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==c}return kd=u,kd}var Mz=Rz();const $z=ge(Mz);var Rd,Fw;function Nz(){if(Fw)return Rd;Fw=1;var e=pr(),t=hr(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Rd=n,Rd}var Dz=Nz();const Lz=ge(Dz);function ja(e){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ys.apply(this,arguments)}function Bz(e,t){return Wz(e)||zz(e,t)||Fz(e,t)||qz()}function qz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fz(e,t){if(e){if(typeof e=="string")return zw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zw(e,t)}}function zw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Wz(e){if(Array.isArray(e))return e}function Ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Uw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ww(Object(r),!0).forEach(function(n){Uz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ww(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uz(e,t,r){return t=Hz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hz(e){var t=Vz(e,"string");return ja(t)=="symbol"?t:t+""}function Vz(e,t){if(ja(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ja(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hw=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},Kz={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Gz=function(t){var r=Uw(Uw({},Kz),t),n=S.useRef(),i=S.useState(-1),a=Bz(i,2),o=a[0],s=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var c=r.x,u=r.y,l=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,m=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||f!==+f||d!==+d||l===0&&f===0||d===0)return null;var g=ce("recharts-trapezoid",h);return y?S.createElement(lt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:c,y:u},to:{upperWidth:l,lowerWidth:f,height:d,x:c,y:u},duration:p,animationEasing:m,isActive:y},function(x){var O=x.upperWidth,b=x.lowerWidth,w=x.height,A=x.x,P=x.y;return S.createElement(lt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:m},S.createElement("path",ys({},J(r,!0),{className:g,d:Hw(A,P,O,b,w),ref:n})))}):S.createElement("g",null,S.createElement("path",ys({},J(r,!0),{className:g,d:Hw(c,u,l,f,d)})))},Yz=["option","shapeType","propTransformer","activeClassName","isActive"];function Ia(e){"@babel/helpers - typeof";return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ia(e)}function Xz(e,t){if(e==null)return{};var r=Zz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vw(Object(r),!0).forEach(function(n){Jz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jz(e,t,r){return t=Qz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qz(e){var t=eW(e,"string");return Ia(t)=="symbol"?t:t+""}function eW(e,t){if(Ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tW(e,t){return gs(gs({},t),e)}function rW(e,t){return e==="symbols"}function Kw(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(Qv,r);case"trapezoid":return S.createElement(Gz,r);case"sector":return S.createElement(TP,r);case"symbols":if(rW(t))return S.createElement(oc,r);break;default:return null}}function nW(e){return S.isValidElement(e)?e.props:e}function bs(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?tW:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,c=Xz(e,Yz),u;if(S.isValidElement(t))u=S.cloneElement(t,gs(gs({},c),nW(t)));else if(ae(t))u=t(c);else if($z(t)&&!Lz(t)){var l=i(t,c);u=S.createElement(Kw,{shapeType:r,elementProps:l})}else{var f=c;u=S.createElement(Kw,{shapeType:r,elementProps:f})}return s?S.createElement(ue,{className:o},u):u}function Oc(e,t){return t!=null&&"trapezoids"in e.props}function Sc(e,t){return t!=null&&"sectors"in e.props}function ka(e,t){return t!=null&&"points"in e.props}function iW(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function aW(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function oW(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function sW(e,t){var r;return Oc(e,t)?r=iW:Sc(e,t)?r=aW:ka(e,t)&&(r=oW),r}function cW(e,t){var r;return Oc(e,t)?r="trapezoids":Sc(e,t)?r="sectors":ka(e,t)&&(r="points"),r}function uW(e,t){if(Oc(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Sc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return ka(e,t)?t.payload:{}}function lW(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=cW(r,t),a=uW(r,t),o=n.filter(function(c,u){var l=cr(a,c),f=r.props[i].filter(function(m){var p=sW(r,t);return p(m,t)}),d=r.props[i].indexOf(f[f.length-1]),h=u===d;return l&&h}),s=n.indexOf(o[o.length-1]);return s}var Co;function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},En.apply(this,arguments)}function Gw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gw(Object(r),!0).forEach(function(n){vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UP(n.key),n)}}function dW(e,t,r){return t&&Yw(e.prototype,t),r&&Yw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pW(e,t,r){return t=xs(t),hW(e,WP()?Reflect.construct(t,r||[],xs(e).constructor):t.apply(e,r))}function hW(e,t){if(t&&(Gn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vW(e)}function vW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WP=function(){return!!e})()}function xs(e){return xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xs(e)}function mW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vh(e,t)}function vh(e,t){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vh(e,t)}function vt(e,t,r){return t=UP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UP(e){var t=yW(e,"string");return Gn(t)=="symbol"?t:t+""}function yW(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kt=(function(e){function t(r){var n;return fW(this,t),n=pW(this,t,[r]),vt(n,"pieRef",null),vt(n,"sectorRefs",[]),vt(n,"id",kr("recharts-pie-")),vt(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ae(i)&&i()}),vt(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ae(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return mW(t,e),dW(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,c=a.dataKey,u=a.valueKey,l=J(this.props,!1),f=J(o,!1),d=J(s,!1),h=o&&o.offsetRadius||20,m=n.map(function(p,v){var y=(p.startAngle+p.endAngle)/2,g=me(p.cx,p.cy,p.outerRadius+h,y),x=_e(_e(_e(_e({},l),p),{},{stroke:"none"},f),{},{index:v,textAnchor:t.getTextAnchor(g.x,p.cx)},g),O=_e(_e(_e(_e({},l),p),{},{fill:"none",stroke:p.fill},d),{},{index:v,points:[me(p.cx,p.cy,p.outerRadius,y),g]}),b=c;return oe(c)&&oe(u)?b="value":oe(c)&&(b=u),S.createElement(ue,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},s&&t.renderLabelLineItem(s,O,"line"),t.renderLabelItem(o,x,Se(p,b)))});return S.createElement(ue,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,c=a.inactiveShape;return n.map(function(u,l){if(u?.startAngle===0&&u?.endAngle===0&&n.length!==1)return null;var f=i.isActiveIndex(l),d=c&&i.hasActiveIndex()?c:null,h=f?o:d,m=_e(_e({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return S.createElement(ue,En({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Tr(i.props,u,l),{key:"sector-".concat(u?.startAngle,"-").concat(u?.endAngle,"-").concat(u.midAngle,"-").concat(l)}),S.createElement(bs,En({option:h,isActive:f,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state,d=f.prevSectors,h=f.prevIsAnimationActive;return S.createElement(lt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var p=m.t,v=[],y=a&&a[0],g=y.startAngle;return a.forEach(function(x,O){var b=d&&d[O],w=O>0?ct(x,"paddingAngle",0):0;if(b){var A=Oe(b.endAngle-b.startAngle,x.endAngle-x.startAngle),P=_e(_e({},x),{},{startAngle:g+w,endAngle:g+A(p)+w});v.push(P),g=P.endAngle}else{var T=x.endAngle,I=x.startAngle,C=Oe(0,T-I),j=C(p),k=_e(_e({},x),{},{startAngle:g+w,endAngle:g+j+w});v.push(k),g=k.endAngle}}),S.createElement(ue,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!cr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,c=i.label,u=i.cx,l=i.cy,f=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!G(u)||!G(l)||!G(f)||!G(d))return null;var p=ce("recharts-pie",s);return S.createElement(ue,{tabIndex:this.props.rootTabIndex,className:p,ref:function(y){n.pieRef=y}},this.renderSectors(),c&&this.renderLabels(o),We.renderCallByParent(this.props,null,!1),(!h||m)&&gt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(ae(n))return n(i);var o=ce("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(Pr,En({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(ae(n)&&(o=n(i),S.isValidElement(o)))return o;var s=ce("recharts-pie-label-text",typeof n!="boolean"&&!ae(n)?n.className:"");return S.createElement(nn,En({},i,{alignmentBaseline:"middle",className:s}),o)}}])})(S.PureComponent);Co=Kt;vt(Kt,"displayName","Pie");vt(Kt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Vt.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});vt(Kt,"parseDeltaAngle",function(e,t){var r=Xe(t-e),n=Math.min(Math.abs(t-e),360);return r*n});vt(Kt,"getRealPieData",function(e){var t=e.data,r=e.children,n=J(e,!1),i=Qe(r,Rr);return t&&t.length?t.map(function(a,o){return _e(_e(_e({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return _e(_e({},n),a.props)}):[]});vt(Kt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=OP(i,a),s=n+Ze(e.cx,i,i/2),c=r+Ze(e.cy,a,a/2),u=Ze(e.innerRadius,o,0),l=Ze(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:l,maxRadius:f}});vt(Kt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?_e(_e({},t.type.defaultProps),t.props):t.props,i=Co.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,c=n.paddingAngle,u=n.dataKey,l=n.nameKey,f=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),m=Co.parseCoordinateOfPie(n,r),p=Co.parseDeltaAngle(o,s),v=Math.abs(p),y=u;oe(u)&&oe(f)?(Pt(!1,`Use "dataKey" to specify the value of pie,
57
+ A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else l="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return l},RF=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,c=r.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(a,a+s),l=Math.max(a,a+s),f=Math.min(o,o+c),d=Math.max(o,o+c);return n>=u&&n<=l&&i>=f&&i<=d}return!1},MF={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},em=function(t){var r=Pw(Pw({},MF),t),n=S.useRef(),i=S.useState(-1),a=_F(i,2),o=a[0],s=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var c=r.x,u=r.y,l=r.width,f=r.height,d=r.radius,h=r.className,m=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isAnimationActive,g=r.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||f!==+f||l===0||f===0)return null;var x=ce("recharts-rectangle",h);return g?S.createElement(lt,{canBegin:o>0,from:{width:l,height:f,x:c,y:u},to:{width:l,height:f,x:c,y:u},duration:p,animationEasing:m,isActive:g},function(O){var b=O.width,w=O.height,A=O.x,P=O.y;return S.createElement(lt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:y,easing:m},S.createElement("path",hs({},J(r,!0),{className:x,d:Ew(A,P,b,w,d),ref:n})))}):S.createElement("path",hs({},J(r,!0),{className:x,d:Ew(c,u,l,f,d)}))},$F=["points","className","baseLinePoints","connectNulls"];function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pn.apply(this,arguments)}function NF(e,t){if(e==null)return{};var r=DF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tw(e){return FF(e)||qF(e)||BF(e)||LF()}function LF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BF(e,t){if(e){if(typeof e=="string")return fh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fh(e,t)}}function qF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FF(e){if(Array.isArray(e))return fh(e)}function fh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Cw=function(t){return t&&t.x===+t.x&&t.y===+t.y},zF=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Cw(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Cw(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Zi=function(t,r){var n=zF(t);r&&(n=[n.reduce(function(a,o){return[].concat(Tw(a),Tw(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,c){return"".concat(o).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},WF=function(t,r,n){var i=Zi(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Zi(r.reverse(),n).slice(1))},LP=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=NF(t,$F);if(!r||!r.length)return null;var s=ce("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",u=WF(r,i,a);return S.createElement("g",{className:s},S.createElement("path",Pn({},J(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?S.createElement("path",Pn({},J(o,!0),{fill:"none",d:Zi(r,a)})):null,c?S.createElement("path",Pn({},J(o,!0),{fill:"none",d:Zi(i,a)})):null)}var l=Zi(r,a);return S.createElement("path",Pn({},J(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",className:s,d:l}))};function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dh.apply(this,arguments)}var Ai=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ce("recharts-dot",a);return r===+r&&n===+n&&i===+i?E.createElement("circle",dh({},J(t,!1),No(t),{className:o,cx:r,cy:n,r:i})):null};function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ea(e)}var UF=["x","y","top","left","width","height","className"];function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ph.apply(this,arguments)}function jw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jw(Object(r),!0).forEach(function(n){VF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VF(e,t,r){return t=KF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KF(e){var t=GF(e,"string");return Ea(t)=="symbol"?t:t+""}function GF(e,t){if(Ea(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YF(e,t){if(e==null)return{};var r=XF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ZF=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},JF=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,c=t.left,u=c===void 0?0:c,l=t.width,f=l===void 0?0:l,d=t.height,h=d===void 0?0:d,m=t.className,p=YF(t,UF),v=HF({x:n,y:a,top:s,left:u,width:f,height:h},p);return!G(n)||!G(a)||!G(f)||!G(h)||!G(s)||!G(u)?null:S.createElement("path",ph({},J(v,!0),{className:ce("recharts-cross",m),d:ZF(n,a,f,h,s,u)}))},QF=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Ta(e){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ta(e)}function ez(e,t){if(e==null)return{};var r=tz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ur.apply(this,arguments)}function Iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iw(Object(r),!0).forEach(function(n){rz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rz(e,t,r){return t=nz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nz(e){var t=iz(e,"string");return Ta(t)=="symbol"?t:t+""}function iz(e,t){if(Ta(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ta(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var az=function(t,r,n,i){var a="";return i.forEach(function(o,s){var c=me(r,n,t,o);s?a+="L ".concat(c.x,",").concat(c.y):a+="M ".concat(c.x,",").concat(c.y)}),a+="Z",a},oz=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.polarAngles,s=t.radialLines;if(!o||!o.length||!s)return null;var c=Ca({stroke:"#ccc"},J(t,!1));return S.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(u){var l=me(r,n,i,u),f=me(r,n,a,u);return S.createElement("line",ur({},c,{key:"line-".concat(u),x1:l.x,y1:l.y,x2:f.x,y2:f.y}))}))},sz=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=Ca(Ca({stroke:"#ccc"},J(t,!1)),{},{fill:"none"});return S.createElement("circle",ur({},o,{className:ce("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},cz=function(t){var r=t.radius,n=t.index,i=Ca(Ca({stroke:"#ccc"},J(t,!1)),{},{fill:"none"});return S.createElement("path",ur({},i,{className:ce("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:az(r,t.cx,t.cy,t.polarAngles)}))},uz=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:S.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?S.createElement(sz,ur({key:o},t,{radius:i,index:a})):S.createElement(cz,ur({key:o},t,{radius:i,index:a}))}))},BP=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.innerRadius,s=o===void 0?0:o,c=t.outerRadius,u=c===void 0?0:c,l=t.gridType,f=l===void 0?"polygon":l,d=t.radialLines,h=d===void 0?!0:d,m=ez(t,QF);return u<=0?null:S.createElement("g",{className:"recharts-polar-grid"},S.createElement(oz,ur({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)),S.createElement(uz,ur({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},m)))};BP.displayName="PolarGrid";var jd,kw;function lz(){if(kw)return jd;kw=1;var e=mc(),t=Y_(),r=Ht();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return jd=n,jd}var fz=lz();const dz=ge(fz);var Id,Rw;function pz(){if(Rw)return Id;Rw=1;var e=mc(),t=Ht(),r=X_();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Id=n,Id}var hz=pz();const vz=ge(hz);var mz=["cx","cy","angle","ticks","axisLine"],yz=["ticks","tick","angle","tickFormatter","stroke"];function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(this,arguments)}function Mw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mw(Object(r),!0).forEach(function(n){xc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $w(e,t){if(e==null)return{};var r=gz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FP(n.key),n)}}function xz(e,t,r){return t&&Nw(e.prototype,t),r&&Nw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wz(e,t,r){return t=vs(t),Oz(e,qP()?Reflect.construct(t,r||[],vs(e).constructor):t.apply(e,r))}function Oz(e,t){if(t&&(Vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sz(e)}function Sz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qP=function(){return!!e})()}function vs(e){return vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vs(e)}function Az(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hh(e,t)}function hh(e,t){return hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hh(e,t)}function xc(e,t,r){return t=FP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FP(e){var t=_z(e,"string");return Vn(t)=="symbol"?t:t+""}function _z(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _i=(function(e){function t(){return bz(this,t),wz(this,t,arguments)}return Az(t,e),xz(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,c=a.cy;return me(s,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=dz(s,function(l){return l.coordinate||0}),u=vz(s,function(l){return l.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,c=n.axisLine,u=$w(n,mz),l=s.reduce(function(m,p){return[Math.min(m[0],p.coordinate),Math.max(m[1],p.coordinate)]},[1/0,-1/0]),f=me(i,a,l[0],o),d=me(i,a,l[1],o),h=Ur(Ur(Ur({},J(u,!1)),{},{fill:"none"},J(c,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return S.createElement("line",Ji({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,c=i.tickFormatter,u=i.stroke,l=$w(i,yz),f=this.getTickTextAnchor(),d=J(l,!1),h=J(o,!1),m=a.map(function(p,v){var y=n.getTickValueCoord(p),g=Ur(Ur(Ur(Ur({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:u},h),{},{index:v},y),{},{payload:p});return S.createElement(ue,Ji({className:ce("recharts-polar-radius-axis-tick",_P(o)),key:"tick-".concat(p.coordinate)},Tr(n.props,p,v)),t.renderTickItem(o,g,c?c(p.value,v):p.value))});return S.createElement(ue,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:S.createElement(ue,{className:ce("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),We.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):ae(n)?o=n(i):o=S.createElement(nn,Ji({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(S.PureComponent);xc(_i,"displayName","PolarRadiusAxis");xc(_i,"axisType","radiusAxis");xc(_i,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(this,arguments)}function Dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(r),!0).forEach(function(n){wc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WP(n.key),n)}}function Ez(e,t,r){return t&&Lw(e.prototype,t),r&&Lw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tz(e,t,r){return t=ms(t),Cz(e,zP()?Reflect.construct(t,r||[],ms(e).constructor):t.apply(e,r))}function Cz(e,t){if(t&&(Kn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jz(e)}function jz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zP=function(){return!!e})()}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ms(e)}function Iz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vh(e,t)}function vh(e,t){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vh(e,t)}function wc(e,t,r){return t=WP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WP(e){var t=kz(e,"string");return Kn(t)=="symbol"?t:t+""}function kz(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rz=Math.PI/180,Bw=1e-5,Pi=(function(e){function t(){return Pz(this,t),Tz(this,t,arguments)}return Iz(t,e),Ez(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,c=i.orientation,u=i.tickSize,l=u||8,f=me(a,o,s,n.coordinate),d=me(a,o,s+(c==="inner"?-1:1)*l,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Rz),o;return a>Bw?o=i==="outer"?"start":"end":a<-Bw?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,c=n.axisLineType,u=Hr(Hr({},J(this.props,!1)),{},{fill:"none"},J(s,!1));if(c==="circle")return S.createElement(Ai,Gr({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var l=this.props.ticks,f=l.map(function(d){return me(i,a,o,d.coordinate)});return S.createElement(LP,Gr({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,c=i.tickFormatter,u=i.stroke,l=J(this.props,!1),f=J(o,!1),d=Hr(Hr({},l),{},{fill:"none"},J(s,!1)),h=a.map(function(m,p){var v=n.getTickLineCoord(m),y=n.getTickTextAnchor(m),g=Hr(Hr(Hr({textAnchor:y},l),{},{stroke:"none",fill:u},f),{},{index:p,payload:m,x:v.x2,y:v.y2});return S.createElement(ue,Gr({className:ce("recharts-polar-angle-axis-tick",_P(o)),key:"tick-".concat(m.coordinate)},Tr(n.props,m,p)),s&&S.createElement("line",Gr({className:"recharts-polar-angle-axis-tick-line"},d,v)),o&&t.renderTickItem(o,g,c?c(m.value,p):m.value))});return S.createElement(ue,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(ue,{className:ce("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):ae(n)?o=n(i):o=S.createElement(nn,Gr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(S.PureComponent);wc(Pi,"displayName","PolarAngleAxis");wc(Pi,"axisType","angleAxis");wc(Pi,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var kd,qw;function Mz(){if(qw)return kd;qw=1;var e=GA(),t=e(Object.getPrototypeOf,Object);return kd=t,kd}var Rd,Fw;function $z(){if(Fw)return Rd;Fw=1;var e=pr(),t=Mz(),r=hr(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,c=o.call(Object);function u(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var d=s.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==c}return Rd=u,Rd}var Nz=$z();const Dz=ge(Nz);var Md,zw;function Lz(){if(zw)return Md;zw=1;var e=pr(),t=hr(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Md=n,Md}var Bz=Lz();const qz=ge(Bz);function ja(e){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ys.apply(this,arguments)}function Fz(e,t){return Hz(e)||Uz(e,t)||Wz(e,t)||zz()}function zz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wz(e,t){if(e){if(typeof e=="string")return Ww(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ww(e,t)}}function Ww(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Uz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Hz(e){if(Array.isArray(e))return e}function Uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(r),!0).forEach(function(n){Vz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vz(e,t,r){return t=Kz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kz(e){var t=Gz(e,"string");return ja(t)=="symbol"?t:t+""}function Gz(e,t){if(ja(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ja(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vw=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},Yz={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Xz=function(t){var r=Hw(Hw({},Yz),t),n=S.useRef(),i=S.useState(-1),a=Fz(i,2),o=a[0],s=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var c=r.x,u=r.y,l=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,m=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||f!==+f||d!==+d||l===0&&f===0||d===0)return null;var g=ce("recharts-trapezoid",h);return y?S.createElement(lt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:c,y:u},to:{upperWidth:l,lowerWidth:f,height:d,x:c,y:u},duration:p,animationEasing:m,isActive:y},function(x){var O=x.upperWidth,b=x.lowerWidth,w=x.height,A=x.x,P=x.y;return S.createElement(lt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:m},S.createElement("path",ys({},J(r,!0),{className:g,d:Vw(A,P,O,b,w),ref:n})))}):S.createElement("g",null,S.createElement("path",ys({},J(r,!0),{className:g,d:Vw(c,u,l,f,d)})))},Zz=["option","shapeType","propTransformer","activeClassName","isActive"];function Ia(e){"@babel/helpers - typeof";return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ia(e)}function Jz(e,t){if(e==null)return{};var r=Qz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Kw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(r),!0).forEach(function(n){eW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eW(e,t,r){return t=tW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tW(e){var t=rW(e,"string");return Ia(t)=="symbol"?t:t+""}function rW(e,t){if(Ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nW(e,t){return gs(gs({},t),e)}function iW(e,t){return e==="symbols"}function Gw(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(em,r);case"trapezoid":return S.createElement(Xz,r);case"sector":return S.createElement(CP,r);case"symbols":if(iW(t))return S.createElement(oc,r);break;default:return null}}function aW(e){return S.isValidElement(e)?e.props:e}function bs(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?nW:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,c=Jz(e,Zz),u;if(S.isValidElement(t))u=S.cloneElement(t,gs(gs({},c),aW(t)));else if(ae(t))u=t(c);else if(Dz(t)&&!qz(t)){var l=i(t,c);u=S.createElement(Gw,{shapeType:r,elementProps:l})}else{var f=c;u=S.createElement(Gw,{shapeType:r,elementProps:f})}return s?S.createElement(ue,{className:o},u):u}function Oc(e,t){return t!=null&&"trapezoids"in e.props}function Sc(e,t){return t!=null&&"sectors"in e.props}function ka(e,t){return t!=null&&"points"in e.props}function oW(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function sW(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function cW(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function uW(e,t){var r;return Oc(e,t)?r=oW:Sc(e,t)?r=sW:ka(e,t)&&(r=cW),r}function lW(e,t){var r;return Oc(e,t)?r="trapezoids":Sc(e,t)?r="sectors":ka(e,t)&&(r="points"),r}function fW(e,t){if(Oc(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Sc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return ka(e,t)?t.payload:{}}function dW(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=lW(r,t),a=fW(r,t),o=n.filter(function(c,u){var l=cr(a,c),f=r.props[i].filter(function(m){var p=uW(r,t);return p(m,t)}),d=r.props[i].indexOf(f[f.length-1]),h=u===d;return l&&h}),s=n.indexOf(o[o.length-1]);return s}var Co;function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},En.apply(this,arguments)}function Yw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yw(Object(r),!0).forEach(function(n){vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HP(n.key),n)}}function hW(e,t,r){return t&&Xw(e.prototype,t),r&&Xw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vW(e,t,r){return t=xs(t),mW(e,UP()?Reflect.construct(t,r||[],xs(e).constructor):t.apply(e,r))}function mW(e,t){if(t&&(Gn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yW(e)}function yW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UP=function(){return!!e})()}function xs(e){return xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xs(e)}function gW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mh(e,t)}function mh(e,t){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mh(e,t)}function vt(e,t,r){return t=HP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HP(e){var t=bW(e,"string");return Gn(t)=="symbol"?t:t+""}function bW(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kt=(function(e){function t(r){var n;return pW(this,t),n=vW(this,t,[r]),vt(n,"pieRef",null),vt(n,"sectorRefs",[]),vt(n,"id",kr("recharts-pie-")),vt(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ae(i)&&i()}),vt(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ae(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return gW(t,e),hW(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,c=a.dataKey,u=a.valueKey,l=J(this.props,!1),f=J(o,!1),d=J(s,!1),h=o&&o.offsetRadius||20,m=n.map(function(p,v){var y=(p.startAngle+p.endAngle)/2,g=me(p.cx,p.cy,p.outerRadius+h,y),x=_e(_e(_e(_e({},l),p),{},{stroke:"none"},f),{},{index:v,textAnchor:t.getTextAnchor(g.x,p.cx)},g),O=_e(_e(_e(_e({},l),p),{},{fill:"none",stroke:p.fill},d),{},{index:v,points:[me(p.cx,p.cy,p.outerRadius,y),g]}),b=c;return oe(c)&&oe(u)?b="value":oe(c)&&(b=u),S.createElement(ue,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},s&&t.renderLabelLineItem(s,O,"line"),t.renderLabelItem(o,x,Se(p,b)))});return S.createElement(ue,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,c=a.inactiveShape;return n.map(function(u,l){if(u?.startAngle===0&&u?.endAngle===0&&n.length!==1)return null;var f=i.isActiveIndex(l),d=c&&i.hasActiveIndex()?c:null,h=f?o:d,m=_e(_e({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return S.createElement(ue,En({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Tr(i.props,u,l),{key:"sector-".concat(u?.startAngle,"-").concat(u?.endAngle,"-").concat(u.midAngle,"-").concat(l)}),S.createElement(bs,En({option:h,isActive:f,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state,d=f.prevSectors,h=f.prevIsAnimationActive;return S.createElement(lt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var p=m.t,v=[],y=a&&a[0],g=y.startAngle;return a.forEach(function(x,O){var b=d&&d[O],w=O>0?ct(x,"paddingAngle",0):0;if(b){var A=Oe(b.endAngle-b.startAngle,x.endAngle-x.startAngle),P=_e(_e({},x),{},{startAngle:g+w,endAngle:g+A(p)+w});v.push(P),g=P.endAngle}else{var T=x.endAngle,I=x.startAngle,C=Oe(0,T-I),j=C(p),k=_e(_e({},x),{},{startAngle:g+w,endAngle:g+j+w});v.push(k),g=k.endAngle}}),S.createElement(ue,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!cr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,c=i.label,u=i.cx,l=i.cy,f=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!G(u)||!G(l)||!G(f)||!G(d))return null;var p=ce("recharts-pie",s);return S.createElement(ue,{tabIndex:this.props.rootTabIndex,className:p,ref:function(y){n.pieRef=y}},this.renderSectors(),c&&this.renderLabels(o),We.renderCallByParent(this.props,null,!1),(!h||m)&&gt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(ae(n))return n(i);var o=ce("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(Pr,En({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(ae(n)&&(o=n(i),S.isValidElement(o)))return o;var s=ce("recharts-pie-label-text",typeof n!="boolean"&&!ae(n)?n.className:"");return S.createElement(nn,En({},i,{alignmentBaseline:"middle",className:s}),o)}}])})(S.PureComponent);Co=Kt;vt(Kt,"displayName","Pie");vt(Kt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Vt.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});vt(Kt,"parseDeltaAngle",function(e,t){var r=Xe(t-e),n=Math.min(Math.abs(t-e),360);return r*n});vt(Kt,"getRealPieData",function(e){var t=e.data,r=e.children,n=J(e,!1),i=Qe(r,Rr);return t&&t.length?t.map(function(a,o){return _e(_e(_e({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return _e(_e({},n),a.props)}):[]});vt(Kt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=SP(i,a),s=n+Ze(e.cx,i,i/2),c=r+Ze(e.cy,a,a/2),u=Ze(e.innerRadius,o,0),l=Ze(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:l,maxRadius:f}});vt(Kt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?_e(_e({},t.type.defaultProps),t.props):t.props,i=Co.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,c=n.paddingAngle,u=n.dataKey,l=n.nameKey,f=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),m=Co.parseCoordinateOfPie(n,r),p=Co.parseDeltaAngle(o,s),v=Math.abs(p),y=u;oe(u)&&oe(f)?(Pt(!1,`Use "dataKey" to specify the value of pie,
60
60
  the props "valueKey" will be deprecated in 1.1.0`),y="value"):oe(u)&&(Pt(!1,`Use "dataKey" to specify the value of pie,
61
- the props "valueKey" will be deprecated in 1.1.0`),y=f);var g=i.filter(function(P){return Se(P,y,0)!==0}).length,x=(v>=360?g:g-1)*c,O=v-g*h-x,b=i.reduce(function(P,T){var I=Se(T,y,0);return P+(G(I)?I:0)},0),w;if(b>0){var A;w=i.map(function(P,T){var I=Se(P,y,0),C=Se(P,l,T),j=(G(I)?I:0)/b,k;T?k=A.endAngle+Xe(p)*c*(I!==0?1:0):k=o;var $=k+Xe(p)*((I!==0?h:0)+j*O),N=(k+$)/2,R=(m.innerRadius+m.outerRadius)/2,L=[{name:C,value:I,payload:P,dataKey:y,type:d}],M=me(m.cx,m.cy,R,N);return A=_e(_e(_e({percent:j,cornerRadius:a,name:C,tooltipPayload:L,midAngle:N,middleRadius:R,tooltipPosition:M},P),m),{},{value:Se(P,y),startAngle:k,endAngle:$,payload:P,paddingAngle:Xe(p)*c}),A})}return _e(_e({},m),{},{sectors:w,data:i})});var Md,Xw;function gW(){if(Xw)return Md;Xw=1;function e(t){return t&&t.length?t[0]:void 0}return Md=e,Md}var $d,Zw;function bW(){return Zw||(Zw=1,$d=gW()),$d}var xW=bW();const wW=ge(xW);var OW=["key"];function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function SW(e,t){if(e==null)return{};var r=AW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ws.apply(this,arguments)}function Jw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(r),!0).forEach(function(n){Qt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VP(n.key),n)}}function PW(e,t,r){return t&&Qw(e.prototype,t),r&&Qw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function EW(e,t,r){return t=Os(t),TW(e,HP()?Reflect.construct(t,r||[],Os(e).constructor):t.apply(e,r))}function TW(e,t){if(t&&(Yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CW(e)}function CW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HP=function(){return!!e})()}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Os(e)}function jW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mh(e,t)}function mh(e,t){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mh(e,t)}function Qt(e,t,r){return t=VP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VP(e){var t=IW(e,"string");return Yn(t)=="symbol"?t:t+""}function IW(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ka=(function(e){function t(){var r;_W(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=EW(this,t,[].concat(i)),Qt(r,"state",{isAnimationFinished:!1}),Qt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ae(o)&&o()}),Qt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ae(o)&&o()}),Qt(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),Qt(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return jW(t,e),PW(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=J(this.props,!1),c=J(a,!0),u=n.map(function(l,f){var d=Ye(Ye(Ye({key:"dot-".concat(f),r:3},s),c),{},{dataKey:o,cx:l.x,cy:l.y,index:f,payload:l});return t.renderDotItem(a,d)});return S.createElement(ue,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,s=i.isRange,c=i.baseLinePoints,u=i.connectNulls,l;return S.isValidElement(a)?l=S.cloneElement(a,Ye(Ye({},this.props),{},{points:n})):ae(a)?l=a(Ye(Ye({},this.props),{},{points:n})):l=S.createElement(DP,ws({},J(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?c:null,connectNulls:u})),S.createElement(ue,{className:"recharts-radar-polygon"},l,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return S.createElement(lt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"radar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=f&&f.length/a.length,p=a.map(function(v,y){var g=f&&f[Math.floor(y*m)];if(g){var x=Oe(g.x,v.x),O=Oe(g.y,v.y);return Ye(Ye({},v),{},{x:x(h),y:O(h)})}var b=Oe(v.cx,v.x),w=Oe(v.cy,v.y);return Ye(Ye({},v),{},{x:b(h),y:w(h)})});return n.renderPolygonStatically(p)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,s=this.state.prevPoints;return a&&i&&i.length&&!o&&(!s||!cr(s,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,s=n.isAnimationActive;if(i||!o||!o.length)return null;var c=this.state.isAnimationFinished,u=ce("recharts-radar",a);return S.createElement(ue,{className:u},this.renderPolygon(),(!s||c)&&gt.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(ae(n))a=n(i);else{var o=i.key,s=SW(i,OW);a=S.createElement(Ai,ws({},s,{key:o,className:ce("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(S.PureComponent);Qt(Ka,"displayName","Radar");Qt(Ka,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Qt(Ka,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,a=e.bandSize,o=r.cx,s=r.cy,c=!1,u=[],l=r.type!=="number"?a??0:0;n.forEach(function(d,h){var m=Se(d,r.dataKey,h),p=Se(d,i),v=r.scale(m)+l,y=Array.isArray(p)?PP(p):p,g=oe(y)?void 0:t.scale(y);Array.isArray(p)&&p.length>=2&&(c=!0),u.push(Ye(Ye({},me(o,s,g,v)),{},{name:m,value:p,cx:o,cy:s,radius:g,angle:v,payload:d}))});var f=[];return c&&u.forEach(function(d){if(Array.isArray(d.value)){var h=wW(d.value),m=oe(h)?void 0:t.scale(h);f.push(Ye(Ye({},d),{},{radius:m},me(o,s,m,d.angle)))}else f.push(d)}),{points:u,isRange:c,baseLinePoints:f}});var Nd,eO;function kW(){if(eO)return Nd;eO=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,c=t(e((i-n)/(a||1)),0),u=Array(c);c--;)u[o?c:++s]=n,n+=a;return u}return Nd=r,Nd}var Dd,tO;function KP(){if(tO)return Dd;tO=1;var e=u_(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Dd=n,Dd}var Ld,rO;function RW(){if(rO)return Ld;rO=1;var e=kW(),t=uc(),r=KP();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Ld=n,Ld}var Bd,nO;function MW(){if(nO)return Bd;nO=1;var e=RW(),t=e();return Bd=t,Bd}var $W=MW();const Ss=ge($W);function Ra(e){"@babel/helpers - typeof";return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ra(e)}function iO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function aO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iO(Object(r),!0).forEach(function(n){GP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GP(e,t,r){return t=NW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NW(e){var t=DW(e,"string");return Ra(t)=="symbol"?t:t+""}function DW(e,t){if(Ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LW=["Webkit","Moz","O","ms"],BW=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=LW.reduce(function(a,o){return aO(aO({},a),{},GP({},o+n,r))},{});return i[t]=r,i};function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(n){it(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XP(n.key),n)}}function FW(e,t,r){return t&&sO(e.prototype,t),r&&sO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zW(e,t,r){return t=_s(t),WW(e,YP()?Reflect.construct(t,r||[],_s(e).constructor):t.apply(e,r))}function WW(e,t){if(t&&(Xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UW(e)}function UW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YP=function(){return!!e})()}function _s(e){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_s(e)}function HW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yh(e,t)}function yh(e,t){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yh(e,t)}function it(e,t,r){return t=XP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XP(e){var t=VW(e,"string");return Xn(t)=="symbol"?t:t+""}function VW(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KW=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=Gi().domain(Ss(0,c)).range([a,a+o-s]),l=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:l}},cO=function(t){return t.changedTouches&&!!t.changedTouches.length},Zn=(function(e){function t(r){var n;return qW(this,t),n=zW(this,t,[r]),it(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),it(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),it(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o?.({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),it(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),it(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),it(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),it(n,"handleSlideDragStart",function(i){var a=cO(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return HW(t,e),FW(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,l=u.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),m=t.getIndexInRange(o,d);return{startIndex:h-h%c,endIndex:m===l?l:m-m%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,c=Se(a[n],s,n);return ae(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,c=this.props,u=c.x,l=c.width,f=c.travellerWidth,d=c.startIndex,h=c.endIndex,m=c.onChange,p=n.pageX-a;p>0?p=Math.min(p,u+l-f-s,u+l-f-o):p<0&&(p=Math.max(p,u-o,u-s));var v=this.getIndex({startX:o+p,endX:s+p});(v.startIndex!==d||v.endIndex!==h)&&m&&m(v),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=cO(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,c=i.startX,u=this.state[o],l=this.props,f=l.x,d=l.width,h=l.travellerWidth,m=l.onChange,p=l.gap,v=l.data,y={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,f+d-h-u):g<0&&(g=Math.max(g,f-u)),y[o]=u+g;var x=this.getIndex(y),O=x.startIndex,b=x.endIndex,w=function(){var P=v.length-1;return o==="startX"&&(s>c?O%p===0:b%p===0)||s<c&&b===P||o==="endX"&&(s>c?b%p===0:O%p===0)||s>c&&b===P};this.setState(it(it({},o,u+g),"brushMoveStartX",n.pageX),function(){m&&w()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,c=o.startX,u=o.endX,l=this.state[i],f=s.indexOf(l);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=c||this.setState(it({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.fill,u=n.stroke;return S.createElement("rect",{stroke:u,fill:c,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.data,u=n.children,l=n.padding,f=S.Children.only(u);return f?S.cloneElement(f,{x:i,y:a,width:o,height:s,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,c=this.props,u=c.y,l=c.travellerWidth,f=c.height,d=c.traveller,h=c.ariaLabel,m=c.data,p=c.startIndex,v=c.endIndex,y=Math.max(n,this.props.x),g=qd(qd({},J(this.props,!1)),{},{x:y,y:u,width:l,height:f}),x=h||"Min value: ".concat((a=m[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[v])===null||o===void 0?void 0:o.name);return S.createElement(ue,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),s.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,g))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,c=a.stroke,u=a.travellerWidth,l=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:l,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,c=n.travellerWidth,u=n.stroke,l=this.state,f=l.startX,d=l.endX,h=5,m={pointerEvents:"none",fill:u};return S.createElement(ue,{className:"recharts-brush-texts"},S.createElement(nn,As({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},m),this.getTextOfTick(i)),S.createElement(nn,As({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+c+h,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,c=n.y,u=n.width,l=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,m=d.endX,p=d.isTextActive,v=d.isSlideMoving,y=d.isTravellerMoving,g=d.isTravellerFocused;if(!i||!i.length||!G(s)||!G(c)||!G(u)||!G(l)||u<=0||l<=0)return null;var x=ce("recharts-brush",a),O=S.Children.count(o)===1,b=BW("userSelect","none");return S.createElement(ue,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,m),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(m,"endX"),(p||v||y||g||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,c=n.stroke,u=Math.floor(a+s/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:s,fill:c,stroke:"none"}),S.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return S.isValidElement(n)?a=S.cloneElement(n,i):ae(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,c=n.travellerWidth,u=n.updateId,l=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return qd({prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?KW({data:a,width:o,x:s,travellerWidth:c,startIndex:l,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+o-c]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var c=Math.floor((o+s)/2);n[c]>i?s=c:o=c}return i>=n[s]?s:o}}])})(S.PureComponent);it(Zn,"displayName","Brush");it(Zn,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Fd,uO;function GW(){if(uO)return Fd;uO=1;var e=Av();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Fd=t,Fd}var zd,lO;function YW(){if(lO)return zd;lO=1;var e=qA(),t=Ht(),r=GW(),n=rt(),i=uc();function a(o,s,c){var u=n(o)?e:r;return c&&i(o,s,c)&&(s=void 0),u(o,t(s,3))}return zd=a,zd}var XW=YW();const ZW=ge(XW);var Bt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Wd,fO;function JW(){if(fO)return Wd;fO=1;var e=i_();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Wd=t,Wd}var Ud,dO;function QW(){if(dO)return Ud;dO=1;var e=JW(),t=r_(),r=Ht();function n(i,a){var o={};return a=r(a,3),t(i,function(s,c,u){e(o,c,a(s,c,u))}),o}return Ud=n,Ud}var eU=QW();const tU=ge(eU);var Hd,pO;function rU(){if(pO)return Hd;pO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Hd=e,Hd}var Vd,hO;function nU(){if(hO)return Vd;hO=1;var e=Av();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Vd=t,Vd}var Kd,vO;function iU(){if(vO)return Kd;vO=1;var e=rU(),t=nU(),r=Ht(),n=rt(),i=uc();function a(o,s,c){var u=n(o)?e:t;return c&&i(o,s,c)&&(s=void 0),u(o,r(s,3))}return Kd=a,Kd}var aU=iU();const ZP=ge(aU);var oU=["x","y"];function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function gh(){return gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gh.apply(this,arguments)}function mO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mO(Object(r),!0).forEach(function(n){sU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sU(e,t,r){return t=cU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cU(e){var t=uU(e,"string");return Jn(t)=="symbol"?t:t+""}function uU(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lU(e,t){if(e==null)return{};var r=fU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dU(e,t){var r=e.x,n=e.y,i=lU(e,oU),a="".concat(r),o=parseInt(a,10),s="".concat(n),c=parseInt(s,10),u="".concat(t.height||i.height),l=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return zi(zi(zi(zi(zi({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:l,width:d,name:t.name,radius:t.radius})}function yO(e){return S.createElement(bs,gh({shapeType:"rectangle",propTransformer:dU,activeClassName:"recharts-active-bar"},e))}var pU=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=G(n)||sI(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?tt(!1,"minPointSize callback function received a value with type of ".concat(Jn(n),". Currently only numbers or null/undefined are supported.")):tt()),r)}},hU=["value","background"],JP;function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function vU(e,t){if(e==null)return{};var r=mU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ps.apply(this,arguments)}function gO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(r),!0).forEach(function(n){Sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e1(n.key),n)}}function gU(e,t,r){return t&&bO(e.prototype,t),r&&bO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bU(e,t,r){return t=Es(t),xU(e,QP()?Reflect.construct(t,r||[],Es(e).constructor):t.apply(e,r))}function xU(e,t){if(t&&(Qn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wU(e)}function wU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QP=function(){return!!e})()}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Es(e)}function OU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bh(e,t)}function bh(e,t){return bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bh(e,t)}function Sr(e,t,r){return t=e1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e1(e){var t=SU(e,"string");return Qn(t)=="symbol"?t:t+""}function SU(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vn=(function(e){function t(){var r;yU(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=bU(this,t,[].concat(i)),Sr(r,"state",{isAnimationFinished:!1}),Sr(r,"id",kr("recharts-bar-")),Sr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Sr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return OU(t,e),gU(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,c=a.activeIndex,u=a.activeBar,l=J(this.props,!1);return n&&n.map(function(f,d){var h=d===c,m=h?u:o,p=Me(Me(Me({},l),f),{},{isActive:h,option:m,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(ue,Ps({className:"recharts-bar-rectangle"},Tr(i.props,f,d),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(d)}),S.createElement(yO,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state.prevData;return S.createElement(lt,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var m=h.t,p=a.map(function(v,y){var g=d&&d[y];if(g){var x=Oe(g.x,v.x),O=Oe(g.y,v.y),b=Oe(g.width,v.width),w=Oe(g.height,v.height);return Me(Me({},v),{},{x:x(m),y:O(m),width:b(m),height:w(m)})}if(o==="horizontal"){var A=Oe(0,v.height),P=A(m);return Me(Me({},v),{},{y:v.y+v.height-P,height:P})}var T=Oe(0,v.width),I=T(m);return Me(Me({},v),{},{width:I})});return S.createElement(ue,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!cr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,c=J(this.props.background,!1);return a.map(function(u,l){u.value;var f=u.background,d=vU(u,hU);if(!f)return null;var h=Me(Me(Me(Me(Me({},d),{},{fill:"#eee"},f),c),Tr(n.props,u,l)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:l,className:"recharts-bar-background-rectangle"});return S.createElement(yO,Ps({key:"background-bar-".concat(l),option:n.props.background,isActive:l===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=Qe(l,Si);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(v,y){var g=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:g,errorVal:Se(v,y)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(ue,m,f.map(function(p){return S.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,c=n.yAxis,u=n.left,l=n.top,f=n.width,d=n.height,h=n.isAnimationActive,m=n.background,p=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,y=ce("recharts-bar",o),g=s&&s.allowDataOverflow,x=c&&c.allowDataOverflow,O=g||x,b=oe(p)?this.id:p;return S.createElement(ue,{className:y},g||x?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(b)},S.createElement("rect",{x:g?u:u-f/2,y:x?l:l-d/2,width:g?f:f*2,height:x?d:d*2}))):null,S.createElement(ue,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(b,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,b),(!h||v)&&gt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(S.PureComponent);JP=vn;Sr(vn,"displayName","Bar");Sr(vn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Sr(vn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=S2(n,r);if(!h)return null;var m=t.layout,p=r.type.defaultProps,v=p!==void 0?Me(Me({},p),r.props):r.props,y=v.dataKey,g=v.children,x=v.minPointSize,O=m==="horizontal"?o:a,b=u?O.scale.domain():null,w=j2({numericAxis:O}),A=Qe(g,Rr),P=f.map(function(T,I){var C,j,k,$,N,R;u?C=A2(u[l+I],b):(C=Se(T,y),Array.isArray(C)||(C=[w,C]));var L=pU(x,JP.defaultProps.minPointSize)(C[1],I);if(m==="horizontal"){var M,U=[o.scale(C[0]),o.scale(C[1])],D=U[0],F=U[1];j=L0({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:T,index:I}),k=(M=F??D)!==null&&M!==void 0?M:void 0,$=h.size;var W=D-F;if(N=Number.isNaN(W)?0:W,R={x:j,y:o.y,width:$,height:o.height},Math.abs(L)>0&&Math.abs(N)<Math.abs(L)){var V=Xe(N||L)*(Math.abs(L)-Math.abs(N));k-=V,N+=V}}else{var Y=[a.scale(C[0]),a.scale(C[1])],re=Y[0],ne=Y[1];if(j=re,k=L0({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:T,index:I}),$=ne-re,N=h.size,R={x:a.x,y:k,width:a.width,height:N},Math.abs(L)>0&&Math.abs($)<Math.abs(L)){var H=Xe($||L)*(Math.abs(L)-Math.abs($));$+=H}}return Me(Me(Me({},T),{},{x:j,y:k,width:$,height:N,value:u?C:C[1],payload:T,background:R},A&&A[I]&&A[I].props),{},{tooltipPayload:[xP(r,T)],tooltipPosition:{x:j+$/2,y:k+N/2}})});return Me({data:P,layout:m},d)});function Ma(e){"@babel/helpers - typeof";return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ma(e)}function AU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t1(n.key),n)}}function _U(e,t,r){return t&&xO(e.prototype,t),r&&xO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wO(Object(r),!0).forEach(function(n){Ac(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ac(e,t,r){return t=t1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t1(e){var t=PU(e,"string");return Ma(t)=="symbol"?t:t+""}function PU(e,t){if(Ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _c=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.layout,u=t.children,l=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!at(u,vn);return l.reduce(function(h,m){var p=r[m],v=p.orientation,y=p.domain,g=p.padding,x=g===void 0?{}:g,O=p.mirror,b=p.reversed,w="".concat(v).concat(O?"Mirror":""),A,P,T,I,C;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var j=y[1]-y[0],k=1/0,$=p.categoricalDomain.sort(fI);if($.forEach(function(Y,re){re>0&&(k=Math.min((Y||0)-($[re-1]||0),k))}),Number.isFinite(k)){var N=k/j,R=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(A=N*R/2),p.padding==="no-gap"){var L=Ze(t.barCategoryGap,N*R),M=N*R/2;A=M-L-(M-L)/R*L}}}i==="xAxis"?P=[n.left+(x.left||0)+(A||0),n.left+n.width-(x.right||0)-(A||0)]:i==="yAxis"?P=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(A||0),n.top+n.height-(x.bottom||0)-(A||0)]:P=p.range,b&&(P=[P[1],P[0]]);var U=mP(p,a,d),D=U.scale,F=U.realScaleType;D.domain(y).range(P),yP(D);var W=gP(D,St(St({},p),{},{realScaleType:F}));i==="xAxis"?(C=v==="top"&&!O||v==="bottom"&&O,T=n.left,I=f[w]-C*p.height):i==="yAxis"&&(C=v==="left"&&!O||v==="right"&&O,T=f[w]-C*p.width,I=n.top);var V=St(St(St({},p),W),{},{realScaleType:F,x:T,y:I,scale:D,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return V.bandSize=os(V,W),!p.hide&&i==="xAxis"?f[w]+=(C?-1:1)*V.height:p.hide||(f[w]+=(C?-1:1)*V.width),St(St({},h),{},Ac({},m,V))},{})},r1=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},EU=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return r1({x:r,y:n},{x:i,y:a})},n1=(function(){function e(t){AU(this,e),this.scale=t}return _U(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Ac(n1,"EPS",1e-4);var em=function(t){var r=Object.keys(t).reduce(function(n,i){return St(St({},n),{},Ac({},i,n1.create(t[i])))},{});return St(St({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return tU(i,function(c,u){return r[u].apply(c,{bandAware:o,position:s})})},isInRange:function(i){return ZP(i,function(a,o){return r[o].isInRange(a)})}})};function TU(e){return(e%180+180)%180}var CU=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=TU(i),o=a*Math.PI/180,s=Math.atan(n/r),c=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},Gd,OO;function jU(){if(OO)return Gd;OO=1;var e=Ht(),t=za(),r=sc();function n(i){return function(a,o,s){var c=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(c[f],f,c)}}var l=i(a,o,s);return l>-1?c[u?a[l]:l]:void 0}}return Gd=n,Gd}var Yd,SO;function IU(){if(SO)return Yd;SO=1;var e=KP();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Yd=t,Yd}var Xd,AO;function kU(){if(AO)return Xd;AO=1;var e=ZA(),t=Ht(),r=IU(),n=Math.max;function i(a,o,s){var c=a==null?0:a.length;if(!c)return-1;var u=s==null?0:r(s);return u<0&&(u=n(c+u,0)),e(a,t(o,3),u)}return Xd=i,Xd}var Zd,_O;function RU(){if(_O)return Zd;_O=1;var e=jU(),t=kU(),r=e(t);return Zd=r,Zd}var MU=RU();const $U=ge(MU);var NU=dA();const DU=ge(NU);var LU=DU(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function Ts(e){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}var tm=S.createContext(void 0),rm=S.createContext(void 0),i1=S.createContext(void 0),a1=S.createContext({}),o1=S.createContext(void 0),s1=S.createContext(0),c1=S.createContext(0),PO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,c=t.width,u=t.height,l=LU(a);return S.createElement(tm.Provider,{value:n},S.createElement(rm.Provider,{value:i},S.createElement(a1.Provider,{value:a},S.createElement(i1.Provider,{value:l},S.createElement(o1.Provider,{value:o},S.createElement(s1.Provider,{value:u},S.createElement(c1.Provider,{value:c},s)))))))},BU=function(){return S.useContext(o1)};function u1(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var l1=function(t){var r=S.useContext(tm);r==null&&(process.env.NODE_ENV!=="production"?tt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):tt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?tt(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Ts(t),"]. ").concat(u1(r))):tt()),n},qU=function(){var t=S.useContext(tm);return wr(t)},FU=function(){var t=S.useContext(rm),r=$U(t,function(n){return ZP(n.domain,Number.isFinite)});return r||wr(t)},f1=function(t){var r=S.useContext(rm);r==null&&(process.env.NODE_ENV!=="production"?tt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):tt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?tt(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Ts(t),"]. ").concat(u1(r))):tt()),n},zU=function(){var t=S.useContext(i1);return t},WU=function(){return S.useContext(a1)},nm=function(){return S.useContext(c1)},im=function(){return S.useContext(s1)};function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function UU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p1(n.key),n)}}function VU(e,t,r){return t&&HU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KU(e,t,r){return t=Cs(t),GU(e,d1()?Reflect.construct(t,r||[],Cs(e).constructor):t.apply(e,r))}function GU(e,t){if(t&&(ei(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YU(e)}function YU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d1=function(){return!!e})()}function Cs(e){return Cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cs(e)}function XU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xh(e,t)}function xh(e,t){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xh(e,t)}function EO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EO(Object(r),!0).forEach(function(n){am(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function am(e,t,r){return t=p1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p1(e){var t=ZU(e,"string");return ei(t)=="symbol"?t:t+""}function ZU(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function JU(e,t){return r3(e)||t3(e,t)||e3(e,t)||QU()}function QU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
62
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e3(e,t){if(e){if(typeof e=="string")return CO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CO(e,t)}}function CO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function r3(e){if(Array.isArray(e))return e}function wh(){return wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wh.apply(this,arguments)}var n3=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):ae(t)?n=t(r):n=S.createElement("line",wh({},r,{className:"recharts-reference-line-line"})),n},i3=function(t,r,n,i,a,o,s,c,u){var l=a.x,f=a.y,d=a.width,h=a.height;if(n){var m=u.y,p=t.y.apply(m,{position:o});if(Bt(u,"discard")&&!t.y.isInRange(p))return null;var v=[{x:l+d,y:p},{x:l,y:p}];return c==="left"?v.reverse():v}if(r){var y=u.x,g=t.x.apply(y,{position:o});if(Bt(u,"discard")&&!t.x.isInRange(g))return null;var x=[{x:g,y:f+h},{x:g,y:f}];return s==="top"?x.reverse():x}if(i){var O=u.segment,b=O.map(function(w){return t.apply(w,{position:o})});return Bt(u,"discard")&&ZW(b,function(w){return!t.isInRange(w)})?null:b}return null};function a3(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,c=e.alwaysShow,u=BU(),l=l1(i),f=f1(a),d=zU();if(!u||!d)return null;Pt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=em({x:l.scale,y:f.scale}),m=Be(t),p=Be(r),v=n&&n.length===2,y=i3(h,m,p,v,d,e.position,l.orientation,f.orientation,e);if(!y)return null;var g=JU(y,2),x=g[0],O=x.x,b=x.y,w=g[1],A=w.x,P=w.y,T=Bt(e,"hidden")?"url(#".concat(u,")"):void 0,I=TO(TO({clipPath:T},J(e,!0)),{},{x1:O,y1:b,x2:A,y2:P});return S.createElement(ue,{className:ce("recharts-reference-line",s)},n3(o,I),We.renderCallByParent(e,EU({x1:O,y1:b,x2:A,y2:P})))}var om=(function(e){function t(){return UU(this,t),KU(this,t,arguments)}return XU(t,e),VU(t,[{key:"render",value:function(){return S.createElement(a3,this.props)}}])})(S.Component);am(om,"displayName","ReferenceLine");am(om,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oh.apply(this,arguments)}function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){Pc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v1(n.key),n)}}function c3(e,t,r){return t&&s3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function u3(e,t,r){return t=js(t),l3(e,h1()?Reflect.construct(t,r||[],js(e).constructor):t.apply(e,r))}function l3(e,t){if(t&&(ti(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f3(e)}function f3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h1=function(){return!!e})()}function js(e){return js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},js(e)}function d3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sh(e,t)}function Sh(e,t){return Sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sh(e,t)}function Pc(e,t,r){return t=v1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v1(e){var t=p3(e,"string");return ti(t)=="symbol"?t:t+""}function p3(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var h3=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=em({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Bt(t,"discard")&&!o.isInRange(s)?null:s},Ec=(function(e){function t(){return o3(this,t),u3(this,t,arguments)}return d3(t,e),c3(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,c=n.clipPathId,u=Be(i),l=Be(a);if(Pt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!l)return null;var f=h3(this.props);if(!f)return null;var d=f.x,h=f.y,m=this.props,p=m.shape,v=m.className,y=Bt(this.props,"hidden")?"url(#".concat(c,")"):void 0,g=IO(IO({clipPath:y},J(this.props,!0)),{},{cx:d,cy:h});return S.createElement(ue,{className:ce("recharts-reference-dot",v)},t.renderDot(p,g),We.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(S.Component);Pc(Ec,"displayName","ReferenceDot");Pc(Ec,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Pc(Ec,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):ae(e)?r=e(t):r=S.createElement(Ai,Oh({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ah.apply(this,arguments)}function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function RO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){Tc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y1(n.key),n)}}function y3(e,t,r){return t&&m3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g3(e,t,r){return t=Is(t),b3(e,m1()?Reflect.construct(t,r||[],Is(e).constructor):t.apply(e,r))}function b3(e,t){if(t&&(ri(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x3(e)}function x3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m1=function(){return!!e})()}function Is(e){return Is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Is(e)}function w3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_h(e,t)}function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_h(e,t)}function Tc(e,t,r){return t=y1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y1(e){var t=O3(e,"string");return ri(t)=="symbol"?t:t+""}function O3(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var S3=function(t,r,n,i,a){var o=a.x1,s=a.x2,c=a.y1,u=a.y2,l=a.xAxis,f=a.yAxis;if(!l||!f)return null;var d=em({x:l.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(c,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Bt(a,"discard")&&(!d.isInRange(h)||!d.isInRange(m))?null:r1(h,m)},Cc=(function(e){function t(){return v3(this,t),g3(this,t,arguments)}return w3(t,e),y3(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,c=n.className,u=n.alwaysShow,l=n.clipPathId;Pt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Be(i),d=Be(a),h=Be(o),m=Be(s),p=this.props.shape;if(!f&&!d&&!h&&!m&&!p)return null;var v=S3(f,d,h,m,this.props);if(!v&&!p)return null;var y=Bt(this.props,"hidden")?"url(#".concat(l,")"):void 0;return S.createElement(ue,{className:ce("recharts-reference-area",c)},t.renderRect(p,RO(RO({clipPath:y},J(this.props,!0)),v)),We.renderCallByParent(this.props,v))}}])})(S.Component);Tc(Cc,"displayName","ReferenceArea");Tc(Cc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Tc(Cc,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):ae(e)?r=e(t):r=S.createElement(Qv,Ah({},t,{className:"recharts-reference-area-rect"})),r});function g1(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function A3(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return CU(n,r)}function _3(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function ks(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function P3(e,t){return g1(e,t+1)}function E3(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,c=0,u=1,l=o,f=function(){var m=n?.[c];if(m===void 0)return{v:g1(n,u)};var p=c,v,y=function(){return v===void 0&&(v=r(m,p)),v},g=m.coordinate,x=c===0||ks(e,g,y,l,s);x||(c=0,l=o,u+=1),x&&(l=g+e*(y()/2+i),c+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function MO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(r),!0).forEach(function(n){T3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T3(e,t,r){return t=C3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C3(e){var t=j3(e,"string");return $a(t)=="symbol"?t:t+""}function j3(e,t){if($a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I3(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,c=t.end,u=function(d){var h=a[d],m,p=function(){return m===void 0&&(m=r(h,d)),m};if(d===o-1){var v=e*(h.coordinate+e*p()/2-c);a[d]=h=Ve(Ve({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else a[d]=h=Ve(Ve({},h),{},{tickCoord:h.coordinate});var y=ks(e,h.tickCoord,p,s,c);y&&(c=h.tickCoord-e*(p()/2+i),a[d]=Ve(Ve({},h),{},{isShow:!0}))},l=o-1;l>=0;l--)u(l);return a}function k3(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,c=t.start,u=t.end;if(a){var l=n[s-1],f=r(l,s-1),d=e*(l.coordinate+e*f/2-u);o[s-1]=l=Ve(Ve({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate});var h=ks(e,l.tickCoord,function(){return f},c,u);h&&(u=l.tickCoord-e*(f/2+i),o[s-1]=Ve(Ve({},l),{},{isShow:!0}))}for(var m=a?s-1:s,p=function(g){var x=o[g],O,b=function(){return O===void 0&&(O=r(x,g)),O};if(g===0){var w=e*(x.coordinate-e*b()/2-c);o[g]=x=Ve(Ve({},x),{},{tickCoord:w<0?x.coordinate-w*e:x.coordinate})}else o[g]=x=Ve(Ve({},x),{},{tickCoord:x.coordinate});var A=ks(e,x.tickCoord,b,c,u);A&&(c=x.tickCoord+e*(b()/2+i),o[g]=Ve(Ve({},x),{},{isShow:!0}))},v=0;v<m;v++)p(v);return o}function sm(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,l=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(G(c)||Vt.isSsr)return P3(i,typeof c=="number"&&G(c)?c:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",m=l&&h==="width"?Ki(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(x,O){var b=ae(u)?u(x.value,O):x.value;return h==="width"?A3(Ki(b,{fontSize:t,letterSpacing:r}),m,f):Ki(b,{fontSize:t,letterSpacing:r})[h]},v=i.length>=2?Xe(i[1].coordinate-i[0].coordinate):1,y=_3(a,v,h);return c==="equidistantPreserveStart"?E3(v,y,p,i,o):(c==="preserveStart"||c==="preserveStartEnd"?d=k3(v,y,p,i,o,c==="preserveStartEnd"):d=I3(v,y,p,i,o),d.filter(function(g){return g.isShow}))}var R3=["viewBox"],M3=["viewBox"],$3=["ticks"];function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tn.apply(this,arguments)}function $O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(r),!0).forEach(function(n){cm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jd(e,t){if(e==null)return{};var r=N3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function D3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x1(n.key),n)}}function L3(e,t,r){return t&&NO(e.prototype,t),r&&NO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function B3(e,t,r){return t=Rs(t),q3(e,b1()?Reflect.construct(t,r||[],Rs(e).constructor):t.apply(e,r))}function q3(e,t){if(t&&(ni(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F3(e)}function F3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b1=function(){return!!e})()}function Rs(e){return Rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rs(e)}function z3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ph(e,t)}function Ph(e,t){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ph(e,t)}function cm(e,t,r){return t=x1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x1(e){var t=W3(e,"string");return ni(t)=="symbol"?t:t+""}function W3(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ei=(function(e){function t(r){var n;return D3(this,t),n=B3(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return z3(t,e),L3(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Jd(n,R3),s=this.props,c=s.viewBox,u=Jd(s,M3);return!jn(a,c)||!jn(o,u)||!jn(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,c=i.height,u=i.orientation,l=i.tickSize,f=i.mirror,d=i.tickMargin,h,m,p,v,y,g,x=f?-1:1,O=n.tickSize||l,b=G(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=m=n.coordinate,v=o+ +!f*c,p=v-x*O,g=p-x*d,y=b;break;case"left":p=v=n.coordinate,m=a+ +!f*s,h=m-x*O,y=h-x*d,g=b;break;case"right":p=v=n.coordinate,m=a+ +f*s,h=m+x*O,y=h+x*d,g=b;break;default:h=m=n.coordinate,v=o+ +f*c,p=v+x*O,g=p+x*d,y=b;break}return{line:{x1:h,y1:p,x2:m,y2:v},tick:{x:y,y:g}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.orientation,u=n.mirror,l=n.axisLine,f=De(De(De({},J(this.props,!1)),J(l,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var d=+(c==="top"&&!u||c==="bottom"&&u);f=De(De({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(c==="left"&&!u||c==="right"&&u);f=De(De({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return S.createElement("line",Tn({},f,{className:ce("recharts-cartesian-axis-line",ct(l,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,c=s.tickLine,u=s.stroke,l=s.tick,f=s.tickFormatter,d=s.unit,h=sm(De(De({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=J(this.props,!1),y=J(l,!1),g=De(De({},v),{},{fill:"none"},J(c,!1)),x=h.map(function(O,b){var w=o.getTickLineCoord(O),A=w.line,P=w.tick,T=De(De(De(De({textAnchor:m,verticalAnchor:p},v),{},{stroke:"none",fill:u},y),P),{},{index:b,payload:O,visibleTicksCount:h.length,tickFormatter:f});return S.createElement(ue,Tn({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Tr(o.props,O,b)),c&&S.createElement("line",Tn({},g,A,{className:ce("recharts-cartesian-axis-tick-line",ct(c,"className"))})),l&&t.renderTickItem(l,T,"".concat(ae(f)?f(O.value,b):O.value).concat(d||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,c=i.ticksGenerator,u=i.className,l=i.hide;if(l)return null;var f=this.props,d=f.ticks,h=Jd(f,$3),m=d;return ae(c)&&(m=d&&d.length>0?c(this.props):c(h)),o<=0||s<=0||!m||!m.length?null:S.createElement(ue,{className:ce("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),We.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=ce(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,De(De({},i),{},{className:s})):ae(n)?o=n(De(De({},i),{},{className:s})):o=S.createElement(nn,Tn({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(S.Component);cm(Ei,"displayName","CartesianAxis");cm(Ei,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var U3=["x1","y1","x2","y2","key"],H3=["offset"];function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function DO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){V3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V3(e,t,r){return t=K3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K3(e){var t=G3(e,"string");return on(t)=="symbol"?t:t+""}function G3(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jr.apply(this,arguments)}function LO(e,t){if(e==null)return{};var r=Y3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Y3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var X3=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,c=t.ry;return S.createElement("rect",{x:i,y:a,ry:c,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function w1(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(ae(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=LO(t,U3),u=J(c,!1);u.offset;var l=LO(u,H3);r=S.createElement("line",Jr({},l,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function Z3(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,c){var u=Ge(Ge({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return w1(i,u)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function J3(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,c){var u=Ge(Ge({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return w1(i,u)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Q3(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var l=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],p=m?i+o-d:l[h+1]-d;if(p<=0)return null;var v=h%t.length;return S.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function eH(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var l=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],p=m?a+s-d:l[h+1]-d;if(p<=0)return null;var v=h%n.length;return S.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:c,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var tH=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return vP(sm(Ge(Ge(Ge({},Ei.defaultProps),n),{},{ticks:rr(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},rH=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return vP(sm(Ge(Ge(Ge({},Ei.defaultProps),n),{},{ticks:rr(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},xn={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ga(e){var t,r,n,i,a,o,s=nm(),c=im(),u=WU(),l=Ge(Ge({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:xn.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:xn.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:xn.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:xn.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:xn.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:xn.verticalFill,x:G(e.x)?e.x:u.left,y:G(e.y)?e.y:u.top,width:G(e.width)?e.width:u.width,height:G(e.height)?e.height:u.height}),f=l.x,d=l.y,h=l.width,m=l.height,p=l.syncWithTicks,v=l.horizontalValues,y=l.verticalValues,g=qU(),x=FU();if(!G(h)||h<=0||!G(m)||m<=0||!G(f)||f!==+f||!G(d)||d!==+d)return null;var O=l.verticalCoordinatesGenerator||tH,b=l.horizontalCoordinatesGenerator||rH,w=l.horizontalPoints,A=l.verticalPoints;if((!w||!w.length)&&ae(b)){var P=v&&v.length,T=b({yAxis:x?Ge(Ge({},x),{},{ticks:P?v:x.ticks}):void 0,width:s,height:c,offset:u},P?!0:p);Pt(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(on(T),"]")),Array.isArray(T)&&(w=T)}if((!A||!A.length)&&ae(O)){var I=y&&y.length,C=O({xAxis:g?Ge(Ge({},g),{},{ticks:I?y:g.ticks}):void 0,width:s,height:c,offset:u},I?!0:p);Pt(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(on(C),"]")),Array.isArray(C)&&(A=C)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(X3,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),S.createElement(Z3,Jr({},l,{offset:u,horizontalPoints:w,xAxis:g,yAxis:x})),S.createElement(J3,Jr({},l,{offset:u,verticalPoints:A,xAxis:g,yAxis:x})),S.createElement(Q3,Jr({},l,{horizontalPoints:w})),S.createElement(eH,Jr({},l,{verticalPoints:A})))}Ga.displayName="CartesianGrid";var nH=["type","layout","connectNulls","ref"],iH=["key"];function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function BO(e,t){if(e==null)return{};var r=aH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qi.apply(this,arguments)}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){At(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wn(e){return uH(e)||cH(e)||sH(e)||oH()}function oH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sH(e,t){if(e){if(typeof e=="string")return Eh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eh(e,t)}}function cH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uH(e){if(Array.isArray(e))return Eh(e)}function Eh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S1(n.key),n)}}function fH(e,t,r){return t&&FO(e.prototype,t),r&&FO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dH(e,t,r){return t=Ms(t),pH(e,O1()?Reflect.construct(t,r||[],Ms(e).constructor):t.apply(e,r))}function pH(e,t){if(t&&(ii(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hH(e)}function hH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O1=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ms(e)}function vH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Th(e,t)}function Th(e,t){return Th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Th(e,t)}function At(e,t,r){return t=S1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S1(e){var t=mH(e,"string");return ii(t)=="symbol"?t:t+""}function mH(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ya=(function(e){function t(){var r;lH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=dH(this,t,[].concat(i)),At(r,"state",{isAnimationFinished:!0,totalLength:0}),At(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),At(r,"getStrokeDasharray",function(o,s,c){var u=c.reduce(function(y,g){return y+g});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var l=Math.floor(o/u),f=o%u,d=s-o,h=[],m=0,p=0;m<c.length;p+=c[m],++m)if(p+c[m]>f){h=[].concat(wn(c.slice(0,m)),[f-p]);break}var v=h.length%2===0?[0,d]:[d];return[].concat(wn(t.repeat(c,l)),wn(h),v).map(function(y){return"".concat(y,"px")}).join(", ")}),At(r,"id",kr("recharts-line-")),At(r,"pathRef",function(o){r.mainCurve=o}),At(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),At(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return vH(t,e),fH(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=Qe(l,Si);if(!f)return null;var d=function(p,v){return{x:p.x,y:p.y,value:p.value,errorVal:Se(p.payload,v)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(ue,h,f.map(function(m){return S.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,l=s.dataKey,f=J(this.props,!1),d=J(c,!0),h=u.map(function(p,v){var y=nt(nt(nt({key:"dot-".concat(v),r:3},f),d),{},{index:v,cx:p.x,cy:p.y,value:p.value,dataKey:l,payload:p.payload,points:u});return t.renderDotItem(c,y)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(ue,Qi({className:"recharts-line-dots",key:"dots"},m),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,c=s.type,u=s.layout,l=s.connectNulls;s.ref;var f=BO(s,nH),d=nt(nt(nt({},J(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:u,connectNulls:l});return S.createElement(Pr,Qi({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.strokeDasharray,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=o.animateNewValues,p=o.width,v=o.height,y=this.state,g=y.prevPoints,x=y.totalLength;return S.createElement(lt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var b=O.t;if(g){var w=g.length/s.length,A=s.map(function(j,k){var $=Math.floor(k*w);if(g[$]){var N=g[$],R=Oe(N.x,j.x),L=Oe(N.y,j.y);return nt(nt({},j),{},{x:R(b),y:L(b)})}if(m){var M=Oe(p*2,j.x),U=Oe(v/2,j.y);return nt(nt({},j),{},{x:M(b),y:U(b)})}return nt(nt({},j),{},{x:j.x,y:j.y})});return a.renderCurveStatically(A,n,i)}var P=Oe(0,x),T=P(b),I;if(c){var C="".concat(c).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});I=a.getStrokeDasharray(T,x,C)}else I=a.generateSimpleStrokeDasharray(x,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:I})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,c=this.state,u=c.prevPoints,l=c.totalLength;return s&&o&&o.length&&(!u&&l>0||!cr(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.xAxis,l=i.yAxis,f=i.top,d=i.left,h=i.width,m=i.height,p=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,g=s.length===1,x=ce("recharts-line",c),O=u&&u.allowDataOverflow,b=l&&l.allowDataOverflow,w=O||b,A=oe(v)?this.id:v,P=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,I=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,k=yA(o)?o:{},$=k.clipDot,N=$===void 0?!0:$,R=I*2+j;return S.createElement(ue,{className:x},O||b?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(A)},S.createElement("rect",{x:O?d:d-h/2,y:b?f:f-m/2,width:O?h:h*2,height:b?m:m*2})),!N&&S.createElement("clipPath",{id:"clipPath-dots-".concat(A)},S.createElement("rect",{x:d-R/2,y:f-R/2,width:h+R,height:m+R}))):null,!g&&this.renderCurve(w,A),this.renderErrorBar(w,A),(g||o)&&this.renderDots(w,N,A),(!p||y)&&gt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(wn(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(wn(o),wn(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(ae(n))a=n(i);else{var o=i.key,s=BO(i,iH),c=ce("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(Ai,Qi({key:o},s,{className:c}))}return a}}])})(S.PureComponent);At(Ya,"displayName","Line");At(Ya,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Vt.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});At(Ya,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout,f=c.map(function(d,h){var m=Se(d,o);return l==="horizontal"?{x:Un({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:oe(m)?null:n.scale(m),value:m,payload:d}:{x:oe(m)?null:r.scale(m),y:Un({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:m,payload:d}});return nt({points:f,layout:l},u)});var yH=["layout","type","stroke","connectNulls","isRange","ref"],gH=["key"],A1;function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function _1(e,t){if(e==null)return{};var r=bH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qr.apply(this,arguments)}function zO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zO(Object(r),!0).forEach(function(n){Nt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E1(n.key),n)}}function wH(e,t,r){return t&&WO(e.prototype,t),r&&WO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OH(e,t,r){return t=$s(t),SH(e,P1()?Reflect.construct(t,r||[],$s(e).constructor):t.apply(e,r))}function SH(e,t){if(t&&(ai(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AH(e)}function AH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P1=function(){return!!e})()}function $s(e){return $s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$s(e)}function _H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ch(e,t)}function Ch(e,t){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ch(e,t)}function Nt(e,t,r){return t=E1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E1(e){var t=PH(e,"string");return ai(t)=="symbol"?t:t+""}function PH(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dr=(function(e){function t(){var r;xH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=OH(this,t,[].concat(i)),Nt(r,"state",{isAnimationFinished:!0}),Nt(r,"id",kr("recharts-area-")),Nt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ae(o)&&o()}),Nt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ae(o)&&o()}),r}return _H(t,e),wH(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var c=this.props,u=c.dot,l=c.points,f=c.dataKey,d=J(this.props,!1),h=J(u,!0),m=l.map(function(v,y){var g=gr(gr(gr({key:"dot-".concat(y),r:3},d),h),{},{index:y,cx:v.x,cy:v.y,dataKey:f,value:v.value,payload:v.payload,points:l});return t.renderDotItem(u,g)}),p={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(ue,Qr({className:"recharts-area-dots"},p),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].x,u=o[o.length-1].x,l=n*Math.abs(c-u),f=Or(o.map(function(d){return d.y||0}));return G(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Or(a.map(function(d){return d.y||0})),f)),G(f)?S.createElement("rect",{x:c<u?c:c-l,y:0,width:l,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].y,u=o[o.length-1].y,l=n*Math.abs(c-u),f=Or(o.map(function(d){return d.x||0}));return G(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Or(a.map(function(d){return d.x||0})),f)),G(f)?S.createElement("rect",{x:0,y:c<u?c:c-l,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,c=s.layout,u=s.type,l=s.stroke,f=s.connectNulls,d=s.isRange;s.ref;var h=_1(s,yH);return S.createElement(ue,{clipPath:a?"url(#clipPath-".concat(o,")"):null},S.createElement(Pr,Qr({},J(h,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),l!=="none"&&S.createElement(Pr,Qr({},J(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:n})),l!=="none"&&d&&S.createElement(Pr,Qr({},J(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.baseLine,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=this.state,p=m.prevPoints,v=m.prevBaseLine;return S.createElement(lt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var g=y.t;if(p){var x=p.length/s.length,O=s.map(function(P,T){var I=Math.floor(T*x);if(p[I]){var C=p[I],j=Oe(C.x,P.x),k=Oe(C.y,P.y);return gr(gr({},P),{},{x:j(g),y:k(g)})}return P}),b;if(G(c)&&typeof c=="number"){var w=Oe(v,c);b=w(g)}else if(oe(c)||gi(c)){var A=Oe(v,0);b=A(g)}else b=c.map(function(P,T){var I=Math.floor(T*x);if(v[I]){var C=v[I],j=Oe(C.x,P.x),k=Oe(C.y,P.y);return gr(gr({},P),{},{x:j(g),y:k(g)})}return P});return a.renderAreaStatically(O,b,n,i)}return S.createElement(ue,null,S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(g))),S.createElement(ue,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,c=a.isAnimationActive,u=this.state,l=u.prevPoints,f=u.prevBaseLine,d=u.totalLength;return c&&o&&o.length&&(!l&&d>0||!cr(l,o)||!cr(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.top,l=i.left,f=i.xAxis,d=i.yAxis,h=i.width,m=i.height,p=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,g=s.length===1,x=ce("recharts-area",c),O=f&&f.allowDataOverflow,b=d&&d.allowDataOverflow,w=O||b,A=oe(v)?this.id:v,P=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,I=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,k=yA(o)?o:{},$=k.clipDot,N=$===void 0?!0:$,R=I*2+j;return S.createElement(ue,{className:x},O||b?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(A)},S.createElement("rect",{x:O?l:l-h/2,y:b?u:u-m/2,width:O?h:h*2,height:b?m:m*2})),!N&&S.createElement("clipPath",{id:"clipPath-dots-".concat(A)},S.createElement("rect",{x:l-R/2,y:u-R/2,width:h+R,height:m+R}))):null,g?null:this.renderArea(w,A),(o||g)&&this.renderDots(w,N,A),(!p||y)&&gt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(S.PureComponent);A1=Dr;Nt(Dr,"displayName","Area");Nt(Dr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Nt(Dr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(G(s)&&typeof s=="number")return s;var c=i==="horizontal"?n:r,u=c.scale.domain();if(c.type==="number"){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Nt(Dr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,c=e.dataKey,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=t.layout,m=u&&u.length,p=A1.getBaseValue(t,r,n,i),v=h==="horizontal",y=!1,g=f.map(function(O,b){var w;m?w=u[l+b]:(w=Se(O,c),Array.isArray(w)?y=!0:w=[p,w]);var A=w[1]==null||m&&Se(O,c)==null;return v?{x:Un({axis:n,ticks:a,bandSize:s,entry:O,index:b}),y:A?null:i.scale(w[1]),value:w,payload:O}:{x:A?null:n.scale(w[1]),y:Un({axis:i,ticks:o,bandSize:s,entry:O,index:b}),value:w,payload:O}}),x;return m||y?x=g.map(function(O){var b=Array.isArray(O.value)?O.value[0]:null;return v?{x:O.x,y:b!=null&&O.y!=null?i.scale(b):null}:{x:b!=null?n.scale(b):null,y:O.y}}):x=v?i.scale(p):n.scale(p),gr({points:g,baseLine:x,layout:h,isRange:y},d)});Nt(Dr,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(ae(e))r=e(t);else{var n=ce("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=_1(t,gH);r=S.createElement(Ai,Qr({},a,{key:i,className:n}))}return r});function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function EH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j1(n.key),n)}}function CH(e,t,r){return t&&TH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jH(e,t,r){return t=Ns(t),IH(e,T1()?Reflect.construct(t,r||[],Ns(e).constructor):t.apply(e,r))}function IH(e,t){if(t&&(oi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kH(e)}function kH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T1=function(){return!!e})()}function Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ns(e)}function RH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jh(e,t)}function jh(e,t){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jh(e,t)}function C1(e,t,r){return t=j1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j1(e){var t=MH(e,"string");return oi(t)=="symbol"?t:t+""}function MH(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xa=(function(e){function t(){return EH(this,t),jH(this,t,arguments)}return RH(t,e),CH(t,[{key:"render",value:function(){return null}}])})(E.Component);C1(Xa,"displayName","ZAxis");C1(Xa,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var $H=["option","isActive"];function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ea.apply(this,arguments)}function NH(e,t){if(e==null)return{};var r=DH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function LH(e){var t=e.option,r=e.isActive,n=NH(e,$H);return typeof t=="string"?E.createElement(bs,ea({option:E.createElement(oc,ea({type:t},n)),isActive:r,shapeType:"symbols"},n)):E.createElement(bs,ea({option:t,isActive:r,shapeType:"symbols"},n))}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ta.apply(this,arguments)}function UO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(n){Ar(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k1(n.key),n)}}function qH(e,t,r){return t&&HO(e.prototype,t),r&&HO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FH(e,t,r){return t=Ds(t),zH(e,I1()?Reflect.construct(t,r||[],Ds(e).constructor):t.apply(e,r))}function zH(e,t){if(t&&(si(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WH(e)}function WH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I1=function(){return!!e})()}function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ds(e)}function UH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ih(e,t)}function Ih(e,t){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ih(e,t)}function Ar(e,t,r){return t=k1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k1(e){var t=HH(e,"string");return si(t)=="symbol"?t:t+""}function HH(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Za=(function(e){function t(){var r;BH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=FH(this,t,[].concat(i)),Ar(r,"state",{isAnimationFinished:!1}),Ar(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Ar(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Ar(r,"id",kr("recharts-scatter-")),r}return UH(t,e),qH(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,c=a.activeIndex,u=J(this.props,!1);return n.map(function(l,f){var d=c===f,h=d?s:o,m=ht(ht({},u),l);return S.createElement(ue,ta({className:"recharts-scatter-symbol",key:"symbol-".concat(l?.cx,"-").concat(l?.cy,"-").concat(l?.size,"-").concat(f)},Tr(i.props,l,f),{role:"img"}),S.createElement(LH,ta({option:h,isActive:d,key:"symbol-".concat(f)},m)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return S.createElement(lt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=a.map(function(p,v){var y=f&&f[v];if(y){var g=Oe(y.cx,p.cx),x=Oe(y.cy,p.cy),O=Oe(y.size,p.size);return ht(ht({},p),{},{cx:g(h),cy:x(h),size:O(h)})}var b=Oe(0,p.size);return ht(ht({},p),{},{size:b(h)})});return S.createElement(ue,null,n.renderSymbolsStatically(m))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!cr(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,c=i.children,u=Qe(c,Si);return u?u.map(function(l,f){var d=l.props,h=d.direction,m=d.dataKey;return S.cloneElement(l,{key:"".concat(h,"-").concat(m,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:h==="x"?"vertical":"horizontal",dataPointFormatter:function(v,y){return{x:v.cx,y:v.cy,value:h==="x"?+v.node.x:+v.node.y,errorVal:Se(v,y)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,c=J(this.props,!1),u=J(a,!1),l,f;if(o==="joint")l=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=lI(i),h=d.xmin,m=d.xmax,p=d.a,v=d.b,y=function(O){return p*O+v};l=[{x:h,y:y(h)},{x:m,y:y(m)}]}var g=ht(ht(ht({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:l});return S.isValidElement(a)?f=S.cloneElement(a,g):ae(a)?f=a(g):f=S.createElement(Pr,ta({},g,{type:s})),S.createElement(ue,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,c=n.xAxis,u=n.yAxis,l=n.left,f=n.top,d=n.width,h=n.height,m=n.id,p=n.isAnimationActive;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,y=ce("recharts-scatter",s),g=c&&c.allowDataOverflow,x=u&&u.allowDataOverflow,O=g||x,b=oe(m)?this.id:m;return S.createElement(ue,{className:y,clipPath:O?"url(#clipPath-".concat(b,")"):null},g||x?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(b)},S.createElement("rect",{x:g?l:l-d/2,y:x?f:f-h/2,width:g?d:d*2,height:x?h:h*2}))):null,o&&this.renderLine(),this.renderErrorBar(),S.createElement(ue,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!p||v)&&gt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(S.PureComponent);Ar(Za,"displayName","Scatter");Ar(Za,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Ar(Za,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,l=Qe(i.props.children,Rr),f=oe(t.dataKey)?i.props.dataKey:t.dataKey,d=oe(r.dataKey)?i.props.dataKey:r.dataKey,h=n&&n.dataKey,m=n?n.range:Xa.defaultProps.range,p=m&&m[0],v=t.scale.bandwidth?t.scale.bandwidth():0,y=r.scale.bandwidth?r.scale.bandwidth():0,g=a.map(function(x,O){var b=Se(x,f),w=Se(x,d),A=!oe(h)&&Se(x,h)||"-",P=[{name:oe(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:b,payload:x,dataKey:f,type:u},{name:oe(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:x,dataKey:d,type:u}];A!=="-"&&P.push({name:n.name||n.dataKey,unit:n.unit||"",value:A,payload:x,dataKey:h,type:u});var T=Un({axis:t,ticks:o,bandSize:v,entry:x,index:O,dataKey:f}),I=Un({axis:r,ticks:s,bandSize:y,entry:x,index:O,dataKey:d}),C=A!=="-"?n.scale(A):p,j=Math.sqrt(Math.max(C,0)/Math.PI);return ht(ht({},x),{},{cx:T,cy:I,x:T-j,y:I-j,xAxis:t,yAxis:r,zAxis:n,width:2*j,height:2*j,size:C,node:{x:b,y:w,z:A},tooltipPayload:P,tooltipPosition:{x:T,y:I},payload:x},l&&l[O]&&l[O].props)});return ht({points:g},c)});function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function VH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$1(n.key),n)}}function GH(e,t,r){return t&&KH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YH(e,t,r){return t=Ls(t),XH(e,R1()?Reflect.construct(t,r||[],Ls(e).constructor):t.apply(e,r))}function XH(e,t){if(t&&(ci(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZH(e)}function ZH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R1=function(){return!!e})()}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}function JH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kh(e,t)}function kh(e,t){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kh(e,t)}function M1(e,t,r){return t=$1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $1(e){var t=QH(e,"string");return ci(t)=="symbol"?t:t+""}function QH(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rh.apply(this,arguments)}function eV(e){var t=e.xAxisId,r=nm(),n=im(),i=l1(t);return i==null?null:E.createElement(Ei,Rh({},i,{className:ce("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return rr(o,!0)}}))}var Et=(function(e){function t(){return VH(this,t),YH(this,t,arguments)}return JH(t,e),GH(t,[{key:"render",value:function(){return E.createElement(eV,this.props)}}])})(E.Component);M1(Et,"displayName","XAxis");M1(Et,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function tV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,L1(n.key),n)}}function nV(e,t,r){return t&&rV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iV(e,t,r){return t=Bs(t),aV(e,N1()?Reflect.construct(t,r||[],Bs(e).constructor):t.apply(e,r))}function aV(e,t){if(t&&(ui(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oV(e)}function oV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N1=function(){return!!e})()}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bs(e)}function sV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mh(e,t)}function Mh(e,t){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mh(e,t)}function D1(e,t,r){return t=L1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L1(e){var t=cV(e,"string");return ui(t)=="symbol"?t:t+""}function cV(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$h.apply(this,arguments)}var uV=function(t){var r=t.yAxisId,n=nm(),i=im(),a=f1(r);return a==null?null:E.createElement(Ei,$h({},a,{className:ce("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return rr(s,!0)}}))},Tt=(function(e){function t(){return tV(this,t),iV(this,t,arguments)}return sV(t,e),nV(t,[{key:"render",value:function(){return E.createElement(uV,this.props)}}])})(E.Component);D1(Tt,"displayName","YAxis");D1(Tt,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function VO(e){return pV(e)||dV(e)||fV(e)||lV()}function lV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
64
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fV(e,t){if(e){if(typeof e=="string")return Nh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nh(e,t)}}function dV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pV(e){if(Array.isArray(e))return Nh(e)}function Nh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Dh=function(t,r,n,i,a){var o=Qe(t,om),s=Qe(t,Ec),c=[].concat(VO(o),VO(s)),u=Qe(t,Cc),l="".concat(i,"Id"),f=i[0],d=r;if(c.length&&(d=c.reduce(function(p,v){if(v.props[l]===n&&Bt(v.props,"extendDomain")&&G(v.props[f])){var y=v.props[f];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},d)),u.length){var h="".concat(f,"1"),m="".concat(f,"2");d=u.reduce(function(p,v){if(v.props[l]===n&&Bt(v.props,"extendDomain")&&G(v.props[h])&&G(v.props[m])){var y=v.props[h],g=v.props[m];return[Math.min(p[0],y,g),Math.max(p[1],y,g)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,v){return G(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},d)),d},Qd={exports:{}},KO;function hV(){return KO||(KO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,u,l){this.fn=c,this.context=u,this.once=l||!1}function a(c,u,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var h=new i(l,f||c,d),m=r?r+u:u;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],h]:c._events[m].push(h):(c._events[m]=h,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],l,f;if(this._eventsCount===0)return u;for(f in l=this._events)t.call(l,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},s.prototype.listeners=function(u){var l=r?r+u:u,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,m=new Array(h);d<h;d++)m[d]=f[d].fn;return m},s.prototype.listenerCount=function(u){var l=r?r+u:u,f=this._events[l];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,l,f,d,h,m){var p=r?r+u:u;if(!this._events[p])return!1;var v=this._events[p],y=arguments.length,g,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,l),!0;case 3:return v.fn.call(v.context,l,f),!0;case 4:return v.fn.call(v.context,l,f,d),!0;case 5:return v.fn.call(v.context,l,f,d,h),!0;case 6:return v.fn.call(v.context,l,f,d,h,m),!0}for(x=1,g=new Array(y-1);x<y;x++)g[x-1]=arguments[x];v.fn.apply(v.context,g)}else{var O=v.length,b;for(x=0;x<O;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),y){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,l);break;case 3:v[x].fn.call(v[x].context,l,f);break;case 4:v[x].fn.call(v[x].context,l,f,d);break;default:if(!g)for(b=1,g=new Array(y-1);b<y;b++)g[b-1]=arguments[b];v[x].fn.apply(v[x].context,g)}}return!0},s.prototype.on=function(u,l,f){return a(this,u,l,f,!1)},s.prototype.once=function(u,l,f){return a(this,u,l,f,!0)},s.prototype.removeListener=function(u,l,f,d){var h=r?r+u:u;if(!this._events[h])return this;if(!l)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===l&&(!d||m.once)&&(!f||m.context===f)&&o(this,h);else{for(var p=0,v=[],y=m.length;p<y;p++)(m[p].fn!==l||d&&!m[p].once||f&&m[p].context!==f)&&v.push(m[p]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var l;return u?(l=r?r+u:u,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Qd)),Qd.exports}var vV=hV();const mV=ge(vV);var ep=new mV,tp="recharts.syncMouseEvents";function Na(e){"@babel/helpers - typeof";return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(e)}function yV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B1(n.key),n)}}function bV(e,t,r){return t&&gV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rp(e,t,r){return t=B1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B1(e){var t=xV(e,"string");return Na(t)=="symbol"?t:t+""}function xV(e,t){if(Na(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Na(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wV=(function(){function e(){yV(this,e),rp(this,"activeIndex",0),rp(this,"coordinateList",[]),rp(this,"layout","horizontal")}return bV(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,c=r.layout,u=c===void 0?null:c,l=r.offset,f=l===void 0?null:l,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,l=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+c+u,d=o+this.offset.top+s/2+l;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function OV(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&G(n)&&G(i))return!0}return!1}function SV(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function q1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=me(t,r,n,i),s=me(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function AV(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,l=t.outerRadius,f=t.angle,d=me(s,c,u,f),h=me(s,c,l,f);n=d.x,i=d.y,a=h.x,o=h.y}else return q1(t);return[{x:n,y:i},{x:a,y:o}]}function Da(e){"@babel/helpers - typeof";return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Da(e)}function GO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(r),!0).forEach(function(n){_V(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _V(e,t,r){return t=PV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PV(e){var t=EV(e,"string");return Da(t)=="symbol"?t:t+""}function EV(e,t){if(Da(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Da(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TV(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,l=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,p=Pr;if(d==="ScatterChart")m=o,p=XF;else if(d==="BarChart")m=SV(f,o,c,l),p=Qv;else if(f==="radial"){var v=q1(o),y=v.cx,g=v.cy,x=v.radius,O=v.startAngle,b=v.endAngle;m={cx:y,cy:g,startAngle:O,endAngle:b,innerRadius:x,outerRadius:x},p=TP}else m={points:AV(f,o,c)},p=Pr;var w=bo(bo(bo(bo({stroke:"#ccc",pointerEvents:"none"},c),m),J(h,!1)),{},{payload:s,payloadIndex:u,className:ce("recharts-tooltip-cursor",h.className)});return S.isValidElement(h)?S.cloneElement(h,w):S.createElement(p,w)}var CV=["item"],jV=["children","className","width","height","style","compact","title","desc"];function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cn.apply(this,arguments)}function YO(e,t){return RV(e)||kV(e,t)||z1(e,t)||IV()}function IV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function RV(e){if(Array.isArray(e))return e}function XO(e,t){if(e==null)return{};var r=MV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W1(n.key),n)}}function DV(e,t,r){return t&&NV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LV(e,t,r){return t=qs(t),BV(e,F1()?Reflect.construct(t,r||[],qs(e).constructor):t.apply(e,r))}function BV(e,t){if(t&&(li(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qV(e)}function qV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F1=function(){return!!e})()}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(e)}function FV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lh(e,t)}function Lh(e,t){return Lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lh(e,t)}function fi(e){return UV(e)||WV(e)||z1(e)||zV()}function zV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
66
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z1(e,t){if(e){if(typeof e=="string")return Bh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bh(e,t)}}function WV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UV(e){if(Array.isArray(e))return Bh(e)}function Bh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(r),!0).forEach(function(n){se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function se(e,t,r){return t=W1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W1(e){var t=HV(e,"string");return li(t)=="symbol"?t:t+""}function HV(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VV={xAxis:["bottom","top"],yAxis:["left","right"]},KV={width:"100%",height:"100%"},U1={x:0,y:0};function xo(e){return e}var GV=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},YV=function(t,r,n,i){var a=r.find(function(l){return l&&l.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return q(q(q({},i),me(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var c=a.coordinate,u=i.angle;return q(q(q({},i),me(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return U1},jc=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(fi(s),fi(u)):s},[]);return o.length>0?o:t&&t.length&&G(i)&&G(a)?t.slice(i,a+1):[]};function H1(e){return e==="number"?[0,"auto"]:void 0}var qh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=jc(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(c,u){var l,f=(l=u.props.data)!==null&&l!==void 0?l:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=$o(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(fi(c),[xP(u,d)]):c},[])},JO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=GV(a,n),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=y2(o,s,u,c);if(l>=0&&u){var f=u[l]&&u[l].value,d=qh(t,r,l,f),h=YV(n,s,l,a);return{activeTooltipIndex:l,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},XV=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=t.stackOffset,h=hP(l,a);return n.reduce(function(m,p){var v,y=p.type.defaultProps!==void 0?q(q({},p.type.defaultProps),p.props):p.props,g=y.type,x=y.dataKey,O=y.allowDataOverflow,b=y.allowDuplicatedCategory,w=y.scale,A=y.ticks,P=y.includeHidden,T=y[o];if(m[T])return m;var I=jc(t.data,{graphicalItems:i.filter(function(W){var V,Y=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o];return Y===T}),dataStartIndex:c,dataEndIndex:u}),C=I.length,j,k,$;OV(y.domain,O,g)&&(j=Xp(y.domain,null,O),h&&(g==="number"||w!=="auto")&&($=Yi(I,x,"category")));var N=H1(g);if(!j||j.length===0){var R,L=(R=y.domain)!==null&&R!==void 0?R:N;if(x){if(j=Yi(I,x,g),g==="category"&&h){var M=uI(j);b&&M?(k=j,j=Ss(0,C)):b||(j=F0(L,j,p).reduce(function(W,V){return W.indexOf(V)>=0?W:[].concat(fi(W),[V])},[]))}else if(g==="category")b?j=j.filter(function(W){return W!==""&&!oe(W)}):j=F0(L,j,p).reduce(function(W,V){return W.indexOf(V)>=0||V===""||oe(V)?W:[].concat(fi(W),[V])},[]);else if(g==="number"){var U=O2(I,i.filter(function(W){var V,Y,re=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o],ne="hide"in W.props?W.props.hide:(Y=W.type.defaultProps)===null||Y===void 0?void 0:Y.hide;return re===T&&(P||!ne)}),x,a,l);U&&(j=U)}h&&(g==="number"||w!=="auto")&&($=Yi(I,x,"category"))}else h?j=Ss(0,C):s&&s[T]&&s[T].hasStack&&g==="number"?j=d==="expand"?[0,1]:bP(s[T].stackGroups,c,u):j=pP(I,i.filter(function(W){var V=o in W.props?W.props[o]:W.type.defaultProps[o],Y="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return V===T&&(P||!Y)}),g,l,!0);if(g==="number")j=Dh(f,j,T,a,A),L&&(j=Xp(L,j,O));else if(g==="category"&&L){var D=L,F=j.every(function(W){return D.indexOf(W)>=0});F&&(j=D)}}return q(q({},m),{},se({},T,q(q({},y),{},{axisType:a,domain:j,categoricalDomain:$,duplicateDomain:k,originalDomain:(v=y.domain)!==null&&v!==void 0?v:N,isCategorical:h,layout:l})))},{})},ZV=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=jc(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),h=d.length,m=hP(l,a),p=-1;return n.reduce(function(v,y){var g=y.type.defaultProps!==void 0?q(q({},y.type.defaultProps),y.props):y.props,x=g[o],O=H1("number");if(!v[x]){p++;var b;return m?b=Ss(0,h):s&&s[x]&&s[x].hasStack?(b=bP(s[x].stackGroups,c,u),b=Dh(f,b,x,a)):(b=Xp(O,pP(d,n.filter(function(w){var A,P,T=o in w.props?w.props[o]:(A=w.type.defaultProps)===null||A===void 0?void 0:A[o],I="hide"in w.props?w.props.hide:(P=w.type.defaultProps)===null||P===void 0?void 0:P.hide;return T===x&&!I}),"number",l),i.defaultProps.allowDataOverflow),b=Dh(f,b,x,a)),q(q({},v),{},se({},x,q(q({axisType:a},i.defaultProps),{},{hide:!0,orientation:ct(VV,"".concat(a,".").concat(p%2),null),domain:b,originalDomain:O,isCategorical:m,layout:l})))}return v},{})},JV=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.children,f="".concat(i,"Id"),d=Qe(l,a),h={};return d&&d.length?h=XV(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=ZV(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),h},QV=function(t){var r=wr(t),n=rr(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:_v(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:os(r,n)}},QO=function(t){var r=t.children,n=t.defaultShowTooltip,i=at(r,Zn),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},eK=function(t){return!t||!t.length?!1:t.some(function(r){var n=nr(r&&r.type);return n&&n.indexOf("Bar")>=0})},eS=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},tK=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,c=s===void 0?{}:s,u=n.width,l=n.height,f=n.children,d=n.margin||{},h=at(f,Zn),m=at(f,yt),p=Object.keys(c).reduce(function(b,w){var A=c[w],P=A.orientation;return!A.mirror&&!A.hide?q(q({},b),{},se({},P,b[P]+A.width)):b},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(b,w){var A=o[w],P=A.orientation;return!A.mirror&&!A.hide?q(q({},b),{},se({},P,ct(b,"".concat(P))+A.height)):b},{top:d.top||0,bottom:d.bottom||0}),y=q(q({},v),p),g=y.bottom;h&&(y.bottom+=h.props.height||Zn.defaultProps.height),m&&r&&(y=x2(y,i,n,r));var x=u-y.left-y.right,O=l-y.top-y.bottom;return q(q({brushBottom:g},y),{},{width:Math.max(x,0),height:Math.max(O,0)})},rK=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Ti=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,f=t.defaultProps,d=function(y,g){var x=g.graphicalItems,O=g.stackGroups,b=g.offset,w=g.updateId,A=g.dataStartIndex,P=g.dataEndIndex,T=y.barSize,I=y.layout,C=y.barGap,j=y.barCategoryGap,k=y.maxBarSize,$=eS(I),N=$.numericAxisName,R=$.cateAxisName,L=eK(x),M=[];return x.forEach(function(U,D){var F=jc(y.data,{graphicalItems:[U],dataStartIndex:A,dataEndIndex:P}),W=U.type.defaultProps!==void 0?q(q({},U.type.defaultProps),U.props):U.props,V=W.dataKey,Y=W.maxBarSize,re=W["".concat(N,"Id")],ne=W["".concat(R,"Id")],H={},Z=c.reduce(function(Fr,Yt){var Uc,Hc,Vc=g["".concat(Yt.axisType,"Map")],Bm=W["".concat(Yt.axisType,"Id")];Vc&&Vc[Bm]||Yt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?tt(!1,"Specifying a(n) ".concat(Yt.axisType,"Id requires a corresponding ").concat(Yt.axisType,"Id on the targeted graphical component ").concat((Uc=U==null||(Hc=U.type)===null||Hc===void 0?void 0:Hc.displayName)!==null&&Uc!==void 0?Uc:"")):tt());var qm=Vc[Bm];return q(q({},Fr),{},se(se({},Yt.axisType,qm),"".concat(Yt.axisType,"Ticks"),rr(qm)))},H),z=Z[R],K=Z["".concat(R,"Ticks")],X=O&&O[re]&&O[re].hasStack&&I2(U,O[re].stackGroups),B=nr(U.type).indexOf("Bar")>=0,fe=os(z,K),de=[],je=L&&g2({barSize:T,stackGroups:O,totalSize:rK(Z,R)});if(B){var Ie,Fe,mr=oe(Y)?k:Y,mn=(Ie=(Fe=os(z,K,!0))!==null&&Fe!==void 0?Fe:mr)!==null&&Ie!==void 0?Ie:0;de=b2({barGap:C,barCategoryGap:j,bandSize:mn!==fe?mn:fe,sizeList:je[ne],maxBarSize:mr}),mn!==fe&&(de=de.map(function(Fr){return q(q({},Fr),{},{position:q(q({},Fr.position),{},{offset:Fr.position.offset-mn/2})})}))}var to=U&&U.type&&U.type.getComposedData;to&&M.push({props:q(q({},to(q(q({},Z),{},{displayedData:F,props:y,dataKey:V,item:U,bandSize:fe,barPosition:de,offset:b,stackedData:X,layout:I,dataStartIndex:A,dataEndIndex:P}))),{},se(se(se({key:U.key||"item-".concat(D)},N,Z[N]),R,Z[R]),"animationId",w)),childIndex:OI(U,y.children),item:U})}),M},h=function(y,g){var x=y.props,O=y.dataStartIndex,b=y.dataEndIndex,w=y.updateId;if(!rg({props:x}))return null;var A=x.children,P=x.layout,T=x.stackOffset,I=x.data,C=x.reverseStackOrder,j=eS(P),k=j.numericAxisName,$=j.cateAxisName,N=Qe(A,n),R=C2(I,N,"".concat(k,"Id"),"".concat($,"Id"),T,C),L=c.reduce(function(W,V){var Y="".concat(V.axisType,"Map");return q(q({},W),{},se({},Y,JV(x,q(q({},V),{},{graphicalItems:N,stackGroups:V.axisType===k&&R,dataStartIndex:O,dataEndIndex:b}))))},{}),M=tK(q(q({},L),{},{props:x,graphicalItems:N}),g?.legendBBox);Object.keys(L).forEach(function(W){L[W]=l(x,L[W],M,W.replace("Map",""),r)});var U=L["".concat($,"Map")],D=QV(U),F=d(x,q(q({},L),{},{dataStartIndex:O,dataEndIndex:b,updateId:w,graphicalItems:N,stackGroups:R,offset:M}));return q(q({formattedGraphicalItems:F,graphicalItems:N,offset:M,stackGroups:R},D),L)},m=(function(v){function y(g){var x,O,b;return $V(this,y),b=LV(this,y,[g]),se(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),se(b,"accessibilityManager",new wV),se(b,"handleLegendBBoxUpdate",function(w){if(w){var A=b.state,P=A.dataStartIndex,T=A.dataEndIndex,I=A.updateId;b.setState(q({legendBBox:w},h({props:b.props,dataStartIndex:P,dataEndIndex:T,updateId:I},q(q({},b.state),{},{legendBBox:w}))))}}),se(b,"handleReceiveSyncEvent",function(w,A,P){if(b.props.syncId===w){if(P===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(A)}}),se(b,"handleBrushChange",function(w){var A=w.startIndex,P=w.endIndex;if(A!==b.state.dataStartIndex||P!==b.state.dataEndIndex){var T=b.state.updateId;b.setState(function(){return q({dataStartIndex:A,dataEndIndex:P},h({props:b.props,dataStartIndex:A,dataEndIndex:P,updateId:T},b.state))}),b.triggerSyncEvent({dataStartIndex:A,dataEndIndex:P})}}),se(b,"handleMouseEnter",function(w){var A=b.getMouseInfo(w);if(A){var P=q(q({},A),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var T=b.props.onMouseEnter;ae(T)&&T(P,w)}}),se(b,"triggeredAfterMouseMove",function(w){var A=b.getMouseInfo(w),P=A?q(q({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(P),b.triggerSyncEvent(P);var T=b.props.onMouseMove;ae(T)&&T(P,w)}),se(b,"handleItemMouseEnter",function(w){b.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),se(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),se(b,"handleMouseMove",function(w){w.persist(),b.throttleTriggeredAfterMouseMove(w)}),se(b,"handleMouseLeave",function(w){b.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};b.setState(A),b.triggerSyncEvent(A);var P=b.props.onMouseLeave;ae(P)&&P(A,w)}),se(b,"handleOuterEvent",function(w){var A=wI(w),P=ct(b.props,"".concat(A));if(A&&ae(P)){var T,I;/.*touch.*/i.test(A)?I=b.getMouseInfo(w.changedTouches[0]):I=b.getMouseInfo(w),P((T=I)!==null&&T!==void 0?T:{},w)}}),se(b,"handleClick",function(w){var A=b.getMouseInfo(w);if(A){var P=q(q({},A),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var T=b.props.onClick;ae(T)&&T(P,w)}}),se(b,"handleMouseDown",function(w){var A=b.props.onMouseDown;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"handleMouseUp",function(w){var A=b.props.onMouseUp;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),se(b,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseDown(w.changedTouches[0])}),se(b,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseUp(w.changedTouches[0])}),se(b,"handleDoubleClick",function(w){var A=b.props.onDoubleClick;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"handleContextMenu",function(w){var A=b.props.onContextMenu;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"triggerSyncEvent",function(w){b.props.syncId!==void 0&&ep.emit(tp,b.props.syncId,w,b.eventEmitterSymbol)}),se(b,"applySyncEvent",function(w){var A=b.props,P=A.layout,T=A.syncMethod,I=b.state.updateId,C=w.dataStartIndex,j=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)b.setState(q({dataStartIndex:C,dataEndIndex:j},h({props:b.props,dataStartIndex:C,dataEndIndex:j,updateId:I},b.state)));else if(w.activeTooltipIndex!==void 0){var k=w.chartX,$=w.chartY,N=w.activeTooltipIndex,R=b.state,L=R.offset,M=R.tooltipTicks;if(!L)return;if(typeof T=="function")N=T(M,w);else if(T==="value"){N=-1;for(var U=0;U<M.length;U++)if(M[U].value===w.activeLabel){N=U;break}}var D=q(q({},L),{},{x:L.left,y:L.top}),F=Math.min(k,D.x+D.width),W=Math.min($,D.y+D.height),V=M[N]&&M[N].value,Y=qh(b.state,b.props.data,N),re=M[N]?{x:P==="horizontal"?M[N].coordinate:F,y:P==="horizontal"?W:M[N].coordinate}:U1;b.setState(q(q({},w),{},{activeLabel:V,activeCoordinate:re,activePayload:Y,activeTooltipIndex:N}))}else b.setState(w)}),se(b,"renderCursor",function(w){var A,P=b.state,T=P.isTooltipActive,I=P.activeCoordinate,C=P.activePayload,j=P.offset,k=P.activeTooltipIndex,$=P.tooltipAxisBandSize,N=b.getTooltipEventType(),R=(A=w.props.active)!==null&&A!==void 0?A:T,L=b.props.layout,M=w.key||"_recharts-cursor";return S.createElement(TV,{key:M,activeCoordinate:I,activePayload:C,activeTooltipIndex:k,chartName:r,element:w,isActive:R,layout:L,offset:j,tooltipAxisBandSize:$,tooltipEventType:N})}),se(b,"renderPolarAxis",function(w,A,P){var T=ct(w,"type.axisType"),I=ct(b.state,"".concat(T,"Map")),C=w.type.defaultProps,j=C!==void 0?q(q({},C),w.props):w.props,k=I&&I[j["".concat(T,"Id")]];return S.cloneElement(w,q(q({},k),{},{className:ce(T,k.className),key:w.key||"".concat(A,"-").concat(P),ticks:rr(k,!0)}))}),se(b,"renderPolarGrid",function(w){var A=w.props,P=A.radialLines,T=A.polarAngles,I=A.polarRadius,C=b.state,j=C.radiusAxisMap,k=C.angleAxisMap,$=wr(j),N=wr(k),R=N.cx,L=N.cy,M=N.innerRadius,U=N.outerRadius;return S.cloneElement(w,{polarAngles:Array.isArray(T)?T:rr(N,!0).map(function(D){return D.coordinate}),polarRadius:Array.isArray(I)?I:rr($,!0).map(function(D){return D.coordinate}),cx:R,cy:L,innerRadius:M,outerRadius:U,key:w.key||"polar-grid",radialLines:P})}),se(b,"renderLegend",function(){var w=b.state.formattedGraphicalItems,A=b.props,P=A.children,T=A.width,I=A.height,C=b.props.margin||{},j=T-(C.left||0)-(C.right||0),k=fP({children:P,formattedGraphicalItems:w,legendWidth:j,legendContent:u});if(!k)return null;var $=k.item,N=XO(k,CV);return S.cloneElement($,q(q({},N),{},{chartWidth:T,chartHeight:I,margin:C,onBBoxUpdate:b.handleLegendBBoxUpdate}))}),se(b,"renderTooltip",function(){var w,A=b.props,P=A.children,T=A.accessibilityLayer,I=at(P,Ke);if(!I)return null;var C=b.state,j=C.isTooltipActive,k=C.activeCoordinate,$=C.activePayload,N=C.activeLabel,R=C.offset,L=(w=I.props.active)!==null&&w!==void 0?w:j;return S.cloneElement(I,{viewBox:q(q({},R),{},{x:R.left,y:R.top}),active:L,label:N,payload:L?$:[],coordinate:k,accessibilityLayer:T})}),se(b,"renderBrush",function(w){var A=b.props,P=A.margin,T=A.data,I=b.state,C=I.offset,j=I.dataStartIndex,k=I.dataEndIndex,$=I.updateId;return S.cloneElement(w,{key:w.key||"_recharts-brush",onChange:ho(b.handleBrushChange,w.props.onChange),data:T,x:G(w.props.x)?w.props.x:C.left,y:G(w.props.y)?w.props.y:C.top+C.height+C.brushBottom-(P.bottom||0),width:G(w.props.width)?w.props.width:C.width,startIndex:j,endIndex:k,updateId:"brush-".concat($)})}),se(b,"renderReferenceElement",function(w,A,P){if(!w)return null;var T=b,I=T.clipPathId,C=b.state,j=C.xAxisMap,k=C.yAxisMap,$=C.offset,N=w.type.defaultProps||{},R=w.props,L=R.xAxisId,M=L===void 0?N.xAxisId:L,U=R.yAxisId,D=U===void 0?N.yAxisId:U;return S.cloneElement(w,{key:w.key||"".concat(A,"-").concat(P),xAxis:j[M],yAxis:k[D],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:I})}),se(b,"renderActivePoints",function(w){var A=w.item,P=w.activePoint,T=w.basePoint,I=w.childIndex,C=w.isRange,j=[],k=A.props.key,$=A.item.type.defaultProps!==void 0?q(q({},A.item.type.defaultProps),A.item.props):A.item.props,N=$.activeDot,R=$.dataKey,L=q(q({index:I,dataKey:R,cx:P.x,cy:P.y,r:4,fill:Zv(A.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},J(N,!1)),No(N));return j.push(y.renderActiveDot(N,L,"".concat(k,"-activePoint-").concat(I))),T?j.push(y.renderActiveDot(N,q(q({},L),{},{cx:T.x,cy:T.y}),"".concat(k,"-basePoint-").concat(I))):C&&j.push(null),j}),se(b,"renderGraphicChild",function(w,A,P){var T=b.filterFormatItem(w,A,P);if(!T)return null;var I=b.getTooltipEventType(),C=b.state,j=C.isTooltipActive,k=C.tooltipAxis,$=C.activeTooltipIndex,N=C.activeLabel,R=b.props.children,L=at(R,Ke),M=T.props,U=M.points,D=M.isRange,F=M.baseLine,W=T.item.type.defaultProps!==void 0?q(q({},T.item.type.defaultProps),T.item.props):T.item.props,V=W.activeDot,Y=W.hide,re=W.activeBar,ne=W.activeShape,H=!!(!Y&&j&&L&&(V||re||ne)),Z={};I!=="axis"&&L&&L.props.trigger==="click"?Z={onClick:ho(b.handleItemMouseEnter,w.props.onClick)}:I!=="axis"&&(Z={onMouseLeave:ho(b.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:ho(b.handleItemMouseEnter,w.props.onMouseEnter)});var z=S.cloneElement(w,q(q({},T.props),Z));function K(Yt){return typeof k.dataKey=="function"?k.dataKey(Yt.payload):null}if(H)if($>=0){var X,B;if(k.dataKey&&!k.allowDuplicatedCategory){var fe=typeof k.dataKey=="function"?K:"payload.".concat(k.dataKey.toString());X=$o(U,fe,N),B=D&&F&&$o(F,fe,N)}else X=U?.[$],B=D&&F&&F[$];if(ne||re){var de=w.props.activeIndex!==void 0?w.props.activeIndex:$;return[S.cloneElement(w,q(q(q({},T.props),Z),{},{activeIndex:de})),null,null]}if(!oe(X))return[z].concat(fi(b.renderActivePoints({item:T,activePoint:X,basePoint:B,childIndex:$,isRange:D})))}else{var je,Ie=(je=b.getItemByXY(b.state.activeCoordinate))!==null&&je!==void 0?je:{graphicalItem:z},Fe=Ie.graphicalItem,mr=Fe.item,mn=mr===void 0?w:mr,to=Fe.childIndex,Fr=q(q(q({},T.props),Z),{},{activeIndex:to});return[S.cloneElement(mn,Fr),null,null]}return D?[z,null,null]:[z,null]}),se(b,"renderCustomized",function(w,A,P){return S.cloneElement(w,q(q({key:"recharts-customized-".concat(P)},b.props),b.state))}),se(b,"renderMap",{CartesianGrid:{handler:xo,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:xo},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:xo},YAxis:{handler:xo},Brush:{handler:b.renderBrush,once:!0},Bar:{handler:b.renderGraphicChild},Line:{handler:b.renderGraphicChild},Area:{handler:b.renderGraphicChild},Radar:{handler:b.renderGraphicChild},RadialBar:{handler:b.renderGraphicChild},Scatter:{handler:b.renderGraphicChild},Pie:{handler:b.renderGraphicChild},Funnel:{handler:b.renderGraphicChild},Tooltip:{handler:b.renderCursor,once:!0},PolarGrid:{handler:b.renderPolarGrid,once:!0},PolarAngleAxis:{handler:b.renderPolarAxis},PolarRadiusAxis:{handler:b.renderPolarAxis},Customized:{handler:b.renderCustomized}}),b.clipPathId="".concat((x=g.id)!==null&&x!==void 0?x:kr("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=l_(b.triggeredAfterMouseMove,(O=g.throttleDelay)!==null&&O!==void 0?O:1e3/60),b.state={},b}return FV(y,v),DV(y,[{key:"componentDidMount",value:function(){var x,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,O=x.children,b=x.data,w=x.height,A=x.layout,P=at(O,Ke);if(P){var T=P.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var I=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,C=qh(this.state,b,T,I),j=this.state.tooltipTicks[T].coordinate,k=(this.state.offset.top+w)/2,$=A==="horizontal",N=$?{x:j,y:k}:{y:j,x:k},R=this.state.formattedGraphicalItems.find(function(M){var U=M.item;return U.type.name==="Scatter"});R&&(N=q(q({},N),R.props.points[T].tooltipPosition),C=R.props.points[T].tooltipPayload);var L={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:I,activePayload:C,activeCoordinate:N};this.setState(L),this.renderCursor(P),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var b,w;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(x){gp([at(x.children,Ke)],[at(this.props.children,Ke)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=at(this.props.children,Ke);if(x&&typeof x.props.shared=="boolean"){var O=x.props.shared?"axis":"item";return s.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var O=this.container,b=O.getBoundingClientRect(),w=u$(b),A={chartX:Math.round(x.pageX-w.left),chartY:Math.round(x.pageY-w.top)},P=b.width/O.offsetWidth||1,T=this.inRange(A.chartX,A.chartY,P);if(!T)return null;var I=this.state,C=I.xAxisMap,j=I.yAxisMap,k=this.getTooltipEventType(),$=JO(this.state,this.props.data,this.props.layout,T);if(k!=="axis"&&C&&j){var N=wr(C).scale,R=wr(j).scale,L=N&&N.invert?N.invert(A.chartX):null,M=R&&R.invert?R.invert(A.chartY):null;return q(q({},A),{},{xValue:L,yValue:M},$)}return $?q(q({},A),$):null}},{key:"inRange",value:function(x,O){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,A=x/b,P=O/b;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,I=A>=T.left&&A<=T.left+T.width&&P>=T.top&&P<=T.top+T.height;return I?{x:A,y:P}:null}var C=this.state,j=C.angleAxisMap,k=C.radiusAxisMap;if(j&&k){var $=wr(j);return U0({x:A,y:P},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,O=this.getTooltipEventType(),b=at(x,Ke),w={};b&&O==="axis"&&(b.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=No(this.props,this.handleOuterEvent);return q(q({},A),w)}},{key:"addListener",value:function(){ep.on(tp,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ep.removeListener(tp,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,O,b){for(var w=this.state.formattedGraphicalItems,A=0,P=w.length;A<P;A++){var T=w[A];if(T.item===x||T.props.key===x.key||O===nr(T.item.type)&&b===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,O=this.state.offset,b=O.left,w=O.top,A=O.height,P=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:x},S.createElement("rect",{x:b,y:w,height:A,width:P})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(O,b){var w=YO(b,2),A=w[0],P=w[1];return q(q({},O),{},se({},A,P.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(O,b){var w=YO(b,2),A=w[0],P=w[1];return q(q({},O),{},se({},A,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(x){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(x){var O=this.state,b=O.formattedGraphicalItems,w=O.activeItem;if(b&&b.length)for(var A=0,P=b.length;A<P;A++){var T=b[A],I=T.props,C=T.item,j=C.type.defaultProps!==void 0?q(q({},C.type.defaultProps),C.props):C.props,k=nr(C.type);if(k==="Bar"){var $=(I.data||[]).find(function(M){return IF(x,M)});if($)return{graphicalItem:T,payload:$}}else if(k==="RadialBar"){var N=(I.data||[]).find(function(M){return U0(x,M)});if(N)return{graphicalItem:T,payload:N}}else if(Oc(T,w)||Sc(T,w)||ka(T,w)){var R=lW({graphicalItem:T,activeTooltipItem:w,itemData:j.data}),L=j.activeIndex===void 0?R:j.activeIndex;return{graphicalItem:q(q({},T),{},{childIndex:L}),payload:ka(T,w)?j.data[R]:T.props.data[R]}}}return null}},{key:"render",value:function(){var x=this;if(!rg(this))return null;var O=this.props,b=O.children,w=O.className,A=O.width,P=O.height,T=O.style,I=O.compact,C=O.title,j=O.desc,k=XO(O,jV),$=J(k,!1);if(I)return S.createElement(PO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(xp,Cn({},$,{width:A,height:P,title:C,desc:j}),this.renderClipPath(),ig(b,this.renderMap)));if(this.props.accessibilityLayer){var N,R;$.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(M){x.accessibilityManager.keyboardEvent(M)},$.onFocus=function(){x.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return S.createElement(PO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Cn({className:ce("recharts-wrapper",w),style:q({position:"relative",cursor:"default",width:A,height:P},T)},L,{ref:function(U){x.container=U}}),S.createElement(xp,Cn({},$,{width:A,height:P,title:C,desc:j,style:KV}),this.renderClipPath(),ig(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(S.Component);se(m,"displayName",r),se(m,"defaultProps",q({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),se(m,"getDerivedStateFromProps",function(v,y){var g=v.dataKey,x=v.data,O=v.children,b=v.width,w=v.height,A=v.layout,P=v.stackOffset,T=v.margin,I=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var j=QO(v);return q(q(q({},j),{},{updateId:0},h(q(q({props:v},j),{},{updateId:0}),y)),{},{prevDataKey:g,prevData:x,prevWidth:b,prevHeight:w,prevLayout:A,prevStackOffset:P,prevMargin:T,prevChildren:O})}if(g!==y.prevDataKey||x!==y.prevData||b!==y.prevWidth||w!==y.prevHeight||A!==y.prevLayout||P!==y.prevStackOffset||!jn(T,y.prevMargin)){var k=QO(v),$={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},N=q(q({},JO(y,x,A)),{},{updateId:y.updateId+1}),R=q(q(q({},k),$),N);return q(q(q({},R),h(q({props:v},R),y)),{},{prevDataKey:g,prevData:x,prevWidth:b,prevHeight:w,prevLayout:A,prevStackOffset:P,prevMargin:T,prevChildren:O})}if(!gp(O,y.prevChildren)){var L,M,U,D,F=at(O,Zn),W=F&&(L=(M=F.props)===null||M===void 0?void 0:M.startIndex)!==null&&L!==void 0?L:I,V=F&&(U=(D=F.props)===null||D===void 0?void 0:D.endIndex)!==null&&U!==void 0?U:C,Y=W!==I||V!==C,re=!oe(x),ne=re&&!Y?y.updateId:y.updateId+1;return q(q({updateId:ne},h(q(q({props:v},y),{},{updateId:ne,dataStartIndex:W,dataEndIndex:V}),y)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:V})}return null}),se(m,"renderActiveDot",function(v,y,g){var x;return S.isValidElement(v)?x=S.cloneElement(v,y):ae(v)?x=v(y):x=S.createElement(Ai,y),S.createElement(ue,{className:"recharts-active-dot",key:g},x)});var p=S.forwardRef(function(y,g){return S.createElement(m,Cn({},y,{ref:g}))});return p.displayName=m.displayName,p},nK=Ti({chartName:"LineChart",GraphicalChild:Ya,axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt}],formatAxisMap:_c}),iK=Ti({chartName:"BarChart",GraphicalChild:vn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt}],formatAxisMap:_c}),V1=Ti({chartName:"PieChart",GraphicalChild:Kt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Pi},{axisType:"radiusAxis",AxisComp:_i}],formatAxisMap:SP,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),aK=Ti({chartName:"RadarChart",GraphicalChild:Ka,axisComponents:[{axisType:"angleAxis",AxisComp:Pi},{axisType:"radiusAxis",AxisComp:_i}],formatAxisMap:SP,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),oK=Ti({chartName:"ScatterChart",GraphicalChild:Za,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt},{axisType:"zAxis",AxisComp:Xa}],formatAxisMap:_c}),sK=Ti({chartName:"AreaChart",GraphicalChild:Dr,axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt}],formatAxisMap:_c});const cK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.value;return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:typeof r=="number"?r.toLocaleString():r})},tS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],uK=({title:e,data:t,layout:r="vertical",showGrid:n=!0,showLegend:i=!1,className:a})=>{const o=r==="horizontal";return _.jsxs("div",{className:ie("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(iK,{data:t,layout:o?"vertical":"horizontal",margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),o?_.jsxs(_.Fragment,{children:[_.jsx(Et,{type:"number",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{dataKey:"label",type:"category",width:80,tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}):_.jsxs(_.Fragment,{children:[_.jsx(Et,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}),_.jsx(Ke,{content:_.jsx(cK,{})}),i&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:s=>_.jsx("span",{style:{color:"var(--foreground)"},children:s})}),_.jsx(vn,{dataKey:"value",radius:[4,4,0,0],isAnimationActive:!1,children:t.map((s,c)=>_.jsx(Rr,{fill:s.color||tS[c%tS.length]},`cell-${c}`))})]})})})]})},lK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),rS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],fK=({title:e,data:t,series:r,showGrid:n=!0,showLegend:i=!0,showDots:a=!0,curved:o=!0,className:s})=>{const c=S.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(l=>l!=="label"),[t,r]);return _.jsxs("div",{className:ie("flex flex-col gap-2",s),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(nK,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Et,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ke,{content:_.jsx(lK,{})}),i&&c.length>1&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:u=>_.jsx("span",{style:{color:"var(--foreground)"},children:u})}),c.map((u,l)=>_.jsx(Ya,{type:o?"monotone":"linear",dataKey:u,stroke:rS[l%rS.length],strokeWidth:2,dot:a,activeDot:{r:6},isAnimationActive:!1},u))]})})})]})},dK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),wo=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],pK=({title:e,data:t,series:r,stacked:n=!1,showGrid:i=!0,showLegend:a=!0,className:o})=>{const s=S.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(u=>u!=="label"),[t,r]);return _.jsxs("div",{className:ie("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(sK,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Et,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ke,{content:_.jsx(dK,{})}),a&&s.length>1&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})}),s.map((c,u)=>_.jsx(Dr,{type:"monotone",dataKey:c,stackId:n?"stack":void 0,stroke:wo[u%wo.length],fill:wo[u%wo.length],fillOpacity:.3,isAnimationActive:!1},c))]})})})]})},hK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},nS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],vK=({title:e,data:t,showLabels:r=!0,showLegend:n=!0,className:i})=>{const a=t.map(o=>({name:o.label,value:o.value,color:o.color}));return _.jsxs("div",{className:ie("flex flex-col gap-2",i),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[320px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(V1,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Kt,{data:a,cx:"50%",cy:"45%",innerRadius:0,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:o,percent:s,cx:c,cy:u,midAngle:l,outerRadius:f})=>{const d=Math.PI/180,h=(f??80)+25,m=(c??0)+h*Math.cos(-((l??0)*d)),p=(u??0)+h*Math.sin(-((l??0)*d));return _.jsx("text",{x:m,y:p,fill:"var(--foreground)",textAnchor:m>(c??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${o??""} (${((s??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:a.map((o,s)=>_.jsx(Rr,{fill:o.color||nS[s%nS.length]},`cell-${s}`))}),_.jsx(Ke,{content:_.jsx(hK,{})}),n&&_.jsx(yt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:o=>_.jsx("span",{style:{color:"var(--foreground)"},children:o})})]})})})]})},mK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},iS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],yK=({title:e,data:t,showLabels:r=!1,showLegend:n=!0,innerLabel:i,innerValue:a,className:o})=>{const s=t.map(c=>({name:c.label,value:c.value,color:c.color}));return _.jsxs("div",{className:ie("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsxs("div",{className:"relative h-[320px] w-full",children:[_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(V1,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Kt,{data:s,cx:"50%",cy:"45%",innerRadius:50,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:c,percent:u,cx:l,cy:f,midAngle:d,outerRadius:h})=>{const m=Math.PI/180,p=(h??80)+25,v=(l??0)+p*Math.cos(-((d??0)*m)),y=(f??0)+p*Math.sin(-((d??0)*m));return _.jsx("text",{x:v,y,fill:"var(--foreground)",textAnchor:v>(l??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${c??""} (${((u??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:s.map((c,u)=>_.jsx(Rr,{fill:c.color||iS[u%iS.length]},`cell-${u}`))}),_.jsx(Ke,{content:_.jsx(mK,{})}),n&&_.jsx(yt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})})]})}),(i!==void 0||a!==void 0)&&_.jsxs("div",{className:"pointer-events-none absolute inset-x-0 top-[45%] flex -translate-y-1/2 flex-col items-center",children:[a!==void 0&&_.jsx("span",{className:"text-2xl font-bold text-foreground",children:a}),i&&_.jsx("span",{className:"text-xs text-muted-foreground",children:i})]})]})]})},gK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.payload;return _.jsxs("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:[r?.label&&_.jsx("div",{className:"font-medium",children:r.label}),_.jsxs("div",{children:["x: ",r?.x?.toLocaleString()]}),_.jsxs("div",{children:["y: ",r?.y?.toLocaleString()]})]})},aS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],bK=({title:e,data:t,xLabel:r,yLabel:n,showGrid:i=!0,className:a})=>{const o=t.some(s=>s.size!==void 0);return _.jsxs("div",{className:ie("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(oK,{margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Et,{type:"number",dataKey:"x",name:r||"x",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:r?{value:r,position:"bottom",offset:-5,fill:"var(--foreground)"}:void 0}),_.jsx(Tt,{type:"number",dataKey:"y",name:n||"y",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:n?{value:n,angle:-90,position:"left",fill:"var(--foreground)"}:void 0}),o&&_.jsx(Xa,{type:"number",dataKey:"size",range:[50,400]}),_.jsx(Ke,{content:_.jsx(gK,{})}),_.jsx(Za,{data:t,fill:aS[0],isAnimationActive:!1,children:t.map((s,c)=>_.jsx(Rr,{fill:s.color||aS[0]},`cell-${c}`))})]})})})]})},xK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},oS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],wK=({title:e,data:t,showLegend:r=!1,className:n})=>{const i=t.map(a=>({subject:a.label,value:a.value}));return _.jsxs("div",{className:ie("flex flex-col gap-2",n),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(aK,{data:i,cx:"50%",cy:"50%",outerRadius:"80%",children:[_.jsx(LP,{stroke:"var(--border)"}),_.jsx(Pi,{dataKey:"subject",tick:{fill:"var(--foreground)",fontSize:12}}),_.jsx(_i,{tick:{fill:"var(--foreground)",fontSize:10},axisLine:{stroke:"var(--border)"}}),_.jsx(Ke,{content:_.jsx(xK,{})}),r&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:a=>_.jsx("span",{style:{color:"var(--foreground)"},children:a})}),_.jsx(Ka,{name:"Value",dataKey:"value",stroke:oS[0],fill:oS[0],fillOpacity:.3,isAnimationActive:!1})]})})})]})},sS=["Rendering chart...","Visualizing data...","Building chart...","Processing data..."];function OK(){return sS[Math.floor(Math.random()*sS.length)]}const SK={BarChart:uK,LineChart:fK,AreaChart:pK,PieChart:vK,DonutChart:yK,ScatterChart:bK,RadarChart:wK};function AK(e){const t=SK[e.type];return t?_.jsx(t,{...e.props??{}}):_.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[_.jsx(iv,{className:"size-4"}),_.jsxs("span",{children:["Unknown chart type: ",e.type]})]})}const _K=({code:e})=>{const t=rv(),r=S.useMemo(()=>{const i=e.trim();if(!i)return null;try{const a=JSON.parse(i);return oA(a)?a:null}catch{return null}},[e]),n=S.useMemo(()=>OK(),[]);return r?_.jsx(Mo,{children:_.jsx("div",{className:ie("w-full bg-card",t("p-lg")),children:AK(r)})}):_.jsx(xj,{text:n})},K1={language:"chart",prompt:`WHEN TO USE CHARTS:
61
+ the props "valueKey" will be deprecated in 1.1.0`),y=f);var g=i.filter(function(P){return Se(P,y,0)!==0}).length,x=(v>=360?g:g-1)*c,O=v-g*h-x,b=i.reduce(function(P,T){var I=Se(T,y,0);return P+(G(I)?I:0)},0),w;if(b>0){var A;w=i.map(function(P,T){var I=Se(P,y,0),C=Se(P,l,T),j=(G(I)?I:0)/b,k;T?k=A.endAngle+Xe(p)*c*(I!==0?1:0):k=o;var $=k+Xe(p)*((I!==0?h:0)+j*O),N=(k+$)/2,R=(m.innerRadius+m.outerRadius)/2,L=[{name:C,value:I,payload:P,dataKey:y,type:d}],M=me(m.cx,m.cy,R,N);return A=_e(_e(_e({percent:j,cornerRadius:a,name:C,tooltipPayload:L,midAngle:N,middleRadius:R,tooltipPosition:M},P),m),{},{value:Se(P,y),startAngle:k,endAngle:$,payload:P,paddingAngle:Xe(p)*c}),A})}return _e(_e({},m),{},{sectors:w,data:i})});var $d,Zw;function xW(){if(Zw)return $d;Zw=1;function e(t){return t&&t.length?t[0]:void 0}return $d=e,$d}var Nd,Jw;function wW(){return Jw||(Jw=1,Nd=xW()),Nd}var OW=wW();const SW=ge(OW);var AW=["key"];function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function _W(e,t){if(e==null)return{};var r=PW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ws.apply(this,arguments)}function Qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qw(Object(r),!0).forEach(function(n){Qt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KP(n.key),n)}}function TW(e,t,r){return t&&eO(e.prototype,t),r&&eO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CW(e,t,r){return t=Os(t),jW(e,VP()?Reflect.construct(t,r||[],Os(e).constructor):t.apply(e,r))}function jW(e,t){if(t&&(Yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IW(e)}function IW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VP=function(){return!!e})()}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Os(e)}function kW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yh(e,t)}function yh(e,t){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yh(e,t)}function Qt(e,t,r){return t=KP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KP(e){var t=RW(e,"string");return Yn(t)=="symbol"?t:t+""}function RW(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ka=(function(e){function t(){var r;EW(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=CW(this,t,[].concat(i)),Qt(r,"state",{isAnimationFinished:!1}),Qt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ae(o)&&o()}),Qt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ae(o)&&o()}),Qt(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),Qt(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return kW(t,e),TW(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=J(this.props,!1),c=J(a,!0),u=n.map(function(l,f){var d=Ye(Ye(Ye({key:"dot-".concat(f),r:3},s),c),{},{dataKey:o,cx:l.x,cy:l.y,index:f,payload:l});return t.renderDotItem(a,d)});return S.createElement(ue,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,s=i.isRange,c=i.baseLinePoints,u=i.connectNulls,l;return S.isValidElement(a)?l=S.cloneElement(a,Ye(Ye({},this.props),{},{points:n})):ae(a)?l=a(Ye(Ye({},this.props),{},{points:n})):l=S.createElement(LP,ws({},J(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?c:null,connectNulls:u})),S.createElement(ue,{className:"recharts-radar-polygon"},l,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return S.createElement(lt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"radar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=f&&f.length/a.length,p=a.map(function(v,y){var g=f&&f[Math.floor(y*m)];if(g){var x=Oe(g.x,v.x),O=Oe(g.y,v.y);return Ye(Ye({},v),{},{x:x(h),y:O(h)})}var b=Oe(v.cx,v.x),w=Oe(v.cy,v.y);return Ye(Ye({},v),{},{x:b(h),y:w(h)})});return n.renderPolygonStatically(p)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,s=this.state.prevPoints;return a&&i&&i.length&&!o&&(!s||!cr(s,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,s=n.isAnimationActive;if(i||!o||!o.length)return null;var c=this.state.isAnimationFinished,u=ce("recharts-radar",a);return S.createElement(ue,{className:u},this.renderPolygon(),(!s||c)&&gt.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(ae(n))a=n(i);else{var o=i.key,s=_W(i,AW);a=S.createElement(Ai,ws({},s,{key:o,className:ce("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(S.PureComponent);Qt(Ka,"displayName","Radar");Qt(Ka,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Qt(Ka,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,a=e.bandSize,o=r.cx,s=r.cy,c=!1,u=[],l=r.type!=="number"?a??0:0;n.forEach(function(d,h){var m=Se(d,r.dataKey,h),p=Se(d,i),v=r.scale(m)+l,y=Array.isArray(p)?EP(p):p,g=oe(y)?void 0:t.scale(y);Array.isArray(p)&&p.length>=2&&(c=!0),u.push(Ye(Ye({},me(o,s,g,v)),{},{name:m,value:p,cx:o,cy:s,radius:g,angle:v,payload:d}))});var f=[];return c&&u.forEach(function(d){if(Array.isArray(d.value)){var h=SW(d.value),m=oe(h)?void 0:t.scale(h);f.push(Ye(Ye({},d),{},{radius:m},me(o,s,m,d.angle)))}else f.push(d)}),{points:u,isRange:c,baseLinePoints:f}});var Dd,tO;function MW(){if(tO)return Dd;tO=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,c=t(e((i-n)/(a||1)),0),u=Array(c);c--;)u[o?c:++s]=n,n+=a;return u}return Dd=r,Dd}var Ld,rO;function GP(){if(rO)return Ld;rO=1;var e=l_(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Ld=n,Ld}var Bd,nO;function $W(){if(nO)return Bd;nO=1;var e=MW(),t=uc(),r=GP();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Bd=n,Bd}var qd,iO;function NW(){if(iO)return qd;iO=1;var e=$W(),t=e();return qd=t,qd}var DW=NW();const Ss=ge(DW);function Ra(e){"@babel/helpers - typeof";return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ra(e)}function aO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aO(Object(r),!0).forEach(function(n){YP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YP(e,t,r){return t=LW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LW(e){var t=BW(e,"string");return Ra(t)=="symbol"?t:t+""}function BW(e,t){if(Ra(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qW=["Webkit","Moz","O","ms"],FW=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=qW.reduce(function(a,o){return oO(oO({},a),{},YP({},o+n,r))},{});return i[t]=r,i};function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}function sO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sO(Object(r),!0).forEach(function(n){it(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZP(n.key),n)}}function WW(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function UW(e,t,r){return t=_s(t),HW(e,XP()?Reflect.construct(t,r||[],_s(e).constructor):t.apply(e,r))}function HW(e,t){if(t&&(Xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VW(e)}function VW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XP=function(){return!!e})()}function _s(e){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_s(e)}function KW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gh(e,t)}function gh(e,t){return gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gh(e,t)}function it(e,t,r){return t=ZP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZP(e){var t=GW(e,"string");return Xn(t)=="symbol"?t:t+""}function GW(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var YW=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=Gi().domain(Ss(0,c)).range([a,a+o-s]),l=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:l}},uO=function(t){return t.changedTouches&&!!t.changedTouches.length},Zn=(function(e){function t(r){var n;return zW(this,t),n=UW(this,t,[r]),it(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),it(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),it(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o?.({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),it(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),it(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),it(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),it(n,"handleSlideDragStart",function(i){var a=uO(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return KW(t,e),WW(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,l=u.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),m=t.getIndexInRange(o,d);return{startIndex:h-h%c,endIndex:m===l?l:m-m%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,c=Se(a[n],s,n);return ae(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,c=this.props,u=c.x,l=c.width,f=c.travellerWidth,d=c.startIndex,h=c.endIndex,m=c.onChange,p=n.pageX-a;p>0?p=Math.min(p,u+l-f-s,u+l-f-o):p<0&&(p=Math.max(p,u-o,u-s));var v=this.getIndex({startX:o+p,endX:s+p});(v.startIndex!==d||v.endIndex!==h)&&m&&m(v),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=uO(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,c=i.startX,u=this.state[o],l=this.props,f=l.x,d=l.width,h=l.travellerWidth,m=l.onChange,p=l.gap,v=l.data,y={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,f+d-h-u):g<0&&(g=Math.max(g,f-u)),y[o]=u+g;var x=this.getIndex(y),O=x.startIndex,b=x.endIndex,w=function(){var P=v.length-1;return o==="startX"&&(s>c?O%p===0:b%p===0)||s<c&&b===P||o==="endX"&&(s>c?b%p===0:O%p===0)||s>c&&b===P};this.setState(it(it({},o,u+g),"brushMoveStartX",n.pageX),function(){m&&w()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,c=o.startX,u=o.endX,l=this.state[i],f=s.indexOf(l);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=c||this.setState(it({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.fill,u=n.stroke;return S.createElement("rect",{stroke:u,fill:c,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.data,u=n.children,l=n.padding,f=S.Children.only(u);return f?S.cloneElement(f,{x:i,y:a,width:o,height:s,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,c=this.props,u=c.y,l=c.travellerWidth,f=c.height,d=c.traveller,h=c.ariaLabel,m=c.data,p=c.startIndex,v=c.endIndex,y=Math.max(n,this.props.x),g=Fd(Fd({},J(this.props,!1)),{},{x:y,y:u,width:l,height:f}),x=h||"Min value: ".concat((a=m[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[v])===null||o===void 0?void 0:o.name);return S.createElement(ue,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),s.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,g))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,c=a.stroke,u=a.travellerWidth,l=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:l,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,c=n.travellerWidth,u=n.stroke,l=this.state,f=l.startX,d=l.endX,h=5,m={pointerEvents:"none",fill:u};return S.createElement(ue,{className:"recharts-brush-texts"},S.createElement(nn,As({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},m),this.getTextOfTick(i)),S.createElement(nn,As({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+c+h,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,c=n.y,u=n.width,l=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,m=d.endX,p=d.isTextActive,v=d.isSlideMoving,y=d.isTravellerMoving,g=d.isTravellerFocused;if(!i||!i.length||!G(s)||!G(c)||!G(u)||!G(l)||u<=0||l<=0)return null;var x=ce("recharts-brush",a),O=S.Children.count(o)===1,b=FW("userSelect","none");return S.createElement(ue,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,m),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(m,"endX"),(p||v||y||g||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,c=n.stroke,u=Math.floor(a+s/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:s,fill:c,stroke:"none"}),S.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return S.isValidElement(n)?a=S.cloneElement(n,i):ae(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,c=n.travellerWidth,u=n.updateId,l=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Fd({prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?YW({data:a,width:o,x:s,travellerWidth:c,startIndex:l,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+o-c]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var c=Math.floor((o+s)/2);n[c]>i?s=c:o=c}return i>=n[s]?s:o}}])})(S.PureComponent);it(Zn,"displayName","Brush");it(Zn,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var zd,lO;function XW(){if(lO)return zd;lO=1;var e=_v();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return zd=t,zd}var Wd,fO;function ZW(){if(fO)return Wd;fO=1;var e=FA(),t=Ht(),r=XW(),n=rt(),i=uc();function a(o,s,c){var u=n(o)?e:r;return c&&i(o,s,c)&&(s=void 0),u(o,t(s,3))}return Wd=a,Wd}var JW=ZW();const QW=ge(JW);var Bt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Ud,dO;function eU(){if(dO)return Ud;dO=1;var e=a_();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Ud=t,Ud}var Hd,pO;function tU(){if(pO)return Hd;pO=1;var e=eU(),t=n_(),r=Ht();function n(i,a){var o={};return a=r(a,3),t(i,function(s,c,u){e(o,c,a(s,c,u))}),o}return Hd=n,Hd}var rU=tU();const nU=ge(rU);var Vd,hO;function iU(){if(hO)return Vd;hO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Vd=e,Vd}var Kd,vO;function aU(){if(vO)return Kd;vO=1;var e=_v();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Kd=t,Kd}var Gd,mO;function oU(){if(mO)return Gd;mO=1;var e=iU(),t=aU(),r=Ht(),n=rt(),i=uc();function a(o,s,c){var u=n(o)?e:t;return c&&i(o,s,c)&&(s=void 0),u(o,r(s,3))}return Gd=a,Gd}var sU=oU();const JP=ge(sU);var cU=["x","y"];function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bh.apply(this,arguments)}function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yO(Object(r),!0).forEach(function(n){uU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uU(e,t,r){return t=lU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lU(e){var t=fU(e,"string");return Jn(t)=="symbol"?t:t+""}function fU(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dU(e,t){if(e==null)return{};var r=pU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hU(e,t){var r=e.x,n=e.y,i=dU(e,cU),a="".concat(r),o=parseInt(a,10),s="".concat(n),c=parseInt(s,10),u="".concat(t.height||i.height),l=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return zi(zi(zi(zi(zi({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:l,width:d,name:t.name,radius:t.radius})}function gO(e){return S.createElement(bs,bh({shapeType:"rectangle",propTransformer:hU,activeClassName:"recharts-active-bar"},e))}var vU=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=G(n)||uI(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?tt(!1,"minPointSize callback function received a value with type of ".concat(Jn(n),". Currently only numbers or null/undefined are supported.")):tt()),r)}},mU=["value","background"],QP;function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function yU(e,t){if(e==null)return{};var r=gU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ps.apply(this,arguments)}function bO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(r),!0).forEach(function(n){Sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t1(n.key),n)}}function xU(e,t,r){return t&&xO(e.prototype,t),r&&xO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wU(e,t,r){return t=Es(t),OU(e,e1()?Reflect.construct(t,r||[],Es(e).constructor):t.apply(e,r))}function OU(e,t){if(t&&(Qn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SU(e)}function SU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e1=function(){return!!e})()}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Es(e)}function AU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xh(e,t)}function xh(e,t){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xh(e,t)}function Sr(e,t,r){return t=t1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t1(e){var t=_U(e,"string");return Qn(t)=="symbol"?t:t+""}function _U(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vn=(function(e){function t(){var r;bU(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=wU(this,t,[].concat(i)),Sr(r,"state",{isAnimationFinished:!1}),Sr(r,"id",kr("recharts-bar-")),Sr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Sr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return AU(t,e),xU(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,c=a.activeIndex,u=a.activeBar,l=J(this.props,!1);return n&&n.map(function(f,d){var h=d===c,m=h?u:o,p=Me(Me(Me({},l),f),{},{isActive:h,option:m,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(ue,Ps({className:"recharts-bar-rectangle"},Tr(i.props,f,d),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(d)}),S.createElement(gO,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state.prevData;return S.createElement(lt,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var m=h.t,p=a.map(function(v,y){var g=d&&d[y];if(g){var x=Oe(g.x,v.x),O=Oe(g.y,v.y),b=Oe(g.width,v.width),w=Oe(g.height,v.height);return Me(Me({},v),{},{x:x(m),y:O(m),width:b(m),height:w(m)})}if(o==="horizontal"){var A=Oe(0,v.height),P=A(m);return Me(Me({},v),{},{y:v.y+v.height-P,height:P})}var T=Oe(0,v.width),I=T(m);return Me(Me({},v),{},{width:I})});return S.createElement(ue,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!cr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,c=J(this.props.background,!1);return a.map(function(u,l){u.value;var f=u.background,d=yU(u,mU);if(!f)return null;var h=Me(Me(Me(Me(Me({},d),{},{fill:"#eee"},f),c),Tr(n.props,u,l)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:l,className:"recharts-bar-background-rectangle"});return S.createElement(gO,Ps({key:"background-bar-".concat(l),option:n.props.background,isActive:l===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=Qe(l,Si);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(v,y){var g=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:g,errorVal:Se(v,y)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(ue,m,f.map(function(p){return S.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,c=n.yAxis,u=n.left,l=n.top,f=n.width,d=n.height,h=n.isAnimationActive,m=n.background,p=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,y=ce("recharts-bar",o),g=s&&s.allowDataOverflow,x=c&&c.allowDataOverflow,O=g||x,b=oe(p)?this.id:p;return S.createElement(ue,{className:y},g||x?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(b)},S.createElement("rect",{x:g?u:u-f/2,y:x?l:l-d/2,width:g?f:f*2,height:x?d:d*2}))):null,S.createElement(ue,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(b,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,b),(!h||v)&&gt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(S.PureComponent);QP=vn;Sr(vn,"displayName","Bar");Sr(vn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Sr(vn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=_2(n,r);if(!h)return null;var m=t.layout,p=r.type.defaultProps,v=p!==void 0?Me(Me({},p),r.props):r.props,y=v.dataKey,g=v.children,x=v.minPointSize,O=m==="horizontal"?o:a,b=u?O.scale.domain():null,w=k2({numericAxis:O}),A=Qe(g,Rr),P=f.map(function(T,I){var C,j,k,$,N,R;u?C=P2(u[l+I],b):(C=Se(T,y),Array.isArray(C)||(C=[w,C]));var L=vU(x,QP.defaultProps.minPointSize)(C[1],I);if(m==="horizontal"){var M,U=[o.scale(C[0]),o.scale(C[1])],D=U[0],F=U[1];j=B0({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:T,index:I}),k=(M=F??D)!==null&&M!==void 0?M:void 0,$=h.size;var W=D-F;if(N=Number.isNaN(W)?0:W,R={x:j,y:o.y,width:$,height:o.height},Math.abs(L)>0&&Math.abs(N)<Math.abs(L)){var V=Xe(N||L)*(Math.abs(L)-Math.abs(N));k-=V,N+=V}}else{var Y=[a.scale(C[0]),a.scale(C[1])],re=Y[0],ne=Y[1];if(j=re,k=B0({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:T,index:I}),$=ne-re,N=h.size,R={x:a.x,y:k,width:a.width,height:N},Math.abs(L)>0&&Math.abs($)<Math.abs(L)){var H=Xe($||L)*(Math.abs(L)-Math.abs($));$+=H}}return Me(Me(Me({},T),{},{x:j,y:k,width:$,height:N,value:u?C:C[1],payload:T,background:R},A&&A[I]&&A[I].props),{},{tooltipPayload:[wP(r,T)],tooltipPosition:{x:j+$/2,y:k+N/2}})});return Me({data:P,layout:m},d)});function Ma(e){"@babel/helpers - typeof";return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ma(e)}function PU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r1(n.key),n)}}function EU(e,t,r){return t&&wO(e.prototype,t),r&&wO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(r),!0).forEach(function(n){Ac(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ac(e,t,r){return t=r1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1(e){var t=TU(e,"string");return Ma(t)=="symbol"?t:t+""}function TU(e,t){if(Ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _c=function(t,r,n,i,a){var o=t.width,s=t.height,c=t.layout,u=t.children,l=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!at(u,vn);return l.reduce(function(h,m){var p=r[m],v=p.orientation,y=p.domain,g=p.padding,x=g===void 0?{}:g,O=p.mirror,b=p.reversed,w="".concat(v).concat(O?"Mirror":""),A,P,T,I,C;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var j=y[1]-y[0],k=1/0,$=p.categoricalDomain.sort(pI);if($.forEach(function(Y,re){re>0&&(k=Math.min((Y||0)-($[re-1]||0),k))}),Number.isFinite(k)){var N=k/j,R=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(A=N*R/2),p.padding==="no-gap"){var L=Ze(t.barCategoryGap,N*R),M=N*R/2;A=M-L-(M-L)/R*L}}}i==="xAxis"?P=[n.left+(x.left||0)+(A||0),n.left+n.width-(x.right||0)-(A||0)]:i==="yAxis"?P=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(A||0),n.top+n.height-(x.bottom||0)-(A||0)]:P=p.range,b&&(P=[P[1],P[0]]);var U=yP(p,a,d),D=U.scale,F=U.realScaleType;D.domain(y).range(P),gP(D);var W=bP(D,St(St({},p),{},{realScaleType:F}));i==="xAxis"?(C=v==="top"&&!O||v==="bottom"&&O,T=n.left,I=f[w]-C*p.height):i==="yAxis"&&(C=v==="left"&&!O||v==="right"&&O,T=f[w]-C*p.width,I=n.top);var V=St(St(St({},p),W),{},{realScaleType:F,x:T,y:I,scale:D,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return V.bandSize=os(V,W),!p.hide&&i==="xAxis"?f[w]+=(C?-1:1)*V.height:p.hide||(f[w]+=(C?-1:1)*V.width),St(St({},h),{},Ac({},m,V))},{})},n1=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},CU=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return n1({x:r,y:n},{x:i,y:a})},i1=(function(){function e(t){PU(this,e),this.scale=t}return EU(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Ac(i1,"EPS",1e-4);var tm=function(t){var r=Object.keys(t).reduce(function(n,i){return St(St({},n),{},Ac({},i,i1.create(t[i])))},{});return St(St({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return nU(i,function(c,u){return r[u].apply(c,{bandAware:o,position:s})})},isInRange:function(i){return JP(i,function(a,o){return r[o].isInRange(a)})}})};function jU(e){return(e%180+180)%180}var IU=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=jU(i),o=a*Math.PI/180,s=Math.atan(n/r),c=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},Yd,SO;function kU(){if(SO)return Yd;SO=1;var e=Ht(),t=za(),r=sc();function n(i){return function(a,o,s){var c=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(c[f],f,c)}}var l=i(a,o,s);return l>-1?c[u?a[l]:l]:void 0}}return Yd=n,Yd}var Xd,AO;function RU(){if(AO)return Xd;AO=1;var e=GP();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Xd=t,Xd}var Zd,_O;function MU(){if(_O)return Zd;_O=1;var e=JA(),t=Ht(),r=RU(),n=Math.max;function i(a,o,s){var c=a==null?0:a.length;if(!c)return-1;var u=s==null?0:r(s);return u<0&&(u=n(c+u,0)),e(a,t(o,3),u)}return Zd=i,Zd}var Jd,PO;function $U(){if(PO)return Jd;PO=1;var e=kU(),t=MU(),r=e(t);return Jd=r,Jd}var NU=$U();const DU=ge(NU);var LU=pA();const BU=ge(LU);var qU=BU(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function Ts(e){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}var rm=S.createContext(void 0),nm=S.createContext(void 0),a1=S.createContext(void 0),o1=S.createContext({}),s1=S.createContext(void 0),c1=S.createContext(0),u1=S.createContext(0),EO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,c=t.width,u=t.height,l=qU(a);return S.createElement(rm.Provider,{value:n},S.createElement(nm.Provider,{value:i},S.createElement(o1.Provider,{value:a},S.createElement(a1.Provider,{value:l},S.createElement(s1.Provider,{value:o},S.createElement(c1.Provider,{value:u},S.createElement(u1.Provider,{value:c},s)))))))},FU=function(){return S.useContext(s1)};function l1(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var f1=function(t){var r=S.useContext(rm);r==null&&(process.env.NODE_ENV!=="production"?tt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):tt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?tt(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Ts(t),"]. ").concat(l1(r))):tt()),n},zU=function(){var t=S.useContext(rm);return wr(t)},WU=function(){var t=S.useContext(nm),r=DU(t,function(n){return JP(n.domain,Number.isFinite)});return r||wr(t)},d1=function(t){var r=S.useContext(nm);r==null&&(process.env.NODE_ENV!=="production"?tt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):tt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?tt(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Ts(t),"]. ").concat(l1(r))):tt()),n},UU=function(){var t=S.useContext(a1);return t},HU=function(){return S.useContext(o1)},im=function(){return S.useContext(u1)},am=function(){return S.useContext(c1)};function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function VU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h1(n.key),n)}}function GU(e,t,r){return t&&KU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YU(e,t,r){return t=Cs(t),XU(e,p1()?Reflect.construct(t,r||[],Cs(e).constructor):t.apply(e,r))}function XU(e,t){if(t&&(ei(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZU(e)}function ZU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p1=function(){return!!e})()}function Cs(e){return Cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cs(e)}function JU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wh(e,t)}function wh(e,t){return wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wh(e,t)}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function CO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){om(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function om(e,t,r){return t=h1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h1(e){var t=QU(e,"string");return ei(t)=="symbol"?t:t+""}function QU(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function e3(e,t){return i3(e)||n3(e,t)||r3(e,t)||t3()}function t3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
62
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r3(e,t){if(e){if(typeof e=="string")return jO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jO(e,t)}}function jO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function i3(e){if(Array.isArray(e))return e}function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oh.apply(this,arguments)}var a3=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):ae(t)?n=t(r):n=S.createElement("line",Oh({},r,{className:"recharts-reference-line-line"})),n},o3=function(t,r,n,i,a,o,s,c,u){var l=a.x,f=a.y,d=a.width,h=a.height;if(n){var m=u.y,p=t.y.apply(m,{position:o});if(Bt(u,"discard")&&!t.y.isInRange(p))return null;var v=[{x:l+d,y:p},{x:l,y:p}];return c==="left"?v.reverse():v}if(r){var y=u.x,g=t.x.apply(y,{position:o});if(Bt(u,"discard")&&!t.x.isInRange(g))return null;var x=[{x:g,y:f+h},{x:g,y:f}];return s==="top"?x.reverse():x}if(i){var O=u.segment,b=O.map(function(w){return t.apply(w,{position:o})});return Bt(u,"discard")&&QW(b,function(w){return!t.isInRange(w)})?null:b}return null};function s3(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,c=e.alwaysShow,u=FU(),l=f1(i),f=d1(a),d=UU();if(!u||!d)return null;Pt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=tm({x:l.scale,y:f.scale}),m=Be(t),p=Be(r),v=n&&n.length===2,y=o3(h,m,p,v,d,e.position,l.orientation,f.orientation,e);if(!y)return null;var g=e3(y,2),x=g[0],O=x.x,b=x.y,w=g[1],A=w.x,P=w.y,T=Bt(e,"hidden")?"url(#".concat(u,")"):void 0,I=CO(CO({clipPath:T},J(e,!0)),{},{x1:O,y1:b,x2:A,y2:P});return S.createElement(ue,{className:ce("recharts-reference-line",s)},a3(o,I),We.renderCallByParent(e,CU({x1:O,y1:b,x2:A,y2:P})))}var sm=(function(e){function t(){return VU(this,t),YU(this,t,arguments)}return JU(t,e),GU(t,[{key:"render",value:function(){return S.createElement(s3,this.props)}}])})(S.Component);om(sm,"displayName","ReferenceLine");om(sm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Sh(){return Sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sh.apply(this,arguments)}function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function IO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IO(Object(r),!0).forEach(function(n){Pc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m1(n.key),n)}}function l3(e,t,r){return t&&u3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f3(e,t,r){return t=js(t),d3(e,v1()?Reflect.construct(t,r||[],js(e).constructor):t.apply(e,r))}function d3(e,t){if(t&&(ti(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p3(e)}function p3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v1=function(){return!!e})()}function js(e){return js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},js(e)}function h3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ah(e,t)}function Ah(e,t){return Ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ah(e,t)}function Pc(e,t,r){return t=m1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m1(e){var t=v3(e,"string");return ti(t)=="symbol"?t:t+""}function v3(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var m3=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=tm({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Bt(t,"discard")&&!o.isInRange(s)?null:s},Ec=(function(e){function t(){return c3(this,t),f3(this,t,arguments)}return h3(t,e),l3(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,c=n.clipPathId,u=Be(i),l=Be(a);if(Pt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!l)return null;var f=m3(this.props);if(!f)return null;var d=f.x,h=f.y,m=this.props,p=m.shape,v=m.className,y=Bt(this.props,"hidden")?"url(#".concat(c,")"):void 0,g=kO(kO({clipPath:y},J(this.props,!0)),{},{cx:d,cy:h});return S.createElement(ue,{className:ce("recharts-reference-dot",v)},t.renderDot(p,g),We.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(S.Component);Pc(Ec,"displayName","ReferenceDot");Pc(Ec,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Pc(Ec,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):ae(e)?r=e(t):r=S.createElement(Ai,Sh({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_h.apply(this,arguments)}function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function RO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function MO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(r),!0).forEach(function(n){Tc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g1(n.key),n)}}function b3(e,t,r){return t&&g3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x3(e,t,r){return t=Is(t),w3(e,y1()?Reflect.construct(t,r||[],Is(e).constructor):t.apply(e,r))}function w3(e,t){if(t&&(ri(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O3(e)}function O3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y1=function(){return!!e})()}function Is(e){return Is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Is(e)}function S3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ph(e,t)}function Ph(e,t){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ph(e,t)}function Tc(e,t,r){return t=g1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g1(e){var t=A3(e,"string");return ri(t)=="symbol"?t:t+""}function A3(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _3=function(t,r,n,i,a){var o=a.x1,s=a.x2,c=a.y1,u=a.y2,l=a.xAxis,f=a.yAxis;if(!l||!f)return null;var d=tm({x:l.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(c,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Bt(a,"discard")&&(!d.isInRange(h)||!d.isInRange(m))?null:n1(h,m)},Cc=(function(e){function t(){return y3(this,t),x3(this,t,arguments)}return S3(t,e),b3(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,c=n.className,u=n.alwaysShow,l=n.clipPathId;Pt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Be(i),d=Be(a),h=Be(o),m=Be(s),p=this.props.shape;if(!f&&!d&&!h&&!m&&!p)return null;var v=_3(f,d,h,m,this.props);if(!v&&!p)return null;var y=Bt(this.props,"hidden")?"url(#".concat(l,")"):void 0;return S.createElement(ue,{className:ce("recharts-reference-area",c)},t.renderRect(p,MO(MO({clipPath:y},J(this.props,!0)),v)),We.renderCallByParent(this.props,v))}}])})(S.Component);Tc(Cc,"displayName","ReferenceArea");Tc(Cc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Tc(Cc,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):ae(e)?r=e(t):r=S.createElement(em,_h({},t,{className:"recharts-reference-area-rect"})),r});function b1(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function P3(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return IU(n,r)}function E3(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function ks(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function T3(e,t){return b1(e,t+1)}function C3(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,c=0,u=1,l=o,f=function(){var m=n?.[c];if(m===void 0)return{v:b1(n,u)};var p=c,v,y=function(){return v===void 0&&(v=r(m,p)),v},g=m.coordinate,x=c===0||ks(e,g,y,l,s);x||(c=0,l=o,u+=1),x&&(l=g+e*(y()/2+i),c+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function $O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(r),!0).forEach(function(n){j3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j3(e,t,r){return t=I3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I3(e){var t=k3(e,"string");return $a(t)=="symbol"?t:t+""}function k3(e,t){if($a(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($a(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R3(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,c=t.end,u=function(d){var h=a[d],m,p=function(){return m===void 0&&(m=r(h,d)),m};if(d===o-1){var v=e*(h.coordinate+e*p()/2-c);a[d]=h=Ve(Ve({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else a[d]=h=Ve(Ve({},h),{},{tickCoord:h.coordinate});var y=ks(e,h.tickCoord,p,s,c);y&&(c=h.tickCoord-e*(p()/2+i),a[d]=Ve(Ve({},h),{},{isShow:!0}))},l=o-1;l>=0;l--)u(l);return a}function M3(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,c=t.start,u=t.end;if(a){var l=n[s-1],f=r(l,s-1),d=e*(l.coordinate+e*f/2-u);o[s-1]=l=Ve(Ve({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate});var h=ks(e,l.tickCoord,function(){return f},c,u);h&&(u=l.tickCoord-e*(f/2+i),o[s-1]=Ve(Ve({},l),{},{isShow:!0}))}for(var m=a?s-1:s,p=function(g){var x=o[g],O,b=function(){return O===void 0&&(O=r(x,g)),O};if(g===0){var w=e*(x.coordinate-e*b()/2-c);o[g]=x=Ve(Ve({},x),{},{tickCoord:w<0?x.coordinate-w*e:x.coordinate})}else o[g]=x=Ve(Ve({},x),{},{tickCoord:x.coordinate});var A=ks(e,x.tickCoord,b,c,u);A&&(c=x.tickCoord+e*(b()/2+i),o[g]=Ve(Ve({},x),{},{isShow:!0}))},v=0;v<m;v++)p(v);return o}function cm(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,l=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(G(c)||Vt.isSsr)return T3(i,typeof c=="number"&&G(c)?c:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",m=l&&h==="width"?Ki(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(x,O){var b=ae(u)?u(x.value,O):x.value;return h==="width"?P3(Ki(b,{fontSize:t,letterSpacing:r}),m,f):Ki(b,{fontSize:t,letterSpacing:r})[h]},v=i.length>=2?Xe(i[1].coordinate-i[0].coordinate):1,y=E3(a,v,h);return c==="equidistantPreserveStart"?C3(v,y,p,i,o):(c==="preserveStart"||c==="preserveStartEnd"?d=M3(v,y,p,i,o,c==="preserveStartEnd"):d=R3(v,y,p,i,o),d.filter(function(g){return g.isShow}))}var $3=["viewBox"],N3=["viewBox"],D3=["ticks"];function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tn.apply(this,arguments)}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){um(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qd(e,t){if(e==null)return{};var r=L3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function L3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function B3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w1(n.key),n)}}function q3(e,t,r){return t&&DO(e.prototype,t),r&&DO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function F3(e,t,r){return t=Rs(t),z3(e,x1()?Reflect.construct(t,r||[],Rs(e).constructor):t.apply(e,r))}function z3(e,t){if(t&&(ni(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W3(e)}function W3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x1=function(){return!!e})()}function Rs(e){return Rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rs(e)}function U3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eh(e,t)}function Eh(e,t){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Eh(e,t)}function um(e,t,r){return t=w1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w1(e){var t=H3(e,"string");return ni(t)=="symbol"?t:t+""}function H3(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ei=(function(e){function t(r){var n;return B3(this,t),n=F3(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return U3(t,e),q3(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Qd(n,$3),s=this.props,c=s.viewBox,u=Qd(s,N3);return!jn(a,c)||!jn(o,u)||!jn(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,c=i.height,u=i.orientation,l=i.tickSize,f=i.mirror,d=i.tickMargin,h,m,p,v,y,g,x=f?-1:1,O=n.tickSize||l,b=G(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=m=n.coordinate,v=o+ +!f*c,p=v-x*O,g=p-x*d,y=b;break;case"left":p=v=n.coordinate,m=a+ +!f*s,h=m-x*O,y=h-x*d,g=b;break;case"right":p=v=n.coordinate,m=a+ +f*s,h=m+x*O,y=h+x*d,g=b;break;default:h=m=n.coordinate,v=o+ +f*c,p=v+x*O,g=p+x*d,y=b;break}return{line:{x1:h,y1:p,x2:m,y2:v},tick:{x:y,y:g}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,c=n.orientation,u=n.mirror,l=n.axisLine,f=De(De(De({},J(this.props,!1)),J(l,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var d=+(c==="top"&&!u||c==="bottom"&&u);f=De(De({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(c==="left"&&!u||c==="right"&&u);f=De(De({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return S.createElement("line",Tn({},f,{className:ce("recharts-cartesian-axis-line",ct(l,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,c=s.tickLine,u=s.stroke,l=s.tick,f=s.tickFormatter,d=s.unit,h=cm(De(De({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=J(this.props,!1),y=J(l,!1),g=De(De({},v),{},{fill:"none"},J(c,!1)),x=h.map(function(O,b){var w=o.getTickLineCoord(O),A=w.line,P=w.tick,T=De(De(De(De({textAnchor:m,verticalAnchor:p},v),{},{stroke:"none",fill:u},y),P),{},{index:b,payload:O,visibleTicksCount:h.length,tickFormatter:f});return S.createElement(ue,Tn({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Tr(o.props,O,b)),c&&S.createElement("line",Tn({},g,A,{className:ce("recharts-cartesian-axis-tick-line",ct(c,"className"))})),l&&t.renderTickItem(l,T,"".concat(ae(f)?f(O.value,b):O.value).concat(d||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,c=i.ticksGenerator,u=i.className,l=i.hide;if(l)return null;var f=this.props,d=f.ticks,h=Qd(f,D3),m=d;return ae(c)&&(m=d&&d.length>0?c(this.props):c(h)),o<=0||s<=0||!m||!m.length?null:S.createElement(ue,{className:ce("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),We.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=ce(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,De(De({},i),{},{className:s})):ae(n)?o=n(De(De({},i),{},{className:s})):o=S.createElement(nn,Tn({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(S.Component);um(Ei,"displayName","CartesianAxis");um(Ei,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var V3=["x1","y1","x2","y2","key"],K3=["offset"];function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function LO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(r),!0).forEach(function(n){G3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G3(e,t,r){return t=Y3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y3(e){var t=X3(e,"string");return on(t)=="symbol"?t:t+""}function X3(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jr.apply(this,arguments)}function BO(e,t){if(e==null)return{};var r=Z3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var J3=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,c=t.ry;return S.createElement("rect",{x:i,y:a,ry:c,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function O1(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(ae(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=BO(t,V3),u=J(c,!1);u.offset;var l=BO(u,K3);r=S.createElement("line",Jr({},l,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function Q3(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,c){var u=Ge(Ge({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return O1(i,u)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function eH(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,c){var u=Ge(Ge({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return O1(i,u)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function tH(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var l=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],p=m?i+o-d:l[h+1]-d;if(p<=0)return null;var v=h%t.length;return S.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function rH(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var l=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],p=m?a+s-d:l[h+1]-d;if(p<=0)return null;var v=h%n.length;return S.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:c,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var nH=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return mP(cm(Ge(Ge(Ge({},Ei.defaultProps),n),{},{ticks:rr(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},iH=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return mP(cm(Ge(Ge(Ge({},Ei.defaultProps),n),{},{ticks:rr(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},xn={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ga(e){var t,r,n,i,a,o,s=im(),c=am(),u=HU(),l=Ge(Ge({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:xn.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:xn.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:xn.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:xn.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:xn.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:xn.verticalFill,x:G(e.x)?e.x:u.left,y:G(e.y)?e.y:u.top,width:G(e.width)?e.width:u.width,height:G(e.height)?e.height:u.height}),f=l.x,d=l.y,h=l.width,m=l.height,p=l.syncWithTicks,v=l.horizontalValues,y=l.verticalValues,g=zU(),x=WU();if(!G(h)||h<=0||!G(m)||m<=0||!G(f)||f!==+f||!G(d)||d!==+d)return null;var O=l.verticalCoordinatesGenerator||nH,b=l.horizontalCoordinatesGenerator||iH,w=l.horizontalPoints,A=l.verticalPoints;if((!w||!w.length)&&ae(b)){var P=v&&v.length,T=b({yAxis:x?Ge(Ge({},x),{},{ticks:P?v:x.ticks}):void 0,width:s,height:c,offset:u},P?!0:p);Pt(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(on(T),"]")),Array.isArray(T)&&(w=T)}if((!A||!A.length)&&ae(O)){var I=y&&y.length,C=O({xAxis:g?Ge(Ge({},g),{},{ticks:I?y:g.ticks}):void 0,width:s,height:c,offset:u},I?!0:p);Pt(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(on(C),"]")),Array.isArray(C)&&(A=C)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(J3,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),S.createElement(Q3,Jr({},l,{offset:u,horizontalPoints:w,xAxis:g,yAxis:x})),S.createElement(eH,Jr({},l,{offset:u,verticalPoints:A,xAxis:g,yAxis:x})),S.createElement(tH,Jr({},l,{horizontalPoints:w})),S.createElement(rH,Jr({},l,{verticalPoints:A})))}Ga.displayName="CartesianGrid";var aH=["type","layout","connectNulls","ref"],oH=["key"];function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function qO(e,t){if(e==null)return{};var r=sH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qi.apply(this,arguments)}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(r),!0).forEach(function(n){At(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wn(e){return fH(e)||lH(e)||uH(e)||cH()}function cH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uH(e,t){if(e){if(typeof e=="string")return Th(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Th(e,t)}}function lH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fH(e){if(Array.isArray(e))return Th(e)}function Th(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A1(n.key),n)}}function pH(e,t,r){return t&&zO(e.prototype,t),r&&zO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hH(e,t,r){return t=Ms(t),vH(e,S1()?Reflect.construct(t,r||[],Ms(e).constructor):t.apply(e,r))}function vH(e,t){if(t&&(ii(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mH(e)}function mH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S1=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ms(e)}function yH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ch(e,t)}function Ch(e,t){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ch(e,t)}function At(e,t,r){return t=A1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A1(e){var t=gH(e,"string");return ii(t)=="symbol"?t:t+""}function gH(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ya=(function(e){function t(){var r;dH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=hH(this,t,[].concat(i)),At(r,"state",{isAnimationFinished:!0,totalLength:0}),At(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),At(r,"getStrokeDasharray",function(o,s,c){var u=c.reduce(function(y,g){return y+g});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var l=Math.floor(o/u),f=o%u,d=s-o,h=[],m=0,p=0;m<c.length;p+=c[m],++m)if(p+c[m]>f){h=[].concat(wn(c.slice(0,m)),[f-p]);break}var v=h.length%2===0?[0,d]:[d];return[].concat(wn(t.repeat(c,l)),wn(h),v).map(function(y){return"".concat(y,"px")}).join(", ")}),At(r,"id",kr("recharts-line-")),At(r,"pathRef",function(o){r.mainCurve=o}),At(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),At(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return yH(t,e),pH(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,c=a.yAxis,u=a.layout,l=a.children,f=Qe(l,Si);if(!f)return null;var d=function(p,v){return{x:p.x,y:p.y,value:p.value,errorVal:Se(p.payload,v)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(ue,h,f.map(function(m){return S.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,l=s.dataKey,f=J(this.props,!1),d=J(c,!0),h=u.map(function(p,v){var y=nt(nt(nt({key:"dot-".concat(v),r:3},f),d),{},{index:v,cx:p.x,cy:p.y,value:p.value,dataKey:l,payload:p.payload,points:u});return t.renderDotItem(c,y)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(ue,Qi({className:"recharts-line-dots",key:"dots"},m),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,c=s.type,u=s.layout,l=s.connectNulls;s.ref;var f=qO(s,aH),d=nt(nt(nt({},J(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:u,connectNulls:l});return S.createElement(Pr,Qi({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.strokeDasharray,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=o.animateNewValues,p=o.width,v=o.height,y=this.state,g=y.prevPoints,x=y.totalLength;return S.createElement(lt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var b=O.t;if(g){var w=g.length/s.length,A=s.map(function(j,k){var $=Math.floor(k*w);if(g[$]){var N=g[$],R=Oe(N.x,j.x),L=Oe(N.y,j.y);return nt(nt({},j),{},{x:R(b),y:L(b)})}if(m){var M=Oe(p*2,j.x),U=Oe(v/2,j.y);return nt(nt({},j),{},{x:M(b),y:U(b)})}return nt(nt({},j),{},{x:j.x,y:j.y})});return a.renderCurveStatically(A,n,i)}var P=Oe(0,x),T=P(b),I;if(c){var C="".concat(c).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});I=a.getStrokeDasharray(T,x,C)}else I=a.generateSimpleStrokeDasharray(x,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:I})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,c=this.state,u=c.prevPoints,l=c.totalLength;return s&&o&&o.length&&(!u&&l>0||!cr(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.xAxis,l=i.yAxis,f=i.top,d=i.left,h=i.width,m=i.height,p=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,g=s.length===1,x=ce("recharts-line",c),O=u&&u.allowDataOverflow,b=l&&l.allowDataOverflow,w=O||b,A=oe(v)?this.id:v,P=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,I=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,k=gA(o)?o:{},$=k.clipDot,N=$===void 0?!0:$,R=I*2+j;return S.createElement(ue,{className:x},O||b?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(A)},S.createElement("rect",{x:O?d:d-h/2,y:b?f:f-m/2,width:O?h:h*2,height:b?m:m*2})),!N&&S.createElement("clipPath",{id:"clipPath-dots-".concat(A)},S.createElement("rect",{x:d-R/2,y:f-R/2,width:h+R,height:m+R}))):null,!g&&this.renderCurve(w,A),this.renderErrorBar(w,A),(g||o)&&this.renderDots(w,N,A),(!p||y)&&gt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(wn(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(wn(o),wn(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(ae(n))a=n(i);else{var o=i.key,s=qO(i,oH),c=ce("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(Ai,Qi({key:o},s,{className:c}))}return a}}])})(S.PureComponent);At(Ya,"displayName","Line");At(Ya,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Vt.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});At(Ya,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout,f=c.map(function(d,h){var m=Se(d,o);return l==="horizontal"?{x:Un({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:oe(m)?null:n.scale(m),value:m,payload:d}:{x:oe(m)?null:r.scale(m),y:Un({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:m,payload:d}});return nt({points:f,layout:l},u)});var bH=["layout","type","stroke","connectNulls","isRange","ref"],xH=["key"],_1;function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function P1(e,t){if(e==null)return{};var r=wH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qr.apply(this,arguments)}function WO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(r),!0).forEach(function(n){Nt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T1(n.key),n)}}function SH(e,t,r){return t&&UO(e.prototype,t),r&&UO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function AH(e,t,r){return t=$s(t),_H(e,E1()?Reflect.construct(t,r||[],$s(e).constructor):t.apply(e,r))}function _H(e,t){if(t&&(ai(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PH(e)}function PH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E1=function(){return!!e})()}function $s(e){return $s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$s(e)}function EH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jh(e,t)}function jh(e,t){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jh(e,t)}function Nt(e,t,r){return t=T1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T1(e){var t=TH(e,"string");return ai(t)=="symbol"?t:t+""}function TH(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dr=(function(e){function t(){var r;OH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=AH(this,t,[].concat(i)),Nt(r,"state",{isAnimationFinished:!0}),Nt(r,"id",kr("recharts-area-")),Nt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ae(o)&&o()}),Nt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ae(o)&&o()}),r}return EH(t,e),SH(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var c=this.props,u=c.dot,l=c.points,f=c.dataKey,d=J(this.props,!1),h=J(u,!0),m=l.map(function(v,y){var g=gr(gr(gr({key:"dot-".concat(y),r:3},d),h),{},{index:y,cx:v.x,cy:v.y,dataKey:f,value:v.value,payload:v.payload,points:l});return t.renderDotItem(u,g)}),p={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(ue,Qr({className:"recharts-area-dots"},p),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].x,u=o[o.length-1].x,l=n*Math.abs(c-u),f=Or(o.map(function(d){return d.y||0}));return G(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Or(a.map(function(d){return d.y||0})),f)),G(f)?S.createElement("rect",{x:c<u?c:c-l,y:0,width:l,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,c=o[0].y,u=o[o.length-1].y,l=n*Math.abs(c-u),f=Or(o.map(function(d){return d.x||0}));return G(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Or(a.map(function(d){return d.x||0})),f)),G(f)?S.createElement("rect",{x:0,y:c<u?c:c-l,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,c=s.layout,u=s.type,l=s.stroke,f=s.connectNulls,d=s.isRange;s.ref;var h=P1(s,bH);return S.createElement(ue,{clipPath:a?"url(#clipPath-".concat(o,")"):null},S.createElement(Pr,Qr({},J(h,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),l!=="none"&&S.createElement(Pr,Qr({},J(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:n})),l!=="none"&&d&&S.createElement(Pr,Qr({},J(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,c=o.baseLine,u=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=this.state,p=m.prevPoints,v=m.prevBaseLine;return S.createElement(lt,{begin:l,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var g=y.t;if(p){var x=p.length/s.length,O=s.map(function(P,T){var I=Math.floor(T*x);if(p[I]){var C=p[I],j=Oe(C.x,P.x),k=Oe(C.y,P.y);return gr(gr({},P),{},{x:j(g),y:k(g)})}return P}),b;if(G(c)&&typeof c=="number"){var w=Oe(v,c);b=w(g)}else if(oe(c)||gi(c)){var A=Oe(v,0);b=A(g)}else b=c.map(function(P,T){var I=Math.floor(T*x);if(v[I]){var C=v[I],j=Oe(C.x,P.x),k=Oe(C.y,P.y);return gr(gr({},P),{},{x:j(g),y:k(g)})}return P});return a.renderAreaStatically(O,b,n,i)}return S.createElement(ue,null,S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(g))),S.createElement(ue,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,c=a.isAnimationActive,u=this.state,l=u.prevPoints,f=u.prevBaseLine,d=u.totalLength;return c&&o&&o.length&&(!l&&d>0||!cr(l,o)||!cr(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,c=i.className,u=i.top,l=i.left,f=i.xAxis,d=i.yAxis,h=i.width,m=i.height,p=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,g=s.length===1,x=ce("recharts-area",c),O=f&&f.allowDataOverflow,b=d&&d.allowDataOverflow,w=O||b,A=oe(v)?this.id:v,P=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=P.r,I=T===void 0?3:T,C=P.strokeWidth,j=C===void 0?2:C,k=gA(o)?o:{},$=k.clipDot,N=$===void 0?!0:$,R=I*2+j;return S.createElement(ue,{className:x},O||b?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(A)},S.createElement("rect",{x:O?l:l-h/2,y:b?u:u-m/2,width:O?h:h*2,height:b?m:m*2})),!N&&S.createElement("clipPath",{id:"clipPath-dots-".concat(A)},S.createElement("rect",{x:l-R/2,y:u-R/2,width:h+R,height:m+R}))):null,g?null:this.renderArea(w,A),(o||g)&&this.renderDots(w,N,A),(!p||y)&&gt.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(S.PureComponent);_1=Dr;Nt(Dr,"displayName","Area");Nt(Dr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Nt(Dr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(G(s)&&typeof s=="number")return s;var c=i==="horizontal"?n:r,u=c.scale.domain();if(c.type==="number"){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Nt(Dr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,c=e.dataKey,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=t.layout,m=u&&u.length,p=_1.getBaseValue(t,r,n,i),v=h==="horizontal",y=!1,g=f.map(function(O,b){var w;m?w=u[l+b]:(w=Se(O,c),Array.isArray(w)?y=!0:w=[p,w]);var A=w[1]==null||m&&Se(O,c)==null;return v?{x:Un({axis:n,ticks:a,bandSize:s,entry:O,index:b}),y:A?null:i.scale(w[1]),value:w,payload:O}:{x:A?null:n.scale(w[1]),y:Un({axis:i,ticks:o,bandSize:s,entry:O,index:b}),value:w,payload:O}}),x;return m||y?x=g.map(function(O){var b=Array.isArray(O.value)?O.value[0]:null;return v?{x:O.x,y:b!=null&&O.y!=null?i.scale(b):null}:{x:b!=null?n.scale(b):null,y:O.y}}):x=v?i.scale(p):n.scale(p),gr({points:g,baseLine:x,layout:h,isRange:y},d)});Nt(Dr,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(ae(e))r=e(t);else{var n=ce("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=P1(t,xH);r=S.createElement(Ai,Qr({},a,{key:i,className:n}))}return r});function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function CH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I1(n.key),n)}}function IH(e,t,r){return t&&jH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kH(e,t,r){return t=Ns(t),RH(e,C1()?Reflect.construct(t,r||[],Ns(e).constructor):t.apply(e,r))}function RH(e,t){if(t&&(oi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MH(e)}function MH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C1=function(){return!!e})()}function Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ns(e)}function $H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ih(e,t)}function Ih(e,t){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ih(e,t)}function j1(e,t,r){return t=I1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I1(e){var t=NH(e,"string");return oi(t)=="symbol"?t:t+""}function NH(e,t){if(oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xa=(function(e){function t(){return CH(this,t),kH(this,t,arguments)}return $H(t,e),IH(t,[{key:"render",value:function(){return null}}])})(E.Component);j1(Xa,"displayName","ZAxis");j1(Xa,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var DH=["option","isActive"];function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ea.apply(this,arguments)}function LH(e,t){if(e==null)return{};var r=BH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qH(e){var t=e.option,r=e.isActive,n=LH(e,DH);return typeof t=="string"?E.createElement(bs,ea({option:E.createElement(oc,ea({type:t},n)),isActive:r,shapeType:"symbols"},n)):E.createElement(bs,ea({option:t,isActive:r,shapeType:"symbols"},n))}function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ta.apply(this,arguments)}function HO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(r),!0).forEach(function(n){Ar(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,R1(n.key),n)}}function zH(e,t,r){return t&&VO(e.prototype,t),r&&VO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function WH(e,t,r){return t=Ds(t),UH(e,k1()?Reflect.construct(t,r||[],Ds(e).constructor):t.apply(e,r))}function UH(e,t){if(t&&(si(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HH(e)}function HH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k1=function(){return!!e})()}function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ds(e)}function VH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kh(e,t)}function kh(e,t){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kh(e,t)}function Ar(e,t,r){return t=R1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R1(e){var t=KH(e,"string");return si(t)=="symbol"?t:t+""}function KH(e,t){if(si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Za=(function(e){function t(){var r;FH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=WH(this,t,[].concat(i)),Ar(r,"state",{isAnimationFinished:!1}),Ar(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Ar(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Ar(r,"id",kr("recharts-scatter-")),r}return VH(t,e),zH(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,c=a.activeIndex,u=J(this.props,!1);return n.map(function(l,f){var d=c===f,h=d?s:o,m=ht(ht({},u),l);return S.createElement(ue,ta({className:"recharts-scatter-symbol",key:"symbol-".concat(l?.cx,"-").concat(l?.cy,"-").concat(l?.size,"-").concat(f)},Tr(i.props,l,f),{role:"img"}),S.createElement(qH,ta({option:h,isActive:d,key:"symbol-".concat(f)},m)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return S.createElement(lt,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,m=a.map(function(p,v){var y=f&&f[v];if(y){var g=Oe(y.cx,p.cx),x=Oe(y.cy,p.cy),O=Oe(y.size,p.size);return ht(ht({},p),{},{cx:g(h),cy:x(h),size:O(h)})}var b=Oe(0,p.size);return ht(ht({},p),{},{size:b(h)})});return S.createElement(ue,null,n.renderSymbolsStatically(m))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!cr(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,c=i.children,u=Qe(c,Si);return u?u.map(function(l,f){var d=l.props,h=d.direction,m=d.dataKey;return S.cloneElement(l,{key:"".concat(h,"-").concat(m,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:h==="x"?"vertical":"horizontal",dataPointFormatter:function(v,y){return{x:v.cx,y:v.cy,value:h==="x"?+v.node.x:+v.node.y,errorVal:Se(v,y)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,c=J(this.props,!1),u=J(a,!1),l,f;if(o==="joint")l=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=dI(i),h=d.xmin,m=d.xmax,p=d.a,v=d.b,y=function(O){return p*O+v};l=[{x:h,y:y(h)},{x:m,y:y(m)}]}var g=ht(ht(ht({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:l});return S.isValidElement(a)?f=S.cloneElement(a,g):ae(a)?f=a(g):f=S.createElement(Pr,ta({},g,{type:s})),S.createElement(ue,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,c=n.xAxis,u=n.yAxis,l=n.left,f=n.top,d=n.width,h=n.height,m=n.id,p=n.isAnimationActive;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,y=ce("recharts-scatter",s),g=c&&c.allowDataOverflow,x=u&&u.allowDataOverflow,O=g||x,b=oe(m)?this.id:m;return S.createElement(ue,{className:y,clipPath:O?"url(#clipPath-".concat(b,")"):null},g||x?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(b)},S.createElement("rect",{x:g?l:l-d/2,y:x?f:f-h/2,width:g?d:d*2,height:x?h:h*2}))):null,o&&this.renderLine(),this.renderErrorBar(),S.createElement(ue,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!p||v)&&gt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(S.PureComponent);Ar(Za,"displayName","Scatter");Ar(Za,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Vt.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Ar(Za,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,l=Qe(i.props.children,Rr),f=oe(t.dataKey)?i.props.dataKey:t.dataKey,d=oe(r.dataKey)?i.props.dataKey:r.dataKey,h=n&&n.dataKey,m=n?n.range:Xa.defaultProps.range,p=m&&m[0],v=t.scale.bandwidth?t.scale.bandwidth():0,y=r.scale.bandwidth?r.scale.bandwidth():0,g=a.map(function(x,O){var b=Se(x,f),w=Se(x,d),A=!oe(h)&&Se(x,h)||"-",P=[{name:oe(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:b,payload:x,dataKey:f,type:u},{name:oe(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:x,dataKey:d,type:u}];A!=="-"&&P.push({name:n.name||n.dataKey,unit:n.unit||"",value:A,payload:x,dataKey:h,type:u});var T=Un({axis:t,ticks:o,bandSize:v,entry:x,index:O,dataKey:f}),I=Un({axis:r,ticks:s,bandSize:y,entry:x,index:O,dataKey:d}),C=A!=="-"?n.scale(A):p,j=Math.sqrt(Math.max(C,0)/Math.PI);return ht(ht({},x),{},{cx:T,cy:I,x:T-j,y:I-j,xAxis:t,yAxis:r,zAxis:n,width:2*j,height:2*j,size:C,node:{x:b,y:w,z:A},tooltipPayload:P,tooltipPosition:{x:T,y:I},payload:x},l&&l[O]&&l[O].props)});return ht({points:g},c)});function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function GH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N1(n.key),n)}}function XH(e,t,r){return t&&YH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZH(e,t,r){return t=Ls(t),JH(e,M1()?Reflect.construct(t,r||[],Ls(e).constructor):t.apply(e,r))}function JH(e,t){if(t&&(ci(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QH(e)}function QH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M1=function(){return!!e})()}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}function eV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rh(e,t)}function Rh(e,t){return Rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rh(e,t)}function $1(e,t,r){return t=N1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N1(e){var t=tV(e,"string");return ci(t)=="symbol"?t:t+""}function tV(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mh.apply(this,arguments)}function rV(e){var t=e.xAxisId,r=im(),n=am(),i=f1(t);return i==null?null:E.createElement(Ei,Mh({},i,{className:ce("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return rr(o,!0)}}))}var Et=(function(e){function t(){return GH(this,t),ZH(this,t,arguments)}return eV(t,e),XH(t,[{key:"render",value:function(){return E.createElement(rV,this.props)}}])})(E.Component);$1(Et,"displayName","XAxis");$1(Et,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}function nV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B1(n.key),n)}}function aV(e,t,r){return t&&iV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oV(e,t,r){return t=Bs(t),sV(e,D1()?Reflect.construct(t,r||[],Bs(e).constructor):t.apply(e,r))}function sV(e,t){if(t&&(ui(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cV(e)}function cV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D1=function(){return!!e})()}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bs(e)}function uV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$h(e,t)}function $h(e,t){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$h(e,t)}function L1(e,t,r){return t=B1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B1(e){var t=lV(e,"string");return ui(t)=="symbol"?t:t+""}function lV(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Nh(){return Nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nh.apply(this,arguments)}var fV=function(t){var r=t.yAxisId,n=im(),i=am(),a=d1(r);return a==null?null:E.createElement(Ei,Nh({},a,{className:ce("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return rr(s,!0)}}))},Tt=(function(e){function t(){return nV(this,t),oV(this,t,arguments)}return uV(t,e),aV(t,[{key:"render",value:function(){return E.createElement(fV,this.props)}}])})(E.Component);L1(Tt,"displayName","YAxis");L1(Tt,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function KO(e){return vV(e)||hV(e)||pV(e)||dV()}function dV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
64
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pV(e,t){if(e){if(typeof e=="string")return Dh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dh(e,t)}}function hV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vV(e){if(Array.isArray(e))return Dh(e)}function Dh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Lh=function(t,r,n,i,a){var o=Qe(t,sm),s=Qe(t,Ec),c=[].concat(KO(o),KO(s)),u=Qe(t,Cc),l="".concat(i,"Id"),f=i[0],d=r;if(c.length&&(d=c.reduce(function(p,v){if(v.props[l]===n&&Bt(v.props,"extendDomain")&&G(v.props[f])){var y=v.props[f];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},d)),u.length){var h="".concat(f,"1"),m="".concat(f,"2");d=u.reduce(function(p,v){if(v.props[l]===n&&Bt(v.props,"extendDomain")&&G(v.props[h])&&G(v.props[m])){var y=v.props[h],g=v.props[m];return[Math.min(p[0],y,g),Math.max(p[1],y,g)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,v){return G(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},d)),d},ep={exports:{}},GO;function mV(){return GO||(GO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,u,l){this.fn=c,this.context=u,this.once=l||!1}function a(c,u,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var h=new i(l,f||c,d),m=r?r+u:u;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],h]:c._events[m].push(h):(c._events[m]=h,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],l,f;if(this._eventsCount===0)return u;for(f in l=this._events)t.call(l,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},s.prototype.listeners=function(u){var l=r?r+u:u,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,m=new Array(h);d<h;d++)m[d]=f[d].fn;return m},s.prototype.listenerCount=function(u){var l=r?r+u:u,f=this._events[l];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,l,f,d,h,m){var p=r?r+u:u;if(!this._events[p])return!1;var v=this._events[p],y=arguments.length,g,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,l),!0;case 3:return v.fn.call(v.context,l,f),!0;case 4:return v.fn.call(v.context,l,f,d),!0;case 5:return v.fn.call(v.context,l,f,d,h),!0;case 6:return v.fn.call(v.context,l,f,d,h,m),!0}for(x=1,g=new Array(y-1);x<y;x++)g[x-1]=arguments[x];v.fn.apply(v.context,g)}else{var O=v.length,b;for(x=0;x<O;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),y){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,l);break;case 3:v[x].fn.call(v[x].context,l,f);break;case 4:v[x].fn.call(v[x].context,l,f,d);break;default:if(!g)for(b=1,g=new Array(y-1);b<y;b++)g[b-1]=arguments[b];v[x].fn.apply(v[x].context,g)}}return!0},s.prototype.on=function(u,l,f){return a(this,u,l,f,!1)},s.prototype.once=function(u,l,f){return a(this,u,l,f,!0)},s.prototype.removeListener=function(u,l,f,d){var h=r?r+u:u;if(!this._events[h])return this;if(!l)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===l&&(!d||m.once)&&(!f||m.context===f)&&o(this,h);else{for(var p=0,v=[],y=m.length;p<y;p++)(m[p].fn!==l||d&&!m[p].once||f&&m[p].context!==f)&&v.push(m[p]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var l;return u?(l=r?r+u:u,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(ep)),ep.exports}var yV=mV();const gV=ge(yV);var tp=new gV,rp="recharts.syncMouseEvents";function Na(e){"@babel/helpers - typeof";return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(e)}function bV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q1(n.key),n)}}function wV(e,t,r){return t&&xV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function np(e,t,r){return t=q1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q1(e){var t=OV(e,"string");return Na(t)=="symbol"?t:t+""}function OV(e,t){if(Na(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Na(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var SV=(function(){function e(){bV(this,e),np(this,"activeIndex",0),np(this,"coordinateList",[]),np(this,"layout","horizontal")}return wV(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,c=r.layout,u=c===void 0?null:c,l=r.offset,f=l===void 0?null:l,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,l=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+c+u,d=o+this.offset.top+s/2+l;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function AV(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&G(n)&&G(i))return!0}return!1}function _V(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function F1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=me(t,r,n,i),s=me(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function PV(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,l=t.outerRadius,f=t.angle,d=me(s,c,u,f),h=me(s,c,l,f);n=d.x,i=d.y,a=h.x,o=h.y}else return F1(t);return[{x:n,y:i},{x:a,y:o}]}function Da(e){"@babel/helpers - typeof";return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Da(e)}function YO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(r),!0).forEach(function(n){EV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EV(e,t,r){return t=TV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TV(e){var t=CV(e,"string");return Da(t)=="symbol"?t:t+""}function CV(e,t){if(Da(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Da(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jV(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,l=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,p=Pr;if(d==="ScatterChart")m=o,p=JF;else if(d==="BarChart")m=_V(f,o,c,l),p=em;else if(f==="radial"){var v=F1(o),y=v.cx,g=v.cy,x=v.radius,O=v.startAngle,b=v.endAngle;m={cx:y,cy:g,startAngle:O,endAngle:b,innerRadius:x,outerRadius:x},p=CP}else m={points:PV(f,o,c)},p=Pr;var w=bo(bo(bo(bo({stroke:"#ccc",pointerEvents:"none"},c),m),J(h,!1)),{},{payload:s,payloadIndex:u,className:ce("recharts-tooltip-cursor",h.className)});return S.isValidElement(h)?S.cloneElement(h,w):S.createElement(p,w)}var IV=["item"],kV=["children","className","width","height","style","compact","title","desc"];function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cn.apply(this,arguments)}function XO(e,t){return $V(e)||MV(e,t)||W1(e,t)||RV()}function RV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function $V(e){if(Array.isArray(e))return e}function ZO(e,t){if(e==null)return{};var r=NV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function DV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,U1(n.key),n)}}function BV(e,t,r){return t&&LV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qV(e,t,r){return t=qs(t),FV(e,z1()?Reflect.construct(t,r||[],qs(e).constructor):t.apply(e,r))}function FV(e,t){if(t&&(li(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zV(e)}function zV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z1=function(){return!!e})()}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(e)}function WV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bh(e,t)}function Bh(e,t){return Bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bh(e,t)}function fi(e){return VV(e)||HV(e)||W1(e)||UV()}function UV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
66
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W1(e,t){if(e){if(typeof e=="string")return qh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qh(e,t)}}function HV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VV(e){if(Array.isArray(e))return qh(e)}function qh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(r),!0).forEach(function(n){se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function se(e,t,r){return t=U1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U1(e){var t=KV(e,"string");return li(t)=="symbol"?t:t+""}function KV(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GV={xAxis:["bottom","top"],yAxis:["left","right"]},YV={width:"100%",height:"100%"},H1={x:0,y:0};function xo(e){return e}var XV=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},ZV=function(t,r,n,i){var a=r.find(function(l){return l&&l.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return q(q(q({},i),me(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var c=a.coordinate,u=i.angle;return q(q(q({},i),me(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return H1},jc=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(fi(s),fi(u)):s},[]);return o.length>0?o:t&&t.length&&G(i)&&G(a)?t.slice(i,a+1):[]};function V1(e){return e==="number"?[0,"auto"]:void 0}var Fh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=jc(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(c,u){var l,f=(l=u.props.data)!==null&&l!==void 0?l:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=$o(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(fi(c),[wP(u,d)]):c},[])},QO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=XV(a,n),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=b2(o,s,u,c);if(l>=0&&u){var f=u[l]&&u[l].value,d=Fh(t,r,l,f),h=ZV(n,s,l,a);return{activeTooltipIndex:l,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},JV=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=t.stackOffset,h=vP(l,a);return n.reduce(function(m,p){var v,y=p.type.defaultProps!==void 0?q(q({},p.type.defaultProps),p.props):p.props,g=y.type,x=y.dataKey,O=y.allowDataOverflow,b=y.allowDuplicatedCategory,w=y.scale,A=y.ticks,P=y.includeHidden,T=y[o];if(m[T])return m;var I=jc(t.data,{graphicalItems:i.filter(function(W){var V,Y=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o];return Y===T}),dataStartIndex:c,dataEndIndex:u}),C=I.length,j,k,$;AV(y.domain,O,g)&&(j=Zp(y.domain,null,O),h&&(g==="number"||w!=="auto")&&($=Yi(I,x,"category")));var N=V1(g);if(!j||j.length===0){var R,L=(R=y.domain)!==null&&R!==void 0?R:N;if(x){if(j=Yi(I,x,g),g==="category"&&h){var M=fI(j);b&&M?(k=j,j=Ss(0,C)):b||(j=z0(L,j,p).reduce(function(W,V){return W.indexOf(V)>=0?W:[].concat(fi(W),[V])},[]))}else if(g==="category")b?j=j.filter(function(W){return W!==""&&!oe(W)}):j=z0(L,j,p).reduce(function(W,V){return W.indexOf(V)>=0||V===""||oe(V)?W:[].concat(fi(W),[V])},[]);else if(g==="number"){var U=A2(I,i.filter(function(W){var V,Y,re=o in W.props?W.props[o]:(V=W.type.defaultProps)===null||V===void 0?void 0:V[o],ne="hide"in W.props?W.props.hide:(Y=W.type.defaultProps)===null||Y===void 0?void 0:Y.hide;return re===T&&(P||!ne)}),x,a,l);U&&(j=U)}h&&(g==="number"||w!=="auto")&&($=Yi(I,x,"category"))}else h?j=Ss(0,C):s&&s[T]&&s[T].hasStack&&g==="number"?j=d==="expand"?[0,1]:xP(s[T].stackGroups,c,u):j=hP(I,i.filter(function(W){var V=o in W.props?W.props[o]:W.type.defaultProps[o],Y="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return V===T&&(P||!Y)}),g,l,!0);if(g==="number")j=Lh(f,j,T,a,A),L&&(j=Zp(L,j,O));else if(g==="category"&&L){var D=L,F=j.every(function(W){return D.indexOf(W)>=0});F&&(j=D)}}return q(q({},m),{},se({},T,q(q({},y),{},{axisType:a,domain:j,categoricalDomain:$,duplicateDomain:k,originalDomain:(v=y.domain)!==null&&v!==void 0?v:N,isCategorical:h,layout:l})))},{})},QV=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.layout,f=t.children,d=jc(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),h=d.length,m=vP(l,a),p=-1;return n.reduce(function(v,y){var g=y.type.defaultProps!==void 0?q(q({},y.type.defaultProps),y.props):y.props,x=g[o],O=V1("number");if(!v[x]){p++;var b;return m?b=Ss(0,h):s&&s[x]&&s[x].hasStack?(b=xP(s[x].stackGroups,c,u),b=Lh(f,b,x,a)):(b=Zp(O,hP(d,n.filter(function(w){var A,P,T=o in w.props?w.props[o]:(A=w.type.defaultProps)===null||A===void 0?void 0:A[o],I="hide"in w.props?w.props.hide:(P=w.type.defaultProps)===null||P===void 0?void 0:P.hide;return T===x&&!I}),"number",l),i.defaultProps.allowDataOverflow),b=Lh(f,b,x,a)),q(q({},v),{},se({},x,q(q({axisType:a},i.defaultProps),{},{hide:!0,orientation:ct(GV,"".concat(a,".").concat(p%2),null),domain:b,originalDomain:O,isCategorical:m,layout:l})))}return v},{})},eK=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,l=t.children,f="".concat(i,"Id"),d=Qe(l,a),h={};return d&&d.length?h=JV(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=QV(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),h},tK=function(t){var r=wr(t),n=rr(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Pv(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:os(r,n)}},eS=function(t){var r=t.children,n=t.defaultShowTooltip,i=at(r,Zn),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},rK=function(t){return!t||!t.length?!1:t.some(function(r){var n=nr(r&&r.type);return n&&n.indexOf("Bar")>=0})},tS=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},nK=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,c=s===void 0?{}:s,u=n.width,l=n.height,f=n.children,d=n.margin||{},h=at(f,Zn),m=at(f,yt),p=Object.keys(c).reduce(function(b,w){var A=c[w],P=A.orientation;return!A.mirror&&!A.hide?q(q({},b),{},se({},P,b[P]+A.width)):b},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(b,w){var A=o[w],P=A.orientation;return!A.mirror&&!A.hide?q(q({},b),{},se({},P,ct(b,"".concat(P))+A.height)):b},{top:d.top||0,bottom:d.bottom||0}),y=q(q({},v),p),g=y.bottom;h&&(y.bottom+=h.props.height||Zn.defaultProps.height),m&&r&&(y=O2(y,i,n,r));var x=u-y.left-y.right,O=l-y.top-y.bottom;return q(q({brushBottom:g},y),{},{width:Math.max(x,0),height:Math.max(O,0)})},iK=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Ti=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,f=t.defaultProps,d=function(y,g){var x=g.graphicalItems,O=g.stackGroups,b=g.offset,w=g.updateId,A=g.dataStartIndex,P=g.dataEndIndex,T=y.barSize,I=y.layout,C=y.barGap,j=y.barCategoryGap,k=y.maxBarSize,$=tS(I),N=$.numericAxisName,R=$.cateAxisName,L=rK(x),M=[];return x.forEach(function(U,D){var F=jc(y.data,{graphicalItems:[U],dataStartIndex:A,dataEndIndex:P}),W=U.type.defaultProps!==void 0?q(q({},U.type.defaultProps),U.props):U.props,V=W.dataKey,Y=W.maxBarSize,re=W["".concat(N,"Id")],ne=W["".concat(R,"Id")],H={},Z=c.reduce(function(Fr,Yt){var Uc,Hc,Vc=g["".concat(Yt.axisType,"Map")],qm=W["".concat(Yt.axisType,"Id")];Vc&&Vc[qm]||Yt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?tt(!1,"Specifying a(n) ".concat(Yt.axisType,"Id requires a corresponding ").concat(Yt.axisType,"Id on the targeted graphical component ").concat((Uc=U==null||(Hc=U.type)===null||Hc===void 0?void 0:Hc.displayName)!==null&&Uc!==void 0?Uc:"")):tt());var Fm=Vc[qm];return q(q({},Fr),{},se(se({},Yt.axisType,Fm),"".concat(Yt.axisType,"Ticks"),rr(Fm)))},H),z=Z[R],K=Z["".concat(R,"Ticks")],X=O&&O[re]&&O[re].hasStack&&R2(U,O[re].stackGroups),B=nr(U.type).indexOf("Bar")>=0,fe=os(z,K),de=[],je=L&&x2({barSize:T,stackGroups:O,totalSize:iK(Z,R)});if(B){var Ie,Fe,mr=oe(Y)?k:Y,mn=(Ie=(Fe=os(z,K,!0))!==null&&Fe!==void 0?Fe:mr)!==null&&Ie!==void 0?Ie:0;de=w2({barGap:C,barCategoryGap:j,bandSize:mn!==fe?mn:fe,sizeList:je[ne],maxBarSize:mr}),mn!==fe&&(de=de.map(function(Fr){return q(q({},Fr),{},{position:q(q({},Fr.position),{},{offset:Fr.position.offset-mn/2})})}))}var to=U&&U.type&&U.type.getComposedData;to&&M.push({props:q(q({},to(q(q({},Z),{},{displayedData:F,props:y,dataKey:V,item:U,bandSize:fe,barPosition:de,offset:b,stackedData:X,layout:I,dataStartIndex:A,dataEndIndex:P}))),{},se(se(se({key:U.key||"item-".concat(D)},N,Z[N]),R,Z[R]),"animationId",w)),childIndex:AI(U,y.children),item:U})}),M},h=function(y,g){var x=y.props,O=y.dataStartIndex,b=y.dataEndIndex,w=y.updateId;if(!ng({props:x}))return null;var A=x.children,P=x.layout,T=x.stackOffset,I=x.data,C=x.reverseStackOrder,j=tS(P),k=j.numericAxisName,$=j.cateAxisName,N=Qe(A,n),R=I2(I,N,"".concat(k,"Id"),"".concat($,"Id"),T,C),L=c.reduce(function(W,V){var Y="".concat(V.axisType,"Map");return q(q({},W),{},se({},Y,eK(x,q(q({},V),{},{graphicalItems:N,stackGroups:V.axisType===k&&R,dataStartIndex:O,dataEndIndex:b}))))},{}),M=nK(q(q({},L),{},{props:x,graphicalItems:N}),g?.legendBBox);Object.keys(L).forEach(function(W){L[W]=l(x,L[W],M,W.replace("Map",""),r)});var U=L["".concat($,"Map")],D=tK(U),F=d(x,q(q({},L),{},{dataStartIndex:O,dataEndIndex:b,updateId:w,graphicalItems:N,stackGroups:R,offset:M}));return q(q({formattedGraphicalItems:F,graphicalItems:N,offset:M,stackGroups:R},D),L)},m=(function(v){function y(g){var x,O,b;return DV(this,y),b=qV(this,y,[g]),se(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),se(b,"accessibilityManager",new SV),se(b,"handleLegendBBoxUpdate",function(w){if(w){var A=b.state,P=A.dataStartIndex,T=A.dataEndIndex,I=A.updateId;b.setState(q({legendBBox:w},h({props:b.props,dataStartIndex:P,dataEndIndex:T,updateId:I},q(q({},b.state),{},{legendBBox:w}))))}}),se(b,"handleReceiveSyncEvent",function(w,A,P){if(b.props.syncId===w){if(P===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(A)}}),se(b,"handleBrushChange",function(w){var A=w.startIndex,P=w.endIndex;if(A!==b.state.dataStartIndex||P!==b.state.dataEndIndex){var T=b.state.updateId;b.setState(function(){return q({dataStartIndex:A,dataEndIndex:P},h({props:b.props,dataStartIndex:A,dataEndIndex:P,updateId:T},b.state))}),b.triggerSyncEvent({dataStartIndex:A,dataEndIndex:P})}}),se(b,"handleMouseEnter",function(w){var A=b.getMouseInfo(w);if(A){var P=q(q({},A),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var T=b.props.onMouseEnter;ae(T)&&T(P,w)}}),se(b,"triggeredAfterMouseMove",function(w){var A=b.getMouseInfo(w),P=A?q(q({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(P),b.triggerSyncEvent(P);var T=b.props.onMouseMove;ae(T)&&T(P,w)}),se(b,"handleItemMouseEnter",function(w){b.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),se(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),se(b,"handleMouseMove",function(w){w.persist(),b.throttleTriggeredAfterMouseMove(w)}),se(b,"handleMouseLeave",function(w){b.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};b.setState(A),b.triggerSyncEvent(A);var P=b.props.onMouseLeave;ae(P)&&P(A,w)}),se(b,"handleOuterEvent",function(w){var A=SI(w),P=ct(b.props,"".concat(A));if(A&&ae(P)){var T,I;/.*touch.*/i.test(A)?I=b.getMouseInfo(w.changedTouches[0]):I=b.getMouseInfo(w),P((T=I)!==null&&T!==void 0?T:{},w)}}),se(b,"handleClick",function(w){var A=b.getMouseInfo(w);if(A){var P=q(q({},A),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var T=b.props.onClick;ae(T)&&T(P,w)}}),se(b,"handleMouseDown",function(w){var A=b.props.onMouseDown;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"handleMouseUp",function(w){var A=b.props.onMouseUp;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),se(b,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseDown(w.changedTouches[0])}),se(b,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseUp(w.changedTouches[0])}),se(b,"handleDoubleClick",function(w){var A=b.props.onDoubleClick;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"handleContextMenu",function(w){var A=b.props.onContextMenu;if(ae(A)){var P=b.getMouseInfo(w);A(P,w)}}),se(b,"triggerSyncEvent",function(w){b.props.syncId!==void 0&&tp.emit(rp,b.props.syncId,w,b.eventEmitterSymbol)}),se(b,"applySyncEvent",function(w){var A=b.props,P=A.layout,T=A.syncMethod,I=b.state.updateId,C=w.dataStartIndex,j=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)b.setState(q({dataStartIndex:C,dataEndIndex:j},h({props:b.props,dataStartIndex:C,dataEndIndex:j,updateId:I},b.state)));else if(w.activeTooltipIndex!==void 0){var k=w.chartX,$=w.chartY,N=w.activeTooltipIndex,R=b.state,L=R.offset,M=R.tooltipTicks;if(!L)return;if(typeof T=="function")N=T(M,w);else if(T==="value"){N=-1;for(var U=0;U<M.length;U++)if(M[U].value===w.activeLabel){N=U;break}}var D=q(q({},L),{},{x:L.left,y:L.top}),F=Math.min(k,D.x+D.width),W=Math.min($,D.y+D.height),V=M[N]&&M[N].value,Y=Fh(b.state,b.props.data,N),re=M[N]?{x:P==="horizontal"?M[N].coordinate:F,y:P==="horizontal"?W:M[N].coordinate}:H1;b.setState(q(q({},w),{},{activeLabel:V,activeCoordinate:re,activePayload:Y,activeTooltipIndex:N}))}else b.setState(w)}),se(b,"renderCursor",function(w){var A,P=b.state,T=P.isTooltipActive,I=P.activeCoordinate,C=P.activePayload,j=P.offset,k=P.activeTooltipIndex,$=P.tooltipAxisBandSize,N=b.getTooltipEventType(),R=(A=w.props.active)!==null&&A!==void 0?A:T,L=b.props.layout,M=w.key||"_recharts-cursor";return S.createElement(jV,{key:M,activeCoordinate:I,activePayload:C,activeTooltipIndex:k,chartName:r,element:w,isActive:R,layout:L,offset:j,tooltipAxisBandSize:$,tooltipEventType:N})}),se(b,"renderPolarAxis",function(w,A,P){var T=ct(w,"type.axisType"),I=ct(b.state,"".concat(T,"Map")),C=w.type.defaultProps,j=C!==void 0?q(q({},C),w.props):w.props,k=I&&I[j["".concat(T,"Id")]];return S.cloneElement(w,q(q({},k),{},{className:ce(T,k.className),key:w.key||"".concat(A,"-").concat(P),ticks:rr(k,!0)}))}),se(b,"renderPolarGrid",function(w){var A=w.props,P=A.radialLines,T=A.polarAngles,I=A.polarRadius,C=b.state,j=C.radiusAxisMap,k=C.angleAxisMap,$=wr(j),N=wr(k),R=N.cx,L=N.cy,M=N.innerRadius,U=N.outerRadius;return S.cloneElement(w,{polarAngles:Array.isArray(T)?T:rr(N,!0).map(function(D){return D.coordinate}),polarRadius:Array.isArray(I)?I:rr($,!0).map(function(D){return D.coordinate}),cx:R,cy:L,innerRadius:M,outerRadius:U,key:w.key||"polar-grid",radialLines:P})}),se(b,"renderLegend",function(){var w=b.state.formattedGraphicalItems,A=b.props,P=A.children,T=A.width,I=A.height,C=b.props.margin||{},j=T-(C.left||0)-(C.right||0),k=dP({children:P,formattedGraphicalItems:w,legendWidth:j,legendContent:u});if(!k)return null;var $=k.item,N=ZO(k,IV);return S.cloneElement($,q(q({},N),{},{chartWidth:T,chartHeight:I,margin:C,onBBoxUpdate:b.handleLegendBBoxUpdate}))}),se(b,"renderTooltip",function(){var w,A=b.props,P=A.children,T=A.accessibilityLayer,I=at(P,Ke);if(!I)return null;var C=b.state,j=C.isTooltipActive,k=C.activeCoordinate,$=C.activePayload,N=C.activeLabel,R=C.offset,L=(w=I.props.active)!==null&&w!==void 0?w:j;return S.cloneElement(I,{viewBox:q(q({},R),{},{x:R.left,y:R.top}),active:L,label:N,payload:L?$:[],coordinate:k,accessibilityLayer:T})}),se(b,"renderBrush",function(w){var A=b.props,P=A.margin,T=A.data,I=b.state,C=I.offset,j=I.dataStartIndex,k=I.dataEndIndex,$=I.updateId;return S.cloneElement(w,{key:w.key||"_recharts-brush",onChange:ho(b.handleBrushChange,w.props.onChange),data:T,x:G(w.props.x)?w.props.x:C.left,y:G(w.props.y)?w.props.y:C.top+C.height+C.brushBottom-(P.bottom||0),width:G(w.props.width)?w.props.width:C.width,startIndex:j,endIndex:k,updateId:"brush-".concat($)})}),se(b,"renderReferenceElement",function(w,A,P){if(!w)return null;var T=b,I=T.clipPathId,C=b.state,j=C.xAxisMap,k=C.yAxisMap,$=C.offset,N=w.type.defaultProps||{},R=w.props,L=R.xAxisId,M=L===void 0?N.xAxisId:L,U=R.yAxisId,D=U===void 0?N.yAxisId:U;return S.cloneElement(w,{key:w.key||"".concat(A,"-").concat(P),xAxis:j[M],yAxis:k[D],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:I})}),se(b,"renderActivePoints",function(w){var A=w.item,P=w.activePoint,T=w.basePoint,I=w.childIndex,C=w.isRange,j=[],k=A.props.key,$=A.item.type.defaultProps!==void 0?q(q({},A.item.type.defaultProps),A.item.props):A.item.props,N=$.activeDot,R=$.dataKey,L=q(q({index:I,dataKey:R,cx:P.x,cy:P.y,r:4,fill:Jv(A.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},J(N,!1)),No(N));return j.push(y.renderActiveDot(N,L,"".concat(k,"-activePoint-").concat(I))),T?j.push(y.renderActiveDot(N,q(q({},L),{},{cx:T.x,cy:T.y}),"".concat(k,"-basePoint-").concat(I))):C&&j.push(null),j}),se(b,"renderGraphicChild",function(w,A,P){var T=b.filterFormatItem(w,A,P);if(!T)return null;var I=b.getTooltipEventType(),C=b.state,j=C.isTooltipActive,k=C.tooltipAxis,$=C.activeTooltipIndex,N=C.activeLabel,R=b.props.children,L=at(R,Ke),M=T.props,U=M.points,D=M.isRange,F=M.baseLine,W=T.item.type.defaultProps!==void 0?q(q({},T.item.type.defaultProps),T.item.props):T.item.props,V=W.activeDot,Y=W.hide,re=W.activeBar,ne=W.activeShape,H=!!(!Y&&j&&L&&(V||re||ne)),Z={};I!=="axis"&&L&&L.props.trigger==="click"?Z={onClick:ho(b.handleItemMouseEnter,w.props.onClick)}:I!=="axis"&&(Z={onMouseLeave:ho(b.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:ho(b.handleItemMouseEnter,w.props.onMouseEnter)});var z=S.cloneElement(w,q(q({},T.props),Z));function K(Yt){return typeof k.dataKey=="function"?k.dataKey(Yt.payload):null}if(H)if($>=0){var X,B;if(k.dataKey&&!k.allowDuplicatedCategory){var fe=typeof k.dataKey=="function"?K:"payload.".concat(k.dataKey.toString());X=$o(U,fe,N),B=D&&F&&$o(F,fe,N)}else X=U?.[$],B=D&&F&&F[$];if(ne||re){var de=w.props.activeIndex!==void 0?w.props.activeIndex:$;return[S.cloneElement(w,q(q(q({},T.props),Z),{},{activeIndex:de})),null,null]}if(!oe(X))return[z].concat(fi(b.renderActivePoints({item:T,activePoint:X,basePoint:B,childIndex:$,isRange:D})))}else{var je,Ie=(je=b.getItemByXY(b.state.activeCoordinate))!==null&&je!==void 0?je:{graphicalItem:z},Fe=Ie.graphicalItem,mr=Fe.item,mn=mr===void 0?w:mr,to=Fe.childIndex,Fr=q(q(q({},T.props),Z),{},{activeIndex:to});return[S.cloneElement(mn,Fr),null,null]}return D?[z,null,null]:[z,null]}),se(b,"renderCustomized",function(w,A,P){return S.cloneElement(w,q(q({key:"recharts-customized-".concat(P)},b.props),b.state))}),se(b,"renderMap",{CartesianGrid:{handler:xo,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:xo},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:xo},YAxis:{handler:xo},Brush:{handler:b.renderBrush,once:!0},Bar:{handler:b.renderGraphicChild},Line:{handler:b.renderGraphicChild},Area:{handler:b.renderGraphicChild},Radar:{handler:b.renderGraphicChild},RadialBar:{handler:b.renderGraphicChild},Scatter:{handler:b.renderGraphicChild},Pie:{handler:b.renderGraphicChild},Funnel:{handler:b.renderGraphicChild},Tooltip:{handler:b.renderCursor,once:!0},PolarGrid:{handler:b.renderPolarGrid,once:!0},PolarAngleAxis:{handler:b.renderPolarAxis},PolarRadiusAxis:{handler:b.renderPolarAxis},Customized:{handler:b.renderCustomized}}),b.clipPathId="".concat((x=g.id)!==null&&x!==void 0?x:kr("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=f_(b.triggeredAfterMouseMove,(O=g.throttleDelay)!==null&&O!==void 0?O:1e3/60),b.state={},b}return WV(y,v),BV(y,[{key:"componentDidMount",value:function(){var x,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,O=x.children,b=x.data,w=x.height,A=x.layout,P=at(O,Ke);if(P){var T=P.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var I=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,C=Fh(this.state,b,T,I),j=this.state.tooltipTicks[T].coordinate,k=(this.state.offset.top+w)/2,$=A==="horizontal",N=$?{x:j,y:k}:{y:j,x:k},R=this.state.formattedGraphicalItems.find(function(M){var U=M.item;return U.type.name==="Scatter"});R&&(N=q(q({},N),R.props.points[T].tooltipPosition),C=R.props.points[T].tooltipPayload);var L={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:I,activePayload:C,activeCoordinate:N};this.setState(L),this.renderCursor(P),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var b,w;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(x){bp([at(x.children,Ke)],[at(this.props.children,Ke)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=at(this.props.children,Ke);if(x&&typeof x.props.shared=="boolean"){var O=x.props.shared?"axis":"item";return s.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var O=this.container,b=O.getBoundingClientRect(),w=f$(b),A={chartX:Math.round(x.pageX-w.left),chartY:Math.round(x.pageY-w.top)},P=b.width/O.offsetWidth||1,T=this.inRange(A.chartX,A.chartY,P);if(!T)return null;var I=this.state,C=I.xAxisMap,j=I.yAxisMap,k=this.getTooltipEventType(),$=QO(this.state,this.props.data,this.props.layout,T);if(k!=="axis"&&C&&j){var N=wr(C).scale,R=wr(j).scale,L=N&&N.invert?N.invert(A.chartX):null,M=R&&R.invert?R.invert(A.chartY):null;return q(q({},A),{},{xValue:L,yValue:M},$)}return $?q(q({},A),$):null}},{key:"inRange",value:function(x,O){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,A=x/b,P=O/b;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,I=A>=T.left&&A<=T.left+T.width&&P>=T.top&&P<=T.top+T.height;return I?{x:A,y:P}:null}var C=this.state,j=C.angleAxisMap,k=C.radiusAxisMap;if(j&&k){var $=wr(j);return H0({x:A,y:P},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,O=this.getTooltipEventType(),b=at(x,Ke),w={};b&&O==="axis"&&(b.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=No(this.props,this.handleOuterEvent);return q(q({},A),w)}},{key:"addListener",value:function(){tp.on(rp,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tp.removeListener(rp,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,O,b){for(var w=this.state.formattedGraphicalItems,A=0,P=w.length;A<P;A++){var T=w[A];if(T.item===x||T.props.key===x.key||O===nr(T.item.type)&&b===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,O=this.state.offset,b=O.left,w=O.top,A=O.height,P=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:x},S.createElement("rect",{x:b,y:w,height:A,width:P})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(O,b){var w=XO(b,2),A=w[0],P=w[1];return q(q({},O),{},se({},A,P.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(O,b){var w=XO(b,2),A=w[0],P=w[1];return q(q({},O),{},se({},A,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(x){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(x){var O=this.state,b=O.formattedGraphicalItems,w=O.activeItem;if(b&&b.length)for(var A=0,P=b.length;A<P;A++){var T=b[A],I=T.props,C=T.item,j=C.type.defaultProps!==void 0?q(q({},C.type.defaultProps),C.props):C.props,k=nr(C.type);if(k==="Bar"){var $=(I.data||[]).find(function(M){return RF(x,M)});if($)return{graphicalItem:T,payload:$}}else if(k==="RadialBar"){var N=(I.data||[]).find(function(M){return H0(x,M)});if(N)return{graphicalItem:T,payload:N}}else if(Oc(T,w)||Sc(T,w)||ka(T,w)){var R=dW({graphicalItem:T,activeTooltipItem:w,itemData:j.data}),L=j.activeIndex===void 0?R:j.activeIndex;return{graphicalItem:q(q({},T),{},{childIndex:L}),payload:ka(T,w)?j.data[R]:T.props.data[R]}}}return null}},{key:"render",value:function(){var x=this;if(!ng(this))return null;var O=this.props,b=O.children,w=O.className,A=O.width,P=O.height,T=O.style,I=O.compact,C=O.title,j=O.desc,k=ZO(O,kV),$=J(k,!1);if(I)return S.createElement(EO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(wp,Cn({},$,{width:A,height:P,title:C,desc:j}),this.renderClipPath(),ag(b,this.renderMap)));if(this.props.accessibilityLayer){var N,R;$.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(M){x.accessibilityManager.keyboardEvent(M)},$.onFocus=function(){x.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return S.createElement(EO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Cn({className:ce("recharts-wrapper",w),style:q({position:"relative",cursor:"default",width:A,height:P},T)},L,{ref:function(U){x.container=U}}),S.createElement(wp,Cn({},$,{width:A,height:P,title:C,desc:j,style:YV}),this.renderClipPath(),ag(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(S.Component);se(m,"displayName",r),se(m,"defaultProps",q({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),se(m,"getDerivedStateFromProps",function(v,y){var g=v.dataKey,x=v.data,O=v.children,b=v.width,w=v.height,A=v.layout,P=v.stackOffset,T=v.margin,I=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var j=eS(v);return q(q(q({},j),{},{updateId:0},h(q(q({props:v},j),{},{updateId:0}),y)),{},{prevDataKey:g,prevData:x,prevWidth:b,prevHeight:w,prevLayout:A,prevStackOffset:P,prevMargin:T,prevChildren:O})}if(g!==y.prevDataKey||x!==y.prevData||b!==y.prevWidth||w!==y.prevHeight||A!==y.prevLayout||P!==y.prevStackOffset||!jn(T,y.prevMargin)){var k=eS(v),$={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},N=q(q({},QO(y,x,A)),{},{updateId:y.updateId+1}),R=q(q(q({},k),$),N);return q(q(q({},R),h(q({props:v},R),y)),{},{prevDataKey:g,prevData:x,prevWidth:b,prevHeight:w,prevLayout:A,prevStackOffset:P,prevMargin:T,prevChildren:O})}if(!bp(O,y.prevChildren)){var L,M,U,D,F=at(O,Zn),W=F&&(L=(M=F.props)===null||M===void 0?void 0:M.startIndex)!==null&&L!==void 0?L:I,V=F&&(U=(D=F.props)===null||D===void 0?void 0:D.endIndex)!==null&&U!==void 0?U:C,Y=W!==I||V!==C,re=!oe(x),ne=re&&!Y?y.updateId:y.updateId+1;return q(q({updateId:ne},h(q(q({props:v},y),{},{updateId:ne,dataStartIndex:W,dataEndIndex:V}),y)),{},{prevChildren:O,dataStartIndex:W,dataEndIndex:V})}return null}),se(m,"renderActiveDot",function(v,y,g){var x;return S.isValidElement(v)?x=S.cloneElement(v,y):ae(v)?x=v(y):x=S.createElement(Ai,y),S.createElement(ue,{className:"recharts-active-dot",key:g},x)});var p=S.forwardRef(function(y,g){return S.createElement(m,Cn({},y,{ref:g}))});return p.displayName=m.displayName,p},aK=Ti({chartName:"LineChart",GraphicalChild:Ya,axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt}],formatAxisMap:_c}),oK=Ti({chartName:"BarChart",GraphicalChild:vn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt}],formatAxisMap:_c}),K1=Ti({chartName:"PieChart",GraphicalChild:Kt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Pi},{axisType:"radiusAxis",AxisComp:_i}],formatAxisMap:AP,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),sK=Ti({chartName:"RadarChart",GraphicalChild:Ka,axisComponents:[{axisType:"angleAxis",AxisComp:Pi},{axisType:"radiusAxis",AxisComp:_i}],formatAxisMap:AP,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),cK=Ti({chartName:"ScatterChart",GraphicalChild:Za,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt},{axisType:"zAxis",AxisComp:Xa}],formatAxisMap:_c}),uK=Ti({chartName:"AreaChart",GraphicalChild:Dr,axisComponents:[{axisType:"xAxis",AxisComp:Et},{axisType:"yAxis",AxisComp:Tt}],formatAxisMap:_c});const lK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.value;return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:typeof r=="number"?r.toLocaleString():r})},rS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],fK=({title:e,data:t,layout:r="vertical",showGrid:n=!0,showLegend:i=!1,className:a})=>{const o=r==="horizontal",s=o?Math.max(80,Math.min(200,Math.max(...t.map(c=>c.label.length))*7+16)):void 0;return _.jsxs("div",{className:ie("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(oK,{data:t,layout:o?"vertical":"horizontal",margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),o?_.jsxs(_.Fragment,{children:[_.jsx(Et,{type:"number",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{dataKey:"label",type:"category",width:s,tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}):_.jsxs(_.Fragment,{children:[_.jsx(Et,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}})]}),_.jsx(Ke,{content:_.jsx(lK,{})}),i&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})}),_.jsx(vn,{dataKey:"value",radius:[4,4,0,0],isAnimationActive:!1,children:t.map((c,u)=>_.jsx(Rr,{fill:c.color||rS[u%rS.length]},`cell-${u}`))})]})})})]})},dK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),nS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],pK=({title:e,data:t,series:r,showGrid:n=!0,showLegend:i=!0,showDots:a=!0,curved:o=!0,className:s})=>{const c=S.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(l=>l!=="label"),[t,r]);return _.jsxs("div",{className:ie("flex flex-col gap-2",s),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(aK,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[n&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Et,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ke,{content:_.jsx(dK,{})}),i&&c.length>1&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:u=>_.jsx("span",{style:{color:"var(--foreground)"},children:u})}),c.map((u,l)=>_.jsx(Ya,{type:o?"monotone":"linear",dataKey:u,stroke:nS[l%nS.length],strokeWidth:2,dot:a,activeDot:{r:6},isAnimationActive:!1},u))]})})})]})},hK=({active:e,payload:t})=>!e||!t||t.length===0?null:_.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:t.map((r,n)=>_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:r.color}}),_.jsxs("span",{children:[r.name,":"]}),_.jsx("span",{className:"font-medium",children:typeof r.value=="number"?r.value.toLocaleString():r.value})]},n))}),wo=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],vK=({title:e,data:t,series:r,stacked:n=!1,showGrid:i=!0,showLegend:a=!0,className:o})=>{const s=S.useMemo(()=>r&&r.length>0?r:t.length===0?[]:Object.keys(t[0]).filter(u=>u!=="label"),[t,r]);return _.jsxs("div",{className:ie("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(uK,{data:t,margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Et,{dataKey:"label",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Tt,{tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"}}),_.jsx(Ke,{content:_.jsx(hK,{})}),a&&s.length>1&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})}),s.map((c,u)=>_.jsx(Dr,{type:"monotone",dataKey:c,stackId:n?"stack":void 0,stroke:wo[u%wo.length],fill:wo[u%wo.length],fillOpacity:.3,isAnimationActive:!1},c))]})})})]})},mK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},iS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],yK=({title:e,data:t,showLabels:r=!0,showLegend:n=!0,className:i})=>{const a=t.map(o=>({name:o.label,value:o.value,color:o.color}));return _.jsxs("div",{className:ie("flex flex-col gap-2",i),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[320px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(K1,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Kt,{data:a,cx:"50%",cy:"45%",innerRadius:0,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:o,percent:s,cx:c,cy:u,midAngle:l,outerRadius:f})=>{const d=Math.PI/180,h=(f??80)+25,m=(c??0)+h*Math.cos(-((l??0)*d)),p=(u??0)+h*Math.sin(-((l??0)*d));return _.jsx("text",{x:m,y:p,fill:"var(--foreground)",textAnchor:m>(c??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${o??""} (${((s??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:a.map((o,s)=>_.jsx(Rr,{fill:o.color||iS[s%iS.length]},`cell-${s}`))}),_.jsx(Ke,{content:_.jsx(mK,{})}),n&&_.jsx(yt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:o=>_.jsx("span",{style:{color:"var(--foreground)"},children:o})})]})})})]})},gK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},aS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],bK=({title:e,data:t,showLabels:r=!1,showLegend:n=!0,innerLabel:i,innerValue:a,className:o})=>{const s=t.map(c=>({name:c.label,value:c.value,color:c.color}));return _.jsxs("div",{className:ie("flex flex-col gap-2",o),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsxs("div",{className:"relative h-[320px] w-full",children:[_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(K1,{margin:{top:20,right:20,bottom:20,left:20},children:[_.jsx(Kt,{data:s,cx:"50%",cy:"45%",innerRadius:50,outerRadius:80,paddingAngle:2,dataKey:"value",label:r?({name:c,percent:u,cx:l,cy:f,midAngle:d,outerRadius:h})=>{const m=Math.PI/180,p=(h??80)+25,v=(l??0)+p*Math.cos(-((d??0)*m)),y=(f??0)+p*Math.sin(-((d??0)*m));return _.jsx("text",{x:v,y,fill:"var(--foreground)",textAnchor:v>(l??0)?"start":"end",dominantBaseline:"central",fontSize:12,children:`${c??""} (${((u??0)*100).toFixed(0)}%)`})}:void 0,labelLine:r,isAnimationActive:!1,children:s.map((c,u)=>_.jsx(Rr,{fill:c.color||aS[u%aS.length]},`cell-${u}`))}),_.jsx(Ke,{content:_.jsx(gK,{})}),n&&_.jsx(yt,{verticalAlign:"bottom",wrapperStyle:{color:"var(--foreground)",paddingTop:20},formatter:c=>_.jsx("span",{style:{color:"var(--foreground)"},children:c})})]})}),(i!==void 0||a!==void 0)&&_.jsxs("div",{className:"pointer-events-none absolute inset-x-0 top-[45%] flex -translate-y-1/2 flex-col items-center",children:[a!==void 0&&_.jsx("span",{className:"text-2xl font-bold text-foreground",children:a}),i&&_.jsx("span",{className:"text-xs text-muted-foreground",children:i})]})]})]})},xK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0]?.payload;return _.jsxs("div",{className:"rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm",children:[r?.label&&_.jsx("div",{className:"font-medium",children:r.label}),_.jsxs("div",{children:["x: ",r?.x?.toLocaleString()]}),_.jsxs("div",{children:["y: ",r?.y?.toLocaleString()]})]})},oS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],wK=({title:e,data:t,xLabel:r,yLabel:n,showGrid:i=!0,className:a})=>{const o=t.some(s=>s.size!==void 0);return _.jsxs("div",{className:ie("flex flex-col gap-2",a),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(cK,{margin:{top:10,right:10,left:10,bottom:10},children:[i&&_.jsx(Ga,{strokeDasharray:"3 3",className:"stroke-muted/30"}),_.jsx(Et,{type:"number",dataKey:"x",name:r||"x",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:r?{value:r,position:"bottom",offset:-5,fill:"var(--foreground)"}:void 0}),_.jsx(Tt,{type:"number",dataKey:"y",name:n||"y",tick:{fill:"var(--foreground)",fontSize:12},axisLine:{stroke:"var(--border)"},tickLine:{stroke:"var(--border)"},label:n?{value:n,angle:-90,position:"left",fill:"var(--foreground)"}:void 0}),o&&_.jsx(Xa,{type:"number",dataKey:"size",range:[50,400]}),_.jsx(Ke,{content:_.jsx(xK,{})}),_.jsx(Za,{data:t,fill:oS[0],isAnimationActive:!1,children:t.map((s,c)=>_.jsx(Rr,{fill:s.color||oS[0]},`cell-${c}`))})]})})})]})},OK=({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;const r=t[0];return _.jsx("div",{className:"rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm",children:_.jsx("span",{className:"font-medium",children:typeof r?.value=="number"?r.value.toLocaleString():r?.value})})},sS=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],SK=({title:e,data:t,showLegend:r=!1,className:n})=>{const i=t.map(a=>({subject:a.label,value:a.value}));return _.jsxs("div",{className:ie("flex flex-col gap-2",n),children:[e&&_.jsx("h3",{className:"text-sm font-medium text-foreground",children:e}),_.jsx("div",{className:"h-[250px] w-full",children:_.jsx(fn,{width:"100%",height:"100%",children:_.jsxs(sK,{data:i,cx:"50%",cy:"50%",outerRadius:"80%",children:[_.jsx(BP,{stroke:"var(--border)"}),_.jsx(Pi,{dataKey:"subject",tick:{fill:"var(--foreground)",fontSize:12}}),_.jsx(_i,{tick:{fill:"var(--foreground)",fontSize:10},axisLine:{stroke:"var(--border)"}}),_.jsx(Ke,{content:_.jsx(OK,{})}),r&&_.jsx(yt,{wrapperStyle:{color:"var(--foreground)"},formatter:a=>_.jsx("span",{style:{color:"var(--foreground)"},children:a})}),_.jsx(Ka,{name:"Value",dataKey:"value",stroke:sS[0],fill:sS[0],fillOpacity:.3,isAnimationActive:!1})]})})})]})},cS=["Rendering chart...","Visualizing data...","Building chart...","Processing data..."];function AK(){return cS[Math.floor(Math.random()*cS.length)]}const _K={BarChart:fK,LineChart:pK,AreaChart:vK,PieChart:yK,DonutChart:bK,ScatterChart:wK,RadarChart:SK};function PK(e){const t=_K[e.type];return t?_.jsx(t,{...e.props??{}}):_.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[_.jsx(av,{className:"size-4"}),_.jsxs("span",{children:["Unknown chart type: ",e.type]})]})}const EK=({code:e})=>{const t=nv(),r=S.useMemo(()=>{const i=e.trim();if(!i)return null;try{const a=JSON.parse(i);return sA(a)?a:null}catch{return null}},[e]),n=S.useMemo(()=>AK(),[]);return r?_.jsx(Mo,{children:_.jsx("div",{className:ie("w-full bg-card",t("p-lg")),children:PK(r)})}):_.jsx(Oj,{text:n})},G1={id:"chart",language:"chart",prompt:`WHEN TO USE CHARTS:
67
67
  Create charts to visualize numerical data when it helps users understand patterns, trends, or comparisons. Use the 'chart' code block format.
68
68
 
69
69
  CRITICAL JSON REQUIREMENTS:
@@ -212,8 +212,8 @@ CHART SELECTION GUIDE:
212
212
  CONTENT GUIDELINES:
213
213
  - Outside the code block, describe trends and insights found in the data
214
214
  - Do not describe visual properties or technical implementation details
215
- - Focus on what the data means, not how it's displayed`,Component:_K,Header:void 0};function cS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function um(...e){return t=>{let r=!1;const n=e.map(i=>{const a=cS(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():cS(e[i],null)}}}}function Ce(...e){return E.useCallback(um(...e),e)}function di(e){const t=PK(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),c=s.find(TK);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var G1=di("Slot");function PK(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=jK(i),s=CK(a,i.props);return i.type!==E.Fragment&&(s.ref=n?um(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Y1=Symbol("radix.slottable");function EK(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Y1,t}function TK(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Y1}function CK(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function jK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var IK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=IK.reduce((e,t)=>{const r=di(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function kK(e,t){e&&Ys.flushSync(()=>e.dispatchEvent(t))}var X1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),RK="VisuallyHidden",Z1=E.forwardRef((e,t)=>_.jsx(le.span,{...e,ref:t,style:{...X1,...e.style}}));Z1.displayName=RK;var MK=Z1;function $K(e,t){const r=E.createContext(t),n=a=>{const{children:o,...s}=a,c=E.useMemo(()=>s,Object.values(s));return _.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function i(a){const o=E.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function kt(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),c=r.length;r=[...r,o];const u=f=>{const{scope:d,children:h,...m}=f,p=d?.[e]?.[c]||s,v=E.useMemo(()=>m,Object.values(m));return _.jsx(p.Provider,{value:v,children:h})};u.displayName=a+"Provider";function l(f,d){const h=d?.[e]?.[c]||s,m=E.useContext(h);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,l]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const c=s?.[e]||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return i.scopeName=e,[n,NK(i,...t)]}function NK(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function lm(e){const t=e+"CollectionProvider",[r,n]=kt(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:y}=p,g=S.useRef(null),x=S.useRef(new Map).current;return _.jsx(i,{scope:v,itemMap:x,collectionRef:g,children:y})};o.displayName=t;const s=e+"CollectionSlot",c=di(s),u=S.forwardRef((p,v)=>{const{scope:y,children:g}=p,x=a(s,y),O=Ce(v,x.collectionRef);return _.jsx(c,{ref:O,children:g})});u.displayName=s;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=di(l),h=S.forwardRef((p,v)=>{const{scope:y,children:g,...x}=p,O=S.useRef(null),b=Ce(v,O),w=a(l,y);return S.useEffect(()=>(w.itemMap.set(O,{ref:O,...x}),()=>void w.itemMap.delete(O))),_.jsx(d,{[f]:"",ref:b,children:g})});h.displayName=l;function m(p){const v=a(e+"CollectionConsumer",p);return S.useCallback(()=>{const g=v.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((w,A)=>x.indexOf(w.ref.current)-x.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},m,n]}function he(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),r===!1||!i.defaultPrevented)return t?.(i)}}var Re=globalThis?.document?E.useLayoutEffect:()=>{},DK=E[" useInsertionEffect ".trim().toString()]||Re;function lr({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=LK({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:i;{const l=E.useRef(e!==void 0);E.useEffect(()=>{const f=l.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const u=E.useCallback(l=>{if(s){const f=BK(l)?l(e):l;f!==e&&o.current?.(f)}else a(l)},[s,e,a,o]);return[c,u]}function LK({defaultProp:e,onChange:t}){const[r,n]=E.useState(e),i=E.useRef(r),a=E.useRef(t);return DK(()=>{a.current=t},[t]),E.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}function BK(e){return typeof e=="function"}function qK(e,t){return E.useReducer((r,n)=>t[r][n]??r,e)}var Ja=e=>{const{present:t,children:r}=e,n=FK(t),i=typeof r=="function"?r({present:n.isPresent}):E.Children.only(r),a=Ce(n.ref,zK(i));return typeof r=="function"||n.isPresent?E.cloneElement(i,{ref:a}):null};Ja.displayName="Presence";function FK(e){const[t,r]=E.useState(),n=E.useRef(null),i=E.useRef(e),a=E.useRef("none"),o=e?"mounted":"unmounted",[s,c]=qK(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=Oo(n.current);a.current=s==="mounted"?u:"none"},[s]),Re(()=>{const u=n.current,l=i.current;if(l!==e){const d=a.current,h=Oo(u);e?c("MOUNT"):h==="none"||u?.display==="none"?c("UNMOUNT"):c(l&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Re(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,f=h=>{const p=Oo(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&p&&(c("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},d=h=>{h.target===t&&(a.current=Oo(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{l.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Oo(e){return e?.animationName||"none"}function zK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var WK=E[" useId ".trim().toString()]||(()=>{}),UK=0;function Lr(e){const[t,r]=E.useState(WK());return Re(()=>{r(n=>n??String(UK++))},[e]),t?`radix-${t}`:""}var Ic="Collapsible",[HK,J1]=kt(Ic),[VK,fm]=HK(Ic),Q1=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,u]=lr({prop:n,defaultProp:i??!1,onChange:o,caller:Ic});return _.jsx(VK,{scope:r,disabled:a,contentId:Lr(),open:c,onOpenToggle:E.useCallback(()=>u(l=>!l),[u]),children:_.jsx(le.div,{"data-state":vm(c),"data-disabled":a?"":void 0,...s,ref:t})})});Q1.displayName=Ic;var eE="CollapsibleTrigger",dm=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=fm(eE,r);return _.jsx(le.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":vm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:he(e.onClick,i.onOpenToggle)})});dm.displayName=eE;var pm="CollapsibleContent",hm=E.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=fm(pm,e.__scopeCollapsible);return _.jsx(Ja,{present:r||i.open,children:({present:a})=>_.jsx(KK,{...n,ref:t,present:a})})});hm.displayName=pm;var KK=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...a}=e,o=fm(pm,r),[s,c]=E.useState(n),u=E.useRef(null),l=Ce(t,u),f=E.useRef(0),d=f.current,h=E.useRef(0),m=h.current,p=o.open||s,v=E.useRef(p),y=E.useRef(void 0);return E.useEffect(()=>{const g=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(g)},[]),Re(()=>{const g=u.current;if(g){y.current=y.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();f.current=x.height,h.current=x.width,v.current||(g.style.transitionDuration=y.current.transitionDuration,g.style.animationName=y.current.animationName),c(n)}},[o.open,n]),_.jsx(le.div,{"data-state":vm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...a,ref:l,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:p&&i})});function vm(e){return e?"open":"closed"}var tE=Q1,GK=dm,YK=hm,XK=E.createContext(void 0);function kc(e){const t=E.useContext(XK);return e||t||"ltr"}var Rt="Accordion",ZK=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[mm,JK,QK]=lm(Rt),[Rc]=kt(Rt,[QK,J1]),ym=J1(),rE=S.forwardRef((e,t)=>{const{type:r,...n}=e,i=n,a=n;return _.jsx(mm.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?_.jsx(n5,{...a,ref:t}):_.jsx(r5,{...i,ref:t})})});rE.displayName=Rt;var[nE,e5]=Rc(Rt),[iE,t5]=Rc(Rt,{collapsible:!1}),r5=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=lr({prop:r,defaultProp:n??"",onChange:i,caller:Rt});return _.jsx(nE,{scope:e.__scopeAccordion,value:S.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:S.useCallback(()=>a&&c(""),[a,c]),children:_.jsx(iE,{scope:e.__scopeAccordion,collapsible:a,children:_.jsx(aE,{...o,ref:t})})})}),n5=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=e,[o,s]=lr({prop:r,defaultProp:n??[],onChange:i,caller:Rt}),c=S.useCallback(l=>s((f=[])=>[...f,l]),[s]),u=S.useCallback(l=>s((f=[])=>f.filter(d=>d!==l)),[s]);return _.jsx(nE,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:_.jsx(iE,{scope:e.__scopeAccordion,collapsible:!0,children:_.jsx(aE,{...a,ref:t})})})}),[i5,Mc]=Rc(Rt),aE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:i,orientation:a="vertical",...o}=e,s=S.useRef(null),c=Ce(s,t),u=JK(r),f=kc(i)==="ltr",d=he(e.onKeyDown,h=>{if(!ZK.includes(h.key))return;const m=h.target,p=u().filter(P=>!P.ref.current?.disabled),v=p.findIndex(P=>P.ref.current===m),y=p.length;if(v===-1)return;h.preventDefault();let g=v;const x=0,O=y-1,b=()=>{g=v+1,g>O&&(g=x)},w=()=>{g=v-1,g<x&&(g=O)};switch(h.key){case"Home":g=x;break;case"End":g=O;break;case"ArrowRight":a==="horizontal"&&(f?b():w());break;case"ArrowDown":a==="vertical"&&b();break;case"ArrowLeft":a==="horizontal"&&(f?w():b());break;case"ArrowUp":a==="vertical"&&w();break}const A=g%y;p[A].ref.current?.focus()});return _.jsx(i5,{scope:r,disabled:n,direction:i,orientation:a,children:_.jsx(mm.Slot,{scope:r,children:_.jsx(le.div,{...o,"data-orientation":a,ref:c,onKeyDown:n?void 0:d})})})}),Fs="AccordionItem",[a5,gm]=Rc(Fs),oE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...i}=e,a=Mc(Fs,r),o=e5(Fs,r),s=ym(r),c=Lr(),u=n&&o.value.includes(n)||!1,l=a.disabled||e.disabled;return _.jsx(a5,{scope:r,open:u,disabled:l,triggerId:c,children:_.jsx(tE,{"data-orientation":a.orientation,"data-state":dE(u),...s,...i,ref:t,disabled:l,open:u,onOpenChange:f=>{f?o.onItemOpen(n):o.onItemClose(n)}})})});oE.displayName=Fs;var sE="AccordionHeader",cE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Mc(Rt,r),a=gm(sE,r);return _.jsx(le.h3,{"data-orientation":i.orientation,"data-state":dE(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});cE.displayName=sE;var Fh="AccordionTrigger",uE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Mc(Rt,r),a=gm(Fh,r),o=t5(Fh,r),s=ym(r);return _.jsx(mm.ItemSlot,{scope:r,children:_.jsx(GK,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...n,ref:t})})});uE.displayName=Fh;var lE="AccordionContent",fE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Mc(Rt,r),a=gm(lE,r),o=ym(r);return _.jsx(YK,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});fE.displayName=lE;function dE(e){return e?"open":"closed"}var o5=rE,s5=oE,c5=cE,u5=uE,l5=fE;function zt(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...r)=>t.current?.(...r),[])}function f5(e,t=globalThis?.document){const r=zt(e);E.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var d5="DismissableLayer",zh="dismissableLayer.update",p5="dismissableLayer.pointerDownOutside",h5="dismissableLayer.focusOutside",uS,pE=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bm=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,u=E.useContext(pE),[l,f]=E.useState(null),d=l?.ownerDocument??globalThis?.document,[,h]=E.useState({}),m=Ce(t,A=>f(A)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),g=l?p.indexOf(l):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,O=g>=y,b=y5(A=>{const P=A.target,T=[...u.branches].some(I=>I.contains(P));!O||T||(i?.(A),o?.(A),A.defaultPrevented||s?.())},d),w=g5(A=>{const P=A.target;[...u.branches].some(I=>I.contains(P))||(a?.(A),o?.(A),A.defaultPrevented||s?.())},d);return f5(A=>{g===u.layers.size-1&&(n?.(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},d),E.useEffect(()=>{if(l)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(uS=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),lS(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=uS)}},[l,d,r,u]),E.useEffect(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),lS())},[l,u]),E.useEffect(()=>{const A=()=>h({});return document.addEventListener(zh,A),()=>document.removeEventListener(zh,A)},[]),_.jsx(le.div,{...c,ref:m,style:{pointerEvents:x?O?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,w.onFocusCapture),onBlurCapture:he(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,b.onPointerDownCapture)})});bm.displayName=d5;var v5="DismissableLayerBranch",m5=E.forwardRef((e,t)=>{const r=E.useContext(pE),n=E.useRef(null),i=Ce(t,n);return E.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),_.jsx(le.div,{...e,ref:i})});m5.displayName=v5;function y5(e,t=globalThis?.document){const r=zt(e),n=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){hE(p5,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function g5(e,t=globalThis?.document){const r=zt(e),n=E.useRef(!1);return E.useEffect(()=>{const i=a=>{a.target&&!n.current&&hE(h5,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function lS(){const e=new CustomEvent(zh);document.dispatchEvent(e)}function hE(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?kK(i,a):i.dispatchEvent(a)}var np="focusScope.autoFocusOnMount",ip="focusScope.autoFocusOnUnmount",fS={bubbles:!1,cancelable:!0},b5="FocusScope",xm=E.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=E.useState(null),u=zt(i),l=zt(a),f=E.useRef(null),d=Ce(t,p=>c(p)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(n){let p=function(x){if(h.paused||!s)return;const O=x.target;s.contains(O)?f.current=O:br(f.current,{select:!0})},v=function(x){if(h.paused||!s)return;const O=x.relatedTarget;O!==null&&(s.contains(O)||br(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const b of x)b.removedNodes.length>0&&br(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const g=new MutationObserver(y);return s&&g.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),g.disconnect()}}},[n,s,h.paused]),E.useEffect(()=>{if(s){pS.add(h);const p=document.activeElement;if(!s.contains(p)){const y=new CustomEvent(np,fS);s.addEventListener(np,u),s.dispatchEvent(y),y.defaultPrevented||(x5(_5(vE(s)),{select:!0}),document.activeElement===p&&br(s))}return()=>{s.removeEventListener(np,u),setTimeout(()=>{const y=new CustomEvent(ip,fS);s.addEventListener(ip,l),s.dispatchEvent(y),y.defaultPrevented||br(p??document.body,{select:!0}),s.removeEventListener(ip,l),pS.remove(h)},0)}}},[s,u,l,h]);const m=E.useCallback(p=>{if(!r&&!n||h.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const g=p.currentTarget,[x,O]=w5(g);x&&O?!p.shiftKey&&y===O?(p.preventDefault(),r&&br(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),r&&br(O,{select:!0})):y===g&&p.preventDefault()}},[r,n,h.paused]);return _.jsx(le.div,{tabIndex:-1,...o,ref:d,onKeyDown:m})});xm.displayName=b5;function x5(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(br(n,{select:t}),document.activeElement!==r)return}function w5(e){const t=vE(e),r=dS(t,e),n=dS(t.reverse(),e);return[r,n]}function vE(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function dS(e,t){for(const r of e)if(!O5(r,{upTo:t}))return r}function O5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function S5(e){return e instanceof HTMLInputElement&&"select"in e}function br(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&S5(e)&&t&&e.select()}}var pS=A5();function A5(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=hS(e,t),e.unshift(t)},remove(t){e=hS(e,t),e[0]?.resume()}}}function hS(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function _5(e){return e.filter(t=>t.tagName!=="A")}var P5="Portal",wm=E.forwardRef((e,t)=>{const{container:r,...n}=e,[i,a]=E.useState(!1);Re(()=>a(!0),[]);const o=r||i&&globalThis?.document?.body;return o?WS.createPortal(_.jsx(le.div,{...n,ref:t}),o):null});wm.displayName=P5;var ap=0;function mE(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vS()),document.body.insertAdjacentElement("beforeend",e[1]??vS()),ap++,()=>{ap===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ap--}},[])}function vS(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Mt=function(){return Mt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Mt.apply(this,arguments)};function yE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function E5(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var jo="right-scroll-bar-position",Io="width-before-scroll-bar",T5="with-scroll-bars-hidden",C5="--removed-body-scroll-bar-size";function op(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function j5(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var I5=typeof window<"u"?E.useLayoutEffect:E.useEffect,mS=new WeakMap;function k5(e,t){var r=j5(null,function(n){return e.forEach(function(i){return op(i,n)})});return I5(function(){var n=mS.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;i.forEach(function(s){a.has(s)||op(s,null)}),a.forEach(function(s){i.has(s)||op(s,o)})}mS.set(r,e)},[e]),r}function R5(e){return e}function M5(e,t){t===void 0&&(t=R5);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var c=function(){var l=o;o=[],l.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(l){o.push(l),u()},filter:function(l){return o=o.filter(l),r}}}};return i}function $5(e){e===void 0&&(e={});var t=M5(null);return t.options=Mt({async:!0,ssr:!1},e),t}var gE=function(e){var t=e.sideCar,r=yE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return E.createElement(n,Mt({},r))};gE.isSideCarExport=!0;function N5(e,t){return e.useMedium(t),gE}var bE=$5(),sp=function(){},$c=E.forwardRef(function(e,t){var r=E.useRef(null),n=E.useState({onScrollCapture:sp,onWheelCapture:sp,onTouchMoveCapture:sp}),i=n[0],a=n[1],o=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,l=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,m=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,x=e.gapMode,O=yE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=d,w=k5([r,t]),A=Mt(Mt({},O),i);return E.createElement(E.Fragment,null,l&&E.createElement(b,{sideCar:bE,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:x}),o?E.cloneElement(E.Children.only(s),Mt(Mt({},A),{ref:w})):E.createElement(g,Mt({},A,{className:c,ref:w}),s))});$c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$c.classNames={fullWidth:Io,zeroRight:jo};var D5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function L5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=D5();return t&&e.setAttribute("nonce",t),e}function B5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function q5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var F5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=L5())&&(B5(t,r),q5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},z5=function(){var e=F5();return function(t,r){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},xE=function(){var e=z5(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},W5={left:0,top:0,right:0,gap:0},cp=function(e){return parseInt(e||"",10)||0},U5=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[cp(r),cp(n),cp(i)]},H5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return W5;var t=U5(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},V5=xE(),Rn="data-scroll-locked",K5=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),`
216
- .`.concat(T5,` {
215
+ - Focus on what the data means, not how it's displayed`,Component:EK,Header:void 0};function uS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lm(...e){return t=>{let r=!1;const n=e.map(i=>{const a=uS(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():uS(e[i],null)}}}}function Ce(...e){return E.useCallback(lm(...e),e)}function di(e){const t=TK(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),c=s.find(jK);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var Y1=di("Slot");function TK(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=kK(i),s=IK(a,i.props);return i.type!==E.Fragment&&(s.ref=n?lm(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var X1=Symbol("radix.slottable");function CK(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=X1,t}function jK(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===X1}function IK(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function kK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var RK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],le=RK.reduce((e,t)=>{const r=di(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),_.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function MK(e,t){e&&Ys.flushSync(()=>e.dispatchEvent(t))}var Z1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$K="VisuallyHidden",J1=E.forwardRef((e,t)=>_.jsx(le.span,{...e,ref:t,style:{...Z1,...e.style}}));J1.displayName=$K;var NK=J1;function DK(e,t){const r=E.createContext(t),n=a=>{const{children:o,...s}=a,c=E.useMemo(()=>s,Object.values(s));return _.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function i(a){const o=E.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function kt(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),c=r.length;r=[...r,o];const u=f=>{const{scope:d,children:h,...m}=f,p=d?.[e]?.[c]||s,v=E.useMemo(()=>m,Object.values(m));return _.jsx(p.Provider,{value:v,children:h})};u.displayName=a+"Provider";function l(f,d){const h=d?.[e]?.[c]||s,m=E.useContext(h);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,l]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const c=s?.[e]||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return i.scopeName=e,[n,LK(i,...t)]}function LK(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function fm(e){const t=e+"CollectionProvider",[r,n]=kt(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:y}=p,g=S.useRef(null),x=S.useRef(new Map).current;return _.jsx(i,{scope:v,itemMap:x,collectionRef:g,children:y})};o.displayName=t;const s=e+"CollectionSlot",c=di(s),u=S.forwardRef((p,v)=>{const{scope:y,children:g}=p,x=a(s,y),O=Ce(v,x.collectionRef);return _.jsx(c,{ref:O,children:g})});u.displayName=s;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=di(l),h=S.forwardRef((p,v)=>{const{scope:y,children:g,...x}=p,O=S.useRef(null),b=Ce(v,O),w=a(l,y);return S.useEffect(()=>(w.itemMap.set(O,{ref:O,...x}),()=>void w.itemMap.delete(O))),_.jsx(d,{[f]:"",ref:b,children:g})});h.displayName=l;function m(p){const v=a(e+"CollectionConsumer",p);return S.useCallback(()=>{const g=v.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((w,A)=>x.indexOf(w.ref.current)-x.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},m,n]}function he(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),r===!1||!i.defaultPrevented)return t?.(i)}}var Re=globalThis?.document?E.useLayoutEffect:()=>{},BK=E[" useInsertionEffect ".trim().toString()]||Re;function lr({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=qK({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:i;{const l=E.useRef(e!==void 0);E.useEffect(()=>{const f=l.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,n])}const u=E.useCallback(l=>{if(s){const f=FK(l)?l(e):l;f!==e&&o.current?.(f)}else a(l)},[s,e,a,o]);return[c,u]}function qK({defaultProp:e,onChange:t}){const[r,n]=E.useState(e),i=E.useRef(r),a=E.useRef(t);return BK(()=>{a.current=t},[t]),E.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}function FK(e){return typeof e=="function"}function zK(e,t){return E.useReducer((r,n)=>t[r][n]??r,e)}var Ja=e=>{const{present:t,children:r}=e,n=WK(t),i=typeof r=="function"?r({present:n.isPresent}):E.Children.only(r),a=Ce(n.ref,UK(i));return typeof r=="function"||n.isPresent?E.cloneElement(i,{ref:a}):null};Ja.displayName="Presence";function WK(e){const[t,r]=E.useState(),n=E.useRef(null),i=E.useRef(e),a=E.useRef("none"),o=e?"mounted":"unmounted",[s,c]=zK(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=Oo(n.current);a.current=s==="mounted"?u:"none"},[s]),Re(()=>{const u=n.current,l=i.current;if(l!==e){const d=a.current,h=Oo(u);e?c("MOUNT"):h==="none"||u?.display==="none"?c("UNMOUNT"):c(l&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Re(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,f=h=>{const p=Oo(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&p&&(c("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},d=h=>{h.target===t&&(a.current=Oo(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{l.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Oo(e){return e?.animationName||"none"}function UK(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var HK=E[" useId ".trim().toString()]||(()=>{}),VK=0;function Lr(e){const[t,r]=E.useState(HK());return Re(()=>{r(n=>n??String(VK++))},[e]),t?`radix-${t}`:""}var Ic="Collapsible",[KK,Q1]=kt(Ic),[GK,dm]=KK(Ic),eE=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,u]=lr({prop:n,defaultProp:i??!1,onChange:o,caller:Ic});return _.jsx(GK,{scope:r,disabled:a,contentId:Lr(),open:c,onOpenToggle:E.useCallback(()=>u(l=>!l),[u]),children:_.jsx(le.div,{"data-state":mm(c),"data-disabled":a?"":void 0,...s,ref:t})})});eE.displayName=Ic;var tE="CollapsibleTrigger",pm=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=dm(tE,r);return _.jsx(le.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":mm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:he(e.onClick,i.onOpenToggle)})});pm.displayName=tE;var hm="CollapsibleContent",vm=E.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=dm(hm,e.__scopeCollapsible);return _.jsx(Ja,{present:r||i.open,children:({present:a})=>_.jsx(YK,{...n,ref:t,present:a})})});vm.displayName=hm;var YK=E.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...a}=e,o=dm(hm,r),[s,c]=E.useState(n),u=E.useRef(null),l=Ce(t,u),f=E.useRef(0),d=f.current,h=E.useRef(0),m=h.current,p=o.open||s,v=E.useRef(p),y=E.useRef(void 0);return E.useEffect(()=>{const g=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(g)},[]),Re(()=>{const g=u.current;if(g){y.current=y.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();f.current=x.height,h.current=x.width,v.current||(g.style.transitionDuration=y.current.transitionDuration,g.style.animationName=y.current.animationName),c(n)}},[o.open,n]),_.jsx(le.div,{"data-state":mm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...a,ref:l,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:p&&i})});function mm(e){return e?"open":"closed"}var rE=eE,XK=pm,ZK=vm,JK=E.createContext(void 0);function kc(e){const t=E.useContext(JK);return e||t||"ltr"}var Rt="Accordion",QK=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ym,e5,t5]=fm(Rt),[Rc]=kt(Rt,[t5,Q1]),gm=Q1(),nE=S.forwardRef((e,t)=>{const{type:r,...n}=e,i=n,a=n;return _.jsx(ym.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?_.jsx(a5,{...a,ref:t}):_.jsx(i5,{...i,ref:t})})});nE.displayName=Rt;var[iE,r5]=Rc(Rt),[aE,n5]=Rc(Rt,{collapsible:!1}),i5=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=lr({prop:r,defaultProp:n??"",onChange:i,caller:Rt});return _.jsx(iE,{scope:e.__scopeAccordion,value:S.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:S.useCallback(()=>a&&c(""),[a,c]),children:_.jsx(aE,{scope:e.__scopeAccordion,collapsible:a,children:_.jsx(oE,{...o,ref:t})})})}),a5=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=e,[o,s]=lr({prop:r,defaultProp:n??[],onChange:i,caller:Rt}),c=S.useCallback(l=>s((f=[])=>[...f,l]),[s]),u=S.useCallback(l=>s((f=[])=>f.filter(d=>d!==l)),[s]);return _.jsx(iE,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:_.jsx(aE,{scope:e.__scopeAccordion,collapsible:!0,children:_.jsx(oE,{...a,ref:t})})})}),[o5,Mc]=Rc(Rt),oE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:i,orientation:a="vertical",...o}=e,s=S.useRef(null),c=Ce(s,t),u=e5(r),f=kc(i)==="ltr",d=he(e.onKeyDown,h=>{if(!QK.includes(h.key))return;const m=h.target,p=u().filter(P=>!P.ref.current?.disabled),v=p.findIndex(P=>P.ref.current===m),y=p.length;if(v===-1)return;h.preventDefault();let g=v;const x=0,O=y-1,b=()=>{g=v+1,g>O&&(g=x)},w=()=>{g=v-1,g<x&&(g=O)};switch(h.key){case"Home":g=x;break;case"End":g=O;break;case"ArrowRight":a==="horizontal"&&(f?b():w());break;case"ArrowDown":a==="vertical"&&b();break;case"ArrowLeft":a==="horizontal"&&(f?w():b());break;case"ArrowUp":a==="vertical"&&w();break}const A=g%y;p[A].ref.current?.focus()});return _.jsx(o5,{scope:r,disabled:n,direction:i,orientation:a,children:_.jsx(ym.Slot,{scope:r,children:_.jsx(le.div,{...o,"data-orientation":a,ref:c,onKeyDown:n?void 0:d})})})}),Fs="AccordionItem",[s5,bm]=Rc(Fs),sE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...i}=e,a=Mc(Fs,r),o=r5(Fs,r),s=gm(r),c=Lr(),u=n&&o.value.includes(n)||!1,l=a.disabled||e.disabled;return _.jsx(s5,{scope:r,open:u,disabled:l,triggerId:c,children:_.jsx(rE,{"data-orientation":a.orientation,"data-state":pE(u),...s,...i,ref:t,disabled:l,open:u,onOpenChange:f=>{f?o.onItemOpen(n):o.onItemClose(n)}})})});sE.displayName=Fs;var cE="AccordionHeader",uE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Mc(Rt,r),a=bm(cE,r);return _.jsx(le.h3,{"data-orientation":i.orientation,"data-state":pE(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});uE.displayName=cE;var zh="AccordionTrigger",lE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Mc(Rt,r),a=bm(zh,r),o=n5(zh,r),s=gm(r);return _.jsx(ym.ItemSlot,{scope:r,children:_.jsx(XK,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...n,ref:t})})});lE.displayName=zh;var fE="AccordionContent",dE=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Mc(Rt,r),a=bm(fE,r),o=gm(r);return _.jsx(ZK,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});dE.displayName=fE;function pE(e){return e?"open":"closed"}var c5=nE,u5=sE,l5=uE,f5=lE,d5=dE;function zt(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...r)=>t.current?.(...r),[])}function p5(e,t=globalThis?.document){const r=zt(e);E.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var h5="DismissableLayer",Wh="dismissableLayer.update",v5="dismissableLayer.pointerDownOutside",m5="dismissableLayer.focusOutside",lS,hE=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xm=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,u=E.useContext(hE),[l,f]=E.useState(null),d=l?.ownerDocument??globalThis?.document,[,h]=E.useState({}),m=Ce(t,A=>f(A)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),g=l?p.indexOf(l):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,O=g>=y,b=b5(A=>{const P=A.target,T=[...u.branches].some(I=>I.contains(P));!O||T||(i?.(A),o?.(A),A.defaultPrevented||s?.())},d),w=x5(A=>{const P=A.target;[...u.branches].some(I=>I.contains(P))||(a?.(A),o?.(A),A.defaultPrevented||s?.())},d);return p5(A=>{g===u.layers.size-1&&(n?.(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},d),E.useEffect(()=>{if(l)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(lS=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),fS(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=lS)}},[l,d,r,u]),E.useEffect(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),fS())},[l,u]),E.useEffect(()=>{const A=()=>h({});return document.addEventListener(Wh,A),()=>document.removeEventListener(Wh,A)},[]),_.jsx(le.div,{...c,ref:m,style:{pointerEvents:x?O?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,w.onFocusCapture),onBlurCapture:he(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,b.onPointerDownCapture)})});xm.displayName=h5;var y5="DismissableLayerBranch",g5=E.forwardRef((e,t)=>{const r=E.useContext(hE),n=E.useRef(null),i=Ce(t,n);return E.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),_.jsx(le.div,{...e,ref:i})});g5.displayName=y5;function b5(e,t=globalThis?.document){const r=zt(e),n=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){vE(v5,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function x5(e,t=globalThis?.document){const r=zt(e),n=E.useRef(!1);return E.useEffect(()=>{const i=a=>{a.target&&!n.current&&vE(m5,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function fS(){const e=new CustomEvent(Wh);document.dispatchEvent(e)}function vE(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?MK(i,a):i.dispatchEvent(a)}var ip="focusScope.autoFocusOnMount",ap="focusScope.autoFocusOnUnmount",dS={bubbles:!1,cancelable:!0},w5="FocusScope",wm=E.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=E.useState(null),u=zt(i),l=zt(a),f=E.useRef(null),d=Ce(t,p=>c(p)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(n){let p=function(x){if(h.paused||!s)return;const O=x.target;s.contains(O)?f.current=O:br(f.current,{select:!0})},v=function(x){if(h.paused||!s)return;const O=x.relatedTarget;O!==null&&(s.contains(O)||br(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const b of x)b.removedNodes.length>0&&br(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const g=new MutationObserver(y);return s&&g.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),g.disconnect()}}},[n,s,h.paused]),E.useEffect(()=>{if(s){hS.add(h);const p=document.activeElement;if(!s.contains(p)){const y=new CustomEvent(ip,dS);s.addEventListener(ip,u),s.dispatchEvent(y),y.defaultPrevented||(O5(E5(mE(s)),{select:!0}),document.activeElement===p&&br(s))}return()=>{s.removeEventListener(ip,u),setTimeout(()=>{const y=new CustomEvent(ap,dS);s.addEventListener(ap,l),s.dispatchEvent(y),y.defaultPrevented||br(p??document.body,{select:!0}),s.removeEventListener(ap,l),hS.remove(h)},0)}}},[s,u,l,h]);const m=E.useCallback(p=>{if(!r&&!n||h.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const g=p.currentTarget,[x,O]=S5(g);x&&O?!p.shiftKey&&y===O?(p.preventDefault(),r&&br(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),r&&br(O,{select:!0})):y===g&&p.preventDefault()}},[r,n,h.paused]);return _.jsx(le.div,{tabIndex:-1,...o,ref:d,onKeyDown:m})});wm.displayName=w5;function O5(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(br(n,{select:t}),document.activeElement!==r)return}function S5(e){const t=mE(e),r=pS(t,e),n=pS(t.reverse(),e);return[r,n]}function mE(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function pS(e,t){for(const r of e)if(!A5(r,{upTo:t}))return r}function A5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _5(e){return e instanceof HTMLInputElement&&"select"in e}function br(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&_5(e)&&t&&e.select()}}var hS=P5();function P5(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=vS(e,t),e.unshift(t)},remove(t){e=vS(e,t),e[0]?.resume()}}}function vS(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function E5(e){return e.filter(t=>t.tagName!=="A")}var T5="Portal",Om=E.forwardRef((e,t)=>{const{container:r,...n}=e,[i,a]=E.useState(!1);Re(()=>a(!0),[]);const o=r||i&&globalThis?.document?.body;return o?US.createPortal(_.jsx(le.div,{...n,ref:t}),o):null});Om.displayName=T5;var op=0;function yE(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mS()),document.body.insertAdjacentElement("beforeend",e[1]??mS()),op++,()=>{op===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),op--}},[])}function mS(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Mt=function(){return Mt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Mt.apply(this,arguments)};function gE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function C5(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var jo="right-scroll-bar-position",Io="width-before-scroll-bar",j5="with-scroll-bars-hidden",I5="--removed-body-scroll-bar-size";function sp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function k5(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var R5=typeof window<"u"?E.useLayoutEffect:E.useEffect,yS=new WeakMap;function M5(e,t){var r=k5(null,function(n){return e.forEach(function(i){return sp(i,n)})});return R5(function(){var n=yS.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;i.forEach(function(s){a.has(s)||sp(s,null)}),a.forEach(function(s){i.has(s)||sp(s,o)})}yS.set(r,e)},[e]),r}function $5(e){return e}function N5(e,t){t===void 0&&(t=$5);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var c=function(){var l=o;o=[],l.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(l){o.push(l),u()},filter:function(l){return o=o.filter(l),r}}}};return i}function D5(e){e===void 0&&(e={});var t=N5(null);return t.options=Mt({async:!0,ssr:!1},e),t}var bE=function(e){var t=e.sideCar,r=gE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return E.createElement(n,Mt({},r))};bE.isSideCarExport=!0;function L5(e,t){return e.useMedium(t),bE}var xE=D5(),cp=function(){},$c=E.forwardRef(function(e,t){var r=E.useRef(null),n=E.useState({onScrollCapture:cp,onWheelCapture:cp,onTouchMoveCapture:cp}),i=n[0],a=n[1],o=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,l=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,m=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,x=e.gapMode,O=gE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=d,w=M5([r,t]),A=Mt(Mt({},O),i);return E.createElement(E.Fragment,null,l&&E.createElement(b,{sideCar:xE,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:x}),o?E.cloneElement(E.Children.only(s),Mt(Mt({},A),{ref:w})):E.createElement(g,Mt({},A,{className:c,ref:w}),s))});$c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$c.classNames={fullWidth:Io,zeroRight:jo};var B5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function q5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=B5();return t&&e.setAttribute("nonce",t),e}function F5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function z5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var W5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=q5())&&(F5(t,r),z5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},U5=function(){var e=W5();return function(t,r){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},wE=function(){var e=U5(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},H5={left:0,top:0,right:0,gap:0},up=function(e){return parseInt(e||"",10)||0},V5=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[up(r),up(n),up(i)]},K5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return H5;var t=V5(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},G5=wE(),Rn="data-scroll-locked",Y5=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),`
216
+ .`.concat(j5,` {
217
217
  overflow: hidden `).concat(n,`;
218
218
  padding-right: `).concat(s,"px ").concat(n,`;
219
219
  }
@@ -247,17 +247,17 @@ CONTENT GUIDELINES:
247
247
  }
248
248
 
249
249
  body[`).concat(Rn,`] {
250
- `).concat(C5,": ").concat(s,`px;
250
+ `).concat(I5,": ").concat(s,`px;
251
251
  }
252
- `)},yS=function(){var e=parseInt(document.body.getAttribute(Rn)||"0",10);return isFinite(e)?e:0},G5=function(){E.useEffect(function(){return document.body.setAttribute(Rn,(yS()+1).toString()),function(){var e=yS()-1;e<=0?document.body.removeAttribute(Rn):document.body.setAttribute(Rn,e.toString())}},[])},Y5=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;G5();var a=E.useMemo(function(){return H5(i)},[i]);return E.createElement(V5,{styles:K5(a,!t,i,r?"":"!important")})},Wh=!1;if(typeof window<"u")try{var So=Object.defineProperty({},"passive",{get:function(){return Wh=!0,!0}});window.addEventListener("test",So,So),window.removeEventListener("test",So,So)}catch{Wh=!1}var On=Wh?{passive:!1}:!1,X5=function(e){return e.tagName==="TEXTAREA"},wE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!X5(e)&&r[t]==="visible")},Z5=function(e){return wE(e,"overflowY")},J5=function(e){return wE(e,"overflowX")},gS=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=OE(e,n);if(i){var a=SE(e,n),o=a[1],s=a[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Q5=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},eG=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},OE=function(e,t){return e==="v"?Z5(t):J5(t)},SE=function(e,t){return e==="v"?Q5(t):eG(t)},tG=function(e,t){return e==="h"&&t==="rtl"?-1:1},rG=function(e,t,r,n,i){var a=tG(e,window.getComputedStyle(t).direction),o=a*n,s=r.target,c=t.contains(s),u=!1,l=o>0,f=0,d=0;do{if(!s)break;var h=SE(e,s),m=h[0],p=h[1],v=h[2],y=p-v-a*m;(m||y)&&OE(e,s)&&(f+=y,d+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(l&&Math.abs(f)<1||!l&&Math.abs(d)<1)&&(u=!0),u},Ao=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bS=function(e){return[e.deltaX,e.deltaY]},xS=function(e){return e&&"current"in e?e.current:e},nG=function(e,t){return e[0]===t[0]&&e[1]===t[1]},iG=function(e){return`
252
+ `)},gS=function(){var e=parseInt(document.body.getAttribute(Rn)||"0",10);return isFinite(e)?e:0},X5=function(){E.useEffect(function(){return document.body.setAttribute(Rn,(gS()+1).toString()),function(){var e=gS()-1;e<=0?document.body.removeAttribute(Rn):document.body.setAttribute(Rn,e.toString())}},[])},Z5=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;X5();var a=E.useMemo(function(){return K5(i)},[i]);return E.createElement(G5,{styles:Y5(a,!t,i,r?"":"!important")})},Uh=!1;if(typeof window<"u")try{var So=Object.defineProperty({},"passive",{get:function(){return Uh=!0,!0}});window.addEventListener("test",So,So),window.removeEventListener("test",So,So)}catch{Uh=!1}var On=Uh?{passive:!1}:!1,J5=function(e){return e.tagName==="TEXTAREA"},OE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!J5(e)&&r[t]==="visible")},Q5=function(e){return OE(e,"overflowY")},eG=function(e){return OE(e,"overflowX")},bS=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=SE(e,n);if(i){var a=AE(e,n),o=a[1],s=a[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tG=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rG=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},SE=function(e,t){return e==="v"?Q5(t):eG(t)},AE=function(e,t){return e==="v"?tG(t):rG(t)},nG=function(e,t){return e==="h"&&t==="rtl"?-1:1},iG=function(e,t,r,n,i){var a=nG(e,window.getComputedStyle(t).direction),o=a*n,s=r.target,c=t.contains(s),u=!1,l=o>0,f=0,d=0;do{if(!s)break;var h=AE(e,s),m=h[0],p=h[1],v=h[2],y=p-v-a*m;(m||y)&&SE(e,s)&&(f+=y,d+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(l&&Math.abs(f)<1||!l&&Math.abs(d)<1)&&(u=!0),u},Ao=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xS=function(e){return[e.deltaX,e.deltaY]},wS=function(e){return e&&"current"in e?e.current:e},aG=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oG=function(e){return`
253
253
  .block-interactivity-`.concat(e,` {pointer-events: none;}
254
254
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
255
- `)},aG=0,Sn=[];function oG(e){var t=E.useRef([]),r=E.useRef([0,0]),n=E.useRef(),i=E.useState(aG++)[0],a=E.useState(xE)[0],o=E.useRef(e);E.useEffect(function(){o.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=E5([e.lockRef.current],(e.shards||[]).map(xS),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=E.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=Ao(p),g=r.current,x="deltaX"in p?p.deltaX:g[0]-y[0],O="deltaY"in p?p.deltaY:g[1]-y[1],b,w=p.target,A=Math.abs(x)>Math.abs(O)?"h":"v";if("touches"in p&&A==="h"&&w.type==="range")return!1;var P=gS(A,w);if(!P)return!0;if(P?b=A:(b=A==="v"?"h":"v",P=gS(A,w)),!P)return!1;if(!n.current&&"changedTouches"in p&&(x||O)&&(n.current=b),!b)return!0;var T=n.current||b;return rG(T,v,p,T==="h"?x:O)},[]),c=E.useCallback(function(p){var v=p;if(!(!Sn.length||Sn[Sn.length-1]!==a)){var y="deltaY"in v?bS(v):Ao(v),g=t.current.filter(function(b){return b.name===v.type&&(b.target===v.target||v.target===b.shadowParent)&&nG(b.delta,y)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}if(!g){var x=(o.current.shards||[]).map(xS).filter(Boolean).filter(function(b){return b.contains(v.target)}),O=x.length>0?s(v,x[0]):!o.current.noIsolation;O&&v.cancelable&&v.preventDefault()}}},[]),u=E.useCallback(function(p,v,y,g){var x={name:p,delta:v,target:y,should:g,shadowParent:sG(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(O){return O!==x})},1)},[]),l=E.useCallback(function(p){r.current=Ao(p),n.current=void 0},[]),f=E.useCallback(function(p){u(p.type,bS(p),p.target,s(p,e.lockRef.current))},[]),d=E.useCallback(function(p){u(p.type,Ao(p),p.target,s(p,e.lockRef.current))},[]);E.useEffect(function(){return Sn.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,On),document.addEventListener("touchmove",c,On),document.addEventListener("touchstart",l,On),function(){Sn=Sn.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,On),document.removeEventListener("touchmove",c,On),document.removeEventListener("touchstart",l,On)}},[]);var h=e.removeScrollBar,m=e.inert;return E.createElement(E.Fragment,null,m?E.createElement(a,{styles:iG(i)}):null,h?E.createElement(Y5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sG(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cG=N5(bE,oG);var Om=E.forwardRef(function(e,t){return E.createElement($c,Mt({},e,{ref:t,sideCar:cG}))});Om.classNames=$c.classNames;var uG=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},An=new WeakMap,_o=new WeakMap,Po={},up=0,AE=function(e){return e&&(e.host||AE(e.parentNode))},lG=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=AE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},fG=function(e,t,r,n){var i=lG(t,Array.isArray(e)?e:[e]);Po[r]||(Po[r]=new WeakMap);var a=Po[r],o=[],s=new Set,c=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var l=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))l(d);else try{var h=d.getAttribute(n),m=h!==null&&h!=="false",p=(An.get(d)||0)+1,v=(a.get(d)||0)+1;An.set(d,p),a.set(d,v),o.push(d),p===1&&m&&_o.set(d,!0),v===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return l(t),s.clear(),up++,function(){o.forEach(function(f){var d=An.get(f)-1,h=a.get(f)-1;An.set(f,d),a.set(f,h),d||(_o.has(f)||f.removeAttribute(n),_o.delete(f)),h||f.removeAttribute(r)}),up--,up||(An=new WeakMap,An=new WeakMap,_o=new WeakMap,Po={})}},_E=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=uG(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),fG(n,i,r,"aria-hidden")):function(){return null}},Eo={exports:{}},lp={};var wS;function dG(){if(wS)return lp;wS=1;var e=S;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(f,d){var h=d(),m=n({inst:{value:h,getSnapshot:d}}),p=m[0].inst,v=m[1];return a(function(){p.value=h,p.getSnapshot=d,c(p)&&v({inst:p})},[f,h,d]),i(function(){return c(p)&&v({inst:p}),f(function(){c(p)&&v({inst:p})})},[f]),o(h),h}function c(f){var d=f.getSnapshot;f=f.value;try{var h=d();return!r(f,h)}catch{return!0}}function u(f,d){return d()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return lp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,lp}var fp={};var OS;function pG(){return OS||(OS=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){l||i.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=m();if(!f){var v=m();a(p,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=o({inst:{value:p,getSnapshot:m}});var y=v[0].inst,g=v[1];return c(function(){y.value=p,y.getSnapshot=m,r(y)&&g({inst:y})},[h,p,m]),s(function(){return r(y)&&g({inst:y}),h(function(){r(y)&&g({inst:y})})},[h]),u(p),p}function r(h){var m=h.getSnapshot;h=h.value;try{var p=m();return!a(h,p)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=S,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,c=i.useLayoutEffect,u=i.useDebugValue,l=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;fp.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),fp}var SS;function hG(){return SS||(SS=1,process.env.NODE_ENV==="production"?Eo.exports=dG():Eo.exports=pG()),Eo.exports}var vG=hG();function PE(){return vG.useSyncExternalStore(mG,()=>!0,()=>!1)}function mG(){return()=>{}}var Sm="Avatar",[yG]=kt(Sm),[gG,EE]=yG(Sm),TE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[i,a]=E.useState("idle");return _.jsx(gG,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:_.jsx(le.span,{...n,ref:t})})});TE.displayName=Sm;var CE="AvatarImage",jE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...a}=e,o=EE(CE,r),s=bG(n,a),c=zt(u=>{i(u),o.onImageLoadingStatusChange(u)});return Re(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?_.jsx(le.img,{...a,ref:t,src:n}):null});jE.displayName=CE;var IE="AvatarFallback",kE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...i}=e,a=EE(IE,r),[o,s]=E.useState(n===void 0);return E.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(c)}},[n]),o&&a.imageLoadingStatus!=="loaded"?_.jsx(le.span,{...i,ref:t}):null});kE.displayName=IE;function AS(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function bG(e,{referrerPolicy:t,crossOrigin:r}){const n=PE(),i=E.useRef(null),a=n?(i.current||(i.current=new window.Image),i.current):null,[o,s]=E.useState(()=>AS(a,e));return Re(()=>{s(AS(a,e))},[a,e]),Re(()=>{const c=f=>()=>{s(f)};if(!a)return;const u=c("loaded"),l=c("error");return a.addEventListener("load",u),a.addEventListener("error",l),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",l)}},[a,r,t]),o}var xG=TE,wG=jE,OG=kE;function RE(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ME(e){const[t,r]=E.useState(void 0);return Re(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Nc="Checkbox",[SG]=kt(Nc),[AG,Am]=SG(Nc);function _G(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:u,value:l="on",internal_do_not_use_render:f}=e,[d,h]=lr({prop:r,defaultProp:i??!1,onChange:c,caller:Nc}),[m,p]=E.useState(null),[v,y]=E.useState(null),g=E.useRef(!1),x=m?!!o||!!m.closest("form"):!0,O={checked:d,disabled:a,setChecked:h,control:m,setControl:p,name:s,form:o,value:l,hasConsumerStoppedPropagationRef:g,required:u,defaultChecked:Er(i)?!1:i,isFormControl:x,bubbleInput:v,setBubbleInput:y};return _.jsx(AG,{scope:t,...O,children:PG(f)?f(O):n})}var $E="CheckboxTrigger",NE=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:a,value:o,disabled:s,checked:c,required:u,setControl:l,setChecked:f,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:m}=Am($E,e),p=Ce(i,l),v=E.useRef(c);return E.useEffect(()=>{const y=a?.form;if(y){const g=()=>f(v.current);return y.addEventListener("reset",g),()=>y.removeEventListener("reset",g)}},[a,f]),_.jsx(le.button,{type:"button",role:"checkbox","aria-checked":Er(c)?"mixed":c,"aria-required":u,"data-state":zE(c),"data-disabled":s?"":void 0,disabled:s,value:o,...n,ref:p,onKeyDown:he(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:he(r,y=>{f(g=>Er(g)?!0:!g),m&&h&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})})});NE.displayName=$E;var DE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:u,form:l,...f}=e;return _.jsx(_G,{__scopeCheckbox:r,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:u,name:n,form:l,value:c,internal_do_not_use_render:({isFormControl:d})=>_.jsxs(_.Fragment,{children:[_.jsx(NE,{...f,ref:t,__scopeCheckbox:r}),d&&_.jsx(FE,{__scopeCheckbox:r})]})})});DE.displayName=Nc;var LE="CheckboxIndicator",BE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,a=Am(LE,r);return _.jsx(Ja,{present:n||Er(a.checked)||a.checked===!0,children:_.jsx(le.span,{"data-state":zE(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});BE.displayName=LE;var qE="CheckboxBubbleInput",FE=E.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:u,value:l,form:f,bubbleInput:d,setBubbleInput:h}=Am(qE,e),m=Ce(r,h),p=RE(a),v=ME(n);E.useEffect(()=>{const g=d;if(!g)return;const x=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(x,"checked").set,w=!i.current;if(p!==a&&b){const A=new Event("click",{bubbles:w});g.indeterminate=Er(a),b.call(g,Er(a)?!1:a),g.dispatchEvent(A)}},[d,p,a,i]);const y=E.useRef(Er(a)?!1:a);return _.jsx(le.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:s,disabled:c,name:u,value:l,form:f,...t,tabIndex:-1,ref:m,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});FE.displayName=qE;function PG(e){return typeof e=="function"}function Er(e){return e==="indeterminate"}function zE(e){return Er(e)?"indeterminate":e?"checked":"unchecked"}const EG=["top","right","bottom","left"],Cr=Math.min,ot=Math.max,zs=Math.round,To=Math.floor,qt=e=>({x:e,y:e}),TG={left:"right",right:"left",bottom:"top",top:"bottom"},CG={start:"end",end:"start"};function Uh(e,t,r){return ot(e,Cr(t,r))}function fr(e,t){return typeof e=="function"?e(t):e}function dr(e){return e.split("-")[0]}function Ci(e){return e.split("-")[1]}function _m(e){return e==="x"?"y":"x"}function Pm(e){return e==="y"?"height":"width"}const jG=new Set(["top","bottom"]);function Dt(e){return jG.has(dr(e))?"y":"x"}function Em(e){return _m(Dt(e))}function IG(e,t,r){r===void 0&&(r=!1);const n=Ci(e),i=Em(e),a=Pm(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Ws(o)),[o,Ws(o)]}function kG(e){const t=Ws(e);return[Hh(e),t,Hh(t)]}function Hh(e){return e.replace(/start|end/g,t=>CG[t])}const _S=["left","right"],PS=["right","left"],RG=["top","bottom"],MG=["bottom","top"];function $G(e,t,r){switch(e){case"top":case"bottom":return r?t?PS:_S:t?_S:PS;case"left":case"right":return t?RG:MG;default:return[]}}function NG(e,t,r,n){const i=Ci(e);let a=$G(dr(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Hh)))),a}function Ws(e){return e.replace(/left|right|bottom|top/g,t=>TG[t])}function DG(e){return{top:0,right:0,bottom:0,left:0,...e}}function WE(e){return typeof e!="number"?DG(e):{top:e,right:e,bottom:e,left:e}}function Us(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function ES(e,t,r){let{reference:n,floating:i}=e;const a=Dt(t),o=Em(t),s=Pm(o),c=dr(t),u=a==="y",l=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(c){case"top":h={x:l,y:n.y-i.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Ci(t)){case"start":h[o]-=d*(r&&u?-1:1);break;case"end":h[o]+=d*(r&&u?-1:1);break}return h}const LG=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:f}=ES(u,n,c),d=n,h={},m=0;for(let p=0;p<s.length;p++){const{name:v,fn:y}=s[p],{x:g,y:x,data:O,reset:b}=await y({x:l,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});l=g??l,f=x??f,h={...h,[v]:{...h[v],...O}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(u=b.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:l,y:f}=ES(u,d,c)),p=-1)}return{x:l,y:f,placement:d,strategy:i,middlewareData:h}};async function La(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=fr(t,e),m=WE(h),v=s[d?f==="floating"?"reference":"floating":f],y=Us(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),g=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),O=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},b=Us(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:x,strategy:c}):g);return{top:(y.top-b.top+m.top)/O.y,bottom:(b.bottom-y.bottom+m.bottom)/O.y,left:(y.left-b.left+m.left)/O.x,right:(b.right-y.right+m.right)/O.x}}const BG=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=fr(e,t)||{};if(u==null)return{};const f=WE(l),d={x:r,y:n},h=Em(i),m=Pm(h),p=await o.getDimensions(u),v=h==="y",y=v?"top":"left",g=v?"bottom":"right",x=v?"clientHeight":"clientWidth",O=a.reference[m]+a.reference[h]-d[h]-a.floating[m],b=d[h]-a.reference[h],w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let A=w?w[x]:0;(!A||!await(o.isElement==null?void 0:o.isElement(w)))&&(A=s.floating[x]||a.floating[m]);const P=O/2-b/2,T=A/2-p[m]/2-1,I=Cr(f[y],T),C=Cr(f[g],T),j=I,k=A-p[m]-C,$=A/2-p[m]/2+P,N=Uh(j,$,k),R=!c.arrow&&Ci(i)!=null&&$!==N&&a.reference[m]/2-($<j?I:C)-p[m]/2<0,L=R?$<j?$-j:$-k:0;return{[h]:d[h]+L,data:{[h]:N,centerOffset:$-N-L,...R&&{alignmentOffset:L}},reset:R}}}),qG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...v}=fr(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=dr(i),g=Dt(s),x=dr(s)===s,O=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=d||(x||!p?[Ws(s)]:kG(s)),w=m!=="none";!d&&w&&b.push(...NG(s,p,m,O));const A=[s,...b],P=await La(t,v),T=[];let I=((n=a.flip)==null?void 0:n.overflows)||[];if(l&&T.push(P[y]),f){const $=IG(i,o,O);T.push(P[$[0]],P[$[1]])}if(I=[...I,{placement:i,overflows:T}],!T.every($=>$<=0)){var C,j;const $=(((C=a.flip)==null?void 0:C.index)||0)+1,N=A[$];if(N&&(!(f==="alignment"?g!==Dt(N):!1)||I.every(M=>Dt(M.placement)===g?M.overflows[0]>0:!0)))return{data:{index:$,overflows:I},reset:{placement:N}};let R=(j=I.filter(L=>L.overflows[0]<=0).sort((L,M)=>L.overflows[1]-M.overflows[1])[0])==null?void 0:j.placement;if(!R)switch(h){case"bestFit":{var k;const L=(k=I.filter(M=>{if(w){const U=Dt(M.placement);return U===g||U==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(U=>U>0).reduce((U,D)=>U+D,0)]).sort((M,U)=>M[1]-U[1])[0])==null?void 0:k[0];L&&(R=L);break}case"initialPlacement":R=s;break}if(i!==R)return{reset:{placement:R}}}return{}}}};function TS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function CS(e){return EG.some(t=>e[t]>=0)}const FG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=fr(e,t);switch(n){case"referenceHidden":{const a=await La(t,{...i,elementContext:"reference"}),o=TS(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:CS(o)}}}case"escaped":{const a=await La(t,{...i,altBoundary:!0}),o=TS(a,r.floating);return{data:{escapedOffsets:o,escaped:CS(o)}}}default:return{}}}}},UE=new Set(["left","top"]);async function zG(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=dr(r),s=Ci(r),c=Dt(r)==="y",u=UE.has(o)?-1:1,l=a&&c?-1:1,f=fr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*l,y:d*u}:{x:d*u,y:h*l}}const WG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:s}=t,c=await zG(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},UG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:y,y:g}=v;return{x:y,y:g}}},...c}=fr(e,t),u={x:r,y:n},l=await La(t,c),f=Dt(dr(i)),d=_m(f);let h=u[d],m=u[f];if(a){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",g=h+l[v],x=h-l[y];h=Uh(g,h,x)}if(o){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",g=m+l[v],x=m-l[y];m=Uh(g,m,x)}const p=s.fn({...t,[d]:h,[f]:m});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[d]:a,[f]:o}}}}}},HG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=fr(e,t),l={x:r,y:n},f=Dt(i),d=_m(f);let h=l[d],m=l[f];const p=fr(s,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=d==="y"?"height":"width",O=a.reference[d]-a.floating[x]+v.mainAxis,b=a.reference[d]+a.reference[x]-v.mainAxis;h<O?h=O:h>b&&(h=b)}if(u){var y,g;const x=d==="y"?"width":"height",O=UE.has(dr(i)),b=a.reference[f]-a.floating[x]+(O&&((y=o.offset)==null?void 0:y[f])||0)+(O?0:v.crossAxis),w=a.reference[f]+a.reference[x]+(O?0:((g=o.offset)==null?void 0:g[f])||0)-(O?v.crossAxis:0);m<b?m=b:m>w&&(m=w)}return{[d]:h,[f]:m}}}},VG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...u}=fr(e,t),l=await La(t,u),f=dr(i),d=Ci(i),h=Dt(i)==="y",{width:m,height:p}=a.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=f,v=d==="end"?"top":"bottom");const g=p-l.top-l.bottom,x=m-l.left-l.right,O=Cr(p-l[v],g),b=Cr(m-l[y],x),w=!t.middlewareData.shift;let A=O,P=b;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=g),w&&!d){const I=ot(l.left,0),C=ot(l.right,0),j=ot(l.top,0),k=ot(l.bottom,0);h?P=m-2*(I!==0||C!==0?I+C:ot(l.left,l.right)):A=p-2*(j!==0||k!==0?j+k:ot(l.top,l.bottom))}await c({...t,availableWidth:P,availableHeight:A});const T=await o.getDimensions(s.floating);return m!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Dc(){return typeof window<"u"}function ji(e){return HE(e)?(e.nodeName||"").toLowerCase():"#document"}function ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gt(e){var t;return(t=(HE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function HE(e){return Dc()?e instanceof Node||e instanceof ut(e).Node:!1}function Ct(e){return Dc()?e instanceof Element||e instanceof ut(e).Element:!1}function Wt(e){return Dc()?e instanceof HTMLElement||e instanceof ut(e).HTMLElement:!1}function jS(e){return!Dc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ut(e).ShadowRoot}const KG=new Set(["inline","contents"]);function Qa(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!KG.has(i)}const GG=new Set(["table","td","th"]);function YG(e){return GG.has(ji(e))}const XG=[":popover-open",":modal"];function Lc(e){return XG.some(t=>{try{return e.matches(t)}catch{return!1}})}const ZG=["transform","translate","scale","rotate","perspective"],JG=["transform","translate","scale","rotate","perspective","filter"],QG=["paint","layout","strict","content"];function Tm(e){const t=Cm(),r=Ct(e)?jt(e):e;return ZG.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||JG.some(n=>(r.willChange||"").includes(n))||QG.some(n=>(r.contain||"").includes(n))}function e8(e){let t=jr(e);for(;Wt(t)&&!pi(t);){if(Tm(t))return t;if(Lc(t))return null;t=jr(t)}return null}function Cm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const t8=new Set(["html","body","#document"]);function pi(e){return t8.has(ji(e))}function jt(e){return ut(e).getComputedStyle(e)}function Bc(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jr(e){if(ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jS(e)&&e.host||Gt(e);return jS(t)?t.host:t}function VE(e){const t=jr(e);return pi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wt(t)&&Qa(t)?t:VE(t)}function Ba(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=VE(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=ut(i);if(a){const s=Vh(o);return t.concat(o,o.visualViewport||[],Qa(i)?i:[],s&&r?Ba(s):[])}return t.concat(i,Ba(i,[],r))}function Vh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function KE(e){const t=jt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Wt(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=zs(r)!==a||zs(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function jm(e){return Ct(e)?e:e.contextElement}function Mn(e){const t=jm(e);if(!Wt(t))return qt(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=KE(t);let o=(a?zs(r.width):r.width)/n,s=(a?zs(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const r8=qt(0);function GE(e){const t=ut(e);return!Cm()||!t.visualViewport?r8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function n8(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ut(e)?!1:t}function sn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=jm(e);let o=qt(1);t&&(n?Ct(n)&&(o=Mn(n)):o=Mn(e));const s=n8(a,r,n)?GE(a):qt(0);let c=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,l=i.width/o.x,f=i.height/o.y;if(a){const d=ut(a),h=n&&Ct(n)?ut(n):n;let m=d,p=Vh(m);for(;p&&n&&h!==m;){const v=Mn(p),y=p.getBoundingClientRect(),g=jt(p),x=y.left+(p.clientLeft+parseFloat(g.paddingLeft))*v.x,O=y.top+(p.clientTop+parseFloat(g.paddingTop))*v.y;c*=v.x,u*=v.y,l*=v.x,f*=v.y,c+=x,u+=O,m=ut(p),p=Vh(m)}}return Us({width:l,height:f,x:c,y:u})}function Im(e,t){const r=Bc(e).scrollLeft;return t?t.left+r:sn(Gt(e)).left+r}function YE(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:Im(e,n)),a=n.top+t.scrollTop;return{x:i,y:a}}function i8(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=Gt(n),s=t?Lc(t.floating):!1;if(n===o||s&&a)return r;let c={scrollLeft:0,scrollTop:0},u=qt(1);const l=qt(0),f=Wt(n);if((f||!f&&!a)&&((ji(n)!=="body"||Qa(o))&&(c=Bc(n)),Wt(n))){const h=sn(n);u=Mn(n),l.x=h.x+n.clientLeft,l.y=h.y+n.clientTop}const d=o&&!f&&!a?YE(o,c,!0):qt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+d.x,y:r.y*u.y-c.scrollTop*u.y+l.y+d.y}}function a8(e){return Array.from(e.getClientRects())}function o8(e){const t=Gt(e),r=Bc(e),n=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ot(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Im(e);const s=-r.scrollTop;return jt(n).direction==="rtl"&&(o+=ot(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}function s8(e,t){const r=ut(e),n=Gt(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;const u=Cm();(!u||u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}const c8=new Set(["absolute","fixed"]);function u8(e,t){const r=sn(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Wt(e)?Mn(e):qt(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,u=n*a.y;return{width:o,height:s,x:c,y:u}}function IS(e,t,r){let n;if(t==="viewport")n=s8(e,r);else if(t==="document")n=o8(Gt(e));else if(Ct(t))n=u8(t,r);else{const i=GE(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Us(n)}function XE(e,t){const r=jr(e);return r===t||!Ct(r)||pi(r)?!1:jt(r).position==="fixed"||XE(r,t)}function l8(e,t){const r=t.get(e);if(r)return r;let n=Ba(e,[],!1).filter(s=>Ct(s)&&ji(s)!=="body"),i=null;const a=jt(e).position==="fixed";let o=a?jr(e):e;for(;Ct(o)&&!pi(o);){const s=jt(o),c=Tm(o);!c&&s.position==="fixed"&&(i=null),(a?!c&&!i:!c&&s.position==="static"&&!!i&&c8.has(i.position)||Qa(o)&&!c&&XE(e,o))?n=n.filter(l=>l!==o):i=s,o=jr(o)}return t.set(e,n),n}function f8(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Lc(t)?[]:l8(t,this._c):[].concat(r),n],s=o[0],c=o.reduce((u,l)=>{const f=IS(t,l,i);return u.top=ot(f.top,u.top),u.right=Cr(f.right,u.right),u.bottom=Cr(f.bottom,u.bottom),u.left=ot(f.left,u.left),u},IS(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function d8(e){const{width:t,height:r}=KE(e);return{width:t,height:r}}function p8(e,t,r){const n=Wt(t),i=Gt(t),a=r==="fixed",o=sn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=qt(0);function u(){c.x=Im(i)}if(n||!n&&!a)if((ji(t)!=="body"||Qa(i))&&(s=Bc(t)),n){const h=sn(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();a&&!n&&i&&u();const l=i&&!n&&!a?YE(i,s):qt(0),f=o.left+s.scrollLeft-c.x-l.x,d=o.top+s.scrollTop-c.y-l.y;return{x:f,y:d,width:o.width,height:o.height}}function dp(e){return jt(e).position==="static"}function kS(e,t){if(!Wt(e)||jt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Gt(e)===r&&(r=r.ownerDocument.body),r}function ZE(e,t){const r=ut(e);if(Lc(e))return r;if(!Wt(e)){let i=jr(e);for(;i&&!pi(i);){if(Ct(i)&&!dp(i))return i;i=jr(i)}return r}let n=kS(e,t);for(;n&&YG(n)&&dp(n);)n=kS(n,t);return n&&pi(n)&&dp(n)&&!Tm(n)?r:n||e8(e)||r}const h8=async function(e){const t=this.getOffsetParent||ZE,r=this.getDimensions,n=await r(e.floating);return{reference:p8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function v8(e){return jt(e).direction==="rtl"}const m8={convertOffsetParentRelativeRectToViewportRelativeRect:i8,getDocumentElement:Gt,getClippingRect:f8,getOffsetParent:ZE,getElementRects:h8,getClientRects:a8,getDimensions:d8,getScale:Mn,isElement:Ct,isRTL:v8};function JE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function y8(e,t){let r=null,n;const i=Gt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:l,top:f,width:d,height:h}=u;if(s||t(),!d||!h)return;const m=To(f),p=To(i.clientWidth-(l+d)),v=To(i.clientHeight-(f+h)),y=To(l),x={rootMargin:-m+"px "+-p+"px "+-v+"px "+-y+"px",threshold:ot(0,Cr(1,c))||1};let O=!0;function b(w){const A=w[0].intersectionRatio;if(A!==c){if(!O)return o();A?o(!1,A):n=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!JE(u,e.getBoundingClientRect())&&o(),O=!1}try{r=new IntersectionObserver(b,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(b,x)}r.observe(e)}return o(!0),a}function g8(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=jm(e),l=i||a?[...u?Ba(u):[],...Ba(t)]:[];l.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const f=u&&s?y8(u,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let m,p=c?sn(e):null;c&&v();function v(){const y=sn(e);p&&!JE(p,y)&&r(),p=y,m=requestAnimationFrame(v)}return r(),()=>{var y;l.forEach(g=>{i&&g.removeEventListener("scroll",r),a&&g.removeEventListener("resize",r)}),f?.(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const b8=WG,x8=UG,w8=qG,O8=VG,S8=FG,RS=BG,A8=HG,_8=(e,t,r)=>{const n=new Map,i={platform:m8,...r},a={...i.platform,_c:n};return LG(e,t,{...i,platform:a})};var P8=typeof document<"u",E8=function(){},ko=P8?S.useLayoutEffect:E8;function Hs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Hs(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!Hs(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function QE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function MS(e,t){const r=QE(e);return Math.round(t*r)/r}function pp(e){const t=E.useRef(e);return ko(()=>{t.current=e}),t}function T8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,f]=E.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(n);Hs(d,n)||h(n);const[m,p]=E.useState(null),[v,y]=E.useState(null),g=E.useCallback(M=>{M!==w.current&&(w.current=M,p(M))},[]),x=E.useCallback(M=>{M!==A.current&&(A.current=M,y(M))},[]),O=a||m,b=o||v,w=E.useRef(null),A=E.useRef(null),P=E.useRef(l),T=c!=null,I=pp(c),C=pp(i),j=pp(u),k=E.useCallback(()=>{if(!w.current||!A.current)return;const M={placement:t,strategy:r,middleware:d};C.current&&(M.platform=C.current),_8(w.current,A.current,M).then(U=>{const D={...U,isPositioned:j.current!==!1};$.current&&!Hs(P.current,D)&&(P.current=D,Ys.flushSync(()=>{f(D)}))})},[d,t,r,C,j]);ko(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);const $=E.useRef(!1);ko(()=>($.current=!0,()=>{$.current=!1}),[]),ko(()=>{if(O&&(w.current=O),b&&(A.current=b),O&&b){if(I.current)return I.current(O,b,k);k()}},[O,b,k,I,T]);const N=E.useMemo(()=>({reference:w,floating:A,setReference:g,setFloating:x}),[g,x]),R=E.useMemo(()=>({reference:O,floating:b}),[O,b]),L=E.useMemo(()=>{const M={position:r,left:0,top:0};if(!R.floating)return M;const U=MS(R.floating,l.x),D=MS(R.floating,l.y);return s?{...M,transform:"translate("+U+"px, "+D+"px)",...QE(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:U,top:D}},[r,s,R.floating,l.x,l.y]);return E.useMemo(()=>({...l,update:k,refs:N,elements:R,floatingStyles:L}),[l,k,N,R,L])}const C8=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?RS({element:n.current,padding:i}).fn(r):{}:n?RS({element:n,padding:i}).fn(r):{}}}},j8=(e,t)=>({...b8(e),options:[e,t]}),I8=(e,t)=>({...x8(e),options:[e,t]}),k8=(e,t)=>({...A8(e),options:[e,t]}),R8=(e,t)=>({...w8(e),options:[e,t]}),M8=(e,t)=>({...O8(e),options:[e,t]}),$8=(e,t)=>({...S8(e),options:[e,t]}),N8=(e,t)=>({...C8(e),options:[e,t]});var D8="Arrow",eT=E.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return _.jsx(le.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_.jsx("polygon",{points:"0,0 30,0 15,10"})})});eT.displayName=D8;var L8=eT,km="Popper",[tT,Rm]=kt(km),[B8,rT]=tT(km),nT=e=>{const{__scopePopper:t,children:r}=e,[n,i]=E.useState(null);return _.jsx(B8,{scope:t,anchor:n,onAnchorChange:i,children:r})};nT.displayName=km;var iT="PopperAnchor",aT=E.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=rT(iT,r),o=E.useRef(null),s=Ce(t,o),c=E.useRef(null);return E.useEffect(()=>{const u=c.current;c.current=n?.current||o.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:_.jsx(le.div,{...i,ref:s})});aT.displayName=iT;var Mm="PopperContent",[q8,F8]=tT(Mm),oT=E.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:m,...p}=e,v=rT(Mm,r),[y,g]=E.useState(null),x=Ce(t,H=>g(H)),[O,b]=E.useState(null),w=ME(O),A=w?.width??0,P=w?.height??0,T=n+(a!=="center"?"-"+a:""),I=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},C=Array.isArray(u)?u:[u],j=C.length>0,k={padding:I,boundary:C.filter(W8),altBoundary:j},{refs:$,floatingStyles:N,placement:R,isPositioned:L,middlewareData:M}=T8({strategy:"fixed",placement:T,whileElementsMounted:(...H)=>g8(...H,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[j8({mainAxis:i+P,alignmentAxis:o}),c&&I8({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?k8():void 0,...k}),c&&R8({...k}),M8({...k,apply:({elements:H,rects:Z,availableWidth:z,availableHeight:K})=>{const{width:X,height:B}=Z.reference,fe=H.floating.style;fe.setProperty("--radix-popper-available-width",`${z}px`),fe.setProperty("--radix-popper-available-height",`${K}px`),fe.setProperty("--radix-popper-anchor-width",`${X}px`),fe.setProperty("--radix-popper-anchor-height",`${B}px`)}}),O&&N8({element:O,padding:s}),U8({arrowWidth:A,arrowHeight:P}),d&&$8({strategy:"referenceHidden",...k})]}),[U,D]=uT(R),F=zt(m);Re(()=>{L&&F?.()},[L,F]);const W=M.arrow?.x,V=M.arrow?.y,Y=M.arrow?.centerOffset!==0,[re,ne]=E.useState();return Re(()=>{y&&ne(window.getComputedStyle(y).zIndex)},[y]),_.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:L?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:_.jsx(q8,{scope:r,placedSide:U,onArrowChange:b,arrowX:W,arrowY:V,shouldHideArrow:Y,children:_.jsx(le.div,{"data-side":U,"data-align":D,...p,ref:x,style:{...p.style,animation:L?void 0:"none"}})})})});oT.displayName=Mm;var sT="PopperArrow",z8={top:"bottom",right:"left",bottom:"top",left:"right"},cT=E.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=F8(sT,n),o=z8[a.placedSide];return _.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_.jsx(L8,{...i,ref:r,style:{...i.style,display:"block"}})})});cT.displayName=sT;function W8(e){return e!==null}var U8=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,l]=uT(r),f={start:"0%",center:"50%",end:"100%"}[l],d=(i.arrow?.x??0)+s/2,h=(i.arrow?.y??0)+c/2;let m="",p="";return u==="bottom"?(m=o?f:`${d}px`,p=`${-c}px`):u==="top"?(m=o?f:`${d}px`,p=`${n.floating.height+c}px`):u==="right"?(m=`${-c}px`,p=o?f:`${h}px`):u==="left"&&(m=`${n.floating.width+c}px`,p=o?f:`${h}px`),{data:{x:m,y:p}}}});function uT(e){const[t,r="center"]=e.split("-");return[t,r]}var lT=nT,fT=aT,dT=oT,pT=cT,hp="rovingFocusGroup.onEntryFocus",H8={bubbles:!1,cancelable:!0},eo="RovingFocusGroup",[Kh,hT,V8]=lm(eo),[K8,vT]=kt(eo,[V8]),[G8,Y8]=K8(eo),mT=E.forwardRef((e,t)=>_.jsx(Kh.Provider,{scope:e.__scopeRovingFocusGroup,children:_.jsx(Kh.Slot,{scope:e.__scopeRovingFocusGroup,children:_.jsx(X8,{...e,ref:t})})}));mT.displayName=eo;var X8=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:l=!1,...f}=e,d=E.useRef(null),h=Ce(t,d),m=kc(a),[p,v]=lr({prop:o,defaultProp:s??null,onChange:c,caller:eo}),[y,g]=E.useState(!1),x=zt(u),O=hT(r),b=E.useRef(!1),[w,A]=E.useState(0);return E.useEffect(()=>{const P=d.current;if(P)return P.addEventListener(hp,x),()=>P.removeEventListener(hp,x)},[x]),_.jsx(G8,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:p,onItemFocus:E.useCallback(P=>v(P),[v]),onItemShiftTab:E.useCallback(()=>g(!0),[]),onFocusableItemAdd:E.useCallback(()=>A(P=>P+1),[]),onFocusableItemRemove:E.useCallback(()=>A(P=>P-1),[]),children:_.jsx(le.div,{tabIndex:y||w===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{b.current=!0}),onFocus:he(e.onFocus,P=>{const T=!b.current;if(P.target===P.currentTarget&&T&&!y){const I=new CustomEvent(hp,H8);if(P.currentTarget.dispatchEvent(I),!I.defaultPrevented){const C=O().filter(R=>R.focusable),j=C.find(R=>R.active),k=C.find(R=>R.id===p),N=[j,k,...C].filter(Boolean).map(R=>R.ref.current);bT(N,l)}}b.current=!1}),onBlur:he(e.onBlur,()=>g(!1))})})}),yT="RovingFocusGroupItem",gT=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Lr(),u=a||c,l=Y8(yT,r),f=l.currentTabStopId===u,d=hT(r),{onFocusableItemAdd:h,onFocusableItemRemove:m,currentTabStopId:p}=l;return E.useEffect(()=>{if(n)return h(),()=>m()},[n,h,m]),_.jsx(Kh.ItemSlot,{scope:r,id:u,focusable:n,active:i,children:_.jsx(le.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,v=>{n?l.onItemFocus(u):v.preventDefault()}),onFocus:he(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:he(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){l.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=Q8(v,l.orientation,l.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=d().filter(O=>O.focusable).map(O=>O.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const O=x.indexOf(v.currentTarget);x=l.loop?e6(x,O+1):x.slice(O+1)}setTimeout(()=>bT(x))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:p!=null}):o})})});gT.displayName=yT;var Z8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function J8(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Q8(e,t,r){const n=J8(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Z8[n]}function bT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function e6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var t6=mT,r6=gT,n6="Label",xT=E.forwardRef((e,t)=>_.jsx(le.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));xT.displayName=n6;var i6=xT;function $S(e,[t,r]){return Math.min(r,Math.max(t,e))}var $m="Progress",Nm=100,[a6]=kt($m),[o6,s6]=a6($m),wT=E.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:a=c6,...o}=e;(i||i===0)&&!NS(i)&&console.error(u6(`${i}`,"Progress"));const s=NS(i)?i:Nm;n!==null&&!DS(n,s)&&console.error(l6(`${n}`,"Progress"));const c=DS(n,s)?n:null,u=Vs(c)?a(c,s):void 0;return _.jsx(o6,{scope:r,value:c,max:s,children:_.jsx(le.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Vs(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":AT(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});wT.displayName=$m;var OT="ProgressIndicator",ST=E.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,i=s6(OT,r);return _.jsx(le.div,{"data-state":AT(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:t})});ST.displayName=OT;function c6(e,t){return`${Math.round(e/t*100)}%`}function AT(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Vs(e){return typeof e=="number"}function NS(e){return Vs(e)&&!isNaN(e)&&e>0}function DS(e,t){return Vs(e)&&!isNaN(e)&&e<=t&&e>=0}function u6(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Nm}\`.`}function l6(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
255
+ `)},sG=0,Sn=[];function cG(e){var t=E.useRef([]),r=E.useRef([0,0]),n=E.useRef(),i=E.useState(sG++)[0],a=E.useState(wE)[0],o=E.useRef(e);E.useEffect(function(){o.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=C5([e.lockRef.current],(e.shards||[]).map(wS),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=E.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=Ao(p),g=r.current,x="deltaX"in p?p.deltaX:g[0]-y[0],O="deltaY"in p?p.deltaY:g[1]-y[1],b,w=p.target,A=Math.abs(x)>Math.abs(O)?"h":"v";if("touches"in p&&A==="h"&&w.type==="range")return!1;var P=bS(A,w);if(!P)return!0;if(P?b=A:(b=A==="v"?"h":"v",P=bS(A,w)),!P)return!1;if(!n.current&&"changedTouches"in p&&(x||O)&&(n.current=b),!b)return!0;var T=n.current||b;return iG(T,v,p,T==="h"?x:O)},[]),c=E.useCallback(function(p){var v=p;if(!(!Sn.length||Sn[Sn.length-1]!==a)){var y="deltaY"in v?xS(v):Ao(v),g=t.current.filter(function(b){return b.name===v.type&&(b.target===v.target||v.target===b.shadowParent)&&aG(b.delta,y)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}if(!g){var x=(o.current.shards||[]).map(wS).filter(Boolean).filter(function(b){return b.contains(v.target)}),O=x.length>0?s(v,x[0]):!o.current.noIsolation;O&&v.cancelable&&v.preventDefault()}}},[]),u=E.useCallback(function(p,v,y,g){var x={name:p,delta:v,target:y,should:g,shadowParent:uG(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(O){return O!==x})},1)},[]),l=E.useCallback(function(p){r.current=Ao(p),n.current=void 0},[]),f=E.useCallback(function(p){u(p.type,xS(p),p.target,s(p,e.lockRef.current))},[]),d=E.useCallback(function(p){u(p.type,Ao(p),p.target,s(p,e.lockRef.current))},[]);E.useEffect(function(){return Sn.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,On),document.addEventListener("touchmove",c,On),document.addEventListener("touchstart",l,On),function(){Sn=Sn.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,On),document.removeEventListener("touchmove",c,On),document.removeEventListener("touchstart",l,On)}},[]);var h=e.removeScrollBar,m=e.inert;return E.createElement(E.Fragment,null,m?E.createElement(a,{styles:oG(i)}):null,h?E.createElement(Z5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uG(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lG=L5(xE,cG);var Sm=E.forwardRef(function(e,t){return E.createElement($c,Mt({},e,{ref:t,sideCar:lG}))});Sm.classNames=$c.classNames;var fG=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},An=new WeakMap,_o=new WeakMap,Po={},lp=0,_E=function(e){return e&&(e.host||_E(e.parentNode))},dG=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=_E(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},pG=function(e,t,r,n){var i=dG(t,Array.isArray(e)?e:[e]);Po[r]||(Po[r]=new WeakMap);var a=Po[r],o=[],s=new Set,c=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var l=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))l(d);else try{var h=d.getAttribute(n),m=h!==null&&h!=="false",p=(An.get(d)||0)+1,v=(a.get(d)||0)+1;An.set(d,p),a.set(d,v),o.push(d),p===1&&m&&_o.set(d,!0),v===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return l(t),s.clear(),lp++,function(){o.forEach(function(f){var d=An.get(f)-1,h=a.get(f)-1;An.set(f,d),a.set(f,h),d||(_o.has(f)||f.removeAttribute(n),_o.delete(f)),h||f.removeAttribute(r)}),lp--,lp||(An=new WeakMap,An=new WeakMap,_o=new WeakMap,Po={})}},PE=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=fG(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),pG(n,i,r,"aria-hidden")):function(){return null}},Eo={exports:{}},fp={};var OS;function hG(){if(OS)return fp;OS=1;var e=S;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(f,d){var h=d(),m=n({inst:{value:h,getSnapshot:d}}),p=m[0].inst,v=m[1];return a(function(){p.value=h,p.getSnapshot=d,c(p)&&v({inst:p})},[f,h,d]),i(function(){return c(p)&&v({inst:p}),f(function(){c(p)&&v({inst:p})})},[f]),o(h),h}function c(f){var d=f.getSnapshot;f=f.value;try{var h=d();return!r(f,h)}catch{return!0}}function u(f,d){return d()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return fp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,fp}var dp={};var SS;function vG(){return SS||(SS=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){l||i.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=m();if(!f){var v=m();a(p,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=o({inst:{value:p,getSnapshot:m}});var y=v[0].inst,g=v[1];return c(function(){y.value=p,y.getSnapshot=m,r(y)&&g({inst:y})},[h,p,m]),s(function(){return r(y)&&g({inst:y}),h(function(){r(y)&&g({inst:y})})},[h]),u(p),p}function r(h){var m=h.getSnapshot;h=h.value;try{var p=m();return!a(h,p)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=S,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,c=i.useLayoutEffect,u=i.useDebugValue,l=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;dp.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),dp}var AS;function mG(){return AS||(AS=1,process.env.NODE_ENV==="production"?Eo.exports=hG():Eo.exports=vG()),Eo.exports}var yG=mG();function EE(){return yG.useSyncExternalStore(gG,()=>!0,()=>!1)}function gG(){return()=>{}}var Am="Avatar",[bG]=kt(Am),[xG,TE]=bG(Am),CE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[i,a]=E.useState("idle");return _.jsx(xG,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:_.jsx(le.span,{...n,ref:t})})});CE.displayName=Am;var jE="AvatarImage",IE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...a}=e,o=TE(jE,r),s=wG(n,a),c=zt(u=>{i(u),o.onImageLoadingStatusChange(u)});return Re(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?_.jsx(le.img,{...a,ref:t,src:n}):null});IE.displayName=jE;var kE="AvatarFallback",RE=E.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...i}=e,a=TE(kE,r),[o,s]=E.useState(n===void 0);return E.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(c)}},[n]),o&&a.imageLoadingStatus!=="loaded"?_.jsx(le.span,{...i,ref:t}):null});RE.displayName=kE;function _S(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function wG(e,{referrerPolicy:t,crossOrigin:r}){const n=EE(),i=E.useRef(null),a=n?(i.current||(i.current=new window.Image),i.current):null,[o,s]=E.useState(()=>_S(a,e));return Re(()=>{s(_S(a,e))},[a,e]),Re(()=>{const c=f=>()=>{s(f)};if(!a)return;const u=c("loaded"),l=c("error");return a.addEventListener("load",u),a.addEventListener("error",l),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",l)}},[a,r,t]),o}var OG=CE,SG=IE,AG=RE;function ME(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function $E(e){const[t,r]=E.useState(void 0);return Re(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Nc="Checkbox",[_G]=kt(Nc),[PG,_m]=_G(Nc);function EG(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:u,value:l="on",internal_do_not_use_render:f}=e,[d,h]=lr({prop:r,defaultProp:i??!1,onChange:c,caller:Nc}),[m,p]=E.useState(null),[v,y]=E.useState(null),g=E.useRef(!1),x=m?!!o||!!m.closest("form"):!0,O={checked:d,disabled:a,setChecked:h,control:m,setControl:p,name:s,form:o,value:l,hasConsumerStoppedPropagationRef:g,required:u,defaultChecked:Er(i)?!1:i,isFormControl:x,bubbleInput:v,setBubbleInput:y};return _.jsx(PG,{scope:t,...O,children:TG(f)?f(O):n})}var NE="CheckboxTrigger",DE=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:a,value:o,disabled:s,checked:c,required:u,setControl:l,setChecked:f,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:m}=_m(NE,e),p=Ce(i,l),v=E.useRef(c);return E.useEffect(()=>{const y=a?.form;if(y){const g=()=>f(v.current);return y.addEventListener("reset",g),()=>y.removeEventListener("reset",g)}},[a,f]),_.jsx(le.button,{type:"button",role:"checkbox","aria-checked":Er(c)?"mixed":c,"aria-required":u,"data-state":WE(c),"data-disabled":s?"":void 0,disabled:s,value:o,...n,ref:p,onKeyDown:he(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:he(r,y=>{f(g=>Er(g)?!0:!g),m&&h&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})})});DE.displayName=NE;var LE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:u,form:l,...f}=e;return _.jsx(EG,{__scopeCheckbox:r,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:u,name:n,form:l,value:c,internal_do_not_use_render:({isFormControl:d})=>_.jsxs(_.Fragment,{children:[_.jsx(DE,{...f,ref:t,__scopeCheckbox:r}),d&&_.jsx(zE,{__scopeCheckbox:r})]})})});LE.displayName=Nc;var BE="CheckboxIndicator",qE=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,a=_m(BE,r);return _.jsx(Ja,{present:n||Er(a.checked)||a.checked===!0,children:_.jsx(le.span,{"data-state":WE(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});qE.displayName=BE;var FE="CheckboxBubbleInput",zE=E.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:u,value:l,form:f,bubbleInput:d,setBubbleInput:h}=_m(FE,e),m=Ce(r,h),p=ME(a),v=$E(n);E.useEffect(()=>{const g=d;if(!g)return;const x=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(x,"checked").set,w=!i.current;if(p!==a&&b){const A=new Event("click",{bubbles:w});g.indeterminate=Er(a),b.call(g,Er(a)?!1:a),g.dispatchEvent(A)}},[d,p,a,i]);const y=E.useRef(Er(a)?!1:a);return _.jsx(le.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:s,disabled:c,name:u,value:l,form:f,...t,tabIndex:-1,ref:m,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});zE.displayName=FE;function TG(e){return typeof e=="function"}function Er(e){return e==="indeterminate"}function WE(e){return Er(e)?"indeterminate":e?"checked":"unchecked"}const CG=["top","right","bottom","left"],Cr=Math.min,ot=Math.max,zs=Math.round,To=Math.floor,qt=e=>({x:e,y:e}),jG={left:"right",right:"left",bottom:"top",top:"bottom"},IG={start:"end",end:"start"};function Hh(e,t,r){return ot(e,Cr(t,r))}function fr(e,t){return typeof e=="function"?e(t):e}function dr(e){return e.split("-")[0]}function Ci(e){return e.split("-")[1]}function Pm(e){return e==="x"?"y":"x"}function Em(e){return e==="y"?"height":"width"}const kG=new Set(["top","bottom"]);function Dt(e){return kG.has(dr(e))?"y":"x"}function Tm(e){return Pm(Dt(e))}function RG(e,t,r){r===void 0&&(r=!1);const n=Ci(e),i=Tm(e),a=Em(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Ws(o)),[o,Ws(o)]}function MG(e){const t=Ws(e);return[Vh(e),t,Vh(t)]}function Vh(e){return e.replace(/start|end/g,t=>IG[t])}const PS=["left","right"],ES=["right","left"],$G=["top","bottom"],NG=["bottom","top"];function DG(e,t,r){switch(e){case"top":case"bottom":return r?t?ES:PS:t?PS:ES;case"left":case"right":return t?$G:NG;default:return[]}}function LG(e,t,r,n){const i=Ci(e);let a=DG(dr(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Vh)))),a}function Ws(e){return e.replace(/left|right|bottom|top/g,t=>jG[t])}function BG(e){return{top:0,right:0,bottom:0,left:0,...e}}function UE(e){return typeof e!="number"?BG(e):{top:e,right:e,bottom:e,left:e}}function Us(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function TS(e,t,r){let{reference:n,floating:i}=e;const a=Dt(t),o=Tm(t),s=Em(o),c=dr(t),u=a==="y",l=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(c){case"top":h={x:l,y:n.y-i.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Ci(t)){case"start":h[o]-=d*(r&&u?-1:1);break;case"end":h[o]+=d*(r&&u?-1:1);break}return h}const qG=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:f}=TS(u,n,c),d=n,h={},m=0;for(let p=0;p<s.length;p++){const{name:v,fn:y}=s[p],{x:g,y:x,data:O,reset:b}=await y({x:l,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});l=g??l,f=x??f,h={...h,[v]:{...h[v],...O}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(u=b.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:l,y:f}=TS(u,d,c)),p=-1)}return{x:l,y:f,placement:d,strategy:i,middlewareData:h}};async function La(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=fr(t,e),m=UE(h),v=s[d?f==="floating"?"reference":"floating":f],y=Us(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),g=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),O=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},b=Us(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:x,strategy:c}):g);return{top:(y.top-b.top+m.top)/O.y,bottom:(b.bottom-y.bottom+m.bottom)/O.y,left:(y.left-b.left+m.left)/O.x,right:(b.right-y.right+m.right)/O.x}}const FG=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=fr(e,t)||{};if(u==null)return{};const f=UE(l),d={x:r,y:n},h=Tm(i),m=Em(h),p=await o.getDimensions(u),v=h==="y",y=v?"top":"left",g=v?"bottom":"right",x=v?"clientHeight":"clientWidth",O=a.reference[m]+a.reference[h]-d[h]-a.floating[m],b=d[h]-a.reference[h],w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let A=w?w[x]:0;(!A||!await(o.isElement==null?void 0:o.isElement(w)))&&(A=s.floating[x]||a.floating[m]);const P=O/2-b/2,T=A/2-p[m]/2-1,I=Cr(f[y],T),C=Cr(f[g],T),j=I,k=A-p[m]-C,$=A/2-p[m]/2+P,N=Hh(j,$,k),R=!c.arrow&&Ci(i)!=null&&$!==N&&a.reference[m]/2-($<j?I:C)-p[m]/2<0,L=R?$<j?$-j:$-k:0;return{[h]:d[h]+L,data:{[h]:N,centerOffset:$-N-L,...R&&{alignmentOffset:L}},reset:R}}}),zG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...v}=fr(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=dr(i),g=Dt(s),x=dr(s)===s,O=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=d||(x||!p?[Ws(s)]:MG(s)),w=m!=="none";!d&&w&&b.push(...LG(s,p,m,O));const A=[s,...b],P=await La(t,v),T=[];let I=((n=a.flip)==null?void 0:n.overflows)||[];if(l&&T.push(P[y]),f){const $=RG(i,o,O);T.push(P[$[0]],P[$[1]])}if(I=[...I,{placement:i,overflows:T}],!T.every($=>$<=0)){var C,j;const $=(((C=a.flip)==null?void 0:C.index)||0)+1,N=A[$];if(N&&(!(f==="alignment"?g!==Dt(N):!1)||I.every(M=>Dt(M.placement)===g?M.overflows[0]>0:!0)))return{data:{index:$,overflows:I},reset:{placement:N}};let R=(j=I.filter(L=>L.overflows[0]<=0).sort((L,M)=>L.overflows[1]-M.overflows[1])[0])==null?void 0:j.placement;if(!R)switch(h){case"bestFit":{var k;const L=(k=I.filter(M=>{if(w){const U=Dt(M.placement);return U===g||U==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(U=>U>0).reduce((U,D)=>U+D,0)]).sort((M,U)=>M[1]-U[1])[0])==null?void 0:k[0];L&&(R=L);break}case"initialPlacement":R=s;break}if(i!==R)return{reset:{placement:R}}}return{}}}};function CS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jS(e){return CG.some(t=>e[t]>=0)}const WG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=fr(e,t);switch(n){case"referenceHidden":{const a=await La(t,{...i,elementContext:"reference"}),o=CS(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:jS(o)}}}case"escaped":{const a=await La(t,{...i,altBoundary:!0}),o=CS(a,r.floating);return{data:{escapedOffsets:o,escaped:jS(o)}}}default:return{}}}}},HE=new Set(["left","top"]);async function UG(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=dr(r),s=Ci(r),c=Dt(r)==="y",u=HE.has(o)?-1:1,l=a&&c?-1:1,f=fr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*l,y:d*u}:{x:d*u,y:h*l}}const HG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:s}=t,c=await UG(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},VG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:y,y:g}=v;return{x:y,y:g}}},...c}=fr(e,t),u={x:r,y:n},l=await La(t,c),f=Dt(dr(i)),d=Pm(f);let h=u[d],m=u[f];if(a){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",g=h+l[v],x=h-l[y];h=Hh(g,h,x)}if(o){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",g=m+l[v],x=m-l[y];m=Hh(g,m,x)}const p=s.fn({...t,[d]:h,[f]:m});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[d]:a,[f]:o}}}}}},KG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=fr(e,t),l={x:r,y:n},f=Dt(i),d=Pm(f);let h=l[d],m=l[f];const p=fr(s,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=d==="y"?"height":"width",O=a.reference[d]-a.floating[x]+v.mainAxis,b=a.reference[d]+a.reference[x]-v.mainAxis;h<O?h=O:h>b&&(h=b)}if(u){var y,g;const x=d==="y"?"width":"height",O=HE.has(dr(i)),b=a.reference[f]-a.floating[x]+(O&&((y=o.offset)==null?void 0:y[f])||0)+(O?0:v.crossAxis),w=a.reference[f]+a.reference[x]+(O?0:((g=o.offset)==null?void 0:g[f])||0)-(O?v.crossAxis:0);m<b?m=b:m>w&&(m=w)}return{[d]:h,[f]:m}}}},GG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...u}=fr(e,t),l=await La(t,u),f=dr(i),d=Ci(i),h=Dt(i)==="y",{width:m,height:p}=a.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=f,v=d==="end"?"top":"bottom");const g=p-l.top-l.bottom,x=m-l.left-l.right,O=Cr(p-l[v],g),b=Cr(m-l[y],x),w=!t.middlewareData.shift;let A=O,P=b;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=g),w&&!d){const I=ot(l.left,0),C=ot(l.right,0),j=ot(l.top,0),k=ot(l.bottom,0);h?P=m-2*(I!==0||C!==0?I+C:ot(l.left,l.right)):A=p-2*(j!==0||k!==0?j+k:ot(l.top,l.bottom))}await c({...t,availableWidth:P,availableHeight:A});const T=await o.getDimensions(s.floating);return m!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Dc(){return typeof window<"u"}function ji(e){return VE(e)?(e.nodeName||"").toLowerCase():"#document"}function ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gt(e){var t;return(t=(VE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function VE(e){return Dc()?e instanceof Node||e instanceof ut(e).Node:!1}function Ct(e){return Dc()?e instanceof Element||e instanceof ut(e).Element:!1}function Wt(e){return Dc()?e instanceof HTMLElement||e instanceof ut(e).HTMLElement:!1}function IS(e){return!Dc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ut(e).ShadowRoot}const YG=new Set(["inline","contents"]);function Qa(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!YG.has(i)}const XG=new Set(["table","td","th"]);function ZG(e){return XG.has(ji(e))}const JG=[":popover-open",":modal"];function Lc(e){return JG.some(t=>{try{return e.matches(t)}catch{return!1}})}const QG=["transform","translate","scale","rotate","perspective"],e8=["transform","translate","scale","rotate","perspective","filter"],t8=["paint","layout","strict","content"];function Cm(e){const t=jm(),r=Ct(e)?jt(e):e;return QG.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||e8.some(n=>(r.willChange||"").includes(n))||t8.some(n=>(r.contain||"").includes(n))}function r8(e){let t=jr(e);for(;Wt(t)&&!pi(t);){if(Cm(t))return t;if(Lc(t))return null;t=jr(t)}return null}function jm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const n8=new Set(["html","body","#document"]);function pi(e){return n8.has(ji(e))}function jt(e){return ut(e).getComputedStyle(e)}function Bc(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jr(e){if(ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||IS(e)&&e.host||Gt(e);return IS(t)?t.host:t}function KE(e){const t=jr(e);return pi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wt(t)&&Qa(t)?t:KE(t)}function Ba(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=KE(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=ut(i);if(a){const s=Kh(o);return t.concat(o,o.visualViewport||[],Qa(i)?i:[],s&&r?Ba(s):[])}return t.concat(i,Ba(i,[],r))}function Kh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function GE(e){const t=jt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Wt(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=zs(r)!==a||zs(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function Im(e){return Ct(e)?e:e.contextElement}function Mn(e){const t=Im(e);if(!Wt(t))return qt(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=GE(t);let o=(a?zs(r.width):r.width)/n,s=(a?zs(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const i8=qt(0);function YE(e){const t=ut(e);return!jm()||!t.visualViewport?i8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function a8(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ut(e)?!1:t}function sn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=Im(e);let o=qt(1);t&&(n?Ct(n)&&(o=Mn(n)):o=Mn(e));const s=a8(a,r,n)?YE(a):qt(0);let c=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,l=i.width/o.x,f=i.height/o.y;if(a){const d=ut(a),h=n&&Ct(n)?ut(n):n;let m=d,p=Kh(m);for(;p&&n&&h!==m;){const v=Mn(p),y=p.getBoundingClientRect(),g=jt(p),x=y.left+(p.clientLeft+parseFloat(g.paddingLeft))*v.x,O=y.top+(p.clientTop+parseFloat(g.paddingTop))*v.y;c*=v.x,u*=v.y,l*=v.x,f*=v.y,c+=x,u+=O,m=ut(p),p=Kh(m)}}return Us({width:l,height:f,x:c,y:u})}function km(e,t){const r=Bc(e).scrollLeft;return t?t.left+r:sn(Gt(e)).left+r}function XE(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:km(e,n)),a=n.top+t.scrollTop;return{x:i,y:a}}function o8(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=Gt(n),s=t?Lc(t.floating):!1;if(n===o||s&&a)return r;let c={scrollLeft:0,scrollTop:0},u=qt(1);const l=qt(0),f=Wt(n);if((f||!f&&!a)&&((ji(n)!=="body"||Qa(o))&&(c=Bc(n)),Wt(n))){const h=sn(n);u=Mn(n),l.x=h.x+n.clientLeft,l.y=h.y+n.clientTop}const d=o&&!f&&!a?XE(o,c,!0):qt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+d.x,y:r.y*u.y-c.scrollTop*u.y+l.y+d.y}}function s8(e){return Array.from(e.getClientRects())}function c8(e){const t=Gt(e),r=Bc(e),n=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ot(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+km(e);const s=-r.scrollTop;return jt(n).direction==="rtl"&&(o+=ot(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}function u8(e,t){const r=ut(e),n=Gt(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;const u=jm();(!u||u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}const l8=new Set(["absolute","fixed"]);function f8(e,t){const r=sn(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Wt(e)?Mn(e):qt(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,u=n*a.y;return{width:o,height:s,x:c,y:u}}function kS(e,t,r){let n;if(t==="viewport")n=u8(e,r);else if(t==="document")n=c8(Gt(e));else if(Ct(t))n=f8(t,r);else{const i=YE(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Us(n)}function ZE(e,t){const r=jr(e);return r===t||!Ct(r)||pi(r)?!1:jt(r).position==="fixed"||ZE(r,t)}function d8(e,t){const r=t.get(e);if(r)return r;let n=Ba(e,[],!1).filter(s=>Ct(s)&&ji(s)!=="body"),i=null;const a=jt(e).position==="fixed";let o=a?jr(e):e;for(;Ct(o)&&!pi(o);){const s=jt(o),c=Cm(o);!c&&s.position==="fixed"&&(i=null),(a?!c&&!i:!c&&s.position==="static"&&!!i&&l8.has(i.position)||Qa(o)&&!c&&ZE(e,o))?n=n.filter(l=>l!==o):i=s,o=jr(o)}return t.set(e,n),n}function p8(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Lc(t)?[]:d8(t,this._c):[].concat(r),n],s=o[0],c=o.reduce((u,l)=>{const f=kS(t,l,i);return u.top=ot(f.top,u.top),u.right=Cr(f.right,u.right),u.bottom=Cr(f.bottom,u.bottom),u.left=ot(f.left,u.left),u},kS(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function h8(e){const{width:t,height:r}=GE(e);return{width:t,height:r}}function v8(e,t,r){const n=Wt(t),i=Gt(t),a=r==="fixed",o=sn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=qt(0);function u(){c.x=km(i)}if(n||!n&&!a)if((ji(t)!=="body"||Qa(i))&&(s=Bc(t)),n){const h=sn(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();a&&!n&&i&&u();const l=i&&!n&&!a?XE(i,s):qt(0),f=o.left+s.scrollLeft-c.x-l.x,d=o.top+s.scrollTop-c.y-l.y;return{x:f,y:d,width:o.width,height:o.height}}function pp(e){return jt(e).position==="static"}function RS(e,t){if(!Wt(e)||jt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Gt(e)===r&&(r=r.ownerDocument.body),r}function JE(e,t){const r=ut(e);if(Lc(e))return r;if(!Wt(e)){let i=jr(e);for(;i&&!pi(i);){if(Ct(i)&&!pp(i))return i;i=jr(i)}return r}let n=RS(e,t);for(;n&&ZG(n)&&pp(n);)n=RS(n,t);return n&&pi(n)&&pp(n)&&!Cm(n)?r:n||r8(e)||r}const m8=async function(e){const t=this.getOffsetParent||JE,r=this.getDimensions,n=await r(e.floating);return{reference:v8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function y8(e){return jt(e).direction==="rtl"}const g8={convertOffsetParentRelativeRectToViewportRelativeRect:o8,getDocumentElement:Gt,getClippingRect:p8,getOffsetParent:JE,getElementRects:m8,getClientRects:s8,getDimensions:h8,getScale:Mn,isElement:Ct,isRTL:y8};function QE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function b8(e,t){let r=null,n;const i=Gt(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:l,top:f,width:d,height:h}=u;if(s||t(),!d||!h)return;const m=To(f),p=To(i.clientWidth-(l+d)),v=To(i.clientHeight-(f+h)),y=To(l),x={rootMargin:-m+"px "+-p+"px "+-v+"px "+-y+"px",threshold:ot(0,Cr(1,c))||1};let O=!0;function b(w){const A=w[0].intersectionRatio;if(A!==c){if(!O)return o();A?o(!1,A):n=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!QE(u,e.getBoundingClientRect())&&o(),O=!1}try{r=new IntersectionObserver(b,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(b,x)}r.observe(e)}return o(!0),a}function x8(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Im(e),l=i||a?[...u?Ba(u):[],...Ba(t)]:[];l.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const f=u&&s?b8(u,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let m,p=c?sn(e):null;c&&v();function v(){const y=sn(e);p&&!QE(p,y)&&r(),p=y,m=requestAnimationFrame(v)}return r(),()=>{var y;l.forEach(g=>{i&&g.removeEventListener("scroll",r),a&&g.removeEventListener("resize",r)}),f?.(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const w8=HG,O8=VG,S8=zG,A8=GG,_8=WG,MS=FG,P8=KG,E8=(e,t,r)=>{const n=new Map,i={platform:g8,...r},a={...i.platform,_c:n};return qG(e,t,{...i,platform:a})};var T8=typeof document<"u",C8=function(){},ko=T8?S.useLayoutEffect:C8;function Hs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Hs(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!Hs(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function eT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $S(e,t){const r=eT(e);return Math.round(t*r)/r}function hp(e){const t=E.useRef(e);return ko(()=>{t.current=e}),t}function j8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,f]=E.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(n);Hs(d,n)||h(n);const[m,p]=E.useState(null),[v,y]=E.useState(null),g=E.useCallback(M=>{M!==w.current&&(w.current=M,p(M))},[]),x=E.useCallback(M=>{M!==A.current&&(A.current=M,y(M))},[]),O=a||m,b=o||v,w=E.useRef(null),A=E.useRef(null),P=E.useRef(l),T=c!=null,I=hp(c),C=hp(i),j=hp(u),k=E.useCallback(()=>{if(!w.current||!A.current)return;const M={placement:t,strategy:r,middleware:d};C.current&&(M.platform=C.current),E8(w.current,A.current,M).then(U=>{const D={...U,isPositioned:j.current!==!1};$.current&&!Hs(P.current,D)&&(P.current=D,Ys.flushSync(()=>{f(D)}))})},[d,t,r,C,j]);ko(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);const $=E.useRef(!1);ko(()=>($.current=!0,()=>{$.current=!1}),[]),ko(()=>{if(O&&(w.current=O),b&&(A.current=b),O&&b){if(I.current)return I.current(O,b,k);k()}},[O,b,k,I,T]);const N=E.useMemo(()=>({reference:w,floating:A,setReference:g,setFloating:x}),[g,x]),R=E.useMemo(()=>({reference:O,floating:b}),[O,b]),L=E.useMemo(()=>{const M={position:r,left:0,top:0};if(!R.floating)return M;const U=$S(R.floating,l.x),D=$S(R.floating,l.y);return s?{...M,transform:"translate("+U+"px, "+D+"px)",...eT(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:U,top:D}},[r,s,R.floating,l.x,l.y]);return E.useMemo(()=>({...l,update:k,refs:N,elements:R,floatingStyles:L}),[l,k,N,R,L])}const I8=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?MS({element:n.current,padding:i}).fn(r):{}:n?MS({element:n,padding:i}).fn(r):{}}}},k8=(e,t)=>({...w8(e),options:[e,t]}),R8=(e,t)=>({...O8(e),options:[e,t]}),M8=(e,t)=>({...P8(e),options:[e,t]}),$8=(e,t)=>({...S8(e),options:[e,t]}),N8=(e,t)=>({...A8(e),options:[e,t]}),D8=(e,t)=>({..._8(e),options:[e,t]}),L8=(e,t)=>({...I8(e),options:[e,t]});var B8="Arrow",tT=E.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return _.jsx(le.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:_.jsx("polygon",{points:"0,0 30,0 15,10"})})});tT.displayName=B8;var q8=tT,Rm="Popper",[rT,Mm]=kt(Rm),[F8,nT]=rT(Rm),iT=e=>{const{__scopePopper:t,children:r}=e,[n,i]=E.useState(null);return _.jsx(F8,{scope:t,anchor:n,onAnchorChange:i,children:r})};iT.displayName=Rm;var aT="PopperAnchor",oT=E.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=nT(aT,r),o=E.useRef(null),s=Ce(t,o),c=E.useRef(null);return E.useEffect(()=>{const u=c.current;c.current=n?.current||o.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:_.jsx(le.div,{...i,ref:s})});oT.displayName=aT;var $m="PopperContent",[z8,W8]=rT($m),sT=E.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:m,...p}=e,v=nT($m,r),[y,g]=E.useState(null),x=Ce(t,H=>g(H)),[O,b]=E.useState(null),w=$E(O),A=w?.width??0,P=w?.height??0,T=n+(a!=="center"?"-"+a:""),I=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},C=Array.isArray(u)?u:[u],j=C.length>0,k={padding:I,boundary:C.filter(H8),altBoundary:j},{refs:$,floatingStyles:N,placement:R,isPositioned:L,middlewareData:M}=j8({strategy:"fixed",placement:T,whileElementsMounted:(...H)=>x8(...H,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[k8({mainAxis:i+P,alignmentAxis:o}),c&&R8({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?M8():void 0,...k}),c&&$8({...k}),N8({...k,apply:({elements:H,rects:Z,availableWidth:z,availableHeight:K})=>{const{width:X,height:B}=Z.reference,fe=H.floating.style;fe.setProperty("--radix-popper-available-width",`${z}px`),fe.setProperty("--radix-popper-available-height",`${K}px`),fe.setProperty("--radix-popper-anchor-width",`${X}px`),fe.setProperty("--radix-popper-anchor-height",`${B}px`)}}),O&&L8({element:O,padding:s}),V8({arrowWidth:A,arrowHeight:P}),d&&D8({strategy:"referenceHidden",...k})]}),[U,D]=lT(R),F=zt(m);Re(()=>{L&&F?.()},[L,F]);const W=M.arrow?.x,V=M.arrow?.y,Y=M.arrow?.centerOffset!==0,[re,ne]=E.useState();return Re(()=>{y&&ne(window.getComputedStyle(y).zIndex)},[y]),_.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:L?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:_.jsx(z8,{scope:r,placedSide:U,onArrowChange:b,arrowX:W,arrowY:V,shouldHideArrow:Y,children:_.jsx(le.div,{"data-side":U,"data-align":D,...p,ref:x,style:{...p.style,animation:L?void 0:"none"}})})})});sT.displayName=$m;var cT="PopperArrow",U8={top:"bottom",right:"left",bottom:"top",left:"right"},uT=E.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=W8(cT,n),o=U8[a.placedSide];return _.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:_.jsx(q8,{...i,ref:r,style:{...i.style,display:"block"}})})});uT.displayName=cT;function H8(e){return e!==null}var V8=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,l]=lT(r),f={start:"0%",center:"50%",end:"100%"}[l],d=(i.arrow?.x??0)+s/2,h=(i.arrow?.y??0)+c/2;let m="",p="";return u==="bottom"?(m=o?f:`${d}px`,p=`${-c}px`):u==="top"?(m=o?f:`${d}px`,p=`${n.floating.height+c}px`):u==="right"?(m=`${-c}px`,p=o?f:`${h}px`):u==="left"&&(m=`${n.floating.width+c}px`,p=o?f:`${h}px`),{data:{x:m,y:p}}}});function lT(e){const[t,r="center"]=e.split("-");return[t,r]}var fT=iT,dT=oT,pT=sT,hT=uT,vp="rovingFocusGroup.onEntryFocus",K8={bubbles:!1,cancelable:!0},eo="RovingFocusGroup",[Gh,vT,G8]=fm(eo),[Y8,mT]=kt(eo,[G8]),[X8,Z8]=Y8(eo),yT=E.forwardRef((e,t)=>_.jsx(Gh.Provider,{scope:e.__scopeRovingFocusGroup,children:_.jsx(Gh.Slot,{scope:e.__scopeRovingFocusGroup,children:_.jsx(J8,{...e,ref:t})})}));yT.displayName=eo;var J8=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:l=!1,...f}=e,d=E.useRef(null),h=Ce(t,d),m=kc(a),[p,v]=lr({prop:o,defaultProp:s??null,onChange:c,caller:eo}),[y,g]=E.useState(!1),x=zt(u),O=vT(r),b=E.useRef(!1),[w,A]=E.useState(0);return E.useEffect(()=>{const P=d.current;if(P)return P.addEventListener(vp,x),()=>P.removeEventListener(vp,x)},[x]),_.jsx(X8,{scope:r,orientation:n,dir:m,loop:i,currentTabStopId:p,onItemFocus:E.useCallback(P=>v(P),[v]),onItemShiftTab:E.useCallback(()=>g(!0),[]),onFocusableItemAdd:E.useCallback(()=>A(P=>P+1),[]),onFocusableItemRemove:E.useCallback(()=>A(P=>P-1),[]),children:_.jsx(le.div,{tabIndex:y||w===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{b.current=!0}),onFocus:he(e.onFocus,P=>{const T=!b.current;if(P.target===P.currentTarget&&T&&!y){const I=new CustomEvent(vp,K8);if(P.currentTarget.dispatchEvent(I),!I.defaultPrevented){const C=O().filter(R=>R.focusable),j=C.find(R=>R.active),k=C.find(R=>R.id===p),N=[j,k,...C].filter(Boolean).map(R=>R.ref.current);xT(N,l)}}b.current=!1}),onBlur:he(e.onBlur,()=>g(!1))})})}),gT="RovingFocusGroupItem",bT=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Lr(),u=a||c,l=Z8(gT,r),f=l.currentTabStopId===u,d=vT(r),{onFocusableItemAdd:h,onFocusableItemRemove:m,currentTabStopId:p}=l;return E.useEffect(()=>{if(n)return h(),()=>m()},[n,h,m]),_.jsx(Gh.ItemSlot,{scope:r,id:u,focusable:n,active:i,children:_.jsx(le.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,v=>{n?l.onItemFocus(u):v.preventDefault()}),onFocus:he(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:he(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){l.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=t6(v,l.orientation,l.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=d().filter(O=>O.focusable).map(O=>O.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const O=x.indexOf(v.currentTarget);x=l.loop?r6(x,O+1):x.slice(O+1)}setTimeout(()=>xT(x))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:p!=null}):o})})});bT.displayName=gT;var Q8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e6(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function t6(e,t,r){const n=e6(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Q8[n]}function xT(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function r6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var n6=yT,i6=bT,a6="Label",wT=E.forwardRef((e,t)=>_.jsx(le.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));wT.displayName=a6;var o6=wT;function NS(e,[t,r]){return Math.min(r,Math.max(t,e))}var Nm="Progress",Dm=100,[s6]=kt(Nm),[c6,u6]=s6(Nm),OT=E.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:a=l6,...o}=e;(i||i===0)&&!DS(i)&&console.error(f6(`${i}`,"Progress"));const s=DS(i)?i:Dm;n!==null&&!LS(n,s)&&console.error(d6(`${n}`,"Progress"));const c=LS(n,s)?n:null,u=Vs(c)?a(c,s):void 0;return _.jsx(c6,{scope:r,value:c,max:s,children:_.jsx(le.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Vs(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":_T(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});OT.displayName=Nm;var ST="ProgressIndicator",AT=E.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,i=u6(ST,r);return _.jsx(le.div,{"data-state":_T(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:t})});AT.displayName=ST;function l6(e,t){return`${Math.round(e/t*100)}%`}function _T(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Vs(e){return typeof e=="number"}function DS(e){return Vs(e)&&!isNaN(e)&&e>0}function LS(e,t){return Vs(e)&&!isNaN(e)&&e<=t&&e>=0}function f6(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Dm}\`.`}function d6(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
256
256
  - a positive number
257
- - less than the value passed to \`max\` (or ${Nm} if no \`max\` prop is set)
257
+ - less than the value passed to \`max\` (or ${Dm} if no \`max\` prop is set)
258
258
  - \`null\` or \`undefined\` if the progress is indeterminate.
259
259
 
260
- Defaulting to \`null\`.`}var f6=wT,d6=ST,p6=[" ","Enter","ArrowUp","ArrowDown"],h6=[" ","Enter"],cn="Select",[qc,Fc,v6]=lm(cn),[Ii]=kt(cn,[v6,Rm]),zc=Rm(),[m6,Br]=Ii(cn),[y6,g6]=Ii(cn),_T=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:u,name:l,autoComplete:f,disabled:d,required:h,form:m}=e,p=zc(t),[v,y]=E.useState(null),[g,x]=E.useState(null),[O,b]=E.useState(!1),w=kc(u),[A,P]=lr({prop:n,defaultProp:i??!1,onChange:a,caller:cn}),[T,I]=lr({prop:o,defaultProp:s,onChange:c,caller:cn}),C=E.useRef(null),j=v?m||!!v.closest("form"):!0,[k,$]=E.useState(new Set),N=Array.from(k).map(R=>R.props.value).join(";");return _.jsx(lT,{...p,children:_.jsxs(m6,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:g,onValueNodeChange:x,valueNodeHasChildren:O,onValueNodeHasChildrenChange:b,contentId:Lr(),value:T,onValueChange:I,open:A,onOpenChange:P,dir:w,triggerPointerDownPosRef:C,disabled:d,children:[_.jsx(qc.Provider,{scope:t,children:_.jsx(y6,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(R=>{$(L=>new Set(L).add(R))},[]),onNativeOptionRemove:E.useCallback(R=>{$(L=>{const M=new Set(L);return M.delete(R),M})},[]),children:r})}),j?_.jsxs(KT,{"aria-hidden":!0,required:h,tabIndex:-1,name:l,autoComplete:f,value:T,onChange:R=>I(R.target.value),disabled:d,form:m,children:[T===void 0?_.jsx("option",{value:""}):null,Array.from(k)]},N):null]})})};_T.displayName=cn;var PT="SelectTrigger",ET=E.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=zc(r),o=Br(PT,r),s=o.disabled||n,c=Ce(t,o.onTriggerChange),u=Fc(r),l=E.useRef("touch"),[f,d,h]=YT(p=>{const v=u().filter(x=>!x.disabled),y=v.find(x=>x.value===o.value),g=XT(v,p,y);g!==void 0&&o.onValueChange(g.value)}),m=p=>{s||(o.onOpenChange(!0),h()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return _.jsx(fT,{asChild:!0,...a,children:_.jsx(le.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":GT(o.value)?"":void 0,...i,ref:c,onClick:he(i.onClick,p=>{p.currentTarget.focus(),l.current!=="mouse"&&m(p)}),onPointerDown:he(i.onPointerDown,p=>{l.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(m(p),p.preventDefault())}),onKeyDown:he(i.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&d(p.key),!(v&&p.key===" ")&&p6.includes(p.key)&&(m(),p.preventDefault())})})})});ET.displayName=PT;var TT="SelectValue",CT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...s}=e,c=Br(TT,r),{onValueNodeHasChildrenChange:u}=c,l=a!==void 0,f=Ce(t,c.onValueNodeChange);return Re(()=>{u(l)},[u,l]),_.jsx(le.span,{...s,ref:f,style:{pointerEvents:"none"},children:GT(c.value)?_.jsx(_.Fragment,{children:o}):a})});CT.displayName=TT;var b6="SelectIcon",jT=E.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return _.jsx(le.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});jT.displayName=b6;var x6="SelectPortal",IT=e=>_.jsx(wm,{asChild:!0,...e});IT.displayName=x6;var un="SelectContent",kT=E.forwardRef((e,t)=>{const r=Br(un,e.__scopeSelect),[n,i]=E.useState();if(Re(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?Ys.createPortal(_.jsx(RT,{scope:e.__scopeSelect,children:_.jsx(qc.Slot,{scope:e.__scopeSelect,children:_.jsx("div",{children:e.children})})}),a):null}return _.jsx(MT,{...e,ref:t})});kT.displayName=un;var Ot=10,[RT,qr]=Ii(un),w6="SelectContentImpl",O6=di("SelectContent.RemoveScroll"),MT=E.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:v,...y}=e,g=Br(un,r),[x,O]=E.useState(null),[b,w]=E.useState(null),A=Ce(t,H=>O(H)),[P,T]=E.useState(null),[I,C]=E.useState(null),j=Fc(r),[k,$]=E.useState(!1),N=E.useRef(!1);E.useEffect(()=>{if(x)return _E(x)},[x]),mE();const R=E.useCallback(H=>{const[Z,...z]=j().map(B=>B.ref.current),[K]=z.slice(-1),X=document.activeElement;for(const B of H)if(B===X||(B?.scrollIntoView({block:"nearest"}),B===Z&&b&&(b.scrollTop=0),B===K&&b&&(b.scrollTop=b.scrollHeight),B?.focus(),document.activeElement!==X))return},[j,b]),L=E.useCallback(()=>R([P,x]),[R,P,x]);E.useEffect(()=>{k&&L()},[k,L]);const{onOpenChange:M,triggerPointerDownPosRef:U}=g;E.useEffect(()=>{if(x){let H={x:0,y:0};const Z=K=>{H={x:Math.abs(Math.round(K.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(K.pageY)-(U.current?.y??0))}},z=K=>{H.x<=10&&H.y<=10?K.preventDefault():x.contains(K.target)||M(!1),document.removeEventListener("pointermove",Z),U.current=null};return U.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",z,{capture:!0})}}},[x,M,U]),E.useEffect(()=>{const H=()=>M(!1);return window.addEventListener("blur",H),window.addEventListener("resize",H),()=>{window.removeEventListener("blur",H),window.removeEventListener("resize",H)}},[M]);const[D,F]=YT(H=>{const Z=j().filter(X=>!X.disabled),z=Z.find(X=>X.ref.current===document.activeElement),K=XT(Z,H,z);K&&setTimeout(()=>K.ref.current.focus())}),W=E.useCallback((H,Z,z)=>{const K=!N.current&&!z;(g.value!==void 0&&g.value===Z||K)&&(T(H),K&&(N.current=!0))},[g.value]),V=E.useCallback(()=>x?.focus(),[x]),Y=E.useCallback((H,Z,z)=>{const K=!N.current&&!z;(g.value!==void 0&&g.value===Z||K)&&C(H)},[g.value]),re=n==="popper"?Gh:$T,ne=re===Gh?{side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:v}:{};return _.jsx(RT,{scope:r,content:x,viewport:b,onViewportChange:w,itemRefCallback:W,selectedItem:P,onItemLeave:V,itemTextRefCallback:Y,focusSelectedItem:L,selectedItemText:I,position:n,isPositioned:k,searchRef:D,children:_.jsx(Om,{as:O6,allowPinchZoom:!0,children:_.jsx(xm,{asChild:!0,trapped:g.open,onMountAutoFocus:H=>{H.preventDefault()},onUnmountAutoFocus:he(i,H=>{g.trigger?.focus({preventScroll:!0}),H.preventDefault()}),children:_.jsx(bm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:H=>H.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:_.jsx(re,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:H=>H.preventDefault(),...y,...ne,onPlaced:()=>$(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:he(y.onKeyDown,H=>{const Z=H.ctrlKey||H.altKey||H.metaKey;if(H.key==="Tab"&&H.preventDefault(),!Z&&H.key.length===1&&F(H.key),["ArrowUp","ArrowDown","Home","End"].includes(H.key)){let K=j().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(H.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(H.key)){const X=H.target,B=K.indexOf(X);K=K.slice(B+1)}setTimeout(()=>R(K)),H.preventDefault()}})})})})})})});MT.displayName=w6;var S6="SelectItemAlignedPosition",$T=E.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=Br(un,r),o=qr(un,r),[s,c]=E.useState(null),[u,l]=E.useState(null),f=Ce(t,A=>l(A)),d=Fc(r),h=E.useRef(!1),m=E.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:g}=o,x=E.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&p&&v&&y){const A=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),T=a.valueNode.getBoundingClientRect(),I=y.getBoundingClientRect();if(a.dir!=="rtl"){const X=I.left-P.left,B=T.left-X,fe=A.left-B,de=A.width+fe,je=Math.max(de,P.width),Ie=window.innerWidth-Ot,Fe=$S(B,[Ot,Math.max(Ot,Ie-je)]);s.style.minWidth=de+"px",s.style.left=Fe+"px"}else{const X=P.right-I.right,B=window.innerWidth-T.right-X,fe=window.innerWidth-A.right-B,de=A.width+fe,je=Math.max(de,P.width),Ie=window.innerWidth-Ot,Fe=$S(B,[Ot,Math.max(Ot,Ie-je)]);s.style.minWidth=de+"px",s.style.right=Fe+"px"}const C=d(),j=window.innerHeight-Ot*2,k=p.scrollHeight,$=window.getComputedStyle(u),N=parseInt($.borderTopWidth,10),R=parseInt($.paddingTop,10),L=parseInt($.borderBottomWidth,10),M=parseInt($.paddingBottom,10),U=N+R+k+M+L,D=Math.min(v.offsetHeight*5,U),F=window.getComputedStyle(p),W=parseInt(F.paddingTop,10),V=parseInt(F.paddingBottom,10),Y=A.top+A.height/2-Ot,re=j-Y,ne=v.offsetHeight/2,H=v.offsetTop+ne,Z=N+R+H,z=U-Z;if(Z<=Y){const X=C.length>0&&v===C[C.length-1].ref.current;s.style.bottom="0px";const B=u.clientHeight-p.offsetTop-p.offsetHeight,fe=Math.max(re,ne+(X?V:0)+B+L),de=Z+fe;s.style.height=de+"px"}else{const X=C.length>0&&v===C[0].ref.current;s.style.top="0px";const fe=Math.max(Y,N+p.offsetTop+(X?W:0)+ne)+z;s.style.height=fe+"px",p.scrollTop=Z-Y+p.offsetTop}s.style.margin=`${Ot}px 0`,s.style.minHeight=D+"px",s.style.maxHeight=j+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[d,a.trigger,a.valueNode,s,u,p,v,y,a.dir,n]);Re(()=>x(),[x]);const[O,b]=E.useState();Re(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const w=E.useCallback(A=>{A&&m.current===!0&&(x(),g?.(),m.current=!1)},[x,g]);return _.jsx(_6,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:w,children:_.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:_.jsx(le.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});$T.displayName=S6;var A6="SelectPopperPosition",Gh=E.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Ot,...a}=e,o=zc(r);return _.jsx(dT,{...o,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Gh.displayName=A6;var[_6,Dm]=Ii(un,{}),Yh="SelectViewport",NT=E.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=qr(Yh,r),o=Dm(Yh,r),s=Ce(t,a.onViewportChange),c=E.useRef(0);return _.jsxs(_.Fragment,{children:[_.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),_.jsx(qc.Slot,{scope:r,children:_.jsx(le.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:he(i.onScroll,u=>{const l=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d?.current&&f){const h=Math.abs(c.current-l.scrollTop);if(h>0){const m=window.innerHeight-Ot*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),y=Math.max(p,v);if(y<m){const g=y+h,x=Math.min(m,g),O=g-x;f.style.height=x+"px",f.style.bottom==="0px"&&(l.scrollTop=O>0?O:0,f.style.justifyContent="flex-end")}}}c.current=l.scrollTop})})})]})});NT.displayName=Yh;var DT="SelectGroup",[P6,E6]=Ii(DT),T6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Lr();return _.jsx(P6,{scope:r,id:i,children:_.jsx(le.div,{role:"group","aria-labelledby":i,...n,ref:t})})});T6.displayName=DT;var LT="SelectLabel",C6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=E6(LT,r);return _.jsx(le.div,{id:i.id,...n,ref:t})});C6.displayName=LT;var Ks="SelectItem",[j6,BT]=Ii(Ks),qT=E.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...o}=e,s=Br(Ks,r),c=qr(Ks,r),u=s.value===n,[l,f]=E.useState(a??""),[d,h]=E.useState(!1),m=Ce(t,g=>c.itemRefCallback?.(g,n,i)),p=Lr(),v=E.useRef("touch"),y=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return _.jsx(j6,{scope:r,value:n,disabled:i,textId:p,isSelected:u,onItemTextChange:E.useCallback(g=>{f(x=>x||(g?.textContent??"").trim())},[]),children:_.jsx(qc.ItemSlot,{scope:r,value:n,disabled:i,textValue:l,children:_.jsx(le.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:he(o.onFocus,()=>h(!0)),onBlur:he(o.onBlur,()=>h(!1)),onClick:he(o.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:he(o.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:he(o.onPointerDown,g=>{v.current=g.pointerType}),onPointerMove:he(o.onPointerMove,g=>{v.current=g.pointerType,i?c.onItemLeave?.():v.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(o.onPointerLeave,g=>{g.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:he(o.onKeyDown,g=>{c.searchRef?.current!==""&&g.key===" "||(h6.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})})})})});qT.displayName=Ks;var Vi="SelectItemText",FT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,o=Br(Vi,r),s=qr(Vi,r),c=BT(Vi,r),u=g6(Vi,r),[l,f]=E.useState(null),d=Ce(t,y=>f(y),c.onItemTextChange,y=>s.itemTextRefCallback?.(y,c.value,c.disabled)),h=l?.textContent,m=E.useMemo(()=>_.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return Re(()=>(p(m),()=>v(m)),[p,v,m]),_.jsxs(_.Fragment,{children:[_.jsx(le.span,{id:c.textId,...a,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Ys.createPortal(a.children,o.valueNode):null]})});FT.displayName=Vi;var zT="SelectItemIndicator",WT=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return BT(zT,r).isSelected?_.jsx(le.span,{"aria-hidden":!0,...n,ref:t}):null});WT.displayName=zT;var Xh="SelectScrollUpButton",UT=E.forwardRef((e,t)=>{const r=qr(Xh,e.__scopeSelect),n=Dm(Xh,e.__scopeSelect),[i,a]=E.useState(!1),o=Ce(t,n.onScrollButtonChange);return Re(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(VT,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});UT.displayName=Xh;var Zh="SelectScrollDownButton",HT=E.forwardRef((e,t)=>{const r=qr(Zh,e.__scopeSelect),n=Dm(Zh,e.__scopeSelect),[i,a]=E.useState(!1),o=Ce(t,n.onScrollButtonChange);return Re(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,l=Math.ceil(c.scrollTop)<u;a(l)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(VT,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});HT.displayName=Zh;var VT=E.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=qr("SelectScrollButton",r),o=E.useRef(null),s=Fc(r),c=E.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return E.useEffect(()=>()=>c(),[c]),Re(()=>{s().find(l=>l.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),_.jsx(le.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:he(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:he(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:he(i.onPointerLeave,()=>{c()})})}),I6="SelectSeparator",k6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return _.jsx(le.div,{"aria-hidden":!0,...n,ref:t})});k6.displayName=I6;var Jh="SelectArrow",R6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=zc(r),a=Br(Jh,r),o=qr(Jh,r);return a.open&&o.position==="popper"?_.jsx(pT,{...i,...n,ref:t}):null});R6.displayName=Jh;var M6="SelectBubbleInput",KT=E.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=E.useRef(null),a=Ce(n,i),o=RE(t);return E.useEffect(()=>{const s=i.current;if(!s)return;const c=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&l){const f=new Event("change",{bubbles:!0});l.call(s,t),s.dispatchEvent(f)}},[o,t]),_.jsx(le.select,{...r,style:{...X1,...r.style},ref:a,defaultValue:t})});KT.displayName=M6;function GT(e){return e===""||e===void 0}function YT(e){const t=zt(e),r=E.useRef(""),n=E.useRef(0),i=E.useCallback(o=>{const s=r.current+o;t(s),(function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=E.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function XT(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let o=$6(e,Math.max(a,0));i.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==r?c:void 0}function $6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var N6=_T,D6=ET,L6=CT,B6=jT,q6=IT,F6=kT,z6=NT,W6=qT,U6=FT,H6=WT,V6=UT,K6=HT,G6="Separator",LS="horizontal",Y6=["horizontal","vertical"],ZT=E.forwardRef((e,t)=>{const{decorative:r,orientation:n=LS,...i}=e,a=X6(n)?n:LS,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return _.jsx(le.div,{"data-orientation":a,...s,...i,ref:t})});ZT.displayName=G6;function X6(e){return Y6.includes(e)}var Z6=ZT,Wc="Tabs",[J6]=kt(Wc,[vT]),JT=vT(),[Q6,Lm]=J6(Wc),QT=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:c="automatic",...u}=e,l=kc(s),[f,d]=lr({prop:n,onChange:i,defaultProp:a??"",caller:Wc});return _.jsx(Q6,{scope:r,baseId:Lr(),value:f,onValueChange:d,orientation:o,dir:l,activationMode:c,children:_.jsx(le.div,{dir:l,"data-orientation":o,...u,ref:t})})});QT.displayName=Wc;var eC="TabsList",tC=E.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,a=Lm(eC,r),o=JT(r);return _.jsx(t6,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:n,children:_.jsx(le.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});tC.displayName=eC;var rC="TabsTrigger",nC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...a}=e,o=Lm(rC,r),s=JT(r),c=oC(o.baseId,n),u=sC(o.baseId,n),l=n===o.value;return _.jsx(r6,{asChild:!0,...s,focusable:!i,active:l,children:_.jsx(le.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":u,"data-state":l?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:t,onMouseDown:he(e.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:he(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:he(e.onFocus,()=>{const f=o.activationMode!=="manual";!l&&!i&&f&&o.onValueChange(n)})})})});nC.displayName=rC;var iC="TabsContent",aC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:i,children:a,...o}=e,s=Lm(iC,r),c=oC(s.baseId,n),u=sC(s.baseId,n),l=n===s.value,f=E.useRef(l);return E.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),_.jsx(Ja,{present:i||l,children:({present:d})=>_.jsx(le.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&a})})});aC.displayName=iC;function oC(e,t){return`${e}-trigger-${t}`}function sC(e,t){return`${e}-content-${t}`}var e4=QT,t4=tC,r4=nC,n4=aC;function i4({...e}){return _.jsx(o5,{"data-slot":"accordion",...e})}function a4({className:e,...t}){return _.jsx(s5,{"data-slot":"accordion-item",className:ie("border-b last:border-b-0",e),...t})}function o4({className:e,children:t,...r}){return _.jsx(c5,{className:"flex",children:_.jsxs(u5,{"data-slot":"accordion-trigger",className:ie("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,_.jsx(Xs,{className:"pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"})]})})}function s4({className:e,children:t,...r}){return _.jsx(l5,{"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:_.jsx("div",{className:ie("pt-0 pb-4",e),children:t})})}const BS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qS=ce,ki=(e,t)=>r=>{var n;if(t?.variants==null)return qS(e,r?.class,r?.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(u=>{const l=r?.[u],f=a?.[u];if(l===null)return null;const d=BS(l)||BS(f);return i[u][d]}),s=r&&Object.entries(r).reduce((u,l)=>{let[f,d]=l;return d===void 0||(u[f]=d),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,l)=>{let{class:f,className:d,...h}=l;return Object.entries(h).every(m=>{let[p,v]=m;return Array.isArray(v)?v.includes({...a,...s}[p]):{...a,...s}[p]===v})?[...u,f,d]:u},[]);return qS(e,o,c,r?.class,r?.className)},c4=ki("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function u4({className:e,variant:t,...r}){return _.jsx("div",{"data-slot":"alert",role:"alert",className:ie(c4({variant:t}),e),...r})}function l4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-title",className:ie("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}function f4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-description",className:ie("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",e),...t})}function d4({className:e,size:t="default",...r}){return _.jsx(xG,{"data-slot":"avatar","data-size":t,className:ie("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",e),...r})}function p4({className:e,...t}){return _.jsx(wG,{"data-slot":"avatar-image",className:ie("aspect-square size-full",e),...t})}function h4({className:e,...t}){return _.jsx(OG,{"data-slot":"avatar-fallback",className:ie("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}const v4=ki("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",success:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-100",error:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function m4({className:e,variant:t="default",asChild:r=!1,content:n,children:i,...a}){const o=r?G1:"span";return _.jsx(o,{"data-slot":"badge","data-variant":t,className:ie(v4({variant:t}),e),...a,children:n??i})}const y4=ki("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function cC({className:e,variant:t="default",size:r="default",asChild:n=!1,...i}){const a=n?G1:"button";return _.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:ie(y4({variant:t,size:r,className:e})),...i})}function g4({className:e,...t}){return _.jsx(DE,{"data-slot":"checkbox",className:ie("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e),...t,children:_.jsx(BE,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:_.jsx(nv,{className:"size-3.5"})})})}var b4=Symbol.for("react.lazy"),Gs=E[" use ".trim().toString()];function x4(e){return typeof e=="object"&&e!==null&&"then"in e}function uC(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===b4&&"_payload"in e&&x4(e._payload)}function lC(e){const t=O4(e),r=E.forwardRef((n,i)=>{let{children:a,...o}=n;uC(a)&&typeof Gs=="function"&&(a=Gs(a._payload));const s=E.Children.toArray(a),c=s.find(_4);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var w4=lC("Slot");function O4(e){const t=E.forwardRef((r,n)=>{let{children:i,...a}=r;if(uC(i)&&typeof Gs=="function"&&(i=Gs(i._payload)),E.isValidElement(i)){const o=E4(i),s=P4(a,i.props);return i.type!==E.Fragment&&(s.ref=n?um(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fC=Symbol("radix.slottable");function S4(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=fC,t}var A4=S4("Slottable");function _4(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fC}function P4(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function E4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const T4=ki("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),dC=E.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const o=n?w4:"button";return _.jsx(o,{"data-slot":"button",className:ie(T4({variant:t,size:r,className:e})),ref:a,...i})});dC.displayName="Button";function C4({className:e,type:t,...r}){return _.jsx("input",{type:t,"data-slot":"input",className:ie("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}function pC({className:e,...t}){return _.jsx(i6,{"data-slot":"label",className:ie("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function j4({className:e,value:t,label:r,max:n=100,...i}){const a=t!=null&&n>0?Math.min(100,Math.max(0,t/n*100)):0;return _.jsxs("div",{className:ie("w-full space-y-2",e),children:[r&&_.jsxs("div",{className:"flex justify-between text-sm",children:[_.jsx("span",{children:r}),_.jsxs("span",{className:"text-muted-foreground",children:[a.toFixed(0),"%"]})]}),_.jsx(f6,{"data-slot":"progress",className:"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",value:t,max:n,...i,children:_.jsx(d6,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-a}%)`}})})]})}function I4({...e}){return _.jsx(N6,{"data-slot":"select",...e})}function k4({...e}){return _.jsx(L6,{"data-slot":"select-value",...e})}function R4({className:e,size:t="default",children:r,...n}){return _.jsxs(D6,{"data-slot":"select-trigger","data-size":t,className:ie("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...n,children:[r,_.jsx(B6,{asChild:!0,children:_.jsx(Xs,{className:"size-4 opacity-50"})})]})}function M4({className:e,children:t,position:r="item-aligned",align:n="center",...i}){return _.jsx(q6,{children:_.jsxs(F6,{"data-slot":"select-content",className:ie("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,align:n,...i,children:[_.jsx(N4,{}),_.jsx(z6,{className:ie("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),_.jsx(D4,{})]})})}function $4({className:e,children:t,...r}){return _.jsxs(W6,{"data-slot":"select-item",className:ie("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[_.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:_.jsx(H6,{children:_.jsx(nv,{className:"size-4"})})}),_.jsx(U6,{children:t})]})}function N4({className:e,...t}){return _.jsx(V6,{"data-slot":"select-scroll-up-button",className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(cA,{className:"size-4"})})}function D4({className:e,...t}){return _.jsx(K6,{"data-slot":"select-scroll-down-button",className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(Xs,{className:"size-4"})})}function FS({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return _.jsx(Z6,{"data-slot":"separator",decorative:r,orientation:t,className:ie("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function L4({className:e,...t}){return _.jsx("div",{"data-slot":"skeleton",className:ie("animate-pulse rounded-md bg-accent",e),...t})}function B4({className:e,...t}){return _.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:_.jsx("table",{"data-slot":"table",className:ie("w-full caption-bottom text-sm",e),...t})})}function q4({className:e,...t}){return _.jsx("thead",{"data-slot":"table-header",className:ie("[&_tr]:border-b",e),...t})}function F4({className:e,...t}){return _.jsx("tbody",{"data-slot":"table-body",className:ie("[&_tr:last-child]:border-0",e),...t})}function zS({className:e,...t}){return _.jsx("tr",{"data-slot":"table-row",className:ie("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function z4({className:e,...t}){return _.jsx("th",{"data-slot":"table-head",className:ie("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function W4({className:e,...t}){return _.jsx("td",{"data-slot":"table-cell",className:ie("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function U4({className:e,orientation:t="horizontal",...r}){return _.jsx(e4,{"data-slot":"tabs","data-orientation":t,orientation:t,className:ie("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...r})}const H4=ki("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function V4({className:e,variant:t="default",...r}){return _.jsx(t4,{"data-slot":"tabs-list","data-variant":t,className:ie(H4({variant:t}),e),...r})}function K4({className:e,...t}){return _.jsx(r4,{"data-slot":"tabs-trigger",className:ie("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function G4({className:e,...t}){return _.jsx(n4,{"data-slot":"tabs-content",className:ie("flex-1 outline-none",e),...t})}function Y4({type:e="single",children:t}){const r=i4;return _.jsx(r,{type:e,collapsible:e==="single",children:t})}function X4({value:e,title:t,children:r}){return _.jsxs(a4,{value:e,children:[_.jsx(o4,{children:t}),_.jsx(s4,{children:r})]})}const hC=S.createContext(null);function Z4({children:e,tools:t}){const r=S.useCallback(async(i,a)=>{if(!t)return{success:!1,error:"Tools not available"};const o=t[i];if(!o)return{success:!1,error:`Tool "${i}" not found`};if(!o.execute)return{success:!1,error:`Tool "${i}" has no execute function`};try{const s=`action-${Date.now()}-${Math.random().toString(36).slice(2)}`;return{success:!0,result:await o.execute(a,{toolCallId:s,messages:[]})}}catch(s){return{success:!1,error:s instanceof Error?s.message:"Unknown error"}}},[t]),n=S.useCallback(i=>!!t?.[i]?.execute,[t]);return _.jsx(hC.Provider,{value:{executeTool:r,isToolAvailable:n},children:e})}function J4(){const e=S.useContext(hC);return e||{executeTool:async()=>({success:!1,error:"ToolExecutionProvider not found"}),isToolAvailable:()=>!1}}function Q4({label:e,action:t,args:r,variant:n="default",size:i="default",className:a,disabled:o,...s}){const{executeTool:c,isToolAvailable:u}=J4(),[l,f]=E.useState(!1),d=u(t),[h,m]=E.useState(null),p=E.useCallback(async()=>{if(!(!d||l)){f(!0),m(null);try{const v=await c(t,r??{});!v.success&&v.error&&m(v.error)}catch(v){m(v instanceof Error?v.message:"Unknown error")}finally{f(!1)}}},[t,r,c,l,d]);return _.jsxs("div",{className:"inline-flex flex-col gap-1",children:[_.jsx(cC,{variant:h?"destructive":n,size:i,className:ie(a),onClick:p,disabled:o||l||!d,...s,children:l?"Loading...":e}),h&&_.jsx("span",{className:"text-xs text-destructive",children:h})]})}function eY({title:e,description:t,variant:r="default"}){return _.jsxs(u4,{variant:r,children:[_.jsx(l4,{children:e}),t&&_.jsx(f4,{children:t})]})}function tY({src:e,alt:t,fallback:r}){return _.jsxs(d4,{children:[e&&_.jsx(p4,{src:e,alt:t}),_.jsx(h4,{children:r})]})}function rY({label:e,variant:t="default",size:r="default",disabled:n=!1}){return _.jsx(cC,{variant:t,size:r,disabled:n,children:e})}function nY({title:e,className:t,children:r,...n}){return _.jsxs("div",{"data-slot":"card-wrapper",className:ie("flex flex-col gap-6 bg-card p-6 text-card-foreground",t),...n,children:[e&&_.jsx("div",{className:"text-lg leading-none font-semibold text-foreground",children:e}),_.jsx("div",{className:"flex flex-col gap-6",children:r})]})}function iY({label:e,valuePath:t,defaultChecked:r}){const n=E.useId();return _.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx(g4,{id:n,name:t,defaultChecked:r,"data-value-path":t}),e&&_.jsx(pC,{htmlFor:n,className:"cursor-pointer",children:e})]})}function aY({headers:e,rows:t,className:r,...n}){return _.jsx("div",{className:ie(r),...n,children:_.jsxs(B4,{children:[e&&e.length>0&&_.jsx(q4,{children:_.jsx(zS,{children:e.map((i,a)=>_.jsx(z4,{children:i},a))})}),_.jsx(F4,{children:t.map((i,a)=>_.jsx(zS,{children:i.map((o,s)=>_.jsx(W4,{children:o},s))},a))})]})})}const oY={sm:"gap-2",md:"gap-4",lg:"gap-6"};function sY({columns:e=2,gap:t="md",className:r,...n}){return _.jsx("div",{"data-slot":"grid",className:ie("grid",oY[t],r),style:{gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`},...n})}function cY({label:e,placeholder:t,type:r="text",valuePath:n}){const i=E.useId();return _.jsxs("div",{className:"flex flex-col gap-1.5",children:[e&&_.jsx(pC,{htmlFor:i,children:e}),_.jsx(C4,{id:i,type:r,placeholder:t,name:n,"data-value-path":n})]})}function uY({items:e,ordered:t=!1,className:r}){const n=ie("space-y-1 pl-4 text-foreground",t?"list-decimal":"list-disc",r);return t?_.jsx("ol",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))}):_.jsx("ul",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))})}function lY(e,t){if(typeof e=="string")return e;switch(t){case"currency":return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e);case"percent":return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1}).format(e);case"number":default:return new Intl.NumberFormat("en-US").format(e)}}function fY({label:e,value:t,format:r,className:n,...i}){return _.jsxs("div",{"data-slot":"metric",className:ie("flex flex-col",n),...i,children:[_.jsx("span",{className:"text-sm text-muted-foreground",children:e}),_.jsx("span",{className:"text-2xl font-semibold text-foreground",children:lY(t,r)})]})}function dY({placeholder:e,valuePath:t,options:r}){return _.jsxs(I4,{name:t,children:[_.jsx(R4,{"data-value-path":t,children:_.jsx(k4,{placeholder:e})}),_.jsx(M4,{children:r.map(n=>_.jsx($4,{value:n.value,children:n.label},n.value))})]})}function pY({width:e,height:t,className:r}){return _.jsx(L4,{className:ie(r),style:{width:e??"100%",height:t??"1rem"}})}const hY={sm:"gap-2",md:"gap-4",lg:"gap-6"},vY={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},mY={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"};function yY({direction:e="vertical",gap:t="md",align:r,justify:n,className:i,...a}){return _.jsx("div",{"data-slot":"stack",className:ie("flex",e==="horizontal"?"flex-row":"flex-col",hY[t],r&&vY[r],n&&mY[n],i),...a})}function gY({defaultValue:e,tabs:t,children:r}){const n=e??t[0]?.value;return _.jsxs(U4,{defaultValue:n,children:[_.jsx(V4,{children:t.map(i=>_.jsx(K4,{value:i.value,children:i.label},i.value))}),r]})}function bY({value:e,children:t}){return _.jsx(G4,{value:e,children:t})}const xY={heading:"text-foreground text-lg font-semibold",body:"text-foreground text-sm",caption:"text-muted-foreground text-xs",code:"text-foreground font-mono text-sm bg-muted px-1 rounded"};function wY({content:e,variant:t="body",className:r,children:n,...i}){return _.jsx("span",{"data-slot":"text",className:ie(xY[t],r),...i,children:e??n})}const OY={Card:nY,Grid:sY,Stack:yY,Text:wY,Metric:fY,Badge:m4,Table:aY,List:uY,Progress:j4,Avatar:tY,Skeleton:pY,Alert:eY,Divider:FS,Separator:FS,Accordion:Y4,AccordionItem:X4,Tabs:gY,TabContent:bY,Button:rY,ActionButton:Q4,Input:cY,Checkbox:iY,Select:dY};function vC(e,t){const r=OY[e.type];if(!r)return _.jsxs("div",{className:"text-xs text-muted-foreground",children:["Unknown component: ",e.type]},t);const n=Array.isArray(e.children)?e.children.map((i,a)=>vC(i,a)):void 0;return _.jsx(r,{...e.props??{},children:n},t)}const SY=({content:e,className:t})=>{const r=rv(),n=S.useMemo(()=>oA(e)?e:null,[e]);return n?_.jsx("div",{className:ie("w-full",t),children:vC(n)}):_.jsxs("div",{className:ie("flex items-center gap-2 text-sm text-muted-foreground",r("p-md"),t),children:[_.jsx(iv,{className:"size-4"}),_.jsx("span",{children:"Invalid generative UI structure"})]})},Qh=["Arranging pixels with care...","Brewing something beautiful...","Crafting your masterpiece...","Painting with data...","Weaving digital magic...","Assembling the good stuff...","Polishing the details...","Putting the finishing touches...","Simmering the results...","Letting the data marinate...","Adding a pinch of style...","Fresh out of the oven soon...","Whisking up your view...","Growing your garden of data...","Watching the seeds sprout...","Letting things bloom...","Nature is taking its course...","Consulting the stars...","Channeling cosmic energy...","Summoning the results...","Waving the magic wand...","Sprinkling some stardust...","Aligning the planets...","Tightening the bolts...","Connecting the dots...","Stacking the blocks...","Laying the foundation...","Raising the scaffolding...","Herding the pixels...","Teaching data to dance...","Convincing bits to cooperate...","Giving electrons a pep talk...","Wrangling the numbers...","Coaxing the results out...","Almost there, pinky promise...","Good things take a moment...","Worth the wait...","Patience, grasshopper...","Hold tight...","Doing the thing...","Folding space and time...","Untangling the threads...","Finding the signal...","Distilling the essence...","Turning chaos into order...","Making sense of it all...","This is going to be good...","You're gonna love this...","Something nice is coming...","Just a heartbeat away..."];function AY(){return Math.floor(Math.random()*Qh.length)}const _Y=()=>{const[e,t]=S.useState(AY),[r,n]=S.useState(!0);return S.useEffect(()=>{let i;const a=setInterval(()=>{n(!1),i=setTimeout(()=>{t(o=>(o+1)%Qh.length),n(!0)},200)},2e3);return()=>{clearInterval(a),i&&clearTimeout(i)}},[]),_.jsx("span",{className:ie("shimmer text-sm text-muted-foreground transition-opacity duration-200",r?"opacity-100":"opacity-0"),children:Qh[e]})},PY=({code:e})=>{const t=S.useMemo(()=>{const r=e.trim();if(!r)return null;try{const n=JSON.parse(r);return!n||typeof n!="object"||!("type"in n)?null:n}catch{return null}},[e]);return t?_.jsx(Mo,{children:_.jsx("div",{className:"p-4",children:_.jsx(SY,{content:t})})}):_.jsx(Mo,{children:_.jsx("div",{className:"flex min-h-[400px] items-center justify-center bg-background",children:_.jsx(_Y,{})})})},mC={language:"ui",prompt:`Render structured data as visual UI using \`\`\`ui code blocks with valid JSON.
260
+ Defaulting to \`null\`.`}var p6=OT,h6=AT,v6=[" ","Enter","ArrowUp","ArrowDown"],m6=[" ","Enter"],cn="Select",[qc,Fc,y6]=fm(cn),[Ii]=kt(cn,[y6,Mm]),zc=Mm(),[g6,Br]=Ii(cn),[b6,x6]=Ii(cn),PT=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:u,name:l,autoComplete:f,disabled:d,required:h,form:m}=e,p=zc(t),[v,y]=E.useState(null),[g,x]=E.useState(null),[O,b]=E.useState(!1),w=kc(u),[A,P]=lr({prop:n,defaultProp:i??!1,onChange:a,caller:cn}),[T,I]=lr({prop:o,defaultProp:s,onChange:c,caller:cn}),C=E.useRef(null),j=v?m||!!v.closest("form"):!0,[k,$]=E.useState(new Set),N=Array.from(k).map(R=>R.props.value).join(";");return _.jsx(fT,{...p,children:_.jsxs(g6,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:g,onValueNodeChange:x,valueNodeHasChildren:O,onValueNodeHasChildrenChange:b,contentId:Lr(),value:T,onValueChange:I,open:A,onOpenChange:P,dir:w,triggerPointerDownPosRef:C,disabled:d,children:[_.jsx(qc.Provider,{scope:t,children:_.jsx(b6,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(R=>{$(L=>new Set(L).add(R))},[]),onNativeOptionRemove:E.useCallback(R=>{$(L=>{const M=new Set(L);return M.delete(R),M})},[]),children:r})}),j?_.jsxs(GT,{"aria-hidden":!0,required:h,tabIndex:-1,name:l,autoComplete:f,value:T,onChange:R=>I(R.target.value),disabled:d,form:m,children:[T===void 0?_.jsx("option",{value:""}):null,Array.from(k)]},N):null]})})};PT.displayName=cn;var ET="SelectTrigger",TT=E.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=zc(r),o=Br(ET,r),s=o.disabled||n,c=Ce(t,o.onTriggerChange),u=Fc(r),l=E.useRef("touch"),[f,d,h]=XT(p=>{const v=u().filter(x=>!x.disabled),y=v.find(x=>x.value===o.value),g=ZT(v,p,y);g!==void 0&&o.onValueChange(g.value)}),m=p=>{s||(o.onOpenChange(!0),h()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return _.jsx(dT,{asChild:!0,...a,children:_.jsx(le.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":YT(o.value)?"":void 0,...i,ref:c,onClick:he(i.onClick,p=>{p.currentTarget.focus(),l.current!=="mouse"&&m(p)}),onPointerDown:he(i.onPointerDown,p=>{l.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(m(p),p.preventDefault())}),onKeyDown:he(i.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&d(p.key),!(v&&p.key===" ")&&v6.includes(p.key)&&(m(),p.preventDefault())})})})});TT.displayName=ET;var CT="SelectValue",jT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...s}=e,c=Br(CT,r),{onValueNodeHasChildrenChange:u}=c,l=a!==void 0,f=Ce(t,c.onValueNodeChange);return Re(()=>{u(l)},[u,l]),_.jsx(le.span,{...s,ref:f,style:{pointerEvents:"none"},children:YT(c.value)?_.jsx(_.Fragment,{children:o}):a})});jT.displayName=CT;var w6="SelectIcon",IT=E.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return _.jsx(le.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});IT.displayName=w6;var O6="SelectPortal",kT=e=>_.jsx(Om,{asChild:!0,...e});kT.displayName=O6;var un="SelectContent",RT=E.forwardRef((e,t)=>{const r=Br(un,e.__scopeSelect),[n,i]=E.useState();if(Re(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?Ys.createPortal(_.jsx(MT,{scope:e.__scopeSelect,children:_.jsx(qc.Slot,{scope:e.__scopeSelect,children:_.jsx("div",{children:e.children})})}),a):null}return _.jsx($T,{...e,ref:t})});RT.displayName=un;var Ot=10,[MT,qr]=Ii(un),S6="SelectContentImpl",A6=di("SelectContent.RemoveScroll"),$T=E.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:v,...y}=e,g=Br(un,r),[x,O]=E.useState(null),[b,w]=E.useState(null),A=Ce(t,H=>O(H)),[P,T]=E.useState(null),[I,C]=E.useState(null),j=Fc(r),[k,$]=E.useState(!1),N=E.useRef(!1);E.useEffect(()=>{if(x)return PE(x)},[x]),yE();const R=E.useCallback(H=>{const[Z,...z]=j().map(B=>B.ref.current),[K]=z.slice(-1),X=document.activeElement;for(const B of H)if(B===X||(B?.scrollIntoView({block:"nearest"}),B===Z&&b&&(b.scrollTop=0),B===K&&b&&(b.scrollTop=b.scrollHeight),B?.focus(),document.activeElement!==X))return},[j,b]),L=E.useCallback(()=>R([P,x]),[R,P,x]);E.useEffect(()=>{k&&L()},[k,L]);const{onOpenChange:M,triggerPointerDownPosRef:U}=g;E.useEffect(()=>{if(x){let H={x:0,y:0};const Z=K=>{H={x:Math.abs(Math.round(K.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(K.pageY)-(U.current?.y??0))}},z=K=>{H.x<=10&&H.y<=10?K.preventDefault():x.contains(K.target)||M(!1),document.removeEventListener("pointermove",Z),U.current=null};return U.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",z,{capture:!0})}}},[x,M,U]),E.useEffect(()=>{const H=()=>M(!1);return window.addEventListener("blur",H),window.addEventListener("resize",H),()=>{window.removeEventListener("blur",H),window.removeEventListener("resize",H)}},[M]);const[D,F]=XT(H=>{const Z=j().filter(X=>!X.disabled),z=Z.find(X=>X.ref.current===document.activeElement),K=ZT(Z,H,z);K&&setTimeout(()=>K.ref.current.focus())}),W=E.useCallback((H,Z,z)=>{const K=!N.current&&!z;(g.value!==void 0&&g.value===Z||K)&&(T(H),K&&(N.current=!0))},[g.value]),V=E.useCallback(()=>x?.focus(),[x]),Y=E.useCallback((H,Z,z)=>{const K=!N.current&&!z;(g.value!==void 0&&g.value===Z||K)&&C(H)},[g.value]),re=n==="popper"?Yh:NT,ne=re===Yh?{side:s,sideOffset:c,align:u,alignOffset:l,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:v}:{};return _.jsx(MT,{scope:r,content:x,viewport:b,onViewportChange:w,itemRefCallback:W,selectedItem:P,onItemLeave:V,itemTextRefCallback:Y,focusSelectedItem:L,selectedItemText:I,position:n,isPositioned:k,searchRef:D,children:_.jsx(Sm,{as:A6,allowPinchZoom:!0,children:_.jsx(wm,{asChild:!0,trapped:g.open,onMountAutoFocus:H=>{H.preventDefault()},onUnmountAutoFocus:he(i,H=>{g.trigger?.focus({preventScroll:!0}),H.preventDefault()}),children:_.jsx(xm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:H=>H.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:_.jsx(re,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:H=>H.preventDefault(),...y,...ne,onPlaced:()=>$(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:he(y.onKeyDown,H=>{const Z=H.ctrlKey||H.altKey||H.metaKey;if(H.key==="Tab"&&H.preventDefault(),!Z&&H.key.length===1&&F(H.key),["ArrowUp","ArrowDown","Home","End"].includes(H.key)){let K=j().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(H.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(H.key)){const X=H.target,B=K.indexOf(X);K=K.slice(B+1)}setTimeout(()=>R(K)),H.preventDefault()}})})})})})})});$T.displayName=S6;var _6="SelectItemAlignedPosition",NT=E.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=Br(un,r),o=qr(un,r),[s,c]=E.useState(null),[u,l]=E.useState(null),f=Ce(t,A=>l(A)),d=Fc(r),h=E.useRef(!1),m=E.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:g}=o,x=E.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&p&&v&&y){const A=a.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),T=a.valueNode.getBoundingClientRect(),I=y.getBoundingClientRect();if(a.dir!=="rtl"){const X=I.left-P.left,B=T.left-X,fe=A.left-B,de=A.width+fe,je=Math.max(de,P.width),Ie=window.innerWidth-Ot,Fe=NS(B,[Ot,Math.max(Ot,Ie-je)]);s.style.minWidth=de+"px",s.style.left=Fe+"px"}else{const X=P.right-I.right,B=window.innerWidth-T.right-X,fe=window.innerWidth-A.right-B,de=A.width+fe,je=Math.max(de,P.width),Ie=window.innerWidth-Ot,Fe=NS(B,[Ot,Math.max(Ot,Ie-je)]);s.style.minWidth=de+"px",s.style.right=Fe+"px"}const C=d(),j=window.innerHeight-Ot*2,k=p.scrollHeight,$=window.getComputedStyle(u),N=parseInt($.borderTopWidth,10),R=parseInt($.paddingTop,10),L=parseInt($.borderBottomWidth,10),M=parseInt($.paddingBottom,10),U=N+R+k+M+L,D=Math.min(v.offsetHeight*5,U),F=window.getComputedStyle(p),W=parseInt(F.paddingTop,10),V=parseInt(F.paddingBottom,10),Y=A.top+A.height/2-Ot,re=j-Y,ne=v.offsetHeight/2,H=v.offsetTop+ne,Z=N+R+H,z=U-Z;if(Z<=Y){const X=C.length>0&&v===C[C.length-1].ref.current;s.style.bottom="0px";const B=u.clientHeight-p.offsetTop-p.offsetHeight,fe=Math.max(re,ne+(X?V:0)+B+L),de=Z+fe;s.style.height=de+"px"}else{const X=C.length>0&&v===C[0].ref.current;s.style.top="0px";const fe=Math.max(Y,N+p.offsetTop+(X?W:0)+ne)+z;s.style.height=fe+"px",p.scrollTop=Z-Y+p.offsetTop}s.style.margin=`${Ot}px 0`,s.style.minHeight=D+"px",s.style.maxHeight=j+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[d,a.trigger,a.valueNode,s,u,p,v,y,a.dir,n]);Re(()=>x(),[x]);const[O,b]=E.useState();Re(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const w=E.useCallback(A=>{A&&m.current===!0&&(x(),g?.(),m.current=!1)},[x,g]);return _.jsx(E6,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:w,children:_.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:_.jsx(le.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});NT.displayName=_6;var P6="SelectPopperPosition",Yh=E.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Ot,...a}=e,o=zc(r);return _.jsx(pT,{...o,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Yh.displayName=P6;var[E6,Lm]=Ii(un,{}),Xh="SelectViewport",DT=E.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=qr(Xh,r),o=Lm(Xh,r),s=Ce(t,a.onViewportChange),c=E.useRef(0);return _.jsxs(_.Fragment,{children:[_.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),_.jsx(qc.Slot,{scope:r,children:_.jsx(le.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:he(i.onScroll,u=>{const l=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d?.current&&f){const h=Math.abs(c.current-l.scrollTop);if(h>0){const m=window.innerHeight-Ot*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),y=Math.max(p,v);if(y<m){const g=y+h,x=Math.min(m,g),O=g-x;f.style.height=x+"px",f.style.bottom==="0px"&&(l.scrollTop=O>0?O:0,f.style.justifyContent="flex-end")}}}c.current=l.scrollTop})})})]})});DT.displayName=Xh;var LT="SelectGroup",[T6,C6]=Ii(LT),j6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Lr();return _.jsx(T6,{scope:r,id:i,children:_.jsx(le.div,{role:"group","aria-labelledby":i,...n,ref:t})})});j6.displayName=LT;var BT="SelectLabel",I6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=C6(BT,r);return _.jsx(le.div,{id:i.id,...n,ref:t})});I6.displayName=BT;var Ks="SelectItem",[k6,qT]=Ii(Ks),FT=E.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...o}=e,s=Br(Ks,r),c=qr(Ks,r),u=s.value===n,[l,f]=E.useState(a??""),[d,h]=E.useState(!1),m=Ce(t,g=>c.itemRefCallback?.(g,n,i)),p=Lr(),v=E.useRef("touch"),y=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return _.jsx(k6,{scope:r,value:n,disabled:i,textId:p,isSelected:u,onItemTextChange:E.useCallback(g=>{f(x=>x||(g?.textContent??"").trim())},[]),children:_.jsx(qc.ItemSlot,{scope:r,value:n,disabled:i,textValue:l,children:_.jsx(le.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:he(o.onFocus,()=>h(!0)),onBlur:he(o.onBlur,()=>h(!1)),onClick:he(o.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:he(o.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:he(o.onPointerDown,g=>{v.current=g.pointerType}),onPointerMove:he(o.onPointerMove,g=>{v.current=g.pointerType,i?c.onItemLeave?.():v.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(o.onPointerLeave,g=>{g.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:he(o.onKeyDown,g=>{c.searchRef?.current!==""&&g.key===" "||(m6.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})})})})});FT.displayName=Ks;var Vi="SelectItemText",zT=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,o=Br(Vi,r),s=qr(Vi,r),c=qT(Vi,r),u=x6(Vi,r),[l,f]=E.useState(null),d=Ce(t,y=>f(y),c.onItemTextChange,y=>s.itemTextRefCallback?.(y,c.value,c.disabled)),h=l?.textContent,m=E.useMemo(()=>_.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return Re(()=>(p(m),()=>v(m)),[p,v,m]),_.jsxs(_.Fragment,{children:[_.jsx(le.span,{id:c.textId,...a,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Ys.createPortal(a.children,o.valueNode):null]})});zT.displayName=Vi;var WT="SelectItemIndicator",UT=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return qT(WT,r).isSelected?_.jsx(le.span,{"aria-hidden":!0,...n,ref:t}):null});UT.displayName=WT;var Zh="SelectScrollUpButton",HT=E.forwardRef((e,t)=>{const r=qr(Zh,e.__scopeSelect),n=Lm(Zh,e.__scopeSelect),[i,a]=E.useState(!1),o=Ce(t,n.onScrollButtonChange);return Re(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(KT,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});HT.displayName=Zh;var Jh="SelectScrollDownButton",VT=E.forwardRef((e,t)=>{const r=qr(Jh,e.__scopeSelect),n=Lm(Jh,e.__scopeSelect),[i,a]=E.useState(!1),o=Ce(t,n.onScrollButtonChange);return Re(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,l=Math.ceil(c.scrollTop)<u;a(l)};const c=r.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?_.jsx(KT,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=r;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});VT.displayName=Jh;var KT=E.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=qr("SelectScrollButton",r),o=E.useRef(null),s=Fc(r),c=E.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return E.useEffect(()=>()=>c(),[c]),Re(()=>{s().find(l=>l.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),_.jsx(le.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:he(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:he(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:he(i.onPointerLeave,()=>{c()})})}),R6="SelectSeparator",M6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return _.jsx(le.div,{"aria-hidden":!0,...n,ref:t})});M6.displayName=R6;var Qh="SelectArrow",$6=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=zc(r),a=Br(Qh,r),o=qr(Qh,r);return a.open&&o.position==="popper"?_.jsx(hT,{...i,...n,ref:t}):null});$6.displayName=Qh;var N6="SelectBubbleInput",GT=E.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=E.useRef(null),a=Ce(n,i),o=ME(t);return E.useEffect(()=>{const s=i.current;if(!s)return;const c=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&l){const f=new Event("change",{bubbles:!0});l.call(s,t),s.dispatchEvent(f)}},[o,t]),_.jsx(le.select,{...r,style:{...Z1,...r.style},ref:a,defaultValue:t})});GT.displayName=N6;function YT(e){return e===""||e===void 0}function XT(e){const t=zt(e),r=E.useRef(""),n=E.useRef(0),i=E.useCallback(o=>{const s=r.current+o;t(s),(function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(s)},[t]),a=E.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function ZT(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let o=D6(e,Math.max(a,0));i.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==r?c:void 0}function D6(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var L6=PT,B6=TT,q6=jT,F6=IT,z6=kT,W6=RT,U6=DT,H6=FT,V6=zT,K6=UT,G6=HT,Y6=VT,X6="Separator",BS="horizontal",Z6=["horizontal","vertical"],JT=E.forwardRef((e,t)=>{const{decorative:r,orientation:n=BS,...i}=e,a=J6(n)?n:BS,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return _.jsx(le.div,{"data-orientation":a,...s,...i,ref:t})});JT.displayName=X6;function J6(e){return Z6.includes(e)}var Q6=JT,Wc="Tabs",[e4]=kt(Wc,[mT]),QT=mT(),[t4,Bm]=e4(Wc),eC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:c="automatic",...u}=e,l=kc(s),[f,d]=lr({prop:n,onChange:i,defaultProp:a??"",caller:Wc});return _.jsx(t4,{scope:r,baseId:Lr(),value:f,onValueChange:d,orientation:o,dir:l,activationMode:c,children:_.jsx(le.div,{dir:l,"data-orientation":o,...u,ref:t})})});eC.displayName=Wc;var tC="TabsList",rC=E.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,a=Bm(tC,r),o=QT(r);return _.jsx(n6,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:n,children:_.jsx(le.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});rC.displayName=tC;var nC="TabsTrigger",iC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...a}=e,o=Bm(nC,r),s=QT(r),c=sC(o.baseId,n),u=cC(o.baseId,n),l=n===o.value;return _.jsx(i6,{asChild:!0,...s,focusable:!i,active:l,children:_.jsx(le.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":u,"data-state":l?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:t,onMouseDown:he(e.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:he(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:he(e.onFocus,()=>{const f=o.activationMode!=="manual";!l&&!i&&f&&o.onValueChange(n)})})})});iC.displayName=nC;var aC="TabsContent",oC=E.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:i,children:a,...o}=e,s=Bm(aC,r),c=sC(s.baseId,n),u=cC(s.baseId,n),l=n===s.value,f=E.useRef(l);return E.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),_.jsx(Ja,{present:i||l,children:({present:d})=>_.jsx(le.div,{"data-state":l?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&a})})});oC.displayName=aC;function sC(e,t){return`${e}-trigger-${t}`}function cC(e,t){return`${e}-content-${t}`}var r4=eC,n4=rC,i4=iC,a4=oC;function o4({...e}){return _.jsx(c5,{"data-slot":"accordion",...e})}function s4({className:e,...t}){return _.jsx(u5,{"data-slot":"accordion-item",className:ie("border-b last:border-b-0",e),...t})}function c4({className:e,children:t,...r}){return _.jsx(l5,{className:"flex",children:_.jsxs(f5,{"data-slot":"accordion-trigger",className:ie("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,_.jsx(Xs,{className:"pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"})]})})}function u4({className:e,children:t,...r}){return _.jsx(d5,{"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:_.jsx("div",{className:ie("pt-0 pb-4",e),children:t})})}const qS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,FS=ce,ki=(e,t)=>r=>{var n;if(t?.variants==null)return FS(e,r?.class,r?.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(u=>{const l=r?.[u],f=a?.[u];if(l===null)return null;const d=qS(l)||qS(f);return i[u][d]}),s=r&&Object.entries(r).reduce((u,l)=>{let[f,d]=l;return d===void 0||(u[f]=d),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,l)=>{let{class:f,className:d,...h}=l;return Object.entries(h).every(m=>{let[p,v]=m;return Array.isArray(v)?v.includes({...a,...s}[p]):{...a,...s}[p]===v})?[...u,f,d]:u},[]);return FS(e,o,c,r?.class,r?.className)},l4=ki("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function f4({className:e,variant:t,...r}){return _.jsx("div",{"data-slot":"alert",role:"alert",className:ie(l4({variant:t}),e),...r})}function d4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-title",className:ie("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}function p4({className:e,...t}){return _.jsx("div",{"data-slot":"alert-description",className:ie("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",e),...t})}function h4({className:e,size:t="default",...r}){return _.jsx(OG,{"data-slot":"avatar","data-size":t,className:ie("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",e),...r})}function v4({className:e,...t}){return _.jsx(SG,{"data-slot":"avatar-image",className:ie("aspect-square size-full",e),...t})}function m4({className:e,...t}){return _.jsx(AG,{"data-slot":"avatar-fallback",className:ie("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}const y4=ki("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",success:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-100",error:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function g4({className:e,variant:t="default",asChild:r=!1,content:n,children:i,...a}){const o=r?Y1:"span";return _.jsx(o,{"data-slot":"badge","data-variant":t,className:ie(y4({variant:t}),e),...a,children:n??i})}const b4=ki("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function uC({className:e,variant:t="default",size:r="default",asChild:n=!1,...i}){const a=n?Y1:"button";return _.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:ie(b4({variant:t,size:r,className:e})),...i})}function x4({className:e,...t}){return _.jsx(LE,{"data-slot":"checkbox",className:ie("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e),...t,children:_.jsx(qE,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:_.jsx(iv,{className:"size-3.5"})})})}var w4=Symbol.for("react.lazy"),Gs=E[" use ".trim().toString()];function O4(e){return typeof e=="object"&&e!==null&&"then"in e}function lC(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===w4&&"_payload"in e&&O4(e._payload)}function fC(e){const t=A4(e),r=E.forwardRef((n,i)=>{let{children:a,...o}=n;lC(a)&&typeof Gs=="function"&&(a=Gs(a._payload));const s=E.Children.toArray(a),c=s.find(E4);if(c){const u=c.props.children,l=s.map(f=>f===c?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return _.jsx(t,{...o,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,l):null})}return _.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var S4=fC("Slot");function A4(e){const t=E.forwardRef((r,n)=>{let{children:i,...a}=r;if(lC(i)&&typeof Gs=="function"&&(i=Gs(i._payload)),E.isValidElement(i)){const o=C4(i),s=T4(a,i.props);return i.type!==E.Fragment&&(s.ref=n?lm(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dC=Symbol("radix.slottable");function _4(e){const t=({children:r})=>_.jsx(_.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=dC,t}var P4=_4("Slottable");function E4(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dC}function T4(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const c=a(...s);return i(...s),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function C4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const j4=ki("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),pC=E.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const o=n?S4:"button";return _.jsx(o,{"data-slot":"button",className:ie(j4({variant:t,size:r,className:e})),ref:a,...i})});pC.displayName="Button";function I4({className:e,type:t,...r}){return _.jsx("input",{type:t,"data-slot":"input",className:ie("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}function hC({className:e,...t}){return _.jsx(o6,{"data-slot":"label",className:ie("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function k4({className:e,value:t,label:r,max:n=100,...i}){const a=t!=null&&n>0?Math.min(100,Math.max(0,t/n*100)):0;return _.jsxs("div",{className:ie("w-full space-y-2",e),children:[r&&_.jsxs("div",{className:"flex justify-between text-sm",children:[_.jsx("span",{children:r}),_.jsxs("span",{className:"text-muted-foreground",children:[a.toFixed(0),"%"]})]}),_.jsx(p6,{"data-slot":"progress",className:"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",value:t,max:n,...i,children:_.jsx(h6,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-a}%)`}})})]})}function R4({...e}){return _.jsx(L6,{"data-slot":"select",...e})}function M4({...e}){return _.jsx(q6,{"data-slot":"select-value",...e})}function $4({className:e,size:t="default",children:r,...n}){return _.jsxs(B6,{"data-slot":"select-trigger","data-size":t,className:ie("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...n,children:[r,_.jsx(F6,{asChild:!0,children:_.jsx(Xs,{className:"size-4 opacity-50"})})]})}function N4({className:e,children:t,position:r="item-aligned",align:n="center",...i}){return _.jsx(z6,{children:_.jsxs(W6,{"data-slot":"select-content",className:ie("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,align:n,...i,children:[_.jsx(L4,{}),_.jsx(U6,{className:ie("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),_.jsx(B4,{})]})})}function D4({className:e,children:t,...r}){return _.jsxs(H6,{"data-slot":"select-item",className:ie("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[_.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:_.jsx(K6,{children:_.jsx(iv,{className:"size-4"})})}),_.jsx(V6,{children:t})]})}function L4({className:e,...t}){return _.jsx(G6,{"data-slot":"select-scroll-up-button",className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(uA,{className:"size-4"})})}function B4({className:e,...t}){return _.jsx(Y6,{"data-slot":"select-scroll-down-button",className:ie("flex cursor-default items-center justify-center py-1",e),...t,children:_.jsx(Xs,{className:"size-4"})})}function zS({className:e,orientation:t="horizontal",decorative:r=!0,...n}){return _.jsx(Q6,{"data-slot":"separator",decorative:r,orientation:t,className:ie("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function q4({className:e,...t}){return _.jsx("div",{"data-slot":"skeleton",className:ie("animate-pulse rounded-md bg-accent",e),...t})}function F4({className:e,...t}){return _.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:_.jsx("table",{"data-slot":"table",className:ie("w-full caption-bottom text-sm",e),...t})})}function z4({className:e,...t}){return _.jsx("thead",{"data-slot":"table-header",className:ie("[&_tr]:border-b",e),...t})}function W4({className:e,...t}){return _.jsx("tbody",{"data-slot":"table-body",className:ie("[&_tr:last-child]:border-0",e),...t})}function WS({className:e,...t}){return _.jsx("tr",{"data-slot":"table-row",className:ie("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function U4({className:e,...t}){return _.jsx("th",{"data-slot":"table-head",className:ie("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function H4({className:e,...t}){return _.jsx("td",{"data-slot":"table-cell",className:ie("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function V4({className:e,orientation:t="horizontal",...r}){return _.jsx(r4,{"data-slot":"tabs","data-orientation":t,orientation:t,className:ie("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...r})}const K4=ki("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function G4({className:e,variant:t="default",...r}){return _.jsx(n4,{"data-slot":"tabs-list","data-variant":t,className:ie(K4({variant:t}),e),...r})}function Y4({className:e,...t}){return _.jsx(i4,{"data-slot":"tabs-trigger",className:ie("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function X4({className:e,...t}){return _.jsx(a4,{"data-slot":"tabs-content",className:ie("flex-1 outline-none",e),...t})}function Z4({type:e="single",children:t}){const r=o4;return _.jsx(r,{type:e,collapsible:e==="single",children:t})}function J4({value:e,title:t,children:r}){return _.jsxs(s4,{value:e,children:[_.jsx(c4,{children:t}),_.jsx(u4,{children:r})]})}const vC=S.createContext(null);function Q4({children:e,tools:t}){const r=S.useCallback(async(i,a)=>{if(!t)return{success:!1,error:"Tools not available"};const o=t[i];if(!o)return{success:!1,error:`Tool "${i}" not found`};if(!o.execute)return{success:!1,error:`Tool "${i}" has no execute function`};try{const s=`action-${Date.now()}-${Math.random().toString(36).slice(2)}`;return{success:!0,result:await o.execute(a,{toolCallId:s,messages:[]})}}catch(s){return{success:!1,error:s instanceof Error?s.message:"Unknown error"}}},[t]),n=S.useCallback(i=>!!t?.[i]?.execute,[t]);return _.jsx(vC.Provider,{value:{executeTool:r,isToolAvailable:n},children:e})}function eY(){const e=S.useContext(vC);return e||{executeTool:async()=>({success:!1,error:"ToolExecutionProvider not found"}),isToolAvailable:()=>!1}}function tY({label:e,action:t,args:r,variant:n="default",size:i="default",className:a,disabled:o,...s}){const{executeTool:c,isToolAvailable:u}=eY(),[l,f]=E.useState(!1),d=u(t),[h,m]=E.useState(null),p=E.useCallback(async()=>{if(!(!d||l)){f(!0),m(null);try{const v=await c(t,r??{});!v.success&&v.error&&m(v.error)}catch(v){m(v instanceof Error?v.message:"Unknown error")}finally{f(!1)}}},[t,r,c,l,d]);return _.jsxs("div",{className:"inline-flex flex-col gap-1",children:[_.jsx(uC,{variant:h?"destructive":n,size:i,className:ie(a),onClick:p,disabled:o||l||!d,...s,children:l?"Loading...":e}),h&&_.jsx("span",{className:"text-xs text-destructive",children:h})]})}function rY({title:e,description:t,variant:r="default"}){return _.jsxs(f4,{variant:r,children:[_.jsx(d4,{children:e}),t&&_.jsx(p4,{children:t})]})}function nY({src:e,alt:t,fallback:r}){return _.jsxs(h4,{children:[e&&_.jsx(v4,{src:e,alt:t}),_.jsx(m4,{children:r})]})}function iY({label:e,variant:t="default",size:r="default",disabled:n=!1}){return _.jsx(uC,{variant:t,size:r,disabled:n,children:e})}function aY({title:e,className:t,children:r,...n}){return _.jsxs("div",{"data-slot":"card-wrapper",className:ie("flex flex-col gap-6 bg-card p-6 text-card-foreground",t),...n,children:[e&&_.jsx("div",{className:"text-lg leading-none font-semibold text-foreground",children:e}),_.jsx("div",{className:"flex flex-col gap-6",children:r})]})}function oY({label:e,valuePath:t,defaultChecked:r}){const n=E.useId();return _.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx(x4,{id:n,name:t,defaultChecked:r,"data-value-path":t}),e&&_.jsx(hC,{htmlFor:n,className:"cursor-pointer",children:e})]})}function sY({headers:e,rows:t,className:r,...n}){return _.jsx("div",{className:ie(r),...n,children:_.jsxs(F4,{children:[e&&e.length>0&&_.jsx(z4,{children:_.jsx(WS,{children:e.map((i,a)=>_.jsx(U4,{children:i},a))})}),_.jsx(W4,{children:t.map((i,a)=>_.jsx(WS,{children:i.map((o,s)=>_.jsx(H4,{children:o},s))},a))})]})})}const cY={sm:"gap-2",md:"gap-4",lg:"gap-6"};function uY({columns:e=2,gap:t="md",className:r,...n}){return _.jsx("div",{"data-slot":"grid",className:ie("grid",cY[t],r),style:{gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`},...n})}function lY({label:e,placeholder:t,type:r="text",valuePath:n}){const i=E.useId();return _.jsxs("div",{className:"flex flex-col gap-1.5",children:[e&&_.jsx(hC,{htmlFor:i,children:e}),_.jsx(I4,{id:i,type:r,placeholder:t,name:n,"data-value-path":n})]})}function fY({items:e,ordered:t=!1,className:r}){const n=ie("space-y-1 pl-4 text-foreground",t?"list-decimal":"list-disc",r);return t?_.jsx("ol",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))}):_.jsx("ul",{"data-slot":"list",className:n,children:e.map((i,a)=>_.jsx("li",{children:i},a))})}function dY(e,t){if(typeof e=="string")return e;switch(t){case"currency":return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e);case"percent":return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:0,maximumFractionDigits:1}).format(e);case"number":default:return new Intl.NumberFormat("en-US").format(e)}}function pY({label:e,value:t,format:r,className:n,...i}){return _.jsxs("div",{"data-slot":"metric",className:ie("flex flex-col",n),...i,children:[_.jsx("span",{className:"text-sm text-muted-foreground",children:e}),_.jsx("span",{className:"text-2xl font-semibold text-foreground",children:dY(t,r)})]})}function hY({placeholder:e,valuePath:t,options:r}){return _.jsxs(R4,{name:t,children:[_.jsx($4,{"data-value-path":t,children:_.jsx(M4,{placeholder:e})}),_.jsx(N4,{children:r.map(n=>_.jsx(D4,{value:n.value,children:n.label},n.value))})]})}function vY({width:e,height:t,className:r}){return _.jsx(q4,{className:ie(r),style:{width:e??"100%",height:t??"1rem"}})}const mY={sm:"gap-2",md:"gap-4",lg:"gap-6"},yY={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},gY={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around"};function bY({direction:e="vertical",gap:t="md",align:r,justify:n,className:i,...a}){return _.jsx("div",{"data-slot":"stack",className:ie("flex",e==="horizontal"?"flex-row":"flex-col",mY[t],r&&yY[r],n&&gY[n],i),...a})}function xY({defaultValue:e,tabs:t,children:r}){const n=e??t[0]?.value;return _.jsxs(V4,{defaultValue:n,children:[_.jsx(G4,{children:t.map(i=>_.jsx(Y4,{value:i.value,children:i.label},i.value))}),r]})}function wY({value:e,children:t}){return _.jsx(X4,{value:e,children:t})}const OY={heading:"text-foreground text-lg font-semibold",body:"text-foreground text-sm",caption:"text-muted-foreground text-xs",code:"text-foreground font-mono text-sm bg-muted px-1 rounded"};function SY({content:e,variant:t="body",className:r,children:n,...i}){return _.jsx("span",{"data-slot":"text",className:ie(OY[t],r),...i,children:e??n})}const AY={Card:aY,Grid:uY,Stack:bY,Text:SY,Metric:pY,Badge:g4,Table:sY,List:fY,Progress:k4,Avatar:nY,Skeleton:vY,Alert:rY,Divider:zS,Separator:zS,Accordion:Z4,AccordionItem:J4,Tabs:xY,TabContent:wY,Button:iY,ActionButton:tY,Input:lY,Checkbox:oY,Select:hY};function mC(e,t){const r=AY[e.type];if(!r)return _.jsxs("div",{className:"text-xs text-muted-foreground",children:["Unknown component: ",e.type]},t);const n=Array.isArray(e.children)?e.children.map((i,a)=>mC(i,a)):void 0;return _.jsx(r,{...e.props??{},children:n},t)}const _Y=({content:e,className:t})=>{const r=nv(),n=S.useMemo(()=>sA(e)?e:null,[e]);return n?_.jsx("div",{className:ie("w-full",t),children:mC(n)}):_.jsxs("div",{className:ie("flex items-center gap-2 text-sm text-muted-foreground",r("p-md"),t),children:[_.jsx(av,{className:"size-4"}),_.jsx("span",{children:"Invalid generative UI structure"})]})},ev=["Arranging pixels with care...","Brewing something beautiful...","Crafting your masterpiece...","Painting with data...","Weaving digital magic...","Assembling the good stuff...","Polishing the details...","Putting the finishing touches...","Simmering the results...","Letting the data marinate...","Adding a pinch of style...","Fresh out of the oven soon...","Whisking up your view...","Growing your garden of data...","Watching the seeds sprout...","Letting things bloom...","Nature is taking its course...","Consulting the stars...","Channeling cosmic energy...","Summoning the results...","Waving the magic wand...","Sprinkling some stardust...","Aligning the planets...","Tightening the bolts...","Connecting the dots...","Stacking the blocks...","Laying the foundation...","Raising the scaffolding...","Herding the pixels...","Teaching data to dance...","Convincing bits to cooperate...","Giving electrons a pep talk...","Wrangling the numbers...","Coaxing the results out...","Almost there, pinky promise...","Good things take a moment...","Worth the wait...","Patience, grasshopper...","Hold tight...","Doing the thing...","Folding space and time...","Untangling the threads...","Finding the signal...","Distilling the essence...","Turning chaos into order...","Making sense of it all...","This is going to be good...","You're gonna love this...","Something nice is coming...","Just a heartbeat away..."];function PY(){return Math.floor(Math.random()*ev.length)}const EY=()=>{const[e,t]=S.useState(PY),[r,n]=S.useState(!0);return S.useEffect(()=>{let i;const a=setInterval(()=>{n(!1),i=setTimeout(()=>{t(o=>(o+1)%ev.length),n(!0)},200)},2e3);return()=>{clearInterval(a),i&&clearTimeout(i)}},[]),_.jsx("span",{className:ie("shimmer text-sm text-muted-foreground transition-opacity duration-200",r?"opacity-100":"opacity-0"),children:ev[e]})},TY=({code:e})=>{const t=S.useMemo(()=>{const r=e.trim();if(!r)return null;try{const n=JSON.parse(r);return!n||typeof n!="object"||!("type"in n)?null:n}catch{return null}},[e]);return t?_.jsx(Mo,{children:_.jsx("div",{className:"p-4",children:_.jsx(_Y,{content:t})})}):_.jsx(Mo,{children:_.jsx("div",{className:"flex min-h-[400px] items-center justify-center bg-background",children:_.jsx(EY,{})})})},yC={id:"generative-ui",language:"ui",prompt:`Render structured data as visual UI using \`\`\`ui code blocks with valid JSON.
261
261
 
262
262
  Components:
263
263
  - Card{title?} - container with border
@@ -276,5 +276,5 @@ Format: {"type":"Name","props":{...},"children":[...]}
276
276
 
277
277
  Example: {"type":"Card","props":{"title":"Stats"},"children":[{"type":"Metric","props":{"label":"Revenue","value":50000,"format":"currency"}}]}
278
278
 
279
- Use for dashboards, tables, metrics from tool results. Skip for simple text or errors.`,Component:PY,Header:void 0},EY=[K1,mC];exports.Anchor=fT;exports.Arrow=pT;exports.Button=dC;exports.ChatIdContext=iA;exports.Check=nv;exports.ChevronDown=Xs;exports.ChevronUp=cA;exports.CircleAlert=iv;exports.CollapsibleContent=hm;exports.CollapsibleTrigger=dm;exports.Content=dT;exports.DismissableLayer=bm;exports.ElementsContext=aA;exports.FocusScope=xm;exports.Portal=wm;exports.Presence=Ja;exports.Primitive=le;exports.ReactRemoveScroll=Om;exports.Root=MK;exports.Root$1=tE;exports.Root2=lT;exports.Slottable=A4;exports.ToolApprovalContext=cj;exports.ToolExecutionProvider=Z4;exports.assert=oj;exports.assertNever=aj;exports.chart=K1;exports.cn=ie;exports.composeEventHandlers=he;exports.createContext2=$K;exports.createContextScope=kt;exports.createLucideIcon=qa;exports.createPopperScope=Rm;exports.createSlot=di;exports.createSlot$1=lC;exports.createSlottable=EK;exports.cva=ki;exports.generativeUI=mC;exports.hideOthers=_E;exports.recommended=EY;exports.useCallbackRef=zt;exports.useChatId=sj;exports.useComposedRefs=Ce;exports.useControllableState=lr;exports.useDensity=rv;exports.useElements=tv;exports.useFocusGuards=mE;exports.useId=Lr;exports.useIsHydrated=PE;exports.useLayoutEffect2=Re;exports.useRadius=uA;
280
- //# sourceMappingURL=index-C4bFBGfl.cjs.map
279
+ Use for dashboards, tables, metrics from tool results. Skip for simple text or errors.`,Component:TY,Header:void 0};function CY(e){const t=[...e];return t.except=(...r)=>{const n=new Set(r);return t.filter(i=>!n.has(i.id??i.language))},t}const jY=CY([G1,yC]);exports.Anchor=dT;exports.Arrow=hT;exports.Button=pC;exports.ChatIdContext=aA;exports.Check=iv;exports.ChevronDown=Xs;exports.ChevronUp=uA;exports.CircleAlert=av;exports.CollapsibleContent=vm;exports.CollapsibleTrigger=pm;exports.Content=pT;exports.DismissableLayer=xm;exports.ElementsContext=oA;exports.FocusScope=wm;exports.Portal=Om;exports.Presence=Ja;exports.Primitive=le;exports.ReactRemoveScroll=Sm;exports.Root=NK;exports.Root$1=rE;exports.Root2=fT;exports.Slottable=P4;exports.ToolApprovalContext=uj;exports.ToolExecutionProvider=Q4;exports.assert=sj;exports.assertNever=oj;exports.chart=G1;exports.cn=ie;exports.composeEventHandlers=he;exports.createContext2=DK;exports.createContextScope=kt;exports.createLucideIcon=qa;exports.createPopperScope=Mm;exports.createSlot=di;exports.createSlot$1=fC;exports.createSlottable=CK;exports.cva=ki;exports.generativeUI=yC;exports.hideOthers=PE;exports.recommended=jY;exports.useCallbackRef=zt;exports.useChatId=cj;exports.useComposedRefs=Ce;exports.useControllableState=lr;exports.useDensity=nv;exports.useElements=rv;exports.useFocusGuards=yE;exports.useId=Lr;exports.useIsHydrated=EE;exports.useLayoutEffect2=Re;exports.useRadius=lA;
280
+ //# sourceMappingURL=index-COzPF-WM.cjs.map